[GH-ISSUE #522] Fail to start docker container on Centos 9 #253

Closed
opened 2026-02-26 10:31:22 +03:00 by kerem · 8 comments
Owner

Originally created by @MadmanXML on GitHub (Oct 25, 2022).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/522

Do you want to request a feature or report a bug?
yes

What is the current behavior?

docker run -i -t -d --name nextcloud_onlyoffice -p 8899:80 --restart=always onlyoffice/documentserver
docker logs nextcloud_onlyoffice -f

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
I'm not really sure.
MY OS: CentOS Stream 9 latest
MR DOCKER: 20.10.18 Community
MY COMMAND and OUTPUT:

[root@xiamingliang ~]# docker run -i -t -d --name nextcloud_onlyoffice -p 8899:80 --restart=always onlyoffice/documentserver
823d1f9ebb77b6b4c79ecfa029ba8bbdc2a48d03bd4d6a46963dfbc4a5e2e593
[root@xiamingliang ~]# 
[root@xiamingliang ~]# 
[root@xiamingliang ~]# docker logs nextcloud_onlyoffice -f
 * Starting PostgreSQL 14 database server                                [ OK ] 
 * Starting RabbitMQ Messaging Server rabbitmq-server                            * FAILED - check /var/log/rabbitmq/startup_\{log, _err\}
                                                                         [fail]
Waiting for connection to the localhost host on port 5672
Waiting for connection to the localhost host on port 5672
Waiting for connection to the localhost host on port 5672
Waiting for connection to the localhost host on port 5672
Waiting for connection to the localhost host on port 5672
Waiting for connection to the localhost host on port 5672
……
……
psql:/var/www/onlyoffice/documentserver/server/schema/postgresql/removetbl.sql:4: NOTICE:  table "doc_callbacks" does not exist, skipping
psql:/var/www/onlyoffice/documentserver/server/schema/postgresql/removetbl.sql:9: NOTICE:  function merge_db(pg_catalog.varchar,int2,int8,pg_catalog.timestamp,pg_catalog.varchar,int8,int8) does not exist, skipping
psql:/var/www/onlyoffice/documentserver/server/schema/postgresql/removetbl.sql:10: NOTICE:  function merge_db(pg_catalog.varchar,int2,int4,pg_catalog.timestamp,pg_catalog.varchar,int4,int4) does not exist, skipping
psql:/var/www/onlyoffice/documentserver/server/schema/postgresql/removetbl.sql:11: NOTICE:  function merge_db(pg_catalog.varchar,int2,int4,pg_catalog.timestamp,int4,int4,text,text) does not exist, skipping
 * Reloading nginx configuration nginx                                   [ OK ] 
Starting supervisor: supervisord.
cron: unrecognized service
 * Starting nginx nginx                                                  [ OK ] 
Generating AllFonts.js, please wait...Done
Generating presentation themes, please wait...Done
ds:docservice: stopped
ds:docservice: started
ds:converter: stopped
ds:converter: started
 * Reloading nginx configuration nginx                                   [ OK ] 
JWT is enabled by default. A random secret is generated automatically. Run the command "docker exec 823d1f9ebb77 sudo documentserver-jwt-status.sh" to get information about JWT.
==> /var/log/onlyoffice/documentserver/converter/err.log <==

==> /var/log/onlyoffice/documentserver/converter/out.log <==
[2022-10-25T06:07:20.456] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2022-10-25T06:07:20.859] [WARN] [localhost] [docId] [userId] nodeJS - worker 1002 started.
[2022-10-25T06:07:20.865] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2022-10-25T06:09:22.684] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2022-10-25T06:09:22.782] [WARN] [localhost] [docId] [userId] nodeJS - worker 1182 started.
[2022-10-25T06:09:22.800] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers

==> /var/log/onlyoffice/documentserver/docservice/err.log <==

==> /var/log/onlyoffice/documentserver/docservice/out.log <==
[2022-10-25T06:07:26.746] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2022-10-25T06:07:26.748] [WARN] [localhost] [docId] [userId] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability
[2022-10-25T06:07:28.722] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 7.2.1. Build: 34
[2022-10-25T06:09:24.810] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2022-10-25T06:09:24.812] [WARN] [localhost] [docId] [userId] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability
[2022-10-25T06:09:25.066] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 7.2.1. Build: 34

