[GH-ISSUE #397] Nginx fails to start on a brand new deployment #205

Closed
opened 2026-02-26 10:30:58 +03:00 by kerem · 2 comments
Owner

Originally created by @yllekz on GitHub (Dec 31, 2021).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/397

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

What is the current behavior?
Cannot get to DocumentServer in the browser due to nginx failing to start. Logging doesn't explain why. Browser says "The connection was reset"

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
Start container

What is the expected behavior?
I should be able to get to DocumentServer in the browser

Did this work in previous versions of DocumentServer?
First time doing this

DocumentServer Docker tag:
latest

Host Operating System:
macOS Big Sur on Apple M1 hardware + Docker Desktop

This is the Stack I'm deploying via Portainer:

version: '2.1'
services:
    documentserver:
        image: onlyoffice/documentserver:latest
        restart: unless-stopped
        ports:
            - '8088:80'
        volumes:
            - "/Users/me/docker/config/documentserver/logs:/var/log/onlyoffice:rw" #for ONLYOFFICE Document Server logs
            - "/Users/me/docker/config/documentserver/data:/var/www/onlyofficeData:rw" #for certificates
            - "/Users/me/docker/config/documentserver/lib:/var/lib/onlyoffice:rw" #for file cache
            - "/Users/me/docker/config/documentserver/db:/var/lib/postgresql:rw" #for database
            - "/Users/me/steve/docker/config/documentserver/rabbitmq:/var/lib/rabbitmq:rw"
            - "/Users/me/docker/config/documentserver/redis:/var/lib/redis:rw"
            - "/Users/me/docker/data/documentserver/docs:/docs:rw" #My own docs

Logs:

/usr/bin/sed: -e expression #1, char 25: unknown option to `s'
 * Starting PostgreSQL 12 database server
   ...done.
 * Starting RabbitMQ Messaging Server rabbitmq-server
   ...done.
Starting supervisor: supervisord.
 * Starting periodic command scheduler cron
   ...done.
 * Starting nginx nginx
   ...fail!
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
   ...fail!
==> /var/log/onlyoffice/documentserver/converter/err.log <==

==> /var/log/onlyoffice/documentserver/converter/out.log <==
[2021-12-31T16:07:43.054] [WARN] nodeJS - update cluster with 1 workers
[2021-12-31T16:11:33.267] [WARN] nodeJS - update cluster with 1 workers
[2021-12-31T16:11:33.367] [WARN] nodeJS - worker 2398 started.
[2021-12-31T16:11:33.410] [WARN] nodeJS - update cluster with 1 workers
[2021-12-31T16:20:51.661] [WARN] nodeJS - update cluster with 1 workers
[2021-12-31T16:20:51.758] [WARN] nodeJS - worker 1628 started.
[2021-12-31T16:20:51.811] [WARN] nodeJS - update cluster with 1 workers
[2021-12-31T16:24:37.496] [WARN] nodeJS - update cluster with 1 workers
[2021-12-31T16:24:37.599] [WARN] nodeJS - worker 2121 started.
[2021-12-31T16:24:37.643] [WARN] nodeJS - update cluster with 1 workers

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

==> /var/log/onlyoffice/documentserver/docservice/out.log <==
[2021-12-31T16:07:48.716] [WARN] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 6.4.2. Build: 6
[2021-12-31T16:11:33.989] [WARN] nodeJS - Express server starting...
[2021-12-31T16:11:34.084] [WARN] 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
[2021-12-31T16:11:34.369] [WARN] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 6.4.2. Build: 6
[2021-12-31T16:20:55.097] [WARN] nodeJS - Express server starting...
[2021-12-31T16:20:55.192] [WARN] 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
[2021-12-31T16:20:55.672] [WARN] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 6.4.2. Build: 6
[2021-12-31T16:24:38.415] [WARN] nodeJS - Express server starting...
[2021-12-31T16:24:38.499] [WARN] 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
[2021-12-31T16:24:38.793] [WARN] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 6.4.2. Build: 6

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

==> /var/log/onlyoffice/documentserver/metrics/out.log <==
  gauges: {},
  timer_data: {},
  counter_rates:
   { 'statsd.bad_lines_seen': 0,
     'statsd.packets_received': 0,
     'statsd.metrics_received': 0 },
  sets: {},
  pctThreshold: [ 90 ] }
