after installation and reboot, nginx could not start

installation both of Rockstor-Leap15.6-generic.x86_64-5.1.0-0.install.iso and Rockstor-Tumbleweed-generic.x86_64-5.1.0-0.install.iso on VMware workstation and Linux KVM is successfull, but after reboot, “[ok] finished rockstor bootstrapping” no showing.

myip shows the correct ip.

nginx could not start. the error is “can not load certifcate /opt/rockstor/certs/rockstor.cert”.

I could create the certifcates myself, then nginx could started. but when browsing the host, error with “bad router”, nginx error log shows “failed while connecting to upstream”.

the /opt/rockstor has no “bin” sub-dir which it shoud has

Have I missed something? Thanks!

Paul

@tangram welcome to the Rockstor community.

I have not seen that error before, however usually after the

[ok] finished rockstor bootstrapping

you should eventually (depending on hardware speed (or VM speed) also show this message:

[OK] Finished Record runlevel Change in UTMP.

Which is usually the indication that the server is up, including nginx.

There should be no bin directory there. The only directories directly under /op/rockstor should be:

certs/
conf/
config-backups-rpmsave/
etc/
jslibs/
rockons-metastore/ (this one only, if you manually created it for custom Rockons)
src/
static/
var/

Can you take at your /opt/rockstor/var/log/rockstor.log and see whether other errors are thrown during the boot/load process? Also, did Rockstor itself show as started:

systemctl status rockstor?

2 Likes

hi, Hooverdan

Thanks for your kindly reply!

there is no /opt/rockstor/var/log/rockstor.log

systemctl status rockstor:
rockstor-pre.service: Main process exited, code=exited, status=1/FAILURE

systemctl status rockstor-pre.service
ExecStart=/usr/local/bin/poetry run initrock (code=exited, status=1/FAILURE)

run directly:
cd /opt/rockstor
localhost:/opt/rockstor # /usr/local/bin/poetry run initrock
Warning: ‘initrock’ is an entry point defined in pyproject.toml, but it’s not installed as a script. You may get improper sys.argv[0].

The support to run uninstalled scripts will be removed in a future release.

Run poetry install to resolve and get rid of this message.

Traceback (most recent call last):
File “”, line 1, in
File “/usr/lib64/python3.11/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “”, line 1204, in _gcd_import
File “”, line 1176, in _find_and_load
File “”, line 1126, in _find_and_load_unlocked
File “”, line 241, in _call_with_frames_removed
File “”, line 1204, in _gcd_import
File “”, line 1176, in _find_and_load
File “”, line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named ‘scripts’

run “poetry install” as it suggestion
Installing dependencies from lock file

Package operations: 19 installs, 0 updates, 0 removals

• Installing django (4.2.21)
• Installing dbus-python (1.3.2): Downloading… 43%
• Installing dbus-python (1.3.2): Downloading… 87%
• Installing dbus-python (1.3.2): Preparing…
• Installing distro (1.9.0)
• Installing dbus-python (1.3.2)
• Installing distro (1.9.0)
• Installing django-oauth-toolkit (2.4.0)
• Installing django-pipeline (4.0.0)
• Installing djangorestframework (3.15.2)
• Installing docutils (0.21.2)
• Installing gevent (24.2.1)
• Installing gunicorn (23.0.0)
• Installing huey (2.5.3)
• Installing psutil (5.9.4)
• Installing psycogreen (1.0)
• Installing psycopg (3.2.9)
• Installing python-socketio (5.9.0)
• Installing pyzmq (26.4.0)
• Installing six (1.16.0)
• Installing supervisor (4.2.4)
• Installing urlobject (2.1.1)
• Installing zypper-changelog-lib (0.7.9)

Installing the current project: rockstor (5.1.0)

then rockstor service could start, and browser could show something error message, browser console has lots of errors:
Failed to load resource: the server responded with a status of 404 (Not Found)bootstrap.min.css:1

BTW, there is no static dir in /opt/rockstor

Paul

@tangram this is very strange. It seems that during the install, not everything is setting up correctly. there should be a log right after. I also checked a very recent installation, it doesn’t have the config-backups-rpmsave (because where I listed that from was an updated/upgraded version over time), but it does have the static directory. Without it, I believe the JS portion of the WebUI just won’t work.

Can you once more try to install on a freshly formatted/created VM disk? I am not clear what is going wrong here, since you seem to experience this with both the Leap 15.6 as well as the TW version. Since it’s VMWare you’re using, you are just using the iso, so no write-to-USB program could cause this …

1 Like