==> /var/log/onlyoffice/documentserver/metrics/err.log <==

==> /var/log/onlyoffice/documentserver/metrics/out.log <==
25 Oct 06:07:14 - [948] reading config file: ./config/config.js
25 Oct 06:07:14 - server is up INFO

==> /var/log/onlyoffice/documentserver/nginx.error.log <==
^C
[root@xiamingliang ~]# 
[root@xiamingliang ~]# docker exec -it nextcloud_onlyoffice /bin/bash
root@823d1f9ebb77:/# cat /var/log/rabbitmq/startup_err 
root@823d1f9ebb77:/# cat /var/log/rabbitmq/startup_log
2022-10-25 06:05:21.245406+00:00 [warn] <0.130.0> Failed to create PID file "/var/run/rabbitmq/pid" directory: permission denied
2022-10-25 06:05:51.589894+00:00 [info] <0.228.0> Feature flags: list of feature flags found:
2022-10-25 06:05:51.589940+00:00 [info] <0.228.0> Feature flags:   [ ] implicit_default_bindings
2022-10-25 06:05:51.589956+00:00 [info] <0.228.0> Feature flags:   [ ] maintenance_mode_status
2022-10-25 06:05:51.589967+00:00 [info] <0.228.0> Feature flags:   [ ] quorum_queue
2022-10-25 06:05:51.590034+00:00 [info] <0.228.0> Feature flags:   [ ] stream_queue
2022-10-25 06:05:51.590046+00:00 [info] <0.228.0> Feature flags:   [ ] user_limits
2022-10-25 06:05:51.590055+00:00 [info] <0.228.0> Feature flags:   [ ] virtual_host_metadata
2022-10-25 06:05:51.590106+00:00 [info] <0.228.0> Feature flags: feature flag states written to disk: yes
2022-10-25 06:05:56.453499+00:00 [noti] <0.44.0> Application syslog exited with reason: stopped
2022-10-25 06:05:56.453576+00:00 [noti] <0.228.0> Logging: switching to configured handler(s); following messages may not be visible in this log output

  ##  ##      RabbitMQ 3.9.13
  ##  ##
  ##########  Copyright (c) 2007-2022 VMware, Inc. or its affiliates.
  ######  ##
  ##########  Licensed under the MPL 2.0. Website: https://rabbitmq.com

  Erlang:      24.2.1 [jit]
  TLS Library: OpenSSL - OpenSSL 3.0.2 15 Mar 2022

  Doc guides:  https://rabbitmq.com/documentation.html
  Support:     https://rabbitmq.com/contact.html
  Tutorials:   https://rabbitmq.com/getstarted.html
  Monitoring:  https://rabbitmq.com/monitoring.html

  Logs: /var/log/rabbitmq/rabbit@823d1f9ebb77.log
        /var/log/rabbitmq/rabbit@823d1f9ebb77_upgrade.log
        <stdout>

  Config file(s): (none)

  Starting broker... completed with 0 plugins.
root@823d1f9ebb77:/# 
root@823d1f9ebb77:/# exit
exit
[root@xiamingliang ~]# 


What is the expected behavior?
error log and cannot access the onlyoffice website

Did this work in previous versions of DocumentServer?
yes, docker run -i -t -d --name nextcloud_onlyoffice -p 8899:80 --restart=always onlyoffice/documentserver:7.2.0 same.

DocumentServer Docker tag:
latest

Host Operating System:

[root@xiamingliang ~]# cat /etc/os-release 
NAME="CentOS Stream"
VERSION="9"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="9"
PLATFORM_ID="platform:el9"
PRETTY_NAME="CentOS Stream 9"
ANSI_COLOR="0;31"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:centos:centos:9"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 9"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"
[root@xiamingliang ~]# 
[root@xiamingliang ~]# 
[root@xiamingliang ~]# docker version
Client: Docker Engine - Community
 Version:           20.10.18
 API version:       1.41
 Go version:        go1.18.6
 Git commit:        b40c2f6
 Built:             Thu Sep  8 23:12:02 2022
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.18
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.18.6
  Git commit:       e42327a
  Built:            Thu Sep  8 23:09:37 2022
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.8
  GitCommit:        9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6
 runc:
  Version:          1.1.4
  GitCommit:        v1.1.4-0-g5fd4c4d
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
[root@xiamingliang ~]# 
Originally created by @MadmanXML on GitHub (Oct 25, 2022). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/522 **Do you want to request a *feature* or report a *bug*?** yes **What is the current behavior?** ``` docker run -i -t -d --name nextcloud_onlyoffice -p 8899:80 --restart=always onlyoffice/documentserver docker logs nextcloud_onlyoffice -f ``` **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.** I'm not really sure. MY OS: `CentOS Stream 9 latest` MR DOCKER: `20.10.18 Community` MY COMMAND and OUTPUT: ``` [root@xiamingliang ~]# docker run -i -t -d --name nextcloud_onlyoffice -p 8899:80 --restart=always onlyoffice/documentserver 823d1f9ebb77b6b4c79ecfa029ba8bbdc2a48d03bd4d6a46963dfbc4a5e2e593 [root@xiamingliang ~]# [root@xiamingliang ~]# [root@xiamingliang ~]# docker logs nextcloud_onlyoffice -f * Starting PostgreSQL 14 database server [ OK ] * Starting RabbitMQ Messaging Server rabbitmq-server * FAILED - check /var/log/rabbitmq/startup_\{log, _err\} [fail] Waiting for connection to the localhost host on port 5672 Waiting for connection to the localhost host on port 5672 Waiting for connection to the localhost host on port 5672 Waiting for connection to the localhost host on port 5672 Waiting for connection to the localhost host on port 5672 Waiting for connection to the localhost host on port 5672 …… …… psql:/var/www/onlyoffice/documentserver/server/schema/postgresql/removetbl.sql:4: NOTICE: table "doc_callbacks" does not exist, skipping psql:/var/www/onlyoffice/documentserver/server/schema/postgresql/removetbl.sql:9: NOTICE: function merge_db(pg_catalog.varchar,int2,int8,pg_catalog.timestamp,pg_catalog.varchar,int8,int8) does not exist, skipping psql:/var/www/onlyoffice/documentserver/server/schema/postgresql/removetbl.sql:10: NOTICE: function merge_db(pg_catalog.varchar,int2,int4,pg_catalog.timestamp,pg_catalog.varchar,int4,int4) does not exist, skipping psql:/var/www/onlyoffice/documentserver/server/schema/postgresql/removetbl.sql:11: NOTICE: function merge_db(pg_catalog.varchar,int2,int4,pg_catalog.timestamp,int4,int4,text,text) does not exist, skipping * Reloading nginx configuration nginx [ OK ] Starting supervisor: supervisord. cron: unrecognized service * Starting nginx nginx [ OK ] Generating AllFonts.js, please wait...Done Generating presentation themes, please wait...Done ds:docservice: stopped ds:docservice: started ds:converter: stopped ds:converter: started * Reloading nginx configuration nginx [ OK ] JWT is enabled by default. A random secret is generated automatically. Run the command "docker exec 823d1f9ebb77 sudo documentserver-jwt-status.sh" to get information about JWT. ==> /var/log/onlyoffice/documentserver/converter/err.log <== ==> /var/log/onlyoffice/documentserver/converter/out.log <== [2022-10-25T06:07:20.456] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers [2022-10-25T06:07:20.859] [WARN] [localhost] [docId] [userId] nodeJS - worker 1002 started. [2022-10-25T06:07:20.865] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers [2022-10-25T06:09:22.684] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers [2022-10-25T06:09:22.782] [WARN] [localhost] [docId] [userId] nodeJS - worker 1182 started. [2022-10-25T06:09:22.800] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers ==> /var/log/onlyoffice/documentserver/docservice/err.log <== ==> /var/log/onlyoffice/documentserver/docservice/out.log <== [2022-10-25T06:07:26.746] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting... [2022-10-25T06:07:26.748] [WARN] [localhost] [docId] [userId] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability [2022-10-25T06:07:28.722] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 7.2.1. Build: 34 [2022-10-25T06:09:24.810] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting... [2022-10-25T06:09:24.812] [WARN] [localhost] [docId] [userId] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability [2022-10-25T06:09:25.066] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 7.2.1. Build: 34 ==> /var/log/onlyoffice/documentserver/metrics/err.log <== ==> /var/log/onlyoffice/documentserver/metrics/out.log <== 25 Oct 06:07:14 - [948] reading config file: ./config/config.js 25 Oct 06:07:14 - server is up INFO ==> /var/log/onlyoffice/documentserver/nginx.error.log <== ^C [root@xiamingliang ~]# [root@xiamingliang ~]# docker exec -it nextcloud_onlyoffice /bin/bash root@823d1f9ebb77:/# cat /var/log/rabbitmq/startup_err root@823d1f9ebb77:/# cat /var/log/rabbitmq/startup_log 2022-10-25 06:05:21.245406+00:00 [warn] <0.130.0> Failed to create PID file "/var/run/rabbitmq/pid" directory: permission denied 2022-10-25 06:05:51.589894+00:00 [info] <0.228.0> Feature flags: list of feature flags found: 2022-10-25 06:05:51.589940+00:00 [info] <0.228.0> Feature flags: [ ] implicit_default_bindings 2022-10-25 06:05:51.589956+00:00 [info] <0.228.0> Feature flags: [ ] maintenance_mode_status 2022-10-25 06:05:51.589967+00:00 [info] <0.228.0> Feature flags: [ ] quorum_queue 2022-10-25 06:05:51.590034+00:00 [info] <0.228.0> Feature flags: [ ] stream_queue 2022-10-25 06:05:51.590046+00:00 [info] <0.228.0> Feature flags: [ ] user_limits 2022-10-25 06:05:51.590055+00:00 [info] <0.228.0> Feature flags: [ ] virtual_host_metadata 2022-10-25 06:05:51.590106+00:00 [info] <0.228.0> Feature flags: feature flag states written to disk: yes 2022-10-25 06:05:56.453499+00:00 [noti] <0.44.0> Application syslog exited with reason: stopped 2022-10-25 06:05:56.453576+00:00 [noti] <0.228.0> Logging: switching to configured handler(s); following messages may not be visible in this log output ## ## RabbitMQ 3.9.13 ## ## ########## Copyright (c) 2007-2022 VMware, Inc. or its affiliates. ###### ## ########## Licensed under the MPL 2.0. Website: https://rabbitmq.com Erlang: 24.2.1 [jit] TLS Library: OpenSSL - OpenSSL 3.0.2 15 Mar 2022 Doc guides: https://rabbitmq.com/documentation.html Support: https://rabbitmq.com/contact.html Tutorials: https://rabbitmq.com/getstarted.html Monitoring: https://rabbitmq.com/monitoring.html Logs: /var/log/rabbitmq/rabbit@823d1f9ebb77.log /var/log/rabbitmq/rabbit@823d1f9ebb77_upgrade.log <stdout> Config file(s): (none) Starting broker... completed with 0 plugins. root@823d1f9ebb77:/# root@823d1f9ebb77:/# exit exit [root@xiamingliang ~]# ``` **What is the expected behavior?** error log and cannot access the onlyoffice website **Did this work in previous versions of DocumentServer?** yes, docker run -i -t -d --name nextcloud_onlyoffice -p 8899:80 --restart=always onlyoffice/documentserver:7.2.0 same. **DocumentServer Docker tag:** latest **Host Operating System:** ``` [root@xiamingliang ~]# cat /etc/os-release NAME="CentOS Stream" VERSION="9" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="9" PLATFORM_ID="platform:el9" PRETTY_NAME="CentOS Stream 9" ANSI_COLOR="0;31" LOGO="fedora-logo-icon" CPE_NAME="cpe:/o:centos:centos:9" HOME_URL="https://centos.org/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 9" REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream" [root@xiamingliang ~]# [root@xiamingliang ~]# [root@xiamingliang ~]# docker version Client: Docker Engine - Community Version: 20.10.18 API version: 1.41 Go version: go1.18.6 Git commit: b40c2f6 Built: Thu Sep 8 23:12:02 2022 OS/Arch: linux/amd64 Context: default Experimental: true Server: Docker Engine - Community Engine: Version: 20.10.18 API version: 1.41 (minimum version 1.12) Go version: go1.18.6 Git commit: e42327a Built: Thu Sep 8 23:09:37 2022 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.8 GitCommit: 9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6 runc: Version: 1.1.4 GitCommit: v1.1.4-0-g5fd4c4d docker-init: Version: 0.19.0 GitCommit: de40ad0 [root@xiamingliang ~]# ```
kerem 2026-02-26 10:31:22 +03:00
Author
Owner

