After updating to 5.0.6-0 web interface is not accessible, and network shares are also not accessible

See topic :slight_smile:
After updating today, my install is not working properly. See subj.

Any way to try and repair it?

I can access it via Putty/SSH.

The Plex Rockon and Netdata Rockon’s admin pages are also not accessible.

Info from “zypper info rockstor” :

Information for package rockstor:

Repository : Rockstor-Testing
Name : rockstor
Version : 5.0.6-0
Arch : x86_64
Vendor : YewTreeApps
Installed Size : 7.8 MiB
Installed : Yes
Status : up-to-date
Source package : rockstor-5.0.6-0.src
Upstream URL : https://rockstor.com/
Summary : Btrfs Network Attached Storage (NAS) Appliance.

I also tried running:

sudo zypper in --force rockstor

Followed by:

sudo systemctl start rockstor-bootstrap

But that didn’t help either.

1 Like

I’m on Leap_15_4, fully updated according to Zypper refresh.

1 Like

Hello again @KarstenV!

Thanks for the detailed feedback! Curious the forced re-install didn’t work. Did you see any notice in the output from zypper out of zypper install --force rockstor ?

Could you check the following little things and report back, please?

  • Poetry install: which poetry
  • Poetry version: poetry --version (if found after the following, of course)
  • Pipx install: zypper info python311-pipx
  • Pipx poetry install: ls -lah /usr/local/bin/poetry
  • Rockstor build log: cat /opt/rockstor/poetry-install.txt

Hopefully it’ll clarify the situation a bit.

2 Likes

I noticed no output from “zypper install --force rockstor”.

No error messages anyway.

I was unclear if you wanted everthing reported back from the commands you asked me to run, so I just report everything.

Which poetry:
/root/.local/bin/poetry

Poetry --version:
Poetry version 1.1.15

zypper info python311-pipx:
Information for package python311-pipx:

Repository : Update repository with updates from SUSE Linux Enterprise 15
Name : python311-pipx
Version : 1.2.0-150400.9.3.1
Arch : noarch
Vendor : SUSE LLC https://www.suse.com/
Installed Size : 445.8 KiB
Installed : Yes (automatically)
Status : up-to-date
Source package : python-pipx-1.2.0-150400.9.3.1.src
Upstream URL : GitHub - pypa/pipx: Install and Run Python Applications in Isolated Environments
Summary : Install and Run Python Applications in Isolated Environments
Description :
Install and Run Python Applications in Isolated Environments

ls -lah /usr/local/bin/poetry:
lrwxrwxrwx 1 root root 33 Jan 18 16:36 /usr/local/bin/poetry → /opt/pipx/venvs/poetry/bin/poetry

cat /opt/rockstor/poetry-install.txt:
Creating virtualenv rockstor in /opt/rockstor/.venv
Installing dependencies from lock file

Package operations: 50 installs, 0 updates, 0 removals

• Installing pycparser (2.21)
• Installing cffi (1.16.0)
• Installing h11 (0.14.0)
• Installing cryptography (41.0.7)
• Installing jeepney (0.8.0)
• Installing more-itertools (10.1.0)
• Installing wrapt (1.16.0)
• Installing wsproto (1.2.0)
• Installing zipp (3.17.0)
• Installing asgiref (3.7.2)
• Installing deprecated (1.2.14)
• Installing charset-normalizer (3.3.2)
• Installing idna (3.6)
• Installing importlib-metadata (6.8.0)
• Installing secretstorage (3.3.3)
• Installing simple-websocket (1.0.0)
• Installing jaraco-classes (3.3.0)
• Installing certifi (2023.11.17)
• Installing urllib3 (2.1.0)
• Installing sqlparse (0.4.4)
• Installing bidict (0.22.1)
• Installing django (4.2.7)
• Installing greenlet (3.0.1)
• Installing jwcrypto (1.5.0)
• Installing keyring (23.13.1)
• Installing oauthlib (3.2.2)
• Installing packaging (23.2)
• Installing python-engineio (4.8.0)
• Installing pytz (2023.3.post1)
• Installing requests (2.31.0)
• Installing zope-event (5.0)
• Installing zope-interface (6.1)
• Installing typing-extensions (4.8.0)
Connection pool is full, discarding connection: pypi.org. Connection pool size: 10
Connection pool is full, discarding connection: pypi.org. Connection pool size: 10
Connection pool is full, discarding connection: pypi.org. Connection pool size: 10
• Installing dbus-python (1.3.2)
• Installing distro (1.8.0)
• Installing django-oauth-toolkit (2.3.0)
• Installing djangorestframework (3.14.0)
• Installing gevent (23.9.1)
• Installing django-pipeline (2.1.0)
• Installing six (1.16.0)
• Installing psutil (5.9.4)
• Installing psycopg (3.1.13)
• Installing python-socketio (5.9.0)
• Installing gunicorn (21.2.0)
• Installing huey (2.5.0)
• Installing psycogreen (1.0)
• Installing pyzmq (25.1.1)
• Installing supervisor (4.2.4)
• Installing keyring-pass (0.8.1)
• Installing urlobject (2.1.1)

