RockStor fails to start after installing form Git

./bootstrap.py

bin/buildout -N -c buildout.cfg

writing RSA key
Signature ok
subject=/C=US/ST=Rockstor user’s state/L=Rockstor user’s city/O=Rockstor user/OU=Rockstor dept/CN=rockstor.user
Getting Private key
Unused options for create-cert: ‘update-command’.
Installing docker-conf.
Installing rockstor-pre-systemd-conf.
Installing rockstor-systemd-conf.
Installing bootstrap-systemd-conf.
Installing def-kernel.
def-kernel: Running 'grubby --set-default=/boot/vmlinuz-‘4.4.5-1.el7.elrepo.x86_64’'
error opening /boot/grub/grub.cfg for read: No such file or directory
Unused options for def-kernel: ‘update-command’.
Installing start-rockstor.
start-rockstor: Running 'cp -f /root/rockstor-core/conf/rockstor-pre.service /etc/systemd/system/rockstor-pre.service &&
systemctl enable rockstor-pre.service &&
systemctl daemon-reload &&
systemctl restart rockstor-pre
systemctl start rockstor’
Created symlink from /etc/systemd/system/multi-user.target.wants/rockstor-pre.service to /etc/systemd/system/rockstor-pre.service.
Job for rockstor-pre.service failed because the control process exited with error code. See “systemctl status rockstor-pre.service” and “journalctl -xe” for details.
Failed to start rockstor.service: Unit rockstor.service failed to load: No such file or directory.
Unused options for start-rockstor: ‘update-command’.

