Ciao,
ho un docker creato partendo dal docker python-slim ed aggiungendo uwsgi come wheel generata da me. In questo docker c'è un processo uwsgi che serve un django, al momento ho:: processes = 2 threads = 1 e nel docker questo si vede così:: PID TTY STAT TIME COMMAND 1 ? Ss 0:00 uwsgi --ini=/etc/uwsgi.ini --show-config 6 ? S 0:06 uwsgi --ini=/etc/uwsgi.ini --show-config 7 ? S 0:06 uwsgi --ini=/etc/uwsgi.ini --show-config 8 ? S 0:00 uwsgi --ini=/etc/uwsgi.ini --show-config dopo un funzionamento corretto per un po' arrivo ad una situazione in cui il pid 7 va in errore, nei log leggo: [pid: 6|app: 0|req: 3/5] 172.18.0.2 () {54 vars in 1490 bytes} [Mon Sep 14 15:05:10 2020] GET /it/admin/ => generated 53493 bytes in 1075 msecs (HTTP/1.1 200) 7 headers in 250 bytes (1 switches on core 0) [pid: 7|app: -1|req: -1/53] 172.18.0.2 () {42 vars in 564 bytes} [Mon Sep 14 13:25:16 2020] GET /admin/ => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0) [pid: 6|app: 0|req: 17/54] 172.18.0.2 () {42 vars in 565 bytes} [Mon Sep 14 15:30:51 2020] GET /admin/ => generated 0 bytes in 44 msecs (HTTP/1.1 302) 3 headers in 98 bytes (1 switches on core 0) [pid: 7|app: -1|req: -1/55] 172.18.0.2 () {42 vars in 565 bytes} [Mon Sep 14 13:30:57 2020] GET /admin/ => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0) [pid: 6|app: 0|req: 18/56] 172.18.0.2 () {42 vars in 565 bytes} [Mon Sep 14 15:31:45 2020] GET /admin/ => generated 0 bytes in 78 msecs (HTTP/1.1 302) 3 headers in 98 bytes (1 switches on core 0) [pid: 7|app: -1|req: -1/57] 172.18.0.2 () {42 vars in 565 bytes} [Mon Sep 14 13:31:52 2020] GET /admin/ => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0) [pid: 7|app: -1|req: -1/58] 172.18.0.2 () {42 vars in 565 bytes} [Mon Sep 14 13:31:56 2020] GET /admin/ => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0) [pid: 7|app: -1|req: -1/59] 172.18.0.2 () {42 vars in 565 bytes} [Mon Sep 14 13:31:59 2020] GET /admin/ => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0) Ed ad ogni errore nei log leggo:: --- no python application found, check your startup logs for errors --- Che mi lascia abbastanza perplesso. 1. Cosa significa che trova l'applicazione e poi non la trova più? 2. Che significa 'app'? noto che anche anche in altre applicazioni con più processi e thread io ho sempre "app: 0" Ho l'impressione di avere iniziato ad avere problemi da quando ho evitato di compilare uwsgi nel processo di creazione del docker, ma è difficile dire con precisione in quanto l'errore non si presenta sempre e non da subito ed ho cominciato da poco ad usare docker... Ogni chiarimento/suggeriemento/lettura è ben accetto... anche l'indirizzo della ml di uwsgi... Sandro *:-) _______________________________________________ Python mailing list Python@lists.python.it https://lists.python.it/mailman/listinfo/python