Can't install Joplin

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.1.16
What app is this about: Joplin 3.4.7~ynh1

Describe your issue

Can’t install the app.

Share relevant logs or error messages

https://paste.yunohost.org/raw/jorasuludi

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

Check if PostgreSQL is missing
dpkg -l | grep postgresql
and if nothing shows install it
sudo apt install postgresql -y
sudo systemctl enable --now postgresql

Above on your own risk by the way, I’m just a user like you.

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

Can you share the output of sudo namei -l /home/yunohost.app/joplin/te/st/ ?

f: /home/yunohost.app/joplin/te/st/
drwxr-xr-x root       root       /
drwxr-xr-x root       root       home
drwxr-xr-x root       root       yunohost.app
drwxr-x--- linkwarden linkwarden joplin
drwxr-xr-x tooljet    tooljet    te
drwxr-xr-x tooljet    tooljet    st

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)

Yes, that’s pretty much right.

Ah sorry for the french haha my brain is constantly switching between the two …

Anyway I’ll try to push a fix

1 Like

Should be fixed by Testing / make sure $data_dir is owned by $app at install by alexAubin · Pull Request #111 · YunoHost-Apps/joplin_ynh · GitHub but that version wont be available in the official catalog for a couple hours

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

(Or wait ~4 hours and install it like usual)

1 Like

Just tried it, but did not work.

https://paste.yunohost.org/raw/gumegasozu

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...
Info: The service joplin has correctly executed the action start.
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 20250901-164109-app_install-joplin' to get help
Warning: Here's an extract of the logs before the crash. It might help debugging the error:
Info: DEBUG - + [[ -n App: Call this for testing ]]
Info: INFO - The service joplin has correctly executed the action start.
Info: DEBUG -
Info: DEBUG - + '[' 4 -ge 3 ']'
Info: DEBUG - + '[' 4 -eq 300 ']'
Info: DEBUG - + ynh_clean_check_starting
Info: DEBUG - + '[' -n 1285167 ']'
Info: DEBUG - + kill -SIGTERM 1285167
Info: DEBUG - + '[' -n /tmp/tmp.gLPBeYhw8j ']'
Info: DEBUG - + ynh_secure_remove --file=/tmp/tmp.gLPBeYhw8j
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 20250901-164109-app_install-joplin' to get help
r

Hmmmyeah not sure what’s going on here with postgresql but our automatic tests are reporting the same issue …

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.