Installing the current project: rockstor (5.0.6)

1 Like

Yes, that’s exactly I wanted to see so thanks a lot!
Ok, let’s proceed further, then:
systemctl status rockstor-pre rockstor rockstor-bootstrap

× rockstor-pre.service - Tasks required prior to starting Rockstor
Loaded: loaded (/usr/lib/systemd/system/rockstor-pre.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2024-01-18 17:01:00 CET; 3h 55min ago
Main PID: 24496 (code=exited, status=1/FAILURE)

Jan 18 17:00:57 RockstorNAS su[24702]: pam_unix(su-l:session): session closed for user postgres
Jan 18 17:00:57 RockstorNAS su[24741]: (to postgres) root on none
Jan 18 17:00:57 RockstorNAS su[24741]: pam_unix(su-l:session): session opened for user postgres by (uid=0)
Jan 18 17:00:57 RockstorNAS su[24741]: pam_unix(su-l:session): session closed for user postgres
Jan 18 17:00:57 RockstorNAS su[24774]: (to postgres) root on none
Jan 18 17:00:57 RockstorNAS su[24774]: pam_unix(su-l:session): session opened for user postgres by (uid=0)
Jan 18 17:00:57 RockstorNAS su[24774]: pam_unix(su-l:session): session closed for user postgres
Jan 18 17:01:00 RockstorNAS systemd[1]: rockstor-pre.service: Main process exited, code=exited, status=1/FAILURE
Jan 18 17:01:00 RockstorNAS systemd[1]: rockstor-pre.service: Failed with result ‘exit-code’.
Jan 18 17:01:00 RockstorNAS systemd[1]: Failed to start Tasks required prior to starting Rockstor.

○ rockstor.service - Rockstor startup script
Loaded: loaded (/usr/lib/systemd/system/rockstor.service; disabled; vendor preset: disabled)
Active: inactive (dead)

Jan 18 16:50:05 RockstorNAS systemd[1]: Dependency failed for Rockstor startup script.
Jan 18 16:50:05 RockstorNAS systemd[1]: rockstor.service: Job rockstor.service/start failed with result ‘dependency’.
Jan 18 17:01:00 RockstorNAS systemd[1]: Dependency failed for Rockstor startup script.
Jan 18 17:01:00 RockstorNAS systemd[1]: rockstor.service: Job rockstor.service/start failed with result ‘dependency’.

○ rockstor-bootstrap.service - Rockstor bootstrapping tasks
Loaded: loaded (/usr/lib/systemd/system/rockstor-bootstrap.service; enabled; vendor preset: enabled)
Active: inactive (dead)

Jan 18 16:50:05 RockstorNAS systemd[1]: Dependency failed for Rockstor bootstrapping tasks.
Jan 18 16:50:05 RockstorNAS systemd[1]: rockstor-bootstrap.service: Job rockstor-bootstrap.service/start failed with >
Jan 18 17:01:00 RockstorNAS systemd[1]: Dependency failed for Rockstor bootstrapping tasks.
Jan 18 17:01:00 RockstorNAS systemd[1]: rockstor-bootstrap.service: Job rockstor-bootstrap.service/start failed with >
lines 1-33/33 (END)

There are definately some errors about dependencies there, as far as I can see.

1 Like

Indeed. The first one to error out is rockstor-pre (the other fail because they depend on it); so let’s try to look at it more closely:

journalctl -xe -u rockstor-pre

░░ The job identifier is 383.
Jan 18 16:49:58 RockstorNAS su[5464]: (to postgres) root on none
Jan 18 16:49:58 RockstorNAS su[5464]: pam_unix(su-l:session): session opened for user postgres by (uid=0)
Jan 18 16:49:58 RockstorNAS su[5464]: pam_unix(su-l:session): session closed for user postgres
Jan 18 16:49:58 RockstorNAS su[5960]: (to postgres) root on none
Jan 18 16:49:58 RockstorNAS su[5960]: pam_unix(su-l:session): session opened for user postgres by (uid=0)
Jan 18 16:49:58 RockstorNAS su[5960]: pam_unix(su-l:session): session closed for user postgres
Jan 18 16:49:58 RockstorNAS su[6053]: (to postgres) root on none
Jan 18 16:49:58 RockstorNAS su[6053]: pam_unix(su-l:session): session opened for user postgres by (uid=0)
Jan 18 16:49:59 RockstorNAS su[6053]: pam_unix(su-l:session): session closed for user postgres
Jan 18 16:50:05 RockstorNAS systemd[1]: rockstor-pre.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: systemd-devel Info Page
░░
░░ An ExecStart= process belonging to unit rockstor-pre.service has exited.
░░
░░ The process’ exit code is ‘exited’ and its exit status is 1.
Jan 18 16:50:05 RockstorNAS systemd[1]: rockstor-pre.service: Failed with result ‘exit-code’.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: systemd-devel Info Page
░░
░░ The unit rockstor-pre.service has entered the ‘failed’ state with result ‘exit-code’.
Jan 18 16:50:05 RockstorNAS systemd[1]: Failed to start Tasks required prior to starting Rockstor.
░░ Subject: A start job for unit rockstor-pre.service has failed
░░ Defined-By: systemd
░░ Support: systemd-devel Info Page
░░
░░ A start job for unit rockstor-pre.service has finished with a failure.
░░
░░ The job identifier is 383 and the job result is failed.
Jan 18 17:00:53 RockstorNAS systemd[1]: Starting Tasks required prior to starting Rockstor…
░░ Subject: A start job for unit rockstor-pre.service has begun execution
░░ Defined-By: systemd
░░ Support: systemd-devel Info Page
░░
░░ A start job for unit rockstor-pre.service has begun execution.
░░
░░ The job identifier is 2496.
Jan 18 17:00:56 RockstorNAS su[24702]: (to postgres) root on none
Jan 18 17:00:56 RockstorNAS su[24702]: pam_unix(su-l:session): session opened for user postgres by (uid=0)
Jan 18 17:00:57 RockstorNAS su[24702]: pam_unix(su-l:session): session closed for user postgres
Jan 18 17:00:57 RockstorNAS su[24741]: (to postgres) root on none
Jan 18 17:00:57 RockstorNAS su[24741]: pam_unix(su-l:session): session opened for user postgres by (uid=0)
Jan 18 17:00:57 RockstorNAS su[24741]: pam_unix(su-l:session): session closed for user postgres
Jan 18 17:00:57 RockstorNAS su[24774]: (to postgres) root on none
Jan 18 17:00:57 RockstorNAS su[24774]: pam_unix(su-l:session): session opened for user postgres by (uid=0)
Jan 18 17:00:57 RockstorNAS su[24774]: pam_unix(su-l:session): session closed for user postgres
Jan 18 17:01:00 RockstorNAS systemd[1]: rockstor-pre.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: systemd-devel Info Page
░░
░░ An ExecStart= process belonging to unit rockstor-pre.service has exited.
░░
░░ The process’ exit code is ‘exited’ and its exit status is 1.
Jan 18 17:01:00 RockstorNAS systemd[1]: rockstor-pre.service: Failed with result ‘exit-code’.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: systemd-devel Info Page
░░
░░ The unit rockstor-pre.service has entered the ‘failed’ state with result ‘exit-code’.
Jan 18 17:01:00 RockstorNAS systemd[1]: Failed to start Tasks required prior to starting Rockstor.
░░ Subject: A start job for unit rockstor-pre.service has failed
░░ Defined-By: systemd
░░ Support: systemd-devel Info Page
░░
░░ A start job for unit rockstor-pre.service has finished with a failure.
░░
░░ The job identifier is 2496 and the job result is failed.
lines 8-78/78 (END)
░░ The job identifier is 383.
Jan 18 16:49:58 RockstorNAS su[5464]: (to postgres) root on none
Jan 18 16:49:58 RockstorNAS su[5464]: pam_unix(su-l:session): session opened for user postgres by (uid=0)
Jan 18 16:49:58 RockstorNAS su[5464]: pam_unix(su-l:session): session closed for user postgres
Jan 18 16:49:58 RockstorNAS su[5960]: (to postgres) root on none
Jan 18 16:49:58 RockstorNAS su[5960]: pam_unix(su-l:session): session opened for user postgres by (uid=0)
Jan 18 16:49:58 RockstorNAS su[5960]: pam_unix(su-l:session): session closed for user postgres
Jan 18 16:49:58 RockstorNAS su[6053]: (to postgres) root on none
Jan 18 16:49:58 RockstorNAS su[6053]: pam_unix(su-l:session): session opened for user postgres by (uid=0)
Jan 18 16:49:59 RockstorNAS su[6053]: pam_unix(su-l:session): session closed for user postgres
Jan 18 16:50:05 RockstorNAS systemd[1]: rockstor-pre.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: systemd-devel Info Page
░░
░░ An ExecStart= process belonging to unit rockstor-pre.service has exited.
░░
░░ The process’ exit code is ‘exited’ and its exit status is 1.
Jan 18 16:50:05 RockstorNAS systemd[1]: rockstor-pre.service: Failed with result ‘exit-code’.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: systemd-devel Info Page
░░
░░ The unit rockstor-pre.service has entered the ‘failed’ state with result ‘exit-code’.
Jan 18 16:50:05 RockstorNAS systemd[1]: Failed to start Tasks required prior to starting Rockstor.
░░ Subject: A start job for unit rockstor-pre.service has failed
░░ Defined-By: systemd
░░ Support: systemd-devel Info Page
░░
░░ A start job for unit rockstor-pre.service has finished with a failure.
░░
░░ The job identifier is 383 and the job result is failed.
Jan 18 17:00:53 RockstorNAS systemd[1]: Starting Tasks required prior to starting Rockstor…
░░ Subject: A start job for unit rockstor-pre.service has begun execution
░░ Defined-By: systemd
░░ Support: systemd-devel Info Page
░░
░░ A start job for unit rockstor-pre.service has begun execution.
░░
░░ The job identifier is 2496.
Jan 18 17:00:56 RockstorNAS su[24702]: (to postgres) root on none
Jan 18 17:00:56 RockstorNAS su[24702]: pam_unix(su-l:session): session opened for user postgres by (uid=0)
Jan 18 17:00:57 RockstorNAS su[24702]: pam_unix(su-l:session): session closed for user postgres
Jan 18 17:00:57 RockstorNAS su[24741]: (to postgres) root on none
Jan 18 17:00:57 RockstorNAS su[24741]: pam_unix(su-l:session): session opened for user postgres by (uid=0)
Jan 18 17:00:57 RockstorNAS su[24741]: pam_unix(su-l:session): session closed for user postgres
Jan 18 17:00:57 RockstorNAS su[24774]: (to postgres) root on none
Jan 18 17:00:57 RockstorNAS su[24774]: pam_unix(su-l:session): session opened for user postgres by (uid=0)
Jan 18 17:00:57 RockstorNAS su[24774]: pam_unix(su-l:session): session closed for user postgres
Jan 18 17:01:00 RockstorNAS systemd[1]: rockstor-pre.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: systemd-devel Info Page
░░
░░ An ExecStart= process belonging to unit rockstor-pre.service has exited.
░░
░░ The process’ exit code is ‘exited’ and its exit status is 1.
Jan 18 17:01:00 RockstorNAS systemd[1]: rockstor-pre.service: Failed with result ‘exit-code’.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: systemd-devel Info Page
░░
░░ The unit rockstor-pre.service has entered the ‘failed’ state with result ‘exit-code’.
Jan 18 17:01:00 RockstorNAS systemd[1]: Failed to start Tasks required prior to starting Rockstor.
░░ Subject: A start job for unit rockstor-pre.service has failed
░░ Defined-By: systemd
░░ Support: systemd-devel Info Page
░░
░░ A start job for unit rockstor-pre.service has finished with a failure.
░░
░░ The job identifier is 2496 and the job result is failed.
~
~
~
~
~
~
~
lines 8-78/78 (END)

1 Like

OK… so far it all is coherent. Let’s see if rockstor.log has more info as to what part of initrock.py fails:

cat /opt/rockstor/var/log/rockstor.log | grep "18/Jan"

[18/Jan/2023 14:16:17] INFO [scripts.initrock:269] Normalising on shellinaboxd service file
[18/Jan/2023 14:16:17] INFO [scripts.initrock:273] - shellinaboxd.service already exists
[18/Jan/2023 14:16:17] INFO [scripts.initrock:328] /etc/systemd/system/rockstor-pre.service up-to-date.
[18/Jan/2023 14:16:17] INFO [scripts.initrock:328] /etc/systemd/system/rockstor.service up-to-date.
[18/Jan/2023 14:16:17] INFO [scripts.initrock:328] /etc/systemd/system/rockstor-bootstrap.service up-to-date.
[18/Jan/2023 14:16:17] INFO [scripts.initrock:328] /etc/systemd/system/rockstor-ipv6check.service up-to-date.
[18/Jan/2024 16:31:51] INFO [system.pkg_mgmt:464] Updating all but rockstor package for distro opensuse
[18/Jan/2024 15:36:56] INFO [scripts.initrock:546] Checking for flash and Running flash optimizations if appropriate.
[18/Jan/2024 15:36:57] INFO [scripts.initrock:549] Updating the timezone from the system
[18/Jan/2024 15:36:57] INFO [scripts.initrock:221] system timezone = Europe/Copenhagen
[18/Jan/2024 15:36:57] INFO [scripts.initrock:234] Changed timezone from “Europe/Lisbon” to Europe/Copenhagen
[18/Jan/2024 15:36:57] INFO [scripts.initrock:556] Initialising SSHD config
[18/Jan/2024 15:36:57] INFO [system.ssh:394] SSHD (/etc/ssh/sshd_config) sftp-server already disabled
[18/Jan/2024 15:36:57] INFO [system.ssh:100] SSHD (/etc/ssh/sshd_config) already initialised
[18/Jan/2024 15:36:57] INFO [scripts.initrock:473] API CLIENT_SECRET set/reset successfully.
[18/Jan/2024 15:36:57] INFO [scripts.initrock:569] --DB-- Tune Postgres --DB–
[18/Jan/2024 15:36:57] INFO [scripts.initrock:571] --DB-- Running - Setup_host_based_auth
[18/Jan/2024 15:36:58] INFO [scripts.initrock:576] --DB-- Done with Setup_host_based_auth.
[18/Jan/2024 15:36:58] INFO [scripts.initrock:571] --DB-- Running - Reload_config
[18/Jan/2024 15:36:58] INFO [scripts.initrock:576] --DB-- Done with Reload_config.
[18/Jan/2024 15:36:58] INFO [scripts.initrock:571] --DB-- Running - PG_tune
[18/Jan/2024 15:36:58] INFO [scripts.initrock:576] --DB-- Done with PG_tune.
[18/Jan/2024 15:36:58] INFO [scripts.initrock:577] --DB-- Tune Postgres Done --DB–.
[18/Jan/2024 15:36:58] INFO [scripts.initrock:581] Running app database migrations…
[18/Jan/2024 15:37:01] ERROR [system.osi:261] non-zero code(1) returned by command: [‘/opt/rockstor/.venv/bin/django-admin’, ‘migrate’, ‘–noinput’, ‘–fake-initial’, ‘–database=default’, ‘contenttypes’]. output: [‘’] error: [‘Traceback (most recent call last):’, ’ File “/opt/rockstor/.venv/bin/django-admin”, line 8, in ‘, ’ sys.exit(execute_from_command_line())’, ’ ^^^^^^^^^^^^^^^^^^^^^^^^^^^‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/core/management/init.py”, line 442, in execute_from_command_line’, ’ utility.execute()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/core/management/init.py”, line 436, in execute’, ’ self.fetch_command(subcommand).run_from_argv(self.argv)‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/core/management/base.py”, line 412, in run_from_argv’, ’ self.execute(*args, **cmd_options)‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/core/management/base.py”, line 458, in execute’, ’ output = self.handle(*args, **options)‘, ’ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/core/management/base.py”, line 106, in wrapper’, ’ res = handle_func(*args, **kwargs)‘, ’ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/core/management/commands/migrate.py”, line 117, in handle’, ’ executor = MigrationExecutor(connection, self.migration_progress_callback)‘, ’ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/migrations/executor.py”, line 18, in init’, ’ self.loader = MigrationLoader(self.connection)‘, ’ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/migrations/loader.py”, line 58, in init’, ’ self.build_graph()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/migrations/loader.py”, line 235, in build_graph’, ’ self.applied_migrations = recorder.applied_migrations()‘, ’ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/migrations/recorder.py”, line 81, in applied_migrations’, ’ if self.has_table():‘, ’ ^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/migrations/recorder.py”, line 57, in has_table’, ’ with self.connection.cursor() as cursor:‘, ’ ^^^^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/utils/asyncio.py”, line 26, in inner’, ’ return func(*args, **kwargs)‘, ’ ^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/base/base.py”, line 330, in cursor’, ’ return self._cursor()‘, ’ ^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/base/base.py”, line 306, in _cursor’, ’ self.ensure_connection()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/utils/asyncio.py”, line 26, in inner’, ’ return func(*args, **kwargs)‘, ’ ^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/base/base.py”, line 289, in ensure_connection’, ’ self.connect()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/utils/asyncio.py”, line 26, in inner’, ’ return func(*args, **kwargs)‘, ’ ^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/base/base.py”, line 272, in connect’, ’ self.init_connection_state()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/postgresql/base.py”, line 309, in init_connection_state’, ’ super().init_connection_state()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/base/base.py”, line 239, in init_connection_state’, ’ self.check_database_version_supported()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/base/base.py”, line 214, in check_database_version_supported’, ’ raise NotSupportedError(‘, ‘django.db.utils.NotSupportedError: PostgreSQL 12 or later is required (found 10.23).’, ‘’]
[18/Jan/2024 16:45:13] INFO [scripts.initrock:546] Checking for flash and Running flash optimizations if appropriate.
[18/Jan/2024 16:45:14] INFO [scripts.initrock:549] Updating the timezone from the system
[18/Jan/2024 16:45:14] INFO [scripts.initrock:221] system timezone = Europe/Copenhagen
[18/Jan/2024 16:45:14] INFO [scripts.initrock:556] Initialising SSHD config
[18/Jan/2024 16:45:14] INFO [system.ssh:394] SSHD (/etc/ssh/sshd_config) sftp-server already disabled
[18/Jan/2024 16:45:14] INFO [system.ssh:100] SSHD (/etc/ssh/sshd_config) already initialised
[18/Jan/2024 16:45:14] INFO [scripts.initrock:569] --DB-- Tune Postgres --DB–
[18/Jan/2024 16:45:14] INFO [scripts.initrock:571] --DB-- Running - Setup_host_based_auth
[18/Jan/2024 16:45:15] INFO [scripts.initrock:576] --DB-- Done with Setup_host_based_auth.
[18/Jan/2024 16:45:15] INFO [scripts.initrock:571] --DB-- Running - Reload_config
[18/Jan/2024 16:45:15] INFO [scripts.initrock:576] --DB-- Done with Reload_config.
[18/Jan/2024 16:45:15] INFO [scripts.initrock:571] --DB-- Running - PG_tune
[18/Jan/2024 16:45:15] INFO [scripts.initrock:576] --DB-- Done with PG_tune.
[18/Jan/2024 16:45:15] INFO [scripts.initrock:577] --DB-- Tune Postgres Done --DB–.
[18/Jan/2024 16:45:15] INFO [scripts.initrock:581] Running app database migrations…
[18/Jan/2024 16:45:20] ERROR [system.osi:261] non-zero code(1) returned by command: [’/opt/rockstor/.venv/bin/django-admin’, ‘migrate’, ‘–noinput’, ‘–fake-initial’, ‘–database=default’, ‘contenttypes’]. output: [‘’] error: [‘Traceback (most recent call last):’, ’ File “/opt/rockstor/.venv/bin/django-admin”, line 8, in ‘, ’ sys.exit(execute_from_command_line())’, ’ ^^^^^^^^^^^^^^^^^^^^^^^^^^^‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/core/management/init.py”, line 442, in execute_from_command_line’, ’ utility.execute()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/core/management/init.py”, line 436, in execute’, ’ self.fetch_command(subcommand).run_from_argv(self.argv)‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/core/management/base.py”, line 412, in run_from_argv’, ’ self.execute(*args, **cmd_options)‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/core/management/base.py”, line 458, in execute’, ’ output = self.handle(*args, **options)‘, ’ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/core/management/base.py”, line 106, in wrapper’, ’ res = handle_func(*args, **kwargs)‘, ’ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/core/management/commands/migrate.py”, line 117, in handle’, ’ executor = MigrationExecutor(connection, self.migration_progress_callback)‘, ’ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/migrations/executor.py”, line 18, in init’, ’ self.loader = MigrationLoader(self.connection)‘, ’ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/migrations/loader.py”, line 58, in init’, ’ self.build_graph()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/migrations/loader.py”, line 235, in build_graph’, ’ self.applied_migrations = recorder.applied_migrations()‘, ’ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/migrations/recorder.py”, line 81, in applied_migrations’, ’ if self.has_table():‘, ’ ^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/migrations/recorder.py”, line 57, in has_table’, ’ with self.connection.cursor() as cursor:‘, ’ ^^^^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/utils/asyncio.py”, line 26, in inner’, ’ return func(*args, **kwargs)‘, ’ ^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/base/base.py”, line 330, in cursor’, ’ return self._cursor()‘, ’ ^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/base/base.py”, line 306, in _cursor’, ’ self.ensure_connection()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/utils/asyncio.py”, line 26, in inner’, ’ return func(*args, **kwargs)‘, ’ ^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/base/base.py”, line 289, in ensure_connection’, ’ self.connect()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/utils/asyncio.py”, line 26, in inner’, ’ return func(*args, **kwargs)‘, ’ ^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/base/base.py”, line 272, in connect’, ’ self.init_connection_state()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/postgresql/base.py”, line 309, in init_connection_state’, ’ super().init_connection_state()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/base/base.py”, line 239, in init_connection_state’, ’ self.check_database_version_supported()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/base/base.py”, line 214, in check_database_version_supported’, ’ raise NotSupportedError(‘, ‘django.db.utils.NotSupportedError: PostgreSQL 12 or later is required (found 10.23).’, ‘’]
[18/Jan/2024 16:49:57] INFO [scripts.initrock:546] Checking for flash and Running flash optimizations if appropriate.
[18/Jan/2024 16:49:57] INFO [scripts.initrock:549] Updating the timezone from the system
[18/Jan/2024 16:49:57] INFO [scripts.initrock:221] system timezone = Europe/Copenhagen
[18/Jan/2024 16:49:57] INFO [scripts.initrock:556] Initialising SSHD config
[18/Jan/2024 16:49:57] INFO [system.ssh:394] SSHD (/etc/ssh/sshd_config) sftp-server already disabled
[18/Jan/2024 16:49:57] INFO [system.ssh:100] SSHD (/etc/ssh/sshd_config) already initialised
[18/Jan/2024 16:49:57] INFO [scripts.initrock:569] --DB-- Tune Postgres --DB–
[18/Jan/2024 16:49:57] INFO [scripts.initrock:571] --DB-- Running - Setup_host_based_auth
[18/Jan/2024 16:49:58] INFO [scripts.initrock:576] --DB-- Done with Setup_host_based_auth.
[18/Jan/2024 16:49:58] INFO [scripts.initrock:571] --DB-- Running - Reload_config
[18/Jan/2024 16:49:58] INFO [scripts.initrock:576] --DB-- Done with Reload_config.
[18/Jan/2024 16:49:58] INFO [scripts.initrock:571] --DB-- Running - PG_tune
[18/Jan/2024 16:49:59] INFO [scripts.initrock:576] --DB-- Done with PG_tune.
[18/Jan/2024 16:49:59] INFO [scripts.initrock:577] --DB-- Tune Postgres Done --DB–.
[18/Jan/2024 16:49:59] INFO [scripts.initrock:581] Running app database migrations…
[18/Jan/2024 16:50:05] ERROR [system.osi:261] non-zero code(1) returned by command: [’/opt/rockstor/.venv/bin/django-admin’, ‘migrate’, ‘–noinput’, ‘–fake-initial’, ‘–database=default’, ‘contenttypes’]. output: [‘’] error: [‘Traceback (most recent call last):’, ’ File “/opt/rockstor/.venv/bin/django-admin”, line 8, in ‘, ’ sys.exit(execute_from_command_line())’, ’ ^^^^^^^^^^^^^^^^^^^^^^^^^^^‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/core/management/init.py”, line 442, in execute_from_command_line’, ’ utility.execute()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/core/management/init.py”, line 436, in execute’, ’ self.fetch_command(subcommand).run_from_argv(self.argv)‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/core/management/base.py”, line 412, in run_from_argv’, ’ self.execute(*args, **cmd_options)‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/core/management/base.py”, line 458, in execute’, ’ output = self.handle(*args, **options)‘, ’ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/core/management/base.py”, line 106, in wrapper’, ’ res = handle_func(*args, **kwargs)‘, ’ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/core/management/commands/migrate.py”, line 117, in handle’, ’ executor = MigrationExecutor(connection, self.migration_progress_callback)‘, ’ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/migrations/executor.py”, line 18, in init’, ’ self.loader = MigrationLoader(self.connection)‘, ’ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/migrations/loader.py”, line 58, in init’, ’ self.build_graph()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/migrations/loader.py”, line 235, in build_graph’, ’ self.applied_migrations = recorder.applied_migrations()‘, ’ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/migrations/recorder.py”, line 81, in applied_migrations’, ’ if self.has_table():‘, ’ ^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/migrations/recorder.py”, line 57, in has_table’, ’ with self.connection.cursor() as cursor:‘, ’ ^^^^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/utils/asyncio.py”, line 26, in inner’, ’ return func(*args, **kwargs)‘, ’ ^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/base/base.py”, line 330, in cursor’, ’ return self._cursor()‘, ’ ^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/base/base.py”, line 306, in _cursor’, ’ self.ensure_connection()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/utils/asyncio.py”, line 26, in inner’, ’ return func(*args, **kwargs)‘, ’ ^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/base/base.py”, line 289, in ensure_connection’, ’ self.connect()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/utils/asyncio.py”, line 26, in inner’, ’ return func(*args, **kwargs)‘, ’ ^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/base/base.py”, line 272, in connect’, ’ self.init_connection_state()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/postgresql/base.py”, line 309, in init_connection_state’, ’ super().init_connection_state()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/base/base.py”, line 239, in init_connection_state’, ’ self.check_database_version_supported()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/base/base.py”, line 214, in check_database_version_supported’, ’ raise NotSupportedError(‘, ‘django.db.utils.NotSupportedError: PostgreSQL 12 or later is required (found 10.23).’, ‘’]
[18/Jan/2024 16:00:55] INFO [scripts.initrock:546] Checking for flash and Running flash optimizations if appropriate.
[18/Jan/2024 16:00:56] INFO [scripts.initrock:549] Updating the timezone from the system
[18/Jan/2024 16:00:56] INFO [scripts.initrock:221] system timezone = Europe/Copenhagen
[18/Jan/2024 16:00:56] INFO [scripts.initrock:234] Changed timezone from “Europe/Lisbon” to Europe/Copenhagen
[18/Jan/2024 16:00:56] INFO [scripts.initrock:556] Initialising SSHD config
[18/Jan/2024 16:00:56] INFO [system.ssh:394] SSHD (/etc/ssh/sshd_config) sftp-server already disabled
[18/Jan/2024 16:00:56] INFO [system.ssh:100] SSHD (/etc/ssh/sshd_config) already initialised
[18/Jan/2024 16:00:56] INFO [scripts.initrock:569] --DB-- Tune Postgres --DB–
[18/Jan/2024 16:00:56] INFO [scripts.initrock:571] --DB-- Running - Setup_host_based_auth
[18/Jan/2024 16:00:57] INFO [scripts.initrock:576] --DB-- Done with Setup_host_based_auth.
[18/Jan/2024 16:00:57] INFO [scripts.initrock:571] --DB-- Running - Reload_config
[18/Jan/2024 16:00:57] INFO [scripts.initrock:576] --DB-- Done with Reload_config.
[18/Jan/2024 16:00:57] INFO [scripts.initrock:571] --DB-- Running - PG_tune
[18/Jan/2024 16:00:57] INFO [scripts.initrock:576] --DB-- Done with PG_tune.
[18/Jan/2024 16:00:57] INFO [scripts.initrock:577] --DB-- Tune Postgres Done --DB–.
[18/Jan/2024 16:00:57] INFO [scripts.initrock:581] Running app database migrations…
[18/Jan/2024 16:00:59] ERROR [system.osi:261] non-zero code(1) returned by command: [’/opt/rockstor/.venv/bin/django-admin’, ‘migrate’, ‘–noinput’, ‘–fake-initial’, ‘–database=default’, ‘contenttypes’]. output: [‘’] error: [‘Traceback (most recent call last):’, ’ File “/opt/rockstor/.venv/bin/django-admin”, line 8, in ‘, ’ sys.exit(execute_from_command_line())’, ’ ^^^^^^^^^^^^^^^^^^^^^^^^^^^‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/core/management/init.py”, line 442, in execute_from_command_line’, ’ utility.execute()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/core/management/init.py”, line 436, in execute’, ’ self.fetch_command(subcommand).run_from_argv(self.argv)‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/core/management/base.py”, line 412, in run_from_argv’, ’ self.execute(*args, **cmd_options)‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/core/management/base.py”, line 458, in execute’, ’ output = self.handle(*args, **options)‘, ’ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/core/management/base.py”, line 106, in wrapper’, ’ res = handle_func(*args, **kwargs)‘, ’ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/core/management/commands/migrate.py”, line 117, in handle’, ’ executor = MigrationExecutor(connection, self.migration_progress_callback)‘, ’ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/migrations/executor.py”, line 18, in init’, ’ self.loader = MigrationLoader(self.connection)‘, ’ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/migrations/loader.py”, line 58, in init’, ’ self.build_graph()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/migrations/loader.py”, line 235, in build_graph’, ’ self.applied_migrations = recorder.applied_migrations()‘, ’ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/migrations/recorder.py”, line 81, in applied_migrations’, ’ if self.has_table():‘, ’ ^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/migrations/recorder.py”, line 57, in has_table’, ’ with self.connection.cursor() as cursor:‘, ’ ^^^^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/utils/asyncio.py”, line 26, in inner’, ’ return func(*args, **kwargs)‘, ’ ^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/base/base.py”, line 330, in cursor’, ’ return self._cursor()‘, ’ ^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/base/base.py”, line 306, in _cursor’, ’ self.ensure_connection()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/utils/asyncio.py”, line 26, in inner’, ’ return func(*args, **kwargs)‘, ’ ^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/base/base.py”, line 289, in ensure_connection’, ’ self.connect()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/utils/asyncio.py”, line 26, in inner’, ’ return func(*args, **kwargs)‘, ’ ^^^^^^^^^^^^^^^^^^^^^’, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/base/base.py”, line 272, in connect’, ’ self.init_connection_state()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/postgresql/base.py”, line 309, in init_connection_state’, ’ super().init_connection_state()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/base/base.py”, line 239, in init_connection_state’, ’ self.check_database_version_supported()‘, ’ File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/backends/base/base.py”, line 214, in check_database_version_supported’, ’ raise NotSupportedError(', ‘django.db.utils.NotSupportedError: PostgreSQL 12 or later is required (found 10.23).’, ‘’]

1 Like

Hope you can make heads or tails from it, I sure cant :slight_smile:

Has this got something to do with it??

PostgreSQL 12 or later is required (found 10.23)

2 Likes

Searching the error comes up with something about Django being to new, and it doesn’t support postgresql lower than version 12.

I’m way out of my league here, I will await instructions :slight_smile:

Yes, I think we have a culprit here:

And the error output:

NotSupportedError(', ‘django.db.utils.NotSupportedError: PostgreSQL 12 or later is required (found 10.23).’, ‘’]

So it seems to somehow work on PostgreSQL 10 (found 10.23), while Rockstor depends on postgres 13! I have not seen that one before.

For reference, our postgres dependencies are defined at:

We’ve seen some old postgres versions sticking and not being updated as “to-be-used” by zypper in some systems that were old installs being updated progressively. Would that be the case for yours, by any chance? In other words, is that an old Rockstor install that has been updated from previous Leap versions?
In particular, the following thread comes to mind:

Let’s see if that is available to your system:

update-alternatives --list postgresql

Yes my install is a perhaps 5 years old install that has been updated with new releases.

I even think I used some info in the thread you mention to make Rockstor work after updating to 5.0.1-0

update-alternatives --list postgresql:

/usr/lib/postgresql10
/usr/lib/postgresql13

1 Like

Oh, interesting…

So it seems you have it, let’s check and see if you can verify that update-alternatives is indeed set to use v10:

rockstable:/opt/rockstor # update-alternatives --config postgresql
There is 1 choice for the alternative postgresql (providing /usr/lib/postgresql).

  Selection    Path                   Priority   Status
------------------------------------------------------------
  0            /usr/lib/postgresql13   130       auto mode
* 1            /usr/lib/postgresql13   130       manual mode

Press <enter> to keep the current choice[*], or type selection number:

The * denotes the one in use (you can press Ctrl + C to cancel at that point).

Alternatively, checking the symlink for pg_config could indirectly tell us the same thing:

ls -lah /etc/alternatives/pg_config
1 Like

Sorry its a little unclear what you want me to do now.

What do I do to see the info you display.

/opt/rockstor # update-alternatives --config postgresql

Doesnt give me any usefull reply.

Try running:

update-alternatives --config postgresql

When it asks you the following:

Press <enter> to keep the current choice[*], or type selection number:

… you can press Ctrl + C on your keyboard to cancel the selection. We’re just verifying what you currently have so far.

Alternatively, you can also run:

ls -lah /etc/alternatives/pg_config

as that will show you the actual binary used for pg_config (given its version number is in its name, it’ll be showing us what version is being used).

update-alternatives --config postgresql

There are 2 choices for the alternative postgresql (providing /usr/lib/postgresql).

  Selection    Path                   Priority   Status
  0            /usr/lib/postgresql13   130       auto mode
  1            /usr/lib/postgresql10   100       manual mode
* 2            /usr/lib/postgresql13   130       manual mode
ls -lah /etc/alternatives/pg_config
lrwxrwxrwx 1 root root 35 Nov 20 22:50 /etc/alternatives/pg_config -> /usr/lib/postgresql13/bin/pg_config

The forum messes with the lauyout a little, hope you see what it says.

That is curious because it seems to indicate you are indeed using v13 (as it should be). We could try uninstalling postgresql10 and re-set update-alternatives to use v13 (as it currently says it’s doing), but let’s first look at it in more details:

update-alternatives --display postgresql