The pcsd service fails to start because the /var/log directory does not exist
Issue
- The
pcsdservice fails to start because the/var/logdirectory does not exist. On RHEL 7 the following error will be logged withsystemd:
# journalctl -xe
Jan 16 10:08:17 rhel7-1.examplerh.com pcsd[9765]: /usr/lib/pcsd/bootstrap.rb:74:in `initialize': No such file or directory - /var/log/pcsd/pcsd.log (Errno::ENOENT)
Jan 16 10:08:17 rhel7-1.examplerh.com pcsd[9765]: from /usr/lib/pcsd/bootstrap.rb:74:in `open'
Jan 16 10:08:17 rhel7-1.examplerh.com pcsd[9765]: from /usr/lib/pcsd/bootstrap.rb:74:in `configure_logger'
Jan 16 10:08:17 rhel7-1.examplerh.com pcsd[9765]: from /usr/lib/pcsd/ssl.rb:18:in `<top (required)>'
Jan 16 10:08:17 rhel7-1.examplerh.com pcsd[9765]: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
Jan 16 10:08:17 rhel7-1.examplerh.com pcsd[9765]: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
Jan 16 10:08:17 rhel7-1.examplerh.com pcsd[9765]: from /usr/lib/pcsd/pcsd:14:in `<main>'
Jan 16 10:08:17 rhel7-1.examplerh.com systemd[1]: pcsd.service: main process exited, code=exited, status=1/FAILURE
Jan 16 10:08:17 rhel7-1.examplerh.com systemd[1]: Failed to start PCS GUI and remote configuration interface.
Environment
- Red Hat Enterprise Linux Server 6, 7 (with the High Availability Add On)
pacemaker
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.