After upgrade Rockstor failed

After update, a few services failed and I have no UI. I performed update using the UI.

RiversideNas:~ # uname -a
Linux RiversideNas 6.5.0-lp154.4.g0955fc7-default #1 SMP PREEMPT_DYNAMIC Thu Aug 31 05:48:06 UTC 2023 (0955fc7) x86_64 x86_64 x86_64 GNU/Linux

RiversideNas:~ # systemctl list-units --failed
● atd.service loaded failed failed Deferred execution scheduler
● dmraid-activation.service loaded failed failed Activation of DM RAID sets
● postfix.service loaded failed failed Postfix Mail Transport Agent
● rockstor-pre.service loaded failed failed Tasks required prior to starting Rockstor

LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
4 loaded units listed.
as detailed as possible. Community members, including developers, shall try and help. Thanks for your time in reporting this issue! We recommend purchasing commercial support for expedited support directly from the developers.]

Brief description of the problem

[write here]

Detailed step by step instructions to reproduce the problem

[write here]

Web-UI screenshot

[Drag and drop the image here]

Error Traceback provided on the Web-UI

[paste here]

@avan Hello again.

Can you give more details about what version you updated from and too, and if you are on the testing or stable updates channel. We have had some know issues in Web-UI update during our current early testing phase. Almost all of which are now either fixed by a reboot, or a forced re-install
(as the β€˜root’ user):

zypper in -f rockstor

We would also need to know the current version that is likely only partially installed to help with the diagnosis/potential resolution here:

zypper info rockstor

The output of the following is also often useful if you are contributing to the testing channel feedback on such failures:

cat /opt/rockstor/poetry-install.txt

Hope that helps, at least with the info that may help folks here help you.


RiversideNas:~ # zypper info rockstor
Loading repository data…
Reading installed packages…

Information for package rockstor:

Repository : Rockstor-Stable
Name : rockstor
Version : 4.6.1-0
Arch : x86_64
Vendor : YewTreeApps
Installed Size : 9.6 MiB
Installed : Yes
Status : up-to-date
Source package : rockstor-4.6.1-0.src
Upstream URL :
Summary : Btrfs Network Attached Storage (NAS) Appliance.
Description :
Software raid, snapshot capable NAS solution with built-in file integrity protection.
Allows for file sharing between network attached devices.

RiversideNas:~ # cat /opt/rockstor/poetry-install.txt
The currently activated Python version 3.6.15 is not supported by the project (~2.7).
Trying to find and use a compatible version.
Using python2 (2.7.18)
Creating virtualenv rockstor in /opt/rockstor/.venv
Installing dependencies from lock file

Package operations: 29 installs, 0 updates, 0 removals

β€’ Installing certifi (2021.10.8)
β€’ Installing chardet (4.0.0)
β€’ Installing greenlet (2.0.2)
β€’ Installing idna (2.10)
β€’ Installing pytz (2022.6)
β€’ Installing six (1.16.0)
β€’ Installing urllib3 (1.26.12)
β€’ Installing django (1.11.29)
β€’ Installing gevent (1.1.2)
β€’ Installing oauthlib (3.1.0)
β€’ Installing python-engineio (2.3.2)
β€’ Installing requests (2.27.1)
β€’ Installing dbus-python (1.2.18)
β€’ Installing distro (1.6.0)
β€’ Installing django-braces (1.13.0)
β€’ Installing django-oauth-toolkit (1.1.2)
β€’ Installing django-pipeline (1.6.9)
β€’ Installing djangorestframework (3.9.3)
β€’ Installing gunicorn (19.10.0)
β€’ Installing mock (1.0.1)
β€’ Installing psycogreen (1.0)
β€’ Installing python-socketio (1.6.0)
β€’ Installing supervisor (4.2.4)
β€’ Installing huey (2.3.0)
β€’ Installing psycopg2 (2.8.6)
β€’ Installing gevent-websocket (0.9.5)
β€’ Installing pyzmq (19.0.2)
β€’ Installing psutil (5.9.4)
β€’ Installing urlobject (2.1.1)


Command [β€˜/opt/rockstor/.venv/bin/pip’, β€˜install’, β€˜β€“no-deps’, β€˜file:///root/.cache/pypoetry/artifacts/78/6c/1c/efa6250f008a1e079eda9b4ea03c74050bbcedd7264d372fd05febc42f/psycopg2-2.8.6.tar.gz’] errored with the following return code 1, and output:
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at Release process - pip documentation v23.3.dev0 pip 21.0 will remove support for this functionality.
Processing /root/.cache/pypoetry/artifacts/78/6c/1c/efa6250f008a1e079eda9b4ea03c74050bbcedd7264d372fd05febc42f/psycopg2-2.8.6.tar.gz
ERROR: Command errored out with exit status 1:
command: /opt/rockstor/.venv/bin/python -c β€˜import sys, setuptools, tokenize; sys.argv[0] = β€˜"’"’/tmp/pip-req-build-LL2NpJ/setup.pyβ€™β€œ'β€β€˜; file=β€™β€œ'β€β€˜/tmp/pip-req-build-LL2NpJ/setup.pyβ€™β€œ'β€β€˜;f=getattr(tokenize, β€˜"β€™β€œβ€˜openβ€™β€β€™β€œβ€˜, open)(file);β€™β€β€˜"’\r\nβ€™β€œ'β€β€˜, β€˜"’"’\nβ€™β€œ'β€β€˜);f.close();exec(compile(code, file, β€˜"β€™β€œβ€˜exec’”’"β€˜))’ egg_info --egg-base /tmp/pip-pip-egg-info-Temqh3
cwd: /tmp/pip-req-build-LL2NpJ/
Complete output (23 lines):
running egg_info
creating /tmp/pip-pip-egg-info-Temqh3/psycopg2.egg-info
writing /tmp/pip-pip-egg-info-Temqh3/psycopg2.egg-info/PKG-INFO
writing top-level names to /tmp/pip-pip-egg-info-Temqh3/psycopg2.egg-info/top_level.txt
writing dependency_links to /tmp/pip-pip-egg-info-Temqh3/psycopg2.egg-info/dependency_links.txt
writing manifest file β€˜/tmp/pip-pip-egg-info-Temqh3/psycopg2.egg-info/SOURCES.txt’

  Error: pg_config executable not found.

  pg_config is required to build psycopg2 from source.  Please add the directory
  containing pg_config to the $PATH or specify the full executable path with the

      python build_ext --pg-config /path/to/pg_config build ...

  or with the pg_config option in 'setup.cfg'.

  If you prefer to avoid building psycopg2 from source, please install the PyPI
  'psycopg2-binary' package instead.

  For further information please check the 'doc/src/install.rst' file (also at


ERROR: Command errored out with exit status 1: python egg_info Check the logs for full command output.

at ~/.local/share/pypoetry/venv/lib64/python3.6/site-packages/poetry/utils/ in run
1191β”‚ output = subprocess.check_output(
1192β”‚ cmd, stderr=subprocess.STDOUT, **kwargs
1193β”‚ )
1194β”‚ except CalledProcessError as e:
β†’ 1195β”‚ raise EnvCommandError(e, input=input
1197β”‚ return decode(output)
1199β”‚ def execute(self, bin, *args, **kwargs):

RiversideNas:~ # update-alternatives --config postgresql
There are 3 choices for the alternative postgresql (providing /usr/lib/postgresql).

Selection Path Priority Status

  • 0 /usr/lib/postgresql14 140 auto mode
    1 /usr/lib/postgresql10 100 manual mode
    2 /usr/lib/postgresql13 130 manual mode
    3 /usr/lib/postgresql14 140 manual mode

Press to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/lib/postgresql13 to provide /usr/lib/postgresql (postgresql) in manual mode

Thank you Phil, making progress
RiversideNas:~ # cat /opt/rockstor/poetry-install.txt
Installing dependencies from lock file

Package operations: 1 install, 0 updates, 0 removals

β€’ Installing psycopg2 (2.8.6)

Installing the current project: rockstor (4.6.1)


Thank you. This issue is resolved.