31 Dec 16:20:50 - [1526] reading config file: ./config/config.js
31 Dec 16:20:51 - server is up INFO
Originally created by @yllekz on GitHub (Dec 31, 2021). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/397 **Do you want to request a *feature* or report a *bug*?** Report a bug **What is the current behavior?** Cannot get to DocumentServer in the browser due to nginx failing to start. Logging doesn't explain why. Browser says "The connection was reset" **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.** Start container **What is the expected behavior?** I should be able to get to DocumentServer in the browser **Did this work in previous versions of DocumentServer?** First time doing this **DocumentServer Docker tag:** latest **Host Operating System:** macOS Big Sur on Apple M1 hardware + Docker Desktop This is the Stack I'm deploying via Portainer: ``` version: '2.1' services: documentserver: image: onlyoffice/documentserver:latest restart: unless-stopped ports: - '8088:80' volumes: - "/Users/me/docker/config/documentserver/logs:/var/log/onlyoffice:rw" #for ONLYOFFICE Document Server logs - "/Users/me/docker/config/documentserver/data:/var/www/onlyofficeData:rw" #for certificates - "/Users/me/docker/config/documentserver/lib:/var/lib/onlyoffice:rw" #for file cache - "/Users/me/docker/config/documentserver/db:/var/lib/postgresql:rw" #for database - "/Users/me/steve/docker/config/documentserver/rabbitmq:/var/lib/rabbitmq:rw" - "/Users/me/docker/config/documentserver/redis:/var/lib/redis:rw" - "/Users/me/docker/data/documentserver/docs:/docs:rw" #My own docs ``` Logs: ``` /usr/bin/sed: -e expression #1, char 25: unknown option to `s' * Starting PostgreSQL 12 database server ...done. * Starting RabbitMQ Messaging Server rabbitmq-server ...done. Starting supervisor: supervisord. * Starting periodic command scheduler cron ...done. * Starting nginx nginx ...fail! 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 ...fail! ==> /var/log/onlyoffice/documentserver/converter/err.log <== ==> /var/log/onlyoffice/documentserver/converter/out.log <== [2021-12-31T16:07:43.054] [WARN] nodeJS - update cluster with 1 workers [2021-12-31T16:11:33.267] [WARN] nodeJS - update cluster with 1 workers [2021-12-31T16:11:33.367] [WARN] nodeJS - worker 2398 started. [2021-12-31T16:11:33.410] [WARN] nodeJS - update cluster with 1 workers [2021-12-31T16:20:51.661] [WARN] nodeJS - update cluster with 1 workers [2021-12-31T16:20:51.758] [WARN] nodeJS - worker 1628 started. [2021-12-31T16:20:51.811] [WARN] nodeJS - update cluster with 1 workers [2021-12-31T16:24:37.496] [WARN] nodeJS - update cluster with 1 workers [2021-12-31T16:24:37.599] [WARN] nodeJS - worker 2121 started. [2021-12-31T16:24:37.643] [WARN] nodeJS - update cluster with 1 workers ==> /var/log/onlyoffice/documentserver/docservice/err.log <== ==> /var/log/onlyoffice/documentserver/docservice/out.log <== [2021-12-31T16:07:48.716] [WARN] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 6.4.2. Build: 6 [2021-12-31T16:11:33.989] [WARN] nodeJS - Express server starting... [2021-12-31T16:11:34.084] [WARN] 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 [2021-12-31T16:11:34.369] [WARN] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 6.4.2. Build: 6 [2021-12-31T16:20:55.097] [WARN] nodeJS - Express server starting... [2021-12-31T16:20:55.192] [WARN] 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 [2021-12-31T16:20:55.672] [WARN] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 6.4.2. Build: 6 [2021-12-31T16:24:38.415] [WARN] nodeJS - Express server starting... [2021-12-31T16:24:38.499] [WARN] 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 [2021-12-31T16:24:38.793] [WARN] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 6.4.2. Build: 6 ==> /var/log/onlyoffice/documentserver/metrics/err.log <== ==> /var/log/onlyoffice/documentserver/metrics/out.log <== gauges: {}, timer_data: {}, counter_rates: { 'statsd.bad_lines_seen': 0, 'statsd.packets_received': 0, 'statsd.metrics_received': 0 }, sets: {}, pctThreshold: [ 90 ] } 31 Dec 16:20:50 - [1526] reading config file: ./config/config.js 31 Dec 16:20:51 - server is up INFO ```
kerem 2026-02-26 10:30:58 +03:00
Author
Owner

@ShockwaveNN commented on GitHub (Jan 4, 2022):

Hi, usually all strange errors means that there is some permission problems with some of your volumes

Try to remove all your volumes from docker-compose.yml and see if it start ok
If so - add one by one volumes and see on which volume startup is failed, decide if you really need this volume and if so - check permissions on this volume

<!-- gh-comment-id:1004586519 --> @ShockwaveNN commented on GitHub (Jan 4, 2022): Hi, usually all strange errors means that there is some permission problems with some of your volumes Try to remove all your volumes from `docker-compose.yml` and see if it start ok If so - add one by one volumes and see on which volume startup is failed, decide if you really need this volume and if so - check permissions on this volume
Author
Owner

@ShockwaveNN commented on GitHub (Mar 24, 2022):

This issue was closed due to no response.

<!-- gh-comment-id:1077397805 --> @ShockwaveNN commented on GitHub (Mar 24, 2022): This issue was closed due to no response.
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#205
No description provided.