yunohost app install joplin
Info: Installing joplin…
Info: Provisioning sources...
Info: Provisioning system_user...
Info: Provisioning install_dir...
Info: Provisioning data_dir...
Info: Provisioning permissions...
Info: Provisioning ports...
Info: Provisioning apt...
Info: Provisioning database...
Warning: cat: /etc/yunohost/psql: Datei oder Verzeichnis nicht gefunden
Warning: cat: /etc/yunohost/psql: Datei oder Verzeichnis nicht gefunden
Info: [++++++..............] > Installing dependencies...
Info: [######..............] > Setting up source files...
Info: [######+++++++++.....] > Building joplin...
Info: '/var/www/joplin/build/.yarn/berry' wasn't deleted because it doesn't exist.
Info: [###############+....] > Adding system configurations related to joplin...
Info: [################+...] > Adding a configuration file...
Info: [#################+..] > Starting a systemd service...
Warning: (this may take some time)
Warning: The service joplin didn't fully executed the action start before the timeout.
Warning: Please find here an extract of the end of the log of the service joplin:
Warning: Aug 31 18:34:53 node[333911]: 2025-08-31 18:34:53: App: Connection check: { latestMigration: null, isCreated: false, error: null }
Warning: Aug 31 18:34:53 node[333911]: 2025-08-31 18:34:53: App: Auto-migrating database...
Warning: Aug 31 18:34:53 node[333911]: 2025-08-31 18:34:53: [error] db: update "knex_migrations" set "name" = $1 where "name" = $2 - relation "knex_migrations" does not exist {
Warning: Aug 31 18:34:53 node[333911]: "$1": "20250404091200_user_auth_code.js",
Warning: Aug 31 18:34:53 node[333911]: "$2": "202504040912000_user_auth_code.js"
Warning: Aug 31 18:34:53 node[333911]: }
Warning: Aug 31 18:34:53 node[333911]: 2025-08-31 18:34:53: App: Latest migration: { name: '20250720103211_fix_sso_auth_code_expire_at.js', done: true }
Warning: Aug 31 18:34:53 node[333911]: 2025-08-31 18:34:53: App: Not using database replication...
Warning: Aug 31 18:34:54 node[333911]: 2025-08-31 18:34:54: App: Performing main storage check...
Warning: Aug 31 18:34:54 node[333911]: 2025-08-31 18:34:54: App: Database storage is special and cannot be checked this way. If the connection to the database was successful then the storage driver should work too.
Warning: Aug 31 18:34:54 node[333911]: 2025-08-31 18:34:54: App: Performing fallback storage check...
Warning: Aug 31 18:34:54 node[333911]: [Error: Could not write content to storage: EACCES: permission denied, open '/home/yunohost.app/joplin/te/st/testingconnectionYZFVyljO'] {
Warning: Aug 31 18:34:54 node[333911]: errno: -13,
Warning: Aug 31 18:34:54 node[333911]: code: 'EACCES',
Warning: Aug 31 18:34:54 node[333911]: syscall: 'open',
Warning: Aug 31 18:34:54 node[333911]: path: '/home/yunohost.app/joplin/te/st/testingconnectionYZFVyljO'
Warning: Aug 31 18:34:54 node[333911]: }
Warning: Aug 31 18:34:54 systemd[1]: joplin.service: Main process exited, code=exited, status=1/FAILURE
Warning: Aug 31 18:34:54 systemd[1]: joplin.service: Failed with result 'exit-code'.
Warning: Aug 31 18:34:54 systemd[1]: joplin.service: Consumed 2.524s CPU time.
Info: [##################+.] > Changing default admin password...
Warning: psql: Fehler: Verbindung zum Server auf Socket »/var/run/postgresql/.s.PGSQL.5432« fehlgeschlagen: FATAL: Peer authentication failed for user "joplin"
Error: Unable to install joplin: An error occurred inside the app installation script
Info: The operation 'Install the 'joplin' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20250831-163114-app_install-joplin' to get help
Warning: Here's an extract of the logs before the crash. It might help debugging the error:
Info: WARNING - Aug 31 18:34:54 node[333911]: }
Info: WARNING - Aug 31 18:34:54 systemd[1]: joplin.service: Main process exited, code=exited, status=1/FAILURE
Info: WARNING - Aug 31 18:34:54 systemd[1]: joplin.service: Failed with result 'exit-code'.
Info: WARNING - Aug 31 18:34:54 systemd[1]: joplin.service: Consumed 2.524s CPU time.
Info: DEBUG - + '[' -e systemd ']'
Info: DEBUG - + ynh_clean_check_starting
Info: DEBUG - + '[' -n 333905 ']'
Info: DEBUG - + kill -SIGTERM 333905
Info: DEBUG - + '[' -n /tmp/tmp.V15WndUXGH ']'
Info: DEBUG - + ynh_secure_remove --file=/tmp/tmp.V15WndUXGH
Info: INFO - [##################+.] > Changing default admin password...
Info: DEBUG - ++ bcrypt_password **********
Info: DEBUG - ++ echo -n **********
Info: DEBUG - ++ python3 -c 'import bcrypt; import sys; print(bcrypt.hashpw(bytes(sys.stdin.read(), '\''ascii'\''), bcrypt.gensalt(rounds=10)).decode('\''ascii'\''))'
Info: DEBUG - + hashed_pwd=**********
Info: DEBUG - + ynh_psql_connect_as --user=joplin --password=********** --database=joplin
Info: DEBUG - + database=joplin
Info: DEBUG - + sudo --login --user=postgres PGUSER=joplin PGPASSWORD=********** psql joplin
Info: WARNING - psql: Fehler: Verbindung zum Server auf Socket »/var/run/postgresql/.s.PGSQL.5432« fehlgeschlagen: FATAL: Peer authentication failed for user "joplin"
Info: DEBUG - + ynh_exit_properly
Warning: Removing the app after installation failure…
Info: [++++++++++..........] > Removing system configurations related to joplin...
Info: [####################] > Removal of joplin completed
Info: Deprovisioning database...
Warning: cat: /etc/yunohost/psql: Datei oder Verzeichnis nicht gefunden
Warning: cat: /etc/yunohost/psql: Datei oder Verzeichnis nicht gefunden
Warning: cat: /etc/yunohost/psql: Datei oder Verzeichnis nicht gefunden
Warning: cat: /etc/yunohost/psql: Datei oder Verzeichnis nicht gefunden
Warning: cat: /etc/yunohost/psql: Datei oder Verzeichnis nicht gefunden
Info: Deprovisioning apt...
Info: Deprovisioning ports...
Info: Deprovisioning permissions...
Info: Deprovisioning data_dir...
Info: Deprovisioning install_dir...
Info: Deprovisioning system_user...
Info: Deprovisioning sources...
Error: The operation 'Install the 'joplin' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20250831-163114-app_install-joplin' to get help
Everything related to Postgres was created using yunohost app install.
No manual changes have been made to the configuration.
netstat -tulpen|grep postgres
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 120 21452 1046/postgres
tcp 0 0 127.0.0.1:5433 0.0.0.0:* LISTEN 120 24599 1057/postgres
tcp6 0 0 ::1:5432 :::* LISTEN 120 21453 1046/postgres
tcp6 0 0 ::1:5433
service postgresql status
● postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; preset: enabled)
Active: active (exited) since Sun 2025-08-31 11:43:39 CEST; 23h ago
Main PID: 1536 (code=exited, status=0/SUCCESS)
CPU: 1ms
Aug 31 11:43:39 ynh.maindomain.tld systemd[1]: Starting postgresql.service - PostgreSQL RDBMS...
Aug 31 11:43:39 ynh.maindomain.tld systemd[1]: Finished postgresql.service - PostgreSQL RDBMS.
dpkg -l | grep postgresql
ii libreoffice-sdbc-postgresql 4:7.4.7-1+deb12u8 amd64 PostgreSQL SDBC driver for LibreOffice
ii postgresql 17+281.pgdg120+1 all object-relational SQL database (supported version)
ii postgresql-15 15.13-0+deb12u1 amd64 The World's Most Advanced Open Source Relational Database
ii postgresql-15-postgis-3 3.3.2+dfsg-1+b1 amd64 Geographic objects support for PostgreSQL 15
ii postgresql-15-postgis-3-scripts 3.3.2+dfsg-1 all Geographic objects support for PostgreSQL 15 -- SQL scripts
ii postgresql-16 16.10-1.pgdg12+1 amd64 The World's Most Advanced Open Source Relational Database
ii postgresql-16-pgvector 0.8.0-1.pgdg120+1 amd64 Open-source vector similarity search for Postgres
ii postgresql-17 17.6-1.pgdg12+1 amd64 The World's Most Advanced Open Source Relational Database
ii postgresql-client-15 15.13-0+deb12u1 amd64 front-end programs for PostgreSQL 15
ii postgresql-client-16 16.10-1.pgdg12+1 amd64 front-end programs for PostgreSQL 16
ii postgresql-client-17 17.6-1.pgdg12+1 amd64 front-end programs for PostgreSQL 17
ii postgresql-client-common 281.pgdg120+1 all manager for multiple PostgreSQL client versions
ii postgresql-common 281.pgdg120+1 all PostgreSQL database-cluster manager
ii postgresql-common-dev 281.pgdg120+1 all extension build tool for multiple PostgreSQL versions
ii postgresql-postgis 3.3.2+dfsg-1+b1 amd64 Geographic objects support for PostgreSQL -- Metapackage
ii postgresql-postgis-scripts 3.3.2+dfsg-1 all Geographic objects support for PostgreSQL -- SQL scripts metapackage
Est-ce qu’il se pourrait que tu avais tenté une install de joplin dans le passé (qui peut-être avait marché ou pas), puis tu as désinstallé l’app (ou elle s’est déinstallé toute seule suite à une install échouée), puis à un moment tu as installé tooljet, puis tu as réinstallé joplin plus tard ?
(Pas que c’est pas censé marcher, mais j’essaye de comprendre le scénario derrière l’origine du bug)
In the meantime you can install it using the CLI with the explicit URL, sudo yunohost app install https://github.com/YunoHost-Apps/joplin_ynh/ (it will warn you that you’re not installing from the catalog but that’s ok)
You can also enter that URL at the bottom of the app catalog page in the webadmin to achieve the same result