gunicorn.log.error
Number of error log messagesDimensions:None
Technical Annotations (74)
Configuration Parameters (14)
--error-logfilerecommended: /var/log/gunicorn/error.log--preloadrecommended: enabledrate_windowrecommended: 5merror_thresholdrecommended: 0.01max_requestsrecommended: 1000max_requests_jitterrecommended: 100workersrecommended: 4PROPAGATE_EXCEPTIONSrecommended: Truedisable_existing_loggersrecommended: False--log-levelrecommended: debugpreload_apprecommended: Truetimeoutrecommended: 1200/var/run/gunicorn.pidKillModerecommended: mixedError Signatures (17)
gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>exceptionWorker failed to boot.log patternWorker failed to booterror codegunicorn.errors.HaltServer: HaltServer 'Worker failed to boot.' 3exception5xxhttp statusstatus=~"5.."log patternstatus=500http statusRuntimeError: reentrant call inside <_io.BufferedWriter name='<stderr>'>exceptionWorker with pid [0-9]+ was terminated due to signal 9log pattern9error codeWorker with pid %s was terminated due to signal %slog patternWORKER TIMEOUT (pid:log patternWorker (pid:*) was sent SIGKILL! Perhaps out of memory?log patternupstream prematurely closed connection while reading response header from upstreamlog pattern502http statusWorker (pid:*) was sent SIGTERM!log pattern15error codeCLI Commands (7)
gunicorn app:app --error-logfile /var/log/gunicorn/error.log --access-logfile /var/log/gunicorn/access.log --preloaddiagnosticgunicorn app:app --workers=4 --max-requests=1000 --max-requests-jitter=100remediationgunicorn myapp:server --bind localhost:8000 -chdir /path/to/project --workers 2diagnosticgunicorn --workers=2 --bind=0.0.0.0:8000 --log-level=debug app:appdiagnostickill -TERM $(cat /var/run/gunicorn.pid)remediationpkill --oldest -TERM "gunicorn"remediationsystemctl stop gunicorn.serviceremediationTechnical References (36)
HaltServerexceptionWORKER_BOOT_ERRORerror codeWSGI applicationcomponentapp.pyfile pathdotenvcomponenthttp_requests_totalcomponentrate()conceptstderrfile pathSIGKILLconceptlogging deadlockconceptgunicorn.arbitercomponentPROPAGATE_EXCEPTIONScomponentFlask endpointcomponent/var/log/upstart/myapp.logfile pathupstartcomponent@server.errorhandlercomponentlogging.config.dictConfigcomponentLOGGING dictionaryconceptgunicorn.errorcomponentapp.loggercomponentWerkzeugcomponentGoogle App EnginecomponentGoogle Cloud RuncomponentB2 instance classcomponentgthread workercomponentB4 instance classcomponentarbiter.pyfile pathmaster processcomponentworker processcomponentWIFSIGNALEDconceptwaitpidconceptsignal handlercomponentSIGTERMconceptsystemdcomponentsession hijackingconceptcache poisoningconceptRelated Insights (20)
Application code errors prevent Gunicorn worker startupcritical
▸
Incorrect WSGI application entry point prevents worker bootcritical
▸
Syntax errors or exceptions in application code prevent worker bootcritical
▸
Missing or misconfigured environment variables cause worker startup crashcritical
▸
Enable verbose logging to diagnose worker boot failuresinfo
▸
High 5xx error rate indicates service degradationcritical
▸
High HTTP 500 error rate triggers critical alertcritical
▸
Reentrant logging deadlock causes worker termination with SIGKILLcritical
▸
Gunicorn workers crash with reentrant logging errors causing intermittent downtimecritical
▸
Flask uncaught exceptions not logged by Gunicornwarning
▸
Gunicorn logs location for upstart deploymentsinfo
▸
Flask error handlers not registered when defined in non-imported module with Gunicornwarning
▸
Gunicorn exceptions hidden when custom Django logging disables existing loggerscritical
▸
Missing Flask application logs when Gunicorn log level not synchronizedwarning
▸
Gunicorn workers enter infinite timeout-SIGKILL cycle on Google App Enginecritical
▸
Gunicorn SIGKILL message incorrectly suggests OOM when memory is availablewarning
▸
SIGTERM signals to workers create false positive error logs during deploymentswarning
▸
Worker signal handling failure indicates fatal worker problemcritical
▸
SIGTERM during graceful shutdown logged as error in v21+warning
▸
Session hijacking and unauthorized endpoint access via smuggled requestscritical
▸