Can no longer log in to WebUI

I installed the lastest version of Rockstor. I tried installing Plex from the Rock-On interface.
There was an error and now the WebGUI does not work at all. It is impossible to log in. I does not seem like the nginx process is listening on port 443.

@quistian Welcome the Rockstor community.

Do you have ssh access, or direct terminal access. As to investigate you are going to need root access. We have seen an as yet unexplained issue that can cause the nginx process to fail and the following issue covers this and it’s fix.

https://github.com/rockstor/rockstor-core/issues/1833

Take a look at that issue and see if that matches what you system is experiencing. The issue links back to the following forum thread/post:

And to help further if you could paste the output of the following in the forum we can see what exact version of Rockstor you are running:

yum info rockstor

Hope that helps.

1 Like

From yum info rockstor:
Version: 3.9.1

In my case /opt/rockstor/etc/nginx/nginx.conf is NOT empty.

Rather the nginx process is not running.

@quistian Hello again.

What is the output of:

yum update

and:

systemctl status rockstor

And did you subscribe to either update channel prior to this failure?

yum update, installed and updated about 729 packages.
After rebooting,

#systemctl status rockstor
Loaded: loaded (/etc/systemd/system/rockstor.service enabled: vendor preset; enabled

systemd[1]: Dependency failed for RockStor startup script.
systemd[1]: Job rockstor.service/start failed with result ‘dependency’

Can I enable sshd so I can log in and cut and paste?

@quistian

So at least you now have an updated base.

It should be enabled for root by default. And the rest of that command is what will hopefully tell us what failed in the dependencies.

Hopefully once we have the rest of that status command we can see what’s up.

Also you can take a look at the system log:

journalctl

and Rockstor’s own logs in:

/opt/rockstor/var/log/

And you could also try restarting the rockstor service and looking at those logs to see, at the time, what’s gone wrong.

systemctl start rockstor

So you just need to get the ssh access sorted. And as stated “root@machine-name-or-ip” as the target should do it, and should be enabled by default.

Can you give any other details of what preceded this failure as this is a rather uncommon failure. Also some info about the machine, specifically the system drive you are using.

#systemctl start rockstor
A dependency job for rockstor.service failed. See ‘journalctl -xe’ for details.

@quistian OK, so now try the suggested command as the root user:

journalctl -xe

And look for rockstor mentions.


May 04 06:01:01 rockstor run-parts(/etc/cron.hourly)[15679]: finished 0anacron
May 04 06:01:01 rockstor run-parts(/etc/cron.hourly)[15681]: starting 0yum-hourly.cron
May 04 06:01:20 rockstor run-parts(/etc/cron.hourly)[15688]: finished 0yum-hourly.cron
May 04 06:23:15 rockstor sshd[15696]: Accepted password for root from 10.0.0.141 port 56725 ssh2
May 04 06:23:15 rockstor systemd[1]: Started Session 24 of user root.
May 04 06:23:15 rockstor systemd-logind[2027]: New session 24 of user root.
May 04 06:23:15 rockstor sshd[15696]: pam_unix(sshd:session): session opened for user root by (uid=0)
May 04 06:23:26 rockstor polkitd[2097]: Registered Authentication Agent for unix-process:15711:7653309 (system bus name :1.65 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_CA.UTF-8)
May 04 06:23:26 rockstor systemd[1]: Starting PostgreSQL database server…
May 04 06:23:26 rockstor postgresql-check-db-dir[15717]: cat: /var/lib/pgsql/data/PG_VERSION: Permission denied
May 04 06:23:26 rockstor postgresql-check-db-dir[15717]: cat: /var/lib/pgsql/data/PG_VERSION: Permission denied
May 04 06:23:26 rockstor postgresql-check-db-dir[15717]: An old version of the database format was found.
May 04 06:23:26 rockstor postgresql-check-db-dir[15717]: You need to dump and reload before using PostgreSQL 9.2.
May 04 06:23:26 rockstor postgresql-check-db-dir[15717]: See /usr/share/doc/postgresql-9.2.24/README.rpm-dist for more information.
May 04 06:23:26 rockstor systemd[1]: postgresql.service: control process exited, code=exited status=1
May 04 06:23:26 rockstor systemd[1]: Failed to start PostgreSQL database server.
May 04 06:23:26 rockstor systemd[1]: Dependency failed for Tasks required prior to starting Rockstor.
– Subject: Unit rockstor-pre.service has failed
– Unit rockstor-pre.service has failed.
May 04 06:23:26 rockstor systemd[1]: Dependency failed for RockStor startup script.
– Subject: Unit rockstor.service has failed
– Unit rockstor.service has failed.
May 04 06:23:26 rockstor systemd[1]: Job rockstor.service/start failed with result ‘dependency’.
May 04 06:23:26 rockstor systemd[1]: Job rockstor-pre.service/start failed with result ‘dependency’.
May 04 06:23:26 rockstor systemd[1]: Unit postgresql.service entered failed state.
May 04 06:23:26 rockstor systemd[1]: postgresql.service failed.
May 04 06:23:26 rockstor polkitd[2097]: Unregistered Authentication Agent for unix-process:15711:7653309 (system bus name :1.65, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_CA.UTF-8) (disconnected from bus)

@quistian The following looks pretty wacky:

And you mentioned that this all started after you:

Did you by chance use the ‘root’ ‘Share’ during that Plex install?

We no longer surface the ‘root’ share within the Web-UI in newer versions of Rockstor as it was more or less a bug and could result, if selected for use by some Rock-ons, in system wide file/dir ownership failure. I’m wondering if that is what has happened here. If so the easiest route is a re-install unfortunately:

Reinstalling Rockstor: http://rockstor.com/docs/reinstall/reinstall.html

Existing data pool drives can be disconnected prior to re-install so there is no chance of accidentally selecting them in the installer. Once you have fully updated and running your desired update channel you can then shutdown, re-attached data pool drives, power up and import them. Note that if you have saved and data on the system drive then it will be wiped during a re-install to that same drive.

We do have a guide for a proposed Plex Rock-on install configuration here:

Plex Server Rock-on: http://rockstor.com/docs/docker-based-rock-ons/plex-media-server.html

Hope that helps.

1 Like

Great. I will do a re-install or a fresh install. And thanks for the Plex guide. Will let you know how it goes.

3 Likes