pbm-agent.init file has misspelled group name and it fails to start the pbm agent
General
Escalation
General
Escalation
Description
The group name is misspelled in pbm-agent.init , notice below:
The group should be mongod. This prevents the startup process from creating the pid folder and not be populated with the correct pid and the agent hangs trying to start. The link to the affected file can be found below:
The work around for this is to correct the group name, however, the init file does not progress as it fails to obtain the pid (I was not able to determine why as of yet), so we have to populate the pid file manually with the pid of the pbm agent process. Once we populate the file the service finishes it startup process and pbm agent continues to run without issues.
As a permanent fix I did the following and this has resolved the issue:
stop the pbm-agent service
remove the init file: sudo rm /etc/rc.d/init.d/pbm-agent
create the file /etc/systemd/system/pbm-agent.service with the contents from here
chmod +x the above file
Enable the service: systemctl enable pbm-agent.service
Start the pbm agent: systemctl start pbm-agent
Check the status:
Environment
None
Activity
Show:
daniel.almeida February 4, 2025 at 8:56 PM
Quick question, do we have a tentative release date / version for the fix to be implemented? Would this be on 2.9.0?
The group name is misspelled in
pbm-agent.init
, notice below:The group should be
mongod
. This prevents the startup process from creating the pid folder and not be populated with the correct pid and the agent hangs trying to start. The link to the affected file can be found below:The work around for this is to correct the group name, however, the init file does not progress as it fails to obtain the pid (I was not able to determine why as of yet), so we have to populate the pid file manually with the pid of the pbm agent process. Once we populate the file the service finishes it startup process and pbm agent continues to run without issues.
As a permanent fix I did the following and this has resolved the issue:
stop the pbm-agent service
remove the init file:
sudo rm /etc/rc.d/init.d/pbm-agent
create the file
/etc/systemd/system/pbm-agent.service
with the contents from herechmod +x the above file
Enable the service:
systemctl enable pbm-agent.service
Start the pbm agent:
systemctl start pbm-agent
Check the status: