pcsd service is failing to start-`exec': No such file or directory - /usr/bin/openssl (Errno::ENOENT)
Environment
- Red Hat Enterprise Linux 7 (with the High Availability Add-on)
- Pacemaker
Issue
- pcsd service is failing to start because it is not able to get 'openssl' binary in '/usr/bin/'
systemctl start pcsd.servicefailing with Job for pcsd.service failed because the control process exited with error code
Resolution
- Stop the pcsd service
# systemctl stop pcsd.service
- Check and Install the openssl package
# rpm -qa | grep -i "openssl"
# yum install openssl* -y
- Check if the package exists in the below location
# ll /usr/bin/ | grep openssl
-rwxr-xr-x. 1 root root 555280 Mar 23 2022 openssl
- Start the pcsd service and check the status.
# systemctl start pcsd.service
# systemctl status pcsd.service
- If openssl package is already installed and still pcsd.service failing to start. Reinstall the openssl
packages.
# yum reinstall openssl* -y
# systemctl restart pcsd
# systemctl status pcsd
Root Cause
- pcsd has missing dependencies of openssl package which was leading to the failure .
Diagnostic Steps
- Start the pcsd service
# systemctl start pcsd.service
Job for pcsd.service failed because the control process exited with error code. See "systemctl status pcsd.service" and "journalctl -xe" for details.
- Check the status of the pcsd service
# systemctl status pcsd.service
● pcsd.service - PCS GUI and remote configuration interface
Loaded: loaded (/usr/lib/systemd/system/pcsd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2023-02-22 13:16:28 EST; 42s ago
Docs: man:pcsd(8)
man:pcs(8)
Process: 12870 ExecStart=/usr/lib/pcsd/pcsd (code=exited, status=1/FAILURE)
Main PID: 12870 (code=exited, status=1/FAILURE)
Feb 22 13:16:28 rhel7_node02 pcsd[12870]: from /usr/lib/pcsd/pcs.rb:1096:in `run_cmd_options'
Feb 22 13:16:28 rhel7_node02 pcsd[12870]: from /usr/lib/pcsd/pcs.rb:1553:in `verify_cert_key_pair'
Feb 22 13:16:28 rhel7_node02 pcsd[12870]: from /usr/lib/pcsd/ssl.rb:148:in `<top (required)>'
Feb 22 13:16:28 rhel7_node02 pcsd[12870]: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
Feb 22 13:16:28 rhel7_node02 pcsd[12870]: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
Feb 22 13:16:28 rhel7_node02 pcsd[12870]: from /usr/lib/pcsd/pcsd:14:in `<main>'
Feb 22 13:16:28 rhel7_node02 systemd[1]: pcsd.service: main process exited, code=exited, status=1/FAILURE
Feb 22 13:16:28 rhel7_node02 systemd[1]: Failed to start PCS GUI and remote configuration interface.
Feb 22 13:16:28 rhel7_node02 systemd[1]: Unit pcsd.service entered failed state.
Feb 22 13:16:28 rhel7_node02 systemd[1]: pcsd.service failed.
- Check if any pcsd logs captured in
/var/log/messagesor/var/log/pcsd/pcsd.log
Feb 22 13:16:24 rhel7_node02 systemd: Starting PCS GUI and remote configuration interface...
Feb 22 13:16:28 rhel7_node02 pcsd: /usr/lib/pcsd/pcs.rb:1102:in `exec': No such file or directory - /usr/bin/openssl (Errno::ENOENT)
Feb 22 13:16:28 rhel7_node02 pcsd: from /usr/lib/pcsd/pcs.rb:1102:in `block in run_cmd_options'
Feb 22 13:16:28 rhel7_node02 pcsd: from /usr/lib/pcsd/vendor/bundle/ruby/gems/open4-1.3.4/lib/open4.rb:85:in `call'
Feb 22 13:16:28 rhel7_node02 pcsd: from /usr/lib/pcsd/vendor/bundle/ruby/gems/open4-1.3.4/lib/open4.rb:85:in `block in do_popen'
Feb 22 13:16:28 rhel7_node02 pcsd: from /usr/lib/pcsd/vendor/bundle/ruby/gems/open4-1.3.4/lib/open4.rb:62:in `fork'
Feb 22 13:16:28 rhel7_node02 pcsd: from /usr/lib/pcsd/vendor/bundle/ruby/gems/open4-1.3.4/lib/open4.rb:62:in `do_popen'
Feb 22 13:16:28 rhel7_node02 pcsd: from /usr/lib/pcsd/pcs.rb:1096:in `run_cmd_options'
Feb 22 13:16:28 rhel7_node02 pcsd: from /usr/lib/pcsd/pcs.rb:1553:in `verify_cert_key_pair'
Feb 22 13:16:28 rhel7_node02 pcsd: from /usr/lib/pcsd/ssl.rb:148:in `<top (required)>'
Feb 22 13:16:28 rhel7_node02 pcsd: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
Feb 22 13:16:28 rhel7_node02 pcsd: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
Feb 22 13:16:28 rhel7_node02 pcsd: from /usr/lib/pcsd/pcsd:14:in `<main>'
Feb 22 13:16:28 rhel7_node02 systemd: pcsd.service: main process exited, code=exited, status=1/FAILURE
Feb 22 13:16:28 rhel7_node02 systemd: Failed to start PCS GUI and remote configuration interface.
Feb 22 13:16:28 rhel7_node02 systemd: Unit pcsd.service entered failed state.
Feb 22 13:16:28 rhel7_node02 systemd: pcsd.service failed.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments