[SOLVED] Web-UI do not show contents. How to solve this?

Today I (re-)install Rockstor 3.8.15 from ISO DVD to USB stick and done.
I can logon via another PC with Firefox and Chromium. But Web-UI doesn’t show contents.
Nginx is seems working and I can not imagine what is happening to me. Someone help me out?

I’d tested with Firefox and Chromium on Fedora 24.

[root@rockstor ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
└─sda1 8:1 0 931.5G 0 part
sdb 8:16 0 931.5G 0 disk
└─sdb1 8:17 0 931.5G 0 part
sdc 8:32 0 931.5G 0 disk
└─sdc1 8:33 0 931.5G 0 part
sdd 8:48 0 931.5G 0 disk
└─sdd1 8:49 0 931.5G 0 part
sde 8:64 1 29.3G 0 disk
├─sde1 8:65 1 200M 0 part /boot/efi
├─sde2 8:66 1 500M 0 part /boot
└─sde3 8:67 1 28.7G 0 part
├─rockstor_rockstor-swap 253:0 0 3G 0 lvm [SWAP]
└─rockstor_rockstor-root 253:1 0 25.7G 0 lvm /

[root@rockstor ~]# systemctl status -l rockstor
● rockstor.service - RockStor startup script
Loaded: loaded (/etc/systemd/system/rockstor.service; enabled; vendor preset: enabled)
Active: active (running) since 土 2016-11-26 14:13:27 JST; 17min ago
Main PID: 2900 (supervisord)
CGroup: /system.slice/rockstor.service
├─2900 /usr/bin/python /opt/rockstor/bin/supervisord -c /opt/rockstor/etc/supervisord.conf
├─2911 nginx: master process /usr/sbin/nginx -c /opt/rockstor/etc/nginx/nginx.con
├─2912 /usr/bin/python /opt/rockstor/bin/gunicorn --bind=127.0.0.1:8000 --pid=/run/gunicorn.pid --workers=2 --log-file=/opt/rockstor/var/log/gunicorn.log --pythonpath=/opt/rockstor/src/rockstor --settings=settings --timeout=120 --graceful-timeout=120 wsgi:application
├─2913 /usr/bin/python /opt/rockstor/bin/data-collector
├─2914 /usr/bin/python2.7 /opt/rockstor/bin/django ztaskd --noreload --replayfailed -f /opt/rockstor/var/log/ztask.log
├─2916 nginx: worker process
├─2917 nginx: worker process
├─2927 /usr/bin/python /opt/rockstor/bin/gunicorn --bind=127.0.0.1:8000 --pid=/run/gunicorn.pid --workers=2 --log-file=/opt/rockstor/var/log/gunicorn.log --pythonpath=/opt/rockstor/src/rockstor --settings=settings --timeout=120 --graceful-timeout=120 wsgi:application
└─2928 /usr/bin/python /opt/rockstor/bin/gunicorn --bind=127.0.0.1:8000 --pid=/run/gunicorn.pid --workers=2 --log-file=/opt/rockstor/var/log/gunicorn.log --pythonpath=/opt/rockstor/src/rockstor --settings=settings --timeout=120 --graceful-timeout=120 wsgi:application

11月 26 14:13:28 rockstor.local supervisord[2900]: 2016-11-26 14:13:28,625 CRIT Server ‘unix_http_server’ running without any HTTP authentication checking
11月 26 14:13:28 rockstor.local supervisord[2900]: 2016-11-26 14:13:28,627 INFO supervisord started with pid 2900
11月 26 14:13:29 rockstor.local supervisord[2900]: 2016-11-26 14:13:29,657 INFO spawned: ‘nginx’ with pid 2911
11月 26 14:13:29 rockstor.local supervisord[2900]: 2016-11-26 14:13:29,710 INFO spawned: ‘gunicorn’ with pid 2912
11月 26 14:13:29 rockstor.local supervisord[2900]: 2016-11-26 14:13:29,773 INFO spawned: ‘data-collector’ with pid 2913
11月 26 14:13:29 rockstor.local supervisord[2900]: 2016-11-26 14:13:29,851 INFO spawned: ‘ztask-daemon’ with pid 2914
11月 26 14:13:31 rockstor.local supervisord[2900]: 2016-11-26 14:13:31,946 INFO success: data-collector entered RUNNING state, process has stayed up for > than 2 seconds (startsecs)
11月 26 14:13:31 rockstor.local supervisord[2900]: 2016-11-26 14:13:31,949 INFO success: ztask-daemon entered RUNNING state, process has stayed up for > than 2 seconds (startsecs)
11月 26 14:13:34 rockstor.local supervisord[2900]: 2016-11-26 14:13:34,953 INFO success: nginx entered RUNNING state, process has stayed up for > than 5 seconds (startsecs)
11月 26 14:13:34 rockstor.local supervisord[2900]: 2016-11-26 14:13:34,954 INFO success: gunicorn entered RUNNING state, process has stayed up for > than 5 seconds (startsecs)

Yukimi (weekend only)

Now I resolved by myself.

New Install, WebUI Issues

ssh into the box as root
rm /opt/rockstor/.initrock
run this command: /opt/rockstor/bin/initrock

Some error messages displayed but my problem has solved.

Note : Maybe this script will initialize some of the setthings. :slight_smile:

Yukimi

a blank web UI is more often caused by expired login. Did you try refreshing the browser before running initrock. I doubt running that script is required.

What if you don’t even have a /bin dir in /opt/rockstor/? Did that change with the latest distro upgrade? Doing a yum update broke rockstor and rockstor.bootstrap from working since they’re looking for binaries in /opt/rockstor/bin/:

$ systemctl cat rockstor-bootstrap.service
$ /etc/systemd/system/rockstor-bootstrap.service
[Unit]

[Service]
ExecStart=/opt/rockstor/bin/bootstrap

$ systemctl cat rockstor.service
$ /etc/systemd/system/rockstor.service

[Service]
ExecStart=/opt/rockstor/bin/supervisord -c /opt/rockstor/etc/supervisord.conf

And this is the contents of /opt/rockstor:

$ l /opt/rockstor/
certs/ etc/ media/ src/ static/ var/

Hi @exelan,
have checked over a Rockstor 3.8.16-2 update and bin folder exists in /opt/rockstor/

M.

@exelan and @Flyer
I have replied to @exelan original thread on the issue ‘yum upgrade -y’ and the missing files. Pretty sure the Rockstor package @exelan now has installed is really really ancient. I think this is due to that command being executed prior to choosing an update channel and consequently force (via -y) downgrading to a version that existed prior to this update channel mechanism.

We could continue the discussion / diagnostic over there as this thread appears to be unrelated and the linked thread has far more detail; linking:

Hope that helps.

1 Like

Thanks Philip, much appreciated.

Exelan