@ShockwaveNN commented on GitHub (Oct 25, 2022):

Hi, thanks for report

We already known that there is some issues on Centos 9 - bug 59481 in our private issue tracker
Don't know why this happened right now, seems docker engine is not so isolated on some newer systems

<!-- gh-comment-id:1290062336 --> @ShockwaveNN commented on GitHub (Oct 25, 2022): Hi, thanks for report We already known that there is some issues on Centos 9 - bug 59481 in our private issue tracker Don't know why this happened right now, seems docker engine is not so isolated on some newer systems
Author
Owner

@MadmanXML commented on GitHub (Oct 25, 2022):

Ok, thanks for the response.
Is there any way to temporarily solve this issue?

<!-- gh-comment-id:1290096138 --> @MadmanXML commented on GitHub (Oct 25, 2022): Ok, thanks for the response. Is there any way to temporarily solve this issue?
Author
Owner

@ShockwaveNN commented on GitHub (Oct 25, 2022):

I don't think so, maybe it's even problem on centos side

I'm not even sure that Centos 9 is in stable state right now and ready for production servers (

<!-- gh-comment-id:1290099729 --> @ShockwaveNN commented on GitHub (Oct 25, 2022): I don't think so, maybe it's even problem on centos side I'm not even sure that Centos 9 is in stable state right now and ready for production servers (
Author
Owner

