After re-installing Joplin, everything works !
Thank you @Aleks !
Complete solution :
- Inspect : sudo 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
15 main 5433 online postgres /var/lib/postgresql/15/main /var/log/postgresql/postgresql-15-main.log
- sudo aptitude why postgresql-11
i joplin-ynh-deps Depends postgresql-client
i A postgresql-client-11 Provides postgresql-client
i A postgresql-client-11 Suggests postgresql-11
- apt remove postgresql-11 --dry-run
apt remove postgresql-11 --dry-run
NOTE: This is only a simulation!
apt needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
libicu63 libldap-2.4-2 libllvm7
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
postgresql-11
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Remv postgresql-11 [11.18-0+deb10u1]
- Remove wrong version of postgresql : sudo apt remove postgresql-11
- Inspect : sudo pg_lsclusters
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
15 main 5433 online postgres /var/lib/postgresql/15/main /var/log/postgresql/postgresql-15-main.log
- If no more access to Yunohost instance, try :
- sudo sed ‘s/5432/5499/g’ -i /etc/postgresql/11/main/postgresql.conf
- sudo sed ‘s/5433/5432/g’ -i /etc/postgresql/15/main/postgresql.conf
- sudo systemctl restart postgresql
- sudo pg_lsclusters
- Yunohost instance should be back online
- Reinstall Joplin