Closer investigation of my postgresql migration problem reveals that I have the same error messages as @chmeyer in addition to the locale problem experienced by several, eg. @echapon. The postgresql upgrade logs state
ERROR: could not access file "$libdir/postgis-2.5": No such file or director
y
And the loadable_libraries.txt file in the log directory says
could not load library "$libdir/postgis-2.5": ERROR: could not access file "$libdir/postgis-2.5": No such file or directory
In database: mobilizon
could not load library "$libdir/rtpostgis-2.5": ERROR: could not access file "$libdir/rtpostgis-2.5": No such file or directory
In database: mobilizon
This is exactly the same as chmeyerâs problem. The postgis package postgresql-11-postgis-2.5 is already automatically installed. Installing postgresql-13-postgis-3 did not help, so I removed it.
The locale problems donât show up in the postgresql log directory, but in the yunohost migrations log.
Afterwards dovecot service was able to start again without problems
- Aug 18 09:07:26 systemd[1]: Starting Dovecot IMAP/POP3 email server...
- Aug 18 09:07:26 dovecot[927]: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 26: ssl_dh: Can't open file /usr/share/yunohost/other/ffdhe2048.pem: No such file or directory
- Aug 18 09:07:26 systemd[1]: dovecot.service: Main process exited, code=exited, status=89/n/a
- Aug 18 09:07:26 systemd[1]: dovecot.service: Failed with result 'exit-code'.
- Aug 18 09:07:26 systemd[1]: Failed to start Dovecot IMAP/POP3 email server.
- Aug 18 09:13:47 systemd[1]: Starting Dovecot IMAP/POP3 email server...
- Aug 18 09:13:47 dovecot[3897]: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 26: ssl_dh: Can't open file /usr/share/yunohost/other/ffdhe2048.pem: No such file or directory
- Aug 18 09:13:47 systemd[1]: dovecot.service: Main process exited, code=exited, status=89/n/a
- Aug 18 09:13:47 systemd[1]: dovecot.service: Failed with result 'exit-code'.
- Aug 18 09:13:47 systemd[1]: Failed to start Dovecot IMAP/POP3 email server.
The good solution is to force-regen the conf for dovecot with yunohost tools regen-conf dovecot --dry-run --with-diff and yunohost tools regen-conf dovecot --force
Yes, technically that works, yet thatâs not the proper fix. If everybody had this issue, we would have taken care of it, so maybe ask yourself 2 minutes why you have this issue and not the others. The reason is probably that you manually edited dovecotâs conf file therefore the regen-conf is not upgrading it, and in particular it doesnât upgrade the line mapping to the certificate.
So what you should do is run yunohost tools regen-conf dovecot --dry-run --with-diff, review the diff, and yunohost tools regen-conf dovecot --force if youâre happy with the diff.
Aug 18 16:39:49 python[5422]: /opt/yunohost/matrix-synapse/bin/python: Error while finding module specification for 'synapse.app.homeserver' (ModuleNotFoundError: No module named 'synapse')
Port 8448 is not reachable - which was okay before the Bullseye-upgrade. Iâm on a Hetzner VPS without firewall on that VPS.
I am so amazed by your work and the quality it provides time and time again. This is hands down the best and most practical piece of software I have been using the last 7 years. Thank you so much!
hello all, and many thx yunohost you stay awesome.
after struggling with migration postgres, i found the solution (for me) on good old stackoverflow.
Verify the current cluster is the still the old version:
$ pg_lsclusters
Ver Cluster Port Status Owner Data directory Log file
11 main 5432 online postgres /var/lib/postgresql/11/main /var/log/postgresql/postgresql-11-main.log
13 main 5434 down postgres /var/lib/postgresql/13/main /var/log/postgresql/postgresql-13-main.log
Run pg_dropcluster 13 main as user postgres:
$ sudo -u postgres pg_dropcluster 13 main
Warning: systemd was not informed about the removed cluster yet.
Operations like "service postgresql start" might fail. To fix, run:
sudo systemctl daemon-reload
Run the pg_upgradecluster command as user postgres:
$ sudo -u postgres pg_upgradecluster 11 main
Verify that everything works, and that the only online cluster is now 13:
$ pg_lsclusters
Ver Cluster Port Status Owner Data directory Log file
11 main 5434 down postgres /var/lib/postgresql/11/main /var/log/postgresql/postgresql-11-main.log
13 main 5432 online postgres /var/lib/postgresql/13/main /var/log/postgresql/postgresql-13-main.log
**Drop the old cluster: //ONLY IN CASE NO ERRORS APPEAR**
$ sudo -u postgres pg_dropcluster 11 main
Uninstall the previous version of PostgreSQL:
$ sudo apt remove 'postgresql*11'
after that i restarted nginx (dont know it necessary)
and have to restart postgres cluster twice to get mobilizon workable (got an heart attack mobilizon was empty after first restart) with
Warning: E: The repository 'https://last-public-ovh-rtm.snap.mirrors.ovh.net/debian bullseye Release' does not have a Release file.
Warning: E: The repository 'https://last-public-ovh-metrics.snap.mirrors.ovh.net/debian bullseye Release' does not have a Release file.
Info: + mygpo-ynh-deps : Depends: python3-pip but it is not going to be installed
Info: + radicale-ynh-deps : Depends: python-pip but it is not going to be installed
Info: + Depends: python-virtualenv but it is not going to be installed
Info: + Depends: python-dev
Info: + Depends: uwsgi-plugin-python but it is not going to be installed
Ver Cluster Port Status Owner Data directory Log file
11 main 5432 down,binaries_missing postgres /var/lib/postgresql/11/main /var/log/postgresql/postgresql-11-main.log
13 main 5433 online postgres /var/lib/postgresql/13/main /var/log/postgresql/postgresql-13-main.log
Apparently, Yunohost is searching for the psql on 5432.
psql: error: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Could not run script: /usr/share/yunohost/hooks/conf_regen/35-postgresql
Iâm currently not sure what to do to fix my psql issueâŠ?
Iâm running Yunohost on Armbian 22.05.3 Buster on a PineRockPro64.
Can I start the Yunohost 11.0 (Bullseye) Migration and it should work as expected?