gpt4 book ai didi

python - 运行时警告 : You're running the worker with superuser privileges: this is absolutely not recommended

转载 作者:行者123 更新时间:2023-12-04 08:32:35 28 4
gpt4 key购买 nike

当我守护 celery worker 时,它给了我上述警告以及以下错误:

Traceback (most recent call last): File
"/var/app/venv/env/lib/python3.7/site-packages/celery/worker/worker.py",
line 205, in startself.blueprint.start(self)
File "/var/app/venv/env/lib/python3.7/site-packages/celery/bootsteps.py",line 119, in startstep.start(parent)
File "/var/app/venv/env/lib/python3.7/site-packages/celery/bootsteps.py",line 370, in startreturn self.obj.start()
File "/var/app/venv/env/lib/python3.7/site-packages/celery/worker/consumer/consumer.py",line 316, in startblueprint.start(self)
File "/var/app/venv/env/lib/python3.7/site-packages/celery/bootsteps.py",line 119, in startstep.start(parent)
File "/var/app/venv/env/lib/python3.7/site-packages/celery/worker/consumer/consumer.py",line 592, in startc.loop(*c.loop_args())
File "/var/app/venv/env/lib/python3.7/site-packages/celery/worker/loops.py",line 91, in asynloopnext(loop)
File "/var/app/venv/env/lib/python3.7/site-packages/kombu/asynchronous/hub.py",line 299, in create_loopitem()
File "/var/app/venv/env/lib/python3.7/site-packages/vine/promises.py",line 170, in callreturn self.throw()
File "/var/app/venv/env/lib/python3.7/site-packages/vine/promises.py",line 167, in callretval = fun(*final_args, **final_kwargs)
File "/var/app/venv/env/lib/python3.7/site-packages/kombu/transport/SQS.py",line 336, in _schedule_queuequeue, callback=promise(self._loop1, (queue,)),
File "/var/app/venv/env/lib/python3.7/site-packages/kombu/transport/SQS.py",line 352, in _get_bulk_asyncreturn self._get_async(queue, maxcount, callback=callback) File "/var/app/venv/env/lib/python3.7/site-packages/kombu/transport/SQS.py",line 362, in _get_asyncqname, count=count, connection=self.asynsqs, File "/var/app/venv/env/lib/python3.7/site-packages/kombu/transport/SQS.py",line 456, in asynsqsregion=self.region
File "/var/app/venv/env/lib/python3.7/site-packages/kombu/asynchronous/aws/sqs/connection.py",line 27, in init**kwargs File "/var/app/venv/env/lib/python3.7/site-packages/kombu/asynchronous/aws/connection.py",line 186, in init**http_client_params)
File "/var/app/venv/env/lib/python3.7/site-packages/kombu/asynchronous/aws/connection.py",line 151, in initself._httpclient = http_client or get_client() File "/var/app/venv/env/lib/python3.7/site-packages/kombu/asynchronous/http/init.py",line 22, in get_clientclient = hub._current_http_client = Client(hub, **kwargs) File "/var/app/venv/env/lib/python3.7/site-packages/kombu/asynchronous/http/init.py",line 13, in Clientreturn CurlClient(hub, **kwargs)
File "/var/app/venv/env/lib/python3.7/site-packages/kombu/asynchronous/http/curl.py",line 43, in initraise ImportError('The curl client requires the pycurl library.') ImportError: The curl client requires the pycurl library.The above error is little strange since the pycurl is already installed.


当我更改 user=nobody 时,会发生以下错误:

File"/var/app/venv/env/lib/python3.7/site-packages/django/apps/registry.py",line 135, in check_apps_readyraise AppRegistryNotReady("Apps aren't loaded yet.") django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.

最佳答案

看看 documentation .不过,这是一个警告,而不是错误(请参阅 code )。仅当您允许默认未启用的 pickle 序列化时,在 root 下运行 Celery 才会出错(请参阅 here )。
希望这有助于解决您的问题。

关于python - 运行时警告 : You're running the worker with superuser privileges: this is absolutely not recommended,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64952797/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com