Hi there,
I apologize if this has already been covered somewhere, but I wasn’t able to find anything specific to my problem. I performed a yum update -y accidentally which seems to have broken all the rockstor scripts.
Here’s what was updated based on yum history:
And here’s the status’s of rockstor-pre rockstor and rockstor-bootstrap:
$ 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: start-limit) since Mon 2017-01-02 19:50:19 MST; 8s ago
Process: 12128 ExecStart=/opt/rockstor/bin/initrock (code=exited, status=203/EXEC)
Main PID: 12128 (code=exited, status=203/EXEC)
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Failed to start Tasks required prior to starting Rockstor.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Failed to start Tasks required prior to starting Rockstor.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Failed to start Tasks required prior to starting Rockstor.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Failed to start Tasks required prior to starting Rockstor.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Failed to start Tasks required prior to starting Rockstor.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Failed to start Tasks required prior to starting Rockstor.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Failed to start Tasks required prior to starting Rockstor.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Failed to start Tasks required prior to starting Rockstor.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Failed to start Tasks required prior to starting Rockstor.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Failed to start Tasks required prior to starting Rockstor.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Failed to start Tasks required prior to starting Rockstor.
● rockstor.service - RockStor startup script
Loaded: loaded (/etc/systemd/system/rockstor.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Dependency failed for RockStor startup script.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Dependency failed for RockStor startup script.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Dependency failed for RockStor startup script.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Dependency failed for RockStor startup script.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Dependency failed for RockStor startup script.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Dependency failed for RockStor startup script.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Dependency failed for RockStor startup script.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Dependency failed for RockStor startup script.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Dependency failed for RockStor startup script.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Dependency failed for RockStor startup script.
● rockstor-bootstrap.service - Rockstor bootstrapping tasks
Loaded: loaded (/etc/systemd/system/rockstor-bootstrap.service; enabled; vendor preset: disabled)
Active: inactive (dead)
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Dependency failed for Rockstor bootstrapping tasks.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Dependency failed for Rockstor bootstrapping tasks.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Dependency failed for Rockstor bootstrapping tasks.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Dependency failed for Rockstor bootstrapping tasks.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Dependency failed for Rockstor bootstrapping tasks.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Dependency failed for Rockstor bootstrapping tasks.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Dependency failed for Rockstor bootstrapping tasks.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Dependency failed for Rockstor bootstrapping tasks.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Dependency failed for Rockstor bootstrapping tasks.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Dependency failed for Rockstor bootstrapping tasks.
Jan 02 19:50:28 portal.mywebsite.com systemd[1]: Dependency failed for Rockstor bootstrapping tasks.
Any help is greatly appreciated, obviously this is breaking the Docker services, and all my pools are empty directories now. I assume that the Rockstor bootstrapping tasks mount these shares.
Thanks!
Exelan
EDIT:
Alright, I think I found the problem but don’t know how to fix it.
Clearly I updated the distro the wrong way with yum update -y:
$ yum history
Updated btrfs-progs-4.6-0.rockstor.x86_64 @anaconda/3
Update 4.8.3-0.rockstor.x86_64 @rockstor
Install kernel-ml-4.8.7-1.el7.elrepo.x86_64 @rockstor
So this I’m assuming changes /opt/rockstor/bin/ to /opt/rockstor/src/rockstor/, this clearly is making the sysd units to break:
$ systemctl cat rockstor-bootstrap.service
/etc/systemd/system/rockstor-bootstrap.service
[Unit]
Description=Rockstor bootstrapping tasks
After=rockstor.service
Requires=rockstor.service
[Service]
ExecStart=/opt/rockstor/bin/bootstrap
Type=oneshot
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
$ systemctl cat rockstor.service
/etc/systemd/system/rockstor.service
[Unit]
Description=RockStor startup script
After=rockstor-pre.service
Requires=rockstor-pre.service
[Service]
ExecStart=/opt/rockstor/bin/supervisord -c /opt/rockstor/etc/supervisord.conf
[Install]
WantedBy=multi-user.target