Closed cloudwafs closed 3 years ago
The celerybeat.pid file may not be removed normally because the container did not exit normally or was forced to restart.
Try to remove the celerybeat.pid file from the container
docker exec dongtai-iast_dongtai-engine-task_1 sh -c 'rm /opt/dongtai/engine/celerybeat.pid'
If it cannot be deleted or the deletion is unsuccessful.
Recreate the container with the following command:
docker stop dongtai-iast_dongtai-engine-task_1
docker rm dongtai-iast_dongtai-engine-task_1
docker-compose -p dongtai-iast up -d --no-recreate
ok.thank you.
ok.thank you!
Preflight Checklist
Version
1.0.4
Installation Type
Official Docker Compose
Service Name
DongTai-Engine
Describe the details of the bug and the steps to reproduce it
[root@iast.cac.gov.cn ~]# docker logs --tail=50 dongtaiiast_dongtai-engine-task_1 /opt/dongtai/engine/docker/entrypoint.sh 启动Celery Beat服务 ERROR: Pidfile (celerybeat.pid) already exists. Seems we're already running? (pid: 33) celery beat v4.4.2 (cliffs) is starting. 启动uwsgi服务 [uWSGI] getting INI configuration from /opt/dongtai/engine/conf/uwsgi.ini Starting uWSGI 2.0.19.1 (64bit) on [Sun Sep 26 10:10:14 2021] compiled with version: 8.3.0 on 31 August 2021 06:27:18 os: Linux-3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 nodename: 66be92abc687 machine: x86_64 clock source: unix pcre jit disabled detected number of CPU cores: 48 current working directory: /opt/dongtai/engine detected binary path: /usr/local/bin/uwsgi uWSGI running as root, you can use --uid/--gid/--chroot options WARNING: you are running uWSGI as root !!! (use the --uid flag) chdir() to /opt/dongtai/engine your memory page size is 4096 bytes detected max file descriptor number: 1048576 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uWSGI http bound on :8000 fd 4 uwsgi socket 0 bound to TCP address 127.0.0.1:41709 (port auto-assigned) fd 3 uWSGI running as root, you can use --uid/--gid/--chroot options WARNING: you are running uWSGI as root !!! (use the --uid flag) Python version: 3.7.7 (default, Jun 9 2020, 17:58:51) [GCC 8.3.0] Python main interpreter initialized at 0x55868f5b6860 uWSGI running as root, you can use --uid/--gid/--chroot options WARNING: you are running uWSGI as root !!! (use the --uid flag) python threads support enabled your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 501072 bytes (489 KB) for 20 cores Operational MODE: preforking+threaded WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x55868f5b6860 pid: 8 (default app) uWSGI running as root, you can use --uid/--gid/--chroot options WARNING: you are running uWSGI as root !!! (use the --uid flag) uWSGI is running in multiple interpreter mode spawned uWSGI master process (pid: 8) spawned uWSGI worker 1 (pid: 12, cores: 10) spawned uWSGI worker 2 (pid: 13, cores: 10) spawned uWSGI http 1 (pid: 14) /opt/dongtai/engine/docker/entrypoint.sh 启动Celery Beat服务 ERROR: Pidfile (celerybeat.pid) already exists. Seems we're already running? (pid: 33) celery beat v4.4.2 (cliffs) is starting.
Additional Information
No response
Logs
No response