【问题标题】:supervisord with php received SIGCLD indicating a child quit带有 php 的 supervisord 收到 SIGCLD 指示孩子退出
【发布时间】:2011-06-09 04:48:27
【问题描述】:

尝试启动主管并得到一堆这些错误

2011-06-08 23:35:45,833 CRIT Supervisor running as root (no user in config file)
2011-06-08 23:35:45,851 INFO supervisord started with pid 19617
2011-06-08 23:35:45,852 INFO spawned: 'gearman-worker' with pid 19620
2011-06-08 23:35:45,899 INFO exited: gearman-worker (exit status 1; not expected)
2011-06-08 23:35:45,900 INFO received SIGCLD indicating a child quit
2011-06-08 23:35:46,902 INFO spawned: 'gearman-worker' with pid 19621
2011-06-08 23:35:46,943 INFO exited: gearman-worker (exit status 1; not expected)
2011-06-08 23:35:46,944 INFO received SIGCLD indicating a child quit
2011-06-08 23:35:48,945 INFO spawned: 'gearman-worker' with pid 19622
2011-06-08 23:35:48,996 INFO exited: gearman-worker (exit status 1; not expected)
2011-06-08 23:35:48,996 INFO received SIGCLD indicating a child quit
2011-06-08 23:35:51,998 INFO spawned: 'gearman-worker' with pid 19623
2011-06-08 23:35:52,041 INFO exited: gearman-worker (exit status 1; not expected)
2011-06-08 23:35:52,041 INFO received SIGCLD indicating a child quit
2011-06-08 23:35:53,041 INFO gave up: gearman-worker entered FATAL state, too many start retries too quickly
2011-06-08 23:35:57,671 CRIT received SIGINT indicating exit request

我的主管配置:

[supervisord]

[program:gearman-worker]
user=nobody
command=/usr/bin/php -e index.php -a 'qworker'
process_name=%(program_name)s_%(process_num)02d
numprocs=10
directory=/home/test/public_html/
stdout_logfile=/var/log/supervisor/supervisord.log
autostart=true
autorestart=true

有人知道吗?

【问题讨论】:

标签: gearman supervisord


【解决方案1】:

您的 PHP 程序正在退出,这可能与 supervisord 无关。

  1. 先尝试在命令行上运行worker,看看是否可行
  2. 检查 supervisord 为此进程创建的 stderr 日志以寻找线索

【讨论】:

    【解决方案2】:

    /home/test/public_html/ 是否已经创建?

    su - 没有人并运行脚本来测试它是否像没有人一样工作

    【讨论】:

    • This account is currently not available. - 试试:su -s /bin/bash nobody
    【解决方案3】:

    检查本地的 apache 和 mysql 服务器是否正在运行,然后停止它。

    1.sudo service apache2 stop
    2.sudo service mysql stop
    

    现在尝试它在 Ubuntu 上运行如果您有带有 XAMPP 的 Windows 系统,只需从 XAMPP 控制面板停止服务。

    【讨论】:

      猜你喜欢
      • 2016-07-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-07
      • 1970-01-01
      • 2012-05-26
      • 2013-10-17
      • 2022-01-22
      • 1970-01-01
      相关资源
      最近更新 更多