Comments (5)
I tried to remove all the Volume without mounting any files on my machine, this problem still exists, thank you very much for your answer
from communityserver.
Hello @Zmzzz Please describe in more detail how you installed Onlyoffice? Your host OS?
from communityserver.
According to the official documentation of onlyoffice, I have successfully run onlyoffice on ubuntu 20 before. Now I am using an immutable kernel operating system made by our company based on ubunutu 20, which is still in the test stage, and file permission problems often occur. I wrote a yaml file on this computer using k3s to start the container, there are four mirrors inside the container, the first time I used Volume mapping to the local path, I encountered a permission error, I deleted all the volumes still the same problem
The following is the yaml file:
name: "onlyoffice"
image_version_mysql: "mysql:8.0.29"
image_version_document: "zmm001/onlyoffice:latest"
image_version_control_panel: "onlyoffice/controlpanel"
image_version_community: "onlyoffice/communityserver"
apiVersion: v1
kind: Service
metadata:
name: v1n-svc-{{ .Values.name }}
spec:
type: NodePort
selector:
name: v1n-{{ .Values.name }}
ports:
- protocol: TCP
name: port1
port: 80 # Service 的端口
targetPort: 80 # 目标容器的端口
- protocol: TCP
name: port2
port: 443
targetPort: 443
- protocol: TCP
name: port3
port: 5222
targetPort: 5222
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: v1n-deploy-{{ .Values.name }}
spec:
replicas: 1 # 根据需要设置副本数量
selector:
matchLabels:
name: v1n-{{ .Values.name }}
template:
metadata:
labels:
name: v1n-{{ .Values.name }}
spec:
containers:
- name: onlyoffice-mysql-server
image: {{ .Values.image_version_mysql }}
imagePullPolicy: IfNotPresent
env:
- name: MYSQL_ROOT_PASSWORD
value: my-secret-pw
- name: MYSQL_DATABASE
value: onlyoffice
- name: onlyoffice-document-server
image: {{ .Values.image_version_document }}
imagePullPolicy: IfNotPresent
env:
- name: JWT_ENABLED
value: "false"
- name: onlyoffice-control-panel
image: {{ .Values.image_version_control_panel }}
imagePullPolicy: IfNotPresent
- name: onlyoffice-community-server
image: {{ .Values.image_version_community }}
imagePullPolicy: IfNotPresent
env:
- name: MYSQL_SERVER_ROOT_PASSWORD
value: my-secret-pw
- name: MYSQL_SERVER_DB_NAME
value: onlyoffice
# 其他 Community Server 相关配置...
ports:
- containerPort: 80
- containerPort: 443
- containerPort: 5222
imagePullPolicy: IfNotPresent
Among them, I changed a configuration of the document image and repackaged it based on the official image. The official image would have a downloading failure due to the private IP problem
Finally, thank you very much for your reply, my English is generated by translation software, I hope it will not cause trouble to you
from communityserver.
Just now, I entered the mysql container to check whether the user was successfully created, and found that the previous sql script was not successfully executed, could it be related to this
echo "[mysqld]
sql_mode = 'NO_ENGINE_SUBSTITUTION'
max_connections = 1000
max_allowed_packet = 1048576000
group_concat_max_len = 2048" > /app/onlyoffice/mysql/conf.d/onlyoffice.cnf
echo "ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'my-secret-pw';
CREATE USER IF NOT EXISTS 'onlyoffice_user'@'%' IDENTIFIED WITH mysql_native_password BY 'onlyoffice_pass';
CREATE USER IF NOT EXISTS 'mail_admin'@'%' IDENTIFIED WITH mysql_native_password BY 'Isadmin123';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%';
GRANT ALL PRIVILEGES ON *.* TO 'onlyoffice_user'@'%';
GRANT ALL PRIVILEGES ON *.* TO 'mail_admin'@'%';
FLUSH PRIVILEGES;" > /app/onlyoffice/mysql/initdb/setup.sql
from communityserver.
Sorry, but we do not support installation of k3s or other type of Kubernetes. I have no idea what the /nonexistent
folder is. Maybe you'll try a different type of Onlyoffice installation, script or docker-compose?
from communityserver.
Related Issues (20)
- SSO SAML with Keycloak
- Is it possible to hide "Feed" just like "People", "CRM", "Projects", etc.? HOT 1
- CommunityServer mysqladmin: [Warning] Using a password on the command line interface can be insecure. HOT 1
- Opening document fails after upgrade to 12.5.2 - "Because, It is private IP address" HOT 1
- Are AGPL and CLA compatible? What about GDPR too? HOT 1
- Install Debian 12.1.0 aborts with the following error HOT 4
- How to remove the buttons(DownLoad as, Save Copy as) in the left operation bar on ONLYOFFICE-Docs Community Edition? HOT 1
- Common file access control require admin role? HOT 2
- I want to integrate OnlyOffice with Keycloak using OpenId connect HOT 1
- How to integrate Only Office with Keycloak using openId connect HOT 1
- Error Connecting OnlyOffice to MailServer - Unable to Retrieve Hostname HOT 1
- Calendar - Event From External calendar scheduling coming with incorrect Timezone HOT 4
- Auto sync LDAP data not work HOT 6
- Internal WebDAV for OnlyOffice WORKSPACE HOT 25
- Code changes do not take effect HOT 3
- Compile Issue on Ubuntu 22.04 HOT 5
- How to create a Debian package HOT 1
- Error "An item with the same key has already been added" occurs when mark files as read. HOT 2
- v12.6.0 broke user authentication HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from communityserver.