opendatateam / docker-udata

udata and plugins all-in-one Docker image
https://hub.docker.com/r/udata/udata/builds
MIT License
15 stars 12 forks source link

uwsgi worker not starting correctly #58

Closed abulte closed 6 years ago

abulte commented 6 years ago

In the latest version (udata 1.4.0), the worker is not starting correctly -- it gets killed and the respawned endlessly:

spawned 4 offload threads for uWSGI worker 1
udata_1          | Thu Jun  7 08:26:15 2018 - [emperor] vassal front.ini is ready to accept requests
udata_1          | *** running gevent loop engine [addr:0x55c4c7843260] ***
mongodb_1        | 2018-06-07T08:26:19.534+0000 I NETWORK  [initandlisten] connection accepted from 172.23.0.5:57312 #19 (3 connections now open)
mongodb_1        | 2018-06-07T08:26:19.539+0000 I NETWORK  [initandlisten] connection accepted from 172.23.0.5:57314 #20 (4 connections now open)
udata_1          | announcing my loyalty to the Emperor...
udata_1          | Thu Jun  7 08:26:19 2018 - [emperor] vassal front.ini is now loyal
mongodb_1        | 2018-06-07T08:26:29.777+0000 I NETWORK  [conn20] end connection 172.23.0.5:57314 (3 connections now open)
mongodb_1        | 2018-06-07T08:26:29.778+0000 I NETWORK  [conn19] end connection 172.23.0.5:57312 (2 connections now open)
udata_1          | ...The work of process 218 is done. Seeya!
udata_1          | Thu Jun  7 08:26:29 2018 - Fire in the hole !!! (60 seconds to detonation)
udata_1          | Gracefully killing worker 1 (pid: 218)...
udata_1          | Thu Jun  7 08:26:29 2018 - stopping gevent signals watchers for worker 1 (pid: 218)...
udata_1          | Thu Jun  7 08:26:29 2018 - stopping gevent sockets watchers for worker 1 (pid: 218)...
udata_1          | Thu Jun  7 08:26:29 2018 - main gevent watchers stopped for worker 1 (pid: 218)...
udata_1          | goodbye to the gevent Hub on worker 1 (pid: 218)
udata_1          | worker 1 killed successfully (pid: 218)
udata_1          | Respawned uWSGI worker 1 (new pid: 247)
abulte commented 6 years ago

It's probably not the worker since on scalable setup front is not starting:

front_1          | Respawned uWSGI worker 1 (new pid: 37)
front_1          | spawned 4 offload threads for uWSGI worker 1
front_1          | *** running gevent loop engine [addr:0x558595d91260] ***
mongodb_1        | 2018-06-07T09:01:05.589+0000 I NETWORK  [initandlisten] connection accepted from 172.23.0.6:45142 #5 (3 connections now open)
mongodb_1        | 2018-06-07T09:01:05.592+0000 I NETWORK  [initandlisten] connection accepted from 172.23.0.6:45144 #6 (4 connections now open)
front_1          | ...The work of process 37 is done. Seeya!
front_1          | Thu Jun  7 09:01:10 2018 - Fire in the hole !!! (60 seconds to detonation)
front_1          | Gracefully killing worker 1 (pid: 37)...
front_1          | Thu Jun  7 09:01:10 2018 - stopping gevent signals watchers for worker 1 (pid: 37)...
front_1          | Thu Jun  7 09:01:10 2018 - stopping gevent sockets watchers for worker 1 (pid: 37)...
front_1          | Thu Jun  7 09:01:10 2018 - main gevent watchers stopped for worker 1 (pid: 37)...
front_1          | goodbye to the gevent Hub on worker 1 (pid: 37)
mongodb_1        | 2018-06-07T09:01:10.731+0000 I NETWORK  [conn6] end connection 172.23.0.6:45144 (3 connections now open)
mongodb_1        | 2018-06-07T09:01:10.731+0000 I NETWORK  [conn5] end connection 172.23.0.6:45142 (2 connections now open)
front_1          | worker 1 killed successfully (pid: 37)
front_1          | Respawned uWSGI worker 1 (new pid: 56)
front_1          | spawned 4 offload threads for uWSGI worker 1
front_1          | *** running gevent loop engine [addr:0x558595d91260] ***
mongodb_1        | 2018-06-07T09:01:15.811+0000 I NETWORK  [initandlisten] connection accepted from 172.23.0.6:45162 #7 (3 connections now open)
mongodb_1        | 2018-06-07T09:01:15.815+0000 I NETWORK  [initandlisten] connection accepted from 172.23.0.6:45164 #8 (4 connections now open)
front_1          | ...The work of process 56 is done. Seeya!
front_1          | Thu Jun  7 09:01:20 2018 - Fire in the hole !!! (60 seconds to detonation)
front_1          | Gracefully killing worker 1 (pid: 56)...
front_1          | Thu Jun  7 09:01:20 2018 - stopping gevent signals watchers for worker 1 (pid: 56)...
front_1          | Thu Jun  7 09:01:20 2018 - stopping gevent sockets watchers for worker 1 (pid: 56)...
front_1          | Thu Jun  7 09:01:20 2018 - main gevent watchers stopped for worker 1 (pid: 56)...
front_1          | goodbye to the gevent Hub on worker 1 (pid: 56)
mongodb_1        | 2018-06-07T09:01:20.943+0000 I NETWORK  [conn7] end connection 172.23.0.6:45162 (3 connections now open)
mongodb_1        | 2018-06-07T09:01:20.944+0000 I NETWORK  [conn8] end connection 172.23.0.6:45164 (2 connections now open)
front_1          | worker 1 killed successfully (pid: 56)