Repository: jonaswinkler/paperless-ng

Issue #227: [ERROR] Connection in use: ('localhost', 8000)
Created: 2020-12-31T02:36:06Z
Hello! This evening I updated paperless-ng to 0.9.10 and can't get it to start. The logs below basically repeat forever...
I tried using the provided docker-compose-postgres.yml and .env with the same result.
Did a config change happen somewhere with gunicorn?
webserver_1  | Waiting for PostgreSQL to start...
webserver_1  | Operations to perform:
webserver_1  |   Apply all migrations: admin, auth, authtoken, contenttypes, django_q, documents, paperless_mail, sessions
webserver_1  | Running migrations:
webserver_1  |   No migrations to apply.
webserver_1  | 2020-12-31 02:29:25,253 INFO Set uid to user 0 succeeded
webserver_1  | 2020-12-31 02:29:25,254 INFO supervisord started with pid 1
webserver_1  | 2020-12-31 02:29:26,257 INFO spawned: 'consumer' with pid 29
webserver_1  | 2020-12-31 02:29:26,259 INFO spawned: 'gunicorn' with pid 30
webserver_1  | 2020-12-31 02:29:26,260 INFO spawned: 'scheduler' with pid 31
webserver_1  | [2020-12-31 02:29:26 +0000] [30] [INFO] Starting gunicorn 20.0.4
webserver_1  | [2020-12-31 02:29:26 +0000] [30] [ERROR] Connection in use: ('localhost', 8000)
webserver_1  | [2020-12-31 02:29:26 +0000] [30] [ERROR] Retrying in 1 second.
webserver_1  | 18:29:27 [Q] INFO Q Cluster steak-cola-monkey-pluto starting.
webserver_1  | INFO 2020-12-30 18:29:27,204 document_consumer Using inotify to watch directory for changes: /usr/src/paperless/src/../consume
webserver_1  | 18:29:27 [Q] INFO Process-1:1 ready for work at 49
webserver_1  | 18:29:27 [Q] INFO Process-1:2 ready for work at 50
webserver_1  | 18:29:27 [Q] INFO Process-1:3 ready for work at 51
webserver_1  | 18:29:27 [Q] INFO Process-1:4 monitoring at 52
webserver_1  | 18:29:27 [Q] INFO Process-1 guarding cluster steak-cola-monkey-pluto
webserver_1  | 18:29:27 [Q] INFO Process-1:5 pushing tasks at 53
webserver_1  | 18:29:27 [Q] INFO Q Cluster steak-cola-monkey-pluto running.
webserver_1  | [2020-12-31 02:29:27 +0000] [30] [ERROR] Connection in use: ('localhost', 8000)
webserver_1  | [2020-12-31 02:29:27 +0000] [30] [ERROR] Retrying in 1 second.
webserver_1  | 2020-12-31 02:29:27,390 INFO success: consumer entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
webserver_1  | 2020-12-31 02:29:27,390 INFO success: gunicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
webserver_1  | 2020-12-31 02:29:27,390 INFO success: scheduler entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
webserver_1  | [2020-12-31 02:29:28 +0000] [30] [ERROR] Connection in use: ('localhost', 8000)
webserver_1  | [2020-12-31 02:29:28 +0000] [30] [ERROR] Retrying in 1 second.
webserver_1  | [2020-12-31 02:29:29 +0000] [30] [ERROR] Connection in use: ('localhost', 8000)
webserver_1  | [2020-12-31 02:29:29 +0000] [30] [ERROR] Retrying in 1 second.
webserver_1  | [2020-12-31 02:29:30 +0000] [30] [ERROR] Connection in use: ('localhost', 8000)
webserver_1  | [2020-12-31 02:29:30 +0000] [30] [ERROR] Retrying in 1 second.
 webserver_1  | [2020-12-31 02:29:31 +0000] [30] [ERROR] Can't connect to ('localhost', 8000)
Thanks for all the releases lately, paperless-ng has been great 😃

Duplicate issue #229: Port 8000 in use
Created: 2020-12-31T05:45:14Z
Just upgraded to 0.9.10 released a few hours ago via docker container and it's complaining that port 8000 is in use when it goes to start gunicorn.
Mapping UID and GID for paperless:paperless to 99:100
Waiting for PostgreSQL to start...
Operations to perform:
Apply all migrations: admin, auth, authtoken, contenttypes, django_q, documents, paperless_mail, sessions
Running migrations:
No migrations to apply.
2020-12-31 00:41:17,093 INFO Set uid to user 0 succeeded
2020-12-31 00:41:17,098 INFO supervisord started with pid 1
2020-12-31 00:41:18,102 INFO spawned: 'consumer' with pid 37
2020-12-31 00:41:18,106 INFO spawned: 'gunicorn' with pid 38
2020-12-31 00:41:18,110 INFO spawned: 'scheduler' with pid 39
[2020-12-31 00:41:18 -0500] [38] [INFO] Starting gunicorn 20.0.4
[2020-12-31 00:41:18 -0500] [38] [ERROR] Connection in use: ('localhost', 8000)

