2010-05-24 08:53:32,143 CRIT Set uID to user 10002010-05-24 08:53:32,143 WARN Included extra file "/home/jason/src/tsched/celeryd.conf" during parsing2010-05-24 08:53:32,189 INFO RPC interface 'supervisor' initialized2010-05-24 08:53:32,189 WARN cElementTree not installed,using slower XML parser for XML-RPC2010-05-24 08:53:32,189 CRIT Server 'unix_http_server' running without any http authentication checking2010-05-24 08:53:32,190 INFO daemonizing the supervisord process2010-05-24 08:53:32,191 INFO supervisord started with pID 3444
……然后这个过程因某种未知原因而死亡.如果我在没有sudo的情况下启动它(在用户jason下),我得到类似的输出:
2010-05-24 08:51:32,859 INFO supervisord started with pID 33062010-05-24 08:52:15,761 CRIT Can't drop privilege as nonroot user2010-05-24 08:52:15,761 WARN Included extra file "/home/jason/src/tsched/celeryd.conf" during parsing2010-05-24 08:52:15,807 INFO RPC interface 'supervisor' initialized2010-05-24 08:52:15,807 WARN cElementTree not installed,using slower XML parser for XML-RPC2010-05-24 08:52:15,807 CRIT Server 'unix_http_server' running without any http authentication checking2010-05-24 08:52:15,808 INFO daemonizing the supervisord process2010-05-24 08:52:15,809 INFO supervisord started with pID 3397
……它仍然没有运行.如果有任何帮助,这是我正在使用的supervisord.conf文件:
[unix_http_server]file=/tmp/supervisor.sock ; path to your socket file[supervisord]logfile=./supervisord.log ; supervisord log filelogfile_maxbytes=50MB ; maximum size of logfile before rotationlogfile_backups=10 ; number of backed up logfilesloglevel=deBUG ; info,deBUG,warn,tracepIDfile=./supervisord.pID ; pIDfile locationnodaemon=false ; run supervisord as a daemonminfds=1024 ; number of startup file descriptorsminprocs=200 ; number of process descriptorsuser=jason ; default userchildlogdir=./supervisord/ ; where child log files will live[rpcinterface:supervisor]supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface[supervisorctl]serverurl=unix:///tmp/supervisor.sock ; use unix:// schem for a unix sockets.[include]# Uncomment this line for celeryd for Pythonfiles=celeryd.conf# Uncomment this line for celeryd for Django.;files=django/celeryd.conf
……这是celeryd.conf:
[program:celery]command=bin/celeryd --loglevel=INFO --logfile=./celeryd.logenvironment=PYTHONPATH='./tsched_worker',JIVA_DB_PLATFORM='oracle',ORACLE_HOME='/usr/lib/oracle/xe/app/oracle/product/10.2.0/server',LD_liBRARY_PATH='/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib',TNS_admin='/home/jason',CELERY_CONfig_MODulE='tsched_worker.celeryconfig'directory=.user=jasonnumprocs=1stdout_logfile=/var/log/celeryd.logstderr_logfile=/var/log/celeryd.logautostart=trueautorestart=truestartsecs=10; Need to wait for currently executing tasks to finish at shutdown.; Increase this if you have very long running tasks.stopwaitsecs = 600; if rabbitmq is supervised,set its priority higher; so it starts firstpriority=998
任何人都可以帮我弄清楚发生了什么事吗?
解决方法 尝试评论这个参数.如果未指定用户,则应使用启动该进程的相同用户标识运行.user=jason ; default user总结
以上是内存溢出为你收集整理的sudo – 如何在不使用root的情况下运行supervisord?全部内容,希望文章能够帮你解决sudo – 如何在不使用root的情况下运行supervisord?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)