# \[SOLVED\] New install cant start opennebula service

**URL:** <https://forum.opennebula.io/t/solved-new-install-cant-start-opennebula-service/6249>\
**Category:** Product Support\
**Created:** [August 11, 2018, 4:42am UTC](https://forum.opennebula.io/t/solved-new-install-cant-start-opennebula-service/6249 "2018-08-11T04:42:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![velocity08](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/velocity08/32/5738_2.png) [@velocity08](https://forum.opennebula.io/u/velocity08)\
**Post date:** [August 11, 2018, 4:42am UTC](https://forum.opennebula.io/t/solved-new-install-cant-start-opennebula-service/6249/1 "2018-08-11T04:42:15Z")

</div>

## Please, describe the problem here and provide additional information below (if applicable) … Have compleetd the initial install of frontend on CentOS 7 and having issues starting the service

**Versions of the related components and OS (frontend, hypervisors, VMs):**

CentOS7  
OpenNebula 5.6  
mysql/ MariaDB 5.6

**Steps to reproduce:**

log in as oneadmin  
run

#$ systemctl start opennebula

**Current results:**

systemctl start opennebula ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units === Authentication is required to manage system services or units. Authenticating as: Gerardo Altman (gspot) Password: ==== AUTHENTICATION COMPLETE === Job for opennebula.service failed because the control process exited with error code. See "systemctl status opennebula.service" and "journalctl -xe" for details. [oneadmin@johnnyp root] systemctl status opennebula.service  
● opennebula.service - OpenNebula Cloud Controller Daemon  
Loaded: loaded (/usr/lib/systemd/system/opennebula.service; disabled; vendor preset: disabled)  
Active: failed (Result: start-limit) since Sat 2018-08-11 14:38:01 AEST; 379ms ago  
Process: 2109 ExecStopPost=/usr/share/one/follower\_cleanup (code=exited, status=0/SUCCESS)  
Process: 2105 ExecStart=/usr/bin/oned -f (code=exited, status=255)  
Process: 2102 ExecStartPre=/usr/sbin/logrotate -f /etc/logrotate.d/opennebula -s /var/lib/one/.logrotate.status (code=exited, status=0/SUCCESS)  
Main PID: 2105 (code=exited, status=255)

**Expected results:**

for the service to start

the logs don’t have much information.

---

<div class="post-metadata">

**Author:** ![velocity08](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/velocity08/32/5738_2.png) [@velocity08](https://forum.opennebula.io/u/velocity08)\
**Post date:** [August 11, 2018, 5:14am UTC](https://forum.opennebula.io/t/solved-new-install-cant-start-opennebula-service/6249/2 "2018-08-11T05:14:53Z")

</div>

Ok ive resolved this issue.

2 problems.

1. firewall issues where stopping the service from starting
2. DB user issues for some reason they where not taking even after creation.

after creating the DB user and password a second time and allowing the ports through the FW we where able to start the opennebulia services.

commands below:

**Check if you have firewalld service active.**

# firewall-cmd --state

running

**If running, open the port required to access Sunstone web interface.**

firewall-cmd --add-port=9869/tcp --permanent  
firewall-cmd --reload

**Create database and user for OpenNebula.**

had to run this a second time for some strange reason.

$ mysql -u root -p  
create database opennebula;  
GRANT ALL PRIVILEGES ON opennebula.\* TO ‘oneadmin’ IDENTIFIED BY ‘PW\_Here’;  
SET GLOBAL TRANSACTION ISOLATION LEVEL READ COMMITTED;  
exit

**Used systemd service management command to start OpenNebula services.**

systemctl start opennebula opennebula-sunstone  
systemctl enable opennebula opennebula-sunstone

**the test connections and all was good with the world!**

]$ oneuser show  
USER 0 INFORMATION  
ID : 0  
NAME : oneadmin  
GROUP : oneadmin  
PASSWORD : a01b7244bf9f99da41422099047cba68bf77d117  
AUTH\_DRIVER : core  
ENABLED : Yes

TOKENS
