1 個回答
- 最新
- 最多得票
- 最多評論
3
Double-check that the worker configuration file (.ebextensions/01-worker.config) contains the correct command to start the worker process, and that the pidfile option is set to /var/pids/worker.pid.
option_settings:
aws:elasticbeanstalk:worker:python:
command: "worker.py"
pidfile: "/var/pids/worker.pid"
Check the worker logs (located at /var/log/eb-worker.log) to see if there are any errors or exceptions being raised that could prevent the worker process from starting or writing to the pid file. Ensure that the worker process has write permissions to the /var/pids directory.
container_commands:
01_change_pids_permission:
command: "chmod 777 /var/pids"
If none of the above steps work, try restarting the environment to see if that resolves the issue.
eb restart
相關內容
- AWS 官方已更新 4 個月前
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前
Thank you sdtslmn for the answer. My config file didn't had the pidfile parameter. I will add that, set the permissions and restart to see if it solves the issue.