apache / skywalking

APM, Application Performance Monitoring System
https://skywalking.apache.org/
Apache License 2.0
23.92k stars 6.53k forks source link

[Bug] I use gunicorn to start,but i the agent stopped when it folk #12754

Closed zhoupan163 closed 3 weeks ago

zhoupan163 commented 3 weeks ago

Search before asking

Apache SkyWalking Component

Python Agent (apache/skywalking-python)

What happened

024-11-05 18:08:24,000 skywalking [pid:1584] [MainThread] [INFO] agent_collector_segment_period:60.0 2024-11-05 18:08:24,000 skywalking [pid:1584] [MainThread] [INFO] agent_name:assistant-ppt-service-running 2024-11-05 18:08:24,000 skywalking [pid:1584] [MainThread] [INFO] SkyWalking sync agent instance e47e78b29b5d11efae0302550c0b0866-master(1584) starting in pid-1584. 2024-11-05 18:08:24,003 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_aiohttp failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:24,003 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_aioredis failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:24,003 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_aiormq failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:24,004 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_amqp failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:24,004 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_asyncpg failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:24,004 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_bottle failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:24,004 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_celery failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:24,006 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_confluent_kafka failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:24,007 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_django failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:24,007 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_elasticsearch failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:24,007 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_falcon failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:24,007 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_fastapi failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:24,076 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_happybase failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:24,077 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_httpx failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:24,100 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_mysqlclient failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:24,100 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_neo4j failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:24,101 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_psycopg failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:24,101 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_psycopg2 failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:24,101 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_pulsar failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:24,180 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_pymongo failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:24,186 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_pyramid failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:24,186 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_rabbitmq failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:24,187 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_redis failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:24,223 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_sanic failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:24,223 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_tornado failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:24,223 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_urllib3 failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:24,224 skywalking [pid:1584] [MainThread] [WARNING] Plugin sw_websockets failed to install, please ignore this warning if the package is not used in your application. 2024-11-05 18:08:25,190 skywalking [pid:1584] [MainThread] [WARNING] SkyWalking Python agent fork support is currently experimental, please report issues if you encounter any. 2024-11-05 18:08:25,193 skywalking [pid:1594] [MainThread] [INFO] New process detected, re-initializing SkyWalking Python agent 2024-11-05 18:08:25,194 skywalking [pid:1594] [MainThread] [INFO] agent_collector_segment_period:60.0 2024-11-05 18:08:25,194 skywalking [pid:1594] [MainThread] [INFO] agent_name:assistant-ppt-service-running

What you expected to happen

I wan to know how to let the agent start success when i use gunicorn

How to reproduce

sw-python run -p gunicorn gunicorn_consumer_prefork:app --workers 2 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:8088

Anything else

No response

Are you willing to submit a pull request to fix on your own?

Code of Conduct