OpenNebula 5.6.1没有这样的文件或目录-/ var / lib / one / config

时间:2018-09-29 17:16:03

标签: centos7 opennebula

在安装opennebula 5.6.1之后,使用(MySQL数据库选项)在CentOS 7上实现文档here的正确,它没有启动,这是问题所在:

# 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.

1 个答案:

答案 0 :(得分:0)

我发现了问题,在没有指向配置文件错误的此类文件或目录之前发生了错误。我检查了/etc/one/oned.conf两次,发现缺少逗号! 然后成功启动。