/var/lib/one/config doesn't exist

Please, describe the problem here and provide additional information below (if applicable) …

I just completed a from-scratch install following the instructions on the site. When trying to start opennebula, I’m getting the error:

Apr 12 03:15:48 dfw1x9srw4888guest1 follower_cleanup[23352]: /usr/share/one/follower_cleanup:9:in `read ': No such file or directory - /var/lib/one/config (Errno::ENOENT)

Which makes total sense because there is no file at that location. What I don’t understand is why. I re-read the full instructions that I just followed and everything seems to be as it’s supposed to, and I didn’t receive any errors or anything during the process.

This is on Centos7 with MySQL backend.

Hi,

/var/lib/one/config is a file generated by OpenNebula core every time that you start oned daemon so it’s a weird problem.

Also if u open your oned.log and everything is okey u can see the same config file at the start of oned.log (ends with hyphens) This is the opennebula configuration that is stored into config too.

your problem may be related with permissions, or something that it’s blocking oned dumping action.

Same error here.

– Unit opennebula.service has begun starting up.

Sep 28 13:08:56 zeus.nasa.org oned[21702]: Error while parsing configuration file:

Sep 28 13:08:56 zeus.nasa.org oned[21702]: syntax error, unexpected VARIABLE, expecting EQUAL or EQUAL_EMPTY at line 92, columns 3650:3663

Sep 28 13:08:56 zeus.nasa.org oned[21702]: Could not load nebula configuration file.

Sep 28 13:08:56 zeus.nasa.org systemd[1]: opennebula.service: main process exited, code=exited, status=255/n/a

Sep 28 13:08:56 zeus.nasa.org follower_cleanup[21704]: /usr/share/one/follower_cleanup:9:in `read’: No such file or directory - /var/lib/one/config (Errno::ENOENT)

Sep 28 13:08:56 zeus.nasa.org follower_cleanup[21704]: from /usr/share/one/follower_cleanup:9:in `<main>’

Sep 28 13:08:56 zeus.nasa.org systemd[1]: opennebula.service: control process exited, code=exited status=1

Sep 28 13:08:56 zeus.nasa.org 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.

Sep 28 13:08:56 zeus.nasa.org systemd[1]: Unit opennebula.service entered failed state.

Sep 28 13:08:56 zeus.nasa.org systemd[1]: opennebula.service failed.

Sep 28 13:09:01 zeus.nasa.org systemd[1]: opennebula.service holdoff time over, scheduling restart.

Sep 28 13:09:01 zeus.nasa.org systemd[1]: start request repeated too quickly for opennebula.service

Sep 28 13:09:01 zeus.nasa.org 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.

Sep 28 13:09:01 zeus.nasa.org systemd[1]: Unit opennebula.service entered failed state.

Sep 28 13:09:01 zeus.nasa.org systemd[1]: opennebula.service failed.

Sep 28 13:08:56 zeus.nasa.org oned[21702]: syntax error, unexpected VARIABLE, expecting EQUAL or EQUAL_EMPTY at line 92, columns 3650:3663

The log is clear, you should check your /etc/one/oned.conf file.

I have the same problem, here is the link https://stackoverflow.com/questions/52570726/opennebula-5-6-1-no-such-file-or-directory-var-lib-one-config

here is my answer https://stackoverflow.com/questions/52570726/opennebula-5-6-1-no-such-file-or-directory-var-lib-one-config/52570922#52570922