Hi,
I am new to AtoM, we've have installed 2.4 on ol7. The site is up running, but we get 500 error when trying to:
- update publication status with descendants
- generate the reports
- generate a finding aid
Nginx error log:
FastCGI sent in stderr: "PHP message: No Gearman worker available that can handle the job arUpdatePublicationStatusJob" while reading response header from upstream, client: 10.0.2.2, server: _, request: "POST /index.php/....../informationobject/updatePublicationStatus HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.atom.sock:",
- Added options in /etc/sysconfig/gearmand, OPTIONS="--listen=* --port=4730"
- Created service file as /usr/lib/systemd/system/atom-worker.service ( user and group = nginx )
gearmand is runing
ps aux | grep gearmand
gearmand 7349 0.0 0.1 477848 5988 ? Ssl 14:48 0:00 /usr/sbin/gearmand -d --listen=* - -port=4730
atom-work is running
sudo systemctl status atom-worker
● atom-worker.service - AtoM worker
Loaded: loaded (/usr/lib/systemd/system/atom-worker.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2018-09-27 14:56:43 UTC; 13s ago
Main PID: 7400 (php)
CGroup: /system.slice/atom-worker.service
└─7400 /usr/bin/php -d memory_limit=-1 -d error_reporting="E_ALL" symfony jobs:worker
php[7400]: 2018-09-27 07:56:45 > New ability: arUpdatePublicationStatusJob
php[7400]: 2018-09-27 07:56:45 > New ability: arFileImportJob
php[7400]: 2018-09-27 07:56:45 > New ability: arInformationObjectXmlExportJob
php[7400]: 2018-09-27 07:56:45 > New ability: arXmlExportSingleFileJob
php[7400]: 2018-09-27 07:56:45 > New ability: arGenerateReportJob
php[7400]: 2018-09-27 07:56:45 > New ability: arActorCsvExportJob
php[7400]: 2018-09-27 07:56:45 > New ability: arActorXmlExportJob
php[7400]: 2018-09-27 07:56:45 > New ability: arRepositoryCsvExportJob
php[7400]: 2018-09-27 07:56:45 > Running worker...
php[7400]: 2018-09-27 07:56:45 > PID 7400
I also got following error when I trying to restart PHP-FPM:
sudo systemctl restart php70-php-fpm
Job for php70-php-fpm.service failed because the control process exited with error code. See "systemctl status php70-php-fpm.service" and "journalctl -xe" for details.
sudo systemctl status php70-php-fpm.service
● php70-php-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php70-php-fpm.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2018-09-27 15:09:22 UTC; 25s ago
Process: 7444 ExecStart=/opt/remi/php70/root/usr/sbin/php-fpm --nodaemonize (code=exited, status=78)
Main PID: 7444 (code=exited, status=78)
systemd[1]: Starting The PHP FastCGI Process Manager...
php-fpm[7444]: [27-Sep-2018 15:09:22] ERROR: An another FPM instance seems to alread....sock
php-fpm[7444]: [27-Sep-2018 15:09:22] ERROR: FPM initialization failed
systemd[1]: php70-php-fpm.service: main process exited, code=exited, status=78/n/a
systemd[1]: Failed to start The PHP FastCGI Process Manager.
systemd[1]: Unit php70-php-fpm.service entered failed state.
systemd[1]: php70-php-fpm.service failed.
I think maybe the gearman worker error is related to this php-fpm error? how to fix the php-fpm service error?
Any help appreciated, thanks!
Cindy