[2020-12-31 00:41:18 -0500] [38] [ERROR] Retrying in 1 second.

2020-12-31 00:41:19,382 INFO success: consumer entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-12-31 00:41:19,383 INFO success: gunicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-12-31 00:41:19,383 INFO success: scheduler entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
[2020-12-31 00:41:19 -0500] [38] [ERROR] Connection in use: ('localhost', 8000)

[2020-12-31 00:41:19 -0500] [38] [ERROR] Retrying in 1 second.

00:41:20 [Q] INFO Q Cluster magazine-north-pluto-delta starting.
00:41:20 [Q] INFO Process-1:1 ready for work at 56
00:41:20 [Q] INFO Process-1:2 ready for work at 57
00:41:20 [Q] INFO Process-1:3 ready for work at 58
00:41:20 [Q] INFO Process-1:4 ready for work at 59
00:41:20 [Q] INFO Process-1:5 ready for work at 60
00:41:20 [Q] INFO Process-1:6 monitoring at 61
00:41:20 [Q] INFO Process-1 guarding cluster magazine-north-pluto-delta
00:41:20 [Q] INFO Process-1:7 pushing tasks at 62
00:41:20 [Q] INFO Q Cluster magazine-north-pluto-delta running.
INFO 2020-12-31 00:41:20,114 document_consumer Using inotify to watch directory for changes: /usr/src/paperless/src/../consume
[2020-12-31 00:41:20 -0500] [38] [ERROR] Connection in use: ('localhost', 8000)

[2020-12-31 00:41:20 -0500] [38] [ERROR] Retrying in 1 second.

[2020-12-31 00:41:21 -0500] [38] [ERROR] Connection in use: ('localhost', 8000)

[2020-12-31 00:41:21 -0500] [38] [ERROR] Retrying in 1 second.

[2020-12-31 00:41:22 -0500] [38] [ERROR] Connection in use: ('localhost', 8000)

[2020-12-31 00:41:22 -0500] [38] [ERROR] Retrying in 1 second.

[2020-12-31 00:41:23 -0500] [38] [ERROR] Can't connect to ('localhost', 8000)

2020-12-31 00:41:23,413 INFO exited: gunicorn (exit status 1; not expected)
2020-12-31 00:41:24,417 INFO spawned: 'gunicorn' with pid 64
[2020-12-31 00:41:24 -0500] [64] [INFO] Starting gunicorn 20.0.4
[2020-12-31 00:41:24 -0500] [64] [ERROR] Connection in use: ('localhost', 8000)

[2020-12-31 00:41:24 -0500] [64] [ERROR] Retrying in 1 second.

2020-12-31 00:41:25,688 INFO success: gunicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
[2020-12-31 00:41:25 -0500] [64] [ERROR] Connection in use: ('localhost', 8000)

[2020-12-31 00:41:25 -0500] [64] [ERROR] Retrying in 1 second.

[2020-12-31 00:41:26 -0500] [64] [ERROR] Connection in use: ('localhost', 8000)

[2020-12-31 00:41:26 -0500] [64] [ERROR] Retrying in 1 second.

[2020-12-31 00:41:27 -0500] [64] [ERROR] Connection in use: ('localhost', 8000)

[2020-12-31 00:41:27 -0500] [64] [ERROR] Retrying in 1 second.

[2020-12-31 00:41:28 -0500] [64] [ERROR] Connection in use: ('localhost', 8000)

[2020-12-31 00:41:28 -0500] [64] [ERROR] Retrying in 1 second.

[2020-12-31 00:41:29 -0500] [64] [ERROR] Can't connect to ('localhost', 8000)

2020-12-31 00:41:29,722 INFO exited: gunicorn (exit status 1; not expected)
2020-12-31 00:41:30,726 INFO spawned: 'gunicorn' with pid 67
[2020-12-31 00:41:30 -0500] [67] [INFO] Starting gunicorn 20.0.4
[2020-12-31 00:41:30 -0500] [67] [ERROR] Connection in use: ('localhost', 8000)

[2020-12-31 00:41:30 -0500] [67] [ERROR] Retrying in 1 second.

Closing comment (2020-12-31T05:46:31Z): I should learn to search, duplicate of #227
Sorry :)