@ShockwaveNN commented on GitHub (Oct 25, 2022):

I think we can diagnose this a problem by checking if ubuntu:22.04 container with installed rabbitmq is started correctly (since logs show that it failed)

If it will fail even without ONLYOFFICE DocumentServer - this is a problem on docker/centos side

<!-- gh-comment-id:1290102699 --> @ShockwaveNN commented on GitHub (Oct 25, 2022): I think we can diagnose this a problem by checking if `ubuntu:22.04` container with installed rabbitmq is started correctly (since logs show that it failed) If it will fail even without ONLYOFFICE DocumentServer - this is a problem on docker/centos side
Author
Owner

@MadmanXML commented on GitHub (Oct 25, 2022):

copy that!
I'll diagnose this on centos 7.9 later.

<!-- gh-comment-id:1290144136 --> @MadmanXML commented on GitHub (Oct 25, 2022): copy that! I'll diagnose this on centos 7.9 later.
Author
Owner

@ShockwaveNN commented on GitHub (Oct 25, 2022):

I'm 99% sure it will work fine on centos 7

<!-- gh-comment-id:1290189658 --> @ShockwaveNN commented on GitHub (Oct 25, 2022): I'm 99% sure it will work fine on centos 7
Author
Owner

@MadmanXML commented on GitHub (Oct 26, 2022):

Yes, I confirmed it is normal on centos 7 2009.

<!-- gh-comment-id:1291514464 --> @MadmanXML commented on GitHub (Oct 26, 2022): Yes, I confirmed it is normal on centos 7 2009.
Author
Owner

@igwyd commented on GitHub (Dec 21, 2022):

It's fixed https://github.com/ONLYOFFICE/Docker-DocumentServer/pull/530 and 7.2.2 released.

<!-- gh-comment-id:1361029814 --> @igwyd commented on GitHub (Dec 21, 2022): It's fixed https://github.com/ONLYOFFICE/Docker-DocumentServer/pull/530 and 7.2.2 released.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-DocumentServer-ONLYOFFICE#253
No description provided.