ONLYOFFICE / Docker-DocumentServer

ONLYOFFICE Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
GNU Affero General Public License v3.0
1.37k stars 470 forks source link

failed to initialize Lua VM #724

Open JeanSit opened 5 months ago

JeanSit commented 5 months ago

This issue is unique.

Operating System of DocumentServer

Docker

Version information

onlyoffice/documentserver:latest

Expected Behavior

in the macbook pro m3max can normal run the docker onlyoffice/documentserver:latest

Actual Behavior

1. can run the docker onlyoffice/docuemntserver:latest, but nginx start fail

3. nginx fail info below 2021/10/09 00:53:51 [info] 842#842: Using 32768KiB of shared memory for nchan in /etc/nginx/nginx.conf:63 2024/03/27 00:35:42 [error] 2018#2018: failed to initialize Lua VM in /etc/nginx/nginx.conf:63 2024/03/27 00:40:12 [error] 18243#18243: failed to initialize Lua VM in /etc/nginx/nginx.conf:63

Reproduction Steps

1. my local development environment

macbook pro m3max

2. in the terminal execute this command

sudo docker run -i -t -d -p 80:80 --restart=always \ -v /Users/{personal}/Downloads/onlyoffice/DocumentServer/logs:/var/log/onlyoffice \ -v /Users/{personal}/Downloads/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data \ -v /Users/{personal}/Downloads/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice \ -v /Users/{personal}/Downloads/onlyoffice/DocumentServer/db:/var/lib/postgresql \ -e JWT_ENABLED=false onlyoffice/documentserver:latest

3. docker log segment

2024-03-27 08:34:30 sed: -e expression ONLYOFFICE/DocumentServer#1, char 25: unknown option to `s' 2024-03-27 08:34:35 Starting PostgreSQL 12 database server [ OK ] 2024-03-27 08:35:39 Starting RabbitMQ Messaging Server rabbitmq-server [ OK ] 2024-03-27 08:35:41 Starting supervisor: supervisord. 2024-03-27 08:35:41 Starting periodic command scheduler cron [ OK ] 2024-03-27 08:35:42 Starting nginx nginx [fail] 2024-03-27 08:36:37 Generating AllFonts.js, please wait...Done 2024-03-27 08:38:47 Generating presentation themes, please wait...Done 2024-03-27 08:38:48 ds:docservice: stopped 2024-03-27 08:38:49 ds:docservice: started 2024-03-27 08:38:50 ds:converter: stopped 2024-03-27 08:38:51 ds:converter: started 2024-03-27 08:40:12 * Reloading nginx configuration nginx [fail]

4. so go to nginx configuration to find the error log path

cd /etc/nginx/nginx.conf

5. see the print content of error.log

2021/10/09 00:53:51 [info] 842#842: Using 32768KiB of shared memory for nchan in /etc/nginx/nginx.conf:63 2024/03/27 00:35:42 [error] 2018#2018: failed to initialize Lua VM in /etc/nginx/nginx.conf:63 2024/03/27 00:40:12 [error] 18243#18243: failed to initialize Lua VM in /etc/nginx/nginx.conf:63

above is all, have another computer with macbook intel chip and use docker is can normal correct run the document-server, so i think this is because the M serial chip cause this error, but i cannot slove this problem. anybody can help me ?

Additional information

No response