centos7opennebula

OpenNebula 5.6.1 No such file or directory - /var/lib/one/config


After installing opennebula 5.6.1 true the docs here on CentOS 7 with (MySQL database option), its not starting and here is the problem:

# systemctl start opennebula
Job for opennebula.service failed because the control process exited with error code. See "systemctl status opennebula.service" and "journalctl -xe" for details.

# journalctl -xe -u opennebula.service
-- Unit opennebula.service has begun starting up.
Sep 29 20:31:12 snappmarket_01 oned[29854]: Error while parsing configuration file:
Sep 29 20:31:12 snappmarket_01 systemd[1]: opennebula.service: main process exited, code=exited, status=255/n/a
Sep 29 20:31:12 snappmarket_01 follower_cleanup[29857]: /usr/share/one/follower_cleanup:9:in `read': No such file or directory - /var/lib/one/config (Errno::ENOENT)
Sep 29 20:31:12 snappmarket_01 follower_cleanup[29857]: from /usr/share/one/follower_cleanup:9:in `<main>'
Sep 29 20:31:12 snappmarket_01 systemd[1]: opennebula.service: control process exited, code=exited status=1
Sep 29 20:31:12 snappmarket_01 systemd[1]: Failed to start OpenNebula Cloud Controller Daemon.
-- Subject: Unit opennebula.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit opennebula.service has failed.
-- 
-- The result is failed.

Solution

  • I find the problem, there was an error before no such file or directory which is pointing to error in configuration file. I checked /etc/one/oned.conf twice and find a missing comma ! Then its started successfully.