Open jesseinit opened 3 years ago
Do you have libpcre in your container image?
This fixed the error RUN apt-get update && apt-get install -y build-essential libpcre3 libpcre3-dev
Sun Sep 19 08:57:47 2021 - *** HARAKIRI ON WORKER 1 (pid: 12, try: 1) ***
HARAKIRI: -- syscall> 23 0x0 0x0 0x0 0x0 0x7ffdfbc84100 0x0 0x7ffdfbc840b0 0x7fcc575a68b3
HARAKIRI: -- wchan> 0
*** uWSGI Python tracebacker output ***
thread_id = uWSGIWorker1Core0 filename = /usr/local/lib/python3.8/site-packages/flask/app.py lineno = 2088 function = __call__ line = return self.wsgi_app(environ, start_response)
thread_id = uWSGIWorker1Core0 filename = /usr/local/lib/python3.8/site-packages/flask/app.py lineno = 2070 function = wsgi_app line = response = self.full_dispatch_request()
thread_id = uWSGIWorker1Core0 filename = /usr/local/lib/python3.8/site-packages/flask/app.py lineno = 1513 function = full_dispatch_request line = rv = self.dispatch_request()
thread_id = uWSGIWorker1Core0 filename = /usr/local/lib/python3.8/site-packages/flask/app.py lineno = 1499 function = dispatch_request line = return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
thread_id = uWSGIWorker1Core0 filename = /app/./app.py lineno = 9 function = index line = sleep(5)
Sun Sep 19 08:57:47 2021 - HARAKIRI !!! worker 1 status !!!
Sun Sep 19 08:57:47 2021 - HARAKIRI [core 0] 172.17.0.1 - GET / since 1632041864
Sun Sep 19 08:57:47 2021 - HARAKIRI !!! end of worker 1 status !!!
DAMN ! worker 1 (pid: 12) died, killed by signal 9 :( trying respawn ...
Respawned uWSGI worker 1 (new pid: 254)
python tracebacker for worker 1 available on traceback1
A Subprocess called Me >>>
subprocess 256 exited with code 0
My issue is when HARAKIRI happens on a worker, the defined
log-alarms
andalarms
don't get fired when running in a docker container. This works fine without docker(or at least my version).requirements.txt
app.py
Dockerfile
uswgi.ini
Docker Logs
Non-Docker Logs