[root@pcie7410-s5-c2 rockstor-core]# !127
systemctl status -l rockstor-pre rockstor rockstor-bootstrap
â rockstor-pre.service - Tasks required prior to starting Rockstor
Loaded: loaded (/etc/systemd/system/rockstor-pre.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2016-04-27 18:20:54 UTC; 27min ago
Main PID: 4727 (code=exited, status=1/FAILURE)

Apr 27 18:20:53 pcie7410-s5-c2 initrock[4727]: sys.exit(scripts.initrock.main())
Apr 27 18:20:53 pcie7410-s5-c2 initrock[4727]: File “/root/rockstor-core/src/rockstor/scripts/initrock.py”, line 380, in main
Apr 27 18:20:53 pcie7410-s5-c2 initrock[4727]: run_command([‘su’, ‘-’, ‘postgres’, ‘-c’, “psql storageadmin -f %s/conf/storageadmin.sql.in” % BASE_DIR])
Apr 27 18:20:53 pcie7410-s5-c2 initrock[4727]: File “/root/rockstor-core/src/rockstor/system/osi.py”, line 92, in run_command
Apr 27 18:20:53 pcie7410-s5-c2 initrock[4727]: raise CommandException(cmd, out, err, rc)
Apr 27 18:20:53 pcie7410-s5-c2 initrock[4727]: system.exceptions.CommandException: Error running a command. cmd = [‘su’, ‘-’, ‘postgres’, ‘-c’, ‘psql storageadmin -f /root/rockstor-core//conf/storageadmin.sql.in’]. rc = 1. stdout = [’’]. stderr = [’/root/rockstor-core/conf/storageadmin.sql.in: Permission denied’, ‘’]
Apr 27 18:20:54 pcie7410-s5-c2 systemd[1]: rockstor-pre.service: main process exited, code=exited, status=1/FAILURE
Apr 27 18:20:54 pcie7410-s5-c2 systemd[1]: Failed to start Tasks required prior to starting Rockstor.
Apr 27 18:20:54 pcie7410-s5-c2 systemd[1]: Unit rockstor-pre.service entered failed state.
Apr 27 18:20:54 pcie7410-s5-c2 systemd[1]: rockstor-pre.service failed.

â rockstor.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)

â rockstor-bootstrap.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
[root@pcie7410-s5-c2 rockstor-core]#

Any ideas!

Hi @iazimi, first of all welcome to Rockstor Community!

Reading Contributing Rockstor - Developers, try with a full path reference to the buildout config file

[root@build_vm ]# /path/to/build_dir/bin/buildout -N -c /path/to/build_dir/buildout.cfg

If done inside bin dir:

./buildout -N -c ../buildout.cfg <- Uncomfortable, a bash alias is a good alternative both to this and manually call buildout everytime

Hope will be useful for other new contributors, from my .bashrc file:

  1. alias buildstatic='/opt/build/bin/buildout -c /opt/build/buildout.cfg install collectstatic
  2. alias buildpy='/opt/build/bin/buildout -N -c /opt/build/buildout.cfg'

n. 1 : used to build static files (jst, js, etc)
n. 2 : used to build py files

Obviously you have to change /opt/build/ with your Rockstor build dir :slight_smile:

Flyer

1 Like

Hello Flyer,

Thanks for quick response…

I tried with full pat but still same issue.

/root/rockstor-core/bin/buildout -N -c /root/rockstor-core/buildout.cfg

Updating docker-conf.
Updating rockstor-pre-systemd-conf.
Updating rockstor-systemd-conf.
Updating bootstrap-systemd-conf.
Updating def-kernel.
def-kernel: Running grubby --set-default=/boot/vmlinuz-'4.4.5-1.el7.elrepo.x86_64’
error opening /boot/grub/grub.cfg for read: No such file or directory
Updating start-rockstor.
start-rockstor: Running cp -f /root/rockstor-core/conf/rockstor-pre.service /etc/systemd/system/rockstor-pre.service &&
systemctl enable rockstor-pre.service &&
systemctl daemon-reload &&
systemctl restart rockstor-pre
systemctl start rockstor
Job for rockstor-pre.service failed because the control process exited with error code. See “systemctl status rockstor-pre.service” and “journalctl -xe” for details.
Failed to start rockstor.service: Unit rockstor.service failed to load: No such file or directory.
[root@pcie7410-s5-c2 rockstor-core]# systemctl status rockstor-pre.service -l
â rockstor-pre.service - Tasks required prior to starting Rockstor
Loaded: loaded (/etc/systemd/system/rockstor-pre.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2016-04-27 19:28:22 UTC; 16s ago
Main PID: 7219 (code=exited, status=1/FAILURE)

Apr 27 19:28:22 pcie7410-s5-c2 initrock[7219]: sys.exit(scripts.initrock.main())
Apr 27 19:28:22 pcie7410-s5-c2 initrock[7219]: File “/root/rockstor-core/src/rockstor/scripts/initrock.py”, line 380, in main
Apr 27 19:28:22 pcie7410-s5-c2 initrock[7219]: run_command([‘su’, ‘-’, ‘postgres’, ‘-c’, “psql storageadmin -f %s/conf/storageadmin.sql.in” % BASE_DIR])
Apr 27 19:28:22 pcie7410-s5-c2 initrock[7219]: File “/root/rockstor-core/src/rockstor/system/osi.py”, line 92, in run_command
Apr 27 19:28:22 pcie7410-s5-c2 initrock[7219]: raise CommandException(cmd, out, err, rc)
Apr 27 19:28:22 pcie7410-s5-c2 initrock[7219]: system.exceptions.CommandException: Error running a command. cmd = [‘su’, ‘-’, ‘postgres’, ‘-c’, ‘psql storageadmin -f /root/rockstor-core//conf/storageadmin.sql.in’]. rc = 1. stdout = [’’]. stderr = [’/root/rockstor-core/conf/storageadmin.sql.in: Permission denied’, ‘’]
Apr 27 19:28:22 pcie7410-s5-c2 systemd[1]: rockstor-pre.service: main process exited, code=exited, status=1/FAILURE
Apr 27 19:28:22 pcie7410-s5-c2 systemd[1]: Failed to start Tasks required prior to starting Rockstor.
Apr 27 19:28:22 pcie7410-s5-c2 systemd[1]: Unit rockstor-pre.service entered failed state.
Apr 27 19:28:22 pcie7410-s5-c2 systemd[1]: rockstor-pre.service failed.

OK I was able install OK. after cleanup and

Looks like services are up. But not able to get WebUI https://

I had to start rockstor-bootstrap manually

systemctl start rockstor-bootstrap.service

[root@pcie7410-s5-c2 conf]# systemctl status -l rockstor-pre rockstor rockstor-bootstrap
â rockstor-pre.service - Tasks required prior to starting Rockstor
Loaded: loaded (/etc/systemd/system/rockstor-pre.service; enabled; vendor preset: disabled)
Active: active (exited) since Wed 2016-04-27 19:51:07 UTC; 14min ago
Main PID: 11870 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/rockstor-pre.service

Apr 27 19:51:07 pcie7410-s5-c2 initrock[11870]: return run_command(cmd)
Apr 27 19:51:07 pcie7410-s5-c2 initrock[11870]: File “/opt/rockstor-core/src/rockstor/system/osi.py”, line 92, in run_command
Apr 27 19:51:07 pcie7410-s5-c2 initrock[11870]: raise CommandException(cmd, out, err, rc)
Apr 27 19:51:07 pcie7410-s5-c2 initrock[11870]: CommandException: Error running a command. cmd = [’/usr/bin/yum’, ‘–setopt=timeout=600’, ‘-y’, ‘downgrade’, ‘python-2.7.5-18.el7_1.1’, ‘python-libs-2.7.5-18.el7_1.1’]. rc = 1. stdout = [‘Loaded plugins: fastestmirror, langpacks’, ‘Loading mirror speeds from cached hostfile’, ’ * base: mirror.5ninesolutions.com’, ’ * epel: epel.wallawalla.edu’, ’ * extras: mirror.steadfast.net’, ’ * updates: centos.sonn.com’, ‘No package python-2.7.5-18.el7_1.1 available.’, ‘No package python-libs-2.7.5-18.el7_1.1 available.’, ‘’]. stderr = [‘Error: Nothing to do’, ‘’]
Apr 27 19:51:07 pcie7410-s5-c2 initrock[11870]: 2016-04-27 14:51:07,539: updating rockstor systemd service
Apr 27 19:51:07 pcie7410-s5-c2 initrock[11870]: 2016-04-27 14:51:07,620: Done.
Apr 27 19:51:07 pcie7410-s5-c2 initrock[11870]: 2016-04-27 14:51:07,620: rockstor service looks correct. Not updating.
Apr 27 19:51:07 pcie7410-s5-c2 initrock[11870]: 2016-04-27 14:51:07,621: updating rockstor-bootstrap systemd service
Apr 27 19:51:07 pcie7410-s5-c2 initrock[11870]: 2016-04-27 14:51:07,726: Done.
Apr 27 19:51:07 pcie7410-s5-c2 systemd[1]: Started Tasks required prior to starting Rockstor.

â rockstor.service - RockStor startup script
Loaded: loaded (/etc/systemd/system/rockstor.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2016-04-27 19:51:07 UTC; 14min ago
Main PID: 12468 (supervisord)
CGroup: /system.slice/rockstor.service
ââ12468 /usr/bin/python /opt/rockstor-core/bin/supervisord -c /opt/rockstor-core/etc/supervisord.conf
ââ12471 /usr/bin/python /opt/rockstor-core/bin/gunicorn --bind=127.0.0.1:8000 --pid=/run/gunicorn.pid --workers=2 --log-file=/opt/rockstor-core/var/log/gunicorn.log --pythonpath=/opt/rockstor-core/src/rockstor --settings=settings --timeout=120 --graceful-timeout=120 wsgi:application
ââ12472 /usr/bin/python /opt/rockstor-core/bin/data-collector
ââ12473 /usr/bin/python2.7 /opt/rockstor-core/bin/django ztaskd --noreload -l DEBUG -f /opt/rockstor-core/var/log/ztask.log
ââ12476 /usr/bin/python /opt/rockstor-core/bin/gunicorn --bind=127.0.0.1:8000 --pid=/run/gunicorn.pid --workers=2 --log-file=/opt/rockstor-core/var/log/gunicorn.log --pythonpath=/opt/rockstor-core/src/rockstor --settings=settings --timeout=120 --graceful-timeout=120 wsgi:application
ââ12477 /usr/bin/python /opt/rockstor-core/bin/gunicorn --bind=127.0.0.1:8000 --pid=/run/gunicorn.pid --workers=2 --log-file=/opt/rockstor-core/var/log/gunicorn.log --pythonpath=/opt/rockstor-core/src/rockstor --settings=settings --timeout=120 --graceful-timeout=120 wsgi:application

Apr 27 19:51:09 pcie7410-s5-c2 supervisord[12468]: 2016-04-27 19:51:09,084 INFO spawned: ‘gunicorn’ with pid 12471
Apr 27 19:51:09 pcie7410-s5-c2 supervisord[12468]: 2016-04-27 19:51:09,087 INFO spawned: ‘data-collector’ with pid 12472
Apr 27 19:51:09 pcie7410-s5-c2 supervisord[12468]: 2016-04-27 19:51:09,090 INFO spawned: ‘ztask-daemon’ with pid 12473
Apr 27 19:51:10 pcie7410-s5-c2 supervisord[12468]: 2016-04-27 19:51:10,093 INFO spawnerr: can’t find command '/usr/sbin/nginx’
Apr 27 19:51:11 pcie7410-s5-c2 supervisord[12468]: 2016-04-27 19:51:11,094 INFO success: data-collector entered RUNNING state, process has stayed up for > than 2 seconds (startsecs)
Apr 27 19:51:11 pcie7410-s5-c2 supervisord[12468]: 2016-04-27 19:51:11,095 INFO success: ztask-daemon entered RUNNING state, process has stayed up for > than 2 seconds (startsecs)
Apr 27 19:51:12 pcie7410-s5-c2 supervisord[12468]: 2016-04-27 19:51:12,096 INFO spawnerr: can’t find command '/usr/sbin/nginx’
Apr 27 19:51:14 pcie7410-s5-c2 supervisord[12468]: 2016-04-27 19:51:14,099 INFO success: gunicorn entered RUNNING state, process has stayed up for > than 5 seconds (startsecs)
Apr 27 19:51:15 pcie7410-s5-c2 supervisord[12468]: 2016-04-27 19:51:15,101 INFO spawnerr: can’t find command '/usr/sbin/nginx’
Apr 27 19:51:15 pcie7410-s5-c2 supervisord[12468]: 2016-04-27 19:51:15,102 INFO gave up: nginx entered FATAL state, too many start retries too quickly

â rockstor-bootstrap.service - Rockstor bootstrapping tasks
Loaded: loaded (/etc/systemd/system/rockstor-bootstrap.service; enabled; vendor preset: disabled)
Active: active (exited) since Wed 2016-04-27 20:03:46 UTC; 2min 19s ago
Main PID: 12647 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/rockstor-bootstrap.service

Apr 27 20:03:46 pcie7410-s5-c2 systemd[1]: Starting Rockstor bootstrapping tasks…
Apr 27 20:03:46 pcie7410-s5-c2 bootstrap[12647]: BTRFS device scan complete
Apr 27 20:03:46 pcie7410-s5-c2 bootstrap[12647]: Appliance is not yet setup.
Apr 27 20:03:46 pcie7410-s5-c2 systemd[1]: Started Rockstor bootstrapping tasks.
[root@pcie7410-s5-c2 conf]#