Skip to content

failed start gunicorn in a python environment with setProctitle #3416

@lovekjl

Description

@lovekjl

When I use gunicorn a python environment with setProctitle, I always fail to start asynchronous gunicorn
example:when i start a server, it always failed,error msg is :

Starting gunicorn with config file: deploy/config/gunicorn_config.py ...
Starting command: gunicorn --config=deploy/config/gunicorn_config.py
[2025-09-15 13:20:28 +0000] [16] [DEBUG] Current configuration:
config: deploy/config/gunicorn_config.py
wsgi_app: main:melody_app
bind: ['0.0.0.0:28621']
backlog: 2048
workers: 2
worker_class: gevent
threads: 10
worker_connections: 1000
max_requests: 0
max_requests_jitter: 0
timeout: 120
graceful_timeout: 30
keepalive: 5
limit_request_line: 4094
limit_request_fields: 100
limit_request_field_size: 8190
reload: False
reload_engine: auto
reload_extra_files: []
spew: False
check_config: False
print_config: False
preload_app: False
sendfile: None
reuse_port: False
chdir: /project/melody
daemon: False
raw_env: []
pidfile: None
worker_tmp_dir: None
user: 0
group: 0
umask: 0
initgroups: False
tmp_upload_dir: None
secure_scheme_headers: {'X-FORWARDED-PROTOCOL': 'ssl', 'X-FORWARDED-PROTO': 'https', 'X-FORWARDED-SSL': 'on'}
forwarded_allow_ips: ['127.0.0.1', '::1']
accesslog: -
disable_redirect_access_to_syslog: False
access_log_format: %(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"
errorlog: -
loglevel: debug
capture_output: False
logger_class: gunicorn.glogging.Logger
logconfig: None
logconfig_dict: {}
logconfig_json: None
syslog_addr: udp://localhost:514
syslog: False
syslog_prefix: None
syslog_facility: user
enable_stdio_inheritance: False
statsd_host: None
dogstatsd_tags:
statsd_prefix:
proc_name: melody_app
default_proc_name: gunicorn
pythonpath: None
paste: None
on_starting: <function OnStarting.on_starting at 0x7091a178a560>
on_reload: <function OnReload.on_reload at 0x7091a178a680>
when_ready: <function WhenReady.when_ready at 0x7091a178a7a0>
pre_fork: <function Prefork.pre_fork at 0x7091a178a8c0>
post_fork: <function Postfork.post_fork at 0x7091a178a9e0>
post_worker_init: <function post_worker_init at 0x7091a17ac4c0>
worker_int: <function WorkerInt.worker_int at 0x7091a178ac20>
worker_abort: <function WorkerAbort.worker_abort at 0x7091a178ad40>
pre_exec: <function PreExec.pre_exec at 0x7091a178ae60>
pre_request: <function PreRequest.pre_request at 0x7091a178af80>
post_request: <function PostRequest.post_request at 0x7091a178b010>
child_exit: <function ChildExit.child_exit at 0x7091a178b130>
worker_exit: <function WorkerExit.worker_exit at 0x7091a178b250>
nworkers_changed: <function NumWorkersChanged.nworkers_changed at 0x7091a178b370>
on_exit: <function OnExit.on_exit at 0x7091a178b490>
ssl_context: <function NewSSLContext.ssl_context at 0x7091a178b5b0>
proxy_protocol: False
proxy_allow_ips: ['127.0.0.1', '::1']
keyfile: None
certfile: None
ssl_version: 2
cert_reqs: 0
ca_certs: None
suppress_ragged_eofs: True
do_handshake_on_connect: False
ciphers: None
raw_paste_global_conf: []
permit_obsolete_folding: False
strip_header_spaces: False
permit_unconventional_http_method: False
permit_unconventional_http_version: False
casefold_http_method: False
forwarder_headers: ['SCRIPT_NAME', 'PATH_INFO']
header_map: drop
[2025-09-15 13:20:28 +0000] [16] [INFO] Starting gunicorn 23.0.0
[2025-09-15 13:20:28 +0000] [16] [DEBUG] Arbiter booted
[2025-09-15 13:20:28 +0000] [16] [INFO] Listening at: http://0.0.0.0:28621 (16)
[2025-09-15 13:20:28 +0000] [16] [INFO] Using worker: gevent
[2025-09-15 13:20:28 +0000] [17] [INFO] Booting worker with pid: 17
[2025-09-15 13:20:28 +0000] [18] [INFO] Booting worker with pid: 18
[2025-09-15 13:20:28 +0000] [16] [DEBUG] 2 workers
[2025-09-15 13:20:32 +0000] [16] [ERROR] Worker (pid:18) was sent code 139!
[2025-09-15 13:20:32 +0000] [23] [INFO] Booting worker with pid: 23
[2025-09-15 13:20:32 +0000] [16] [ERROR] Worker (pid:17) was sent code 139!
[2025-09-15 13:20:32 +0000] [24] [INFO] Booting worker with pid: 24
[2025-09-15 13:20:32 +0000] [16] [ERROR] Worker (pid:23) was sent code 139!
[2025-09-15 13:20:32 +0000] [27] [INFO] Booting worker with pid: 27

If someone have time to help me with this question, I would be very grateful!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions