Joplin cannot be installed: 502 Bad Gateway

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.17
What app is this about: Joplin

Describe your issue

After installing Joplin from the webadmin UI on a separate subdomain, I tried to start Joplin from the app list UI. The result was “502 Bad Gateway”. I looked at the services: the Joplin service was not running.

Below is the log which says: “Could not write content to storage: EACCES: permission denied”.

If anyone could help, it would be great.

Share relevant logs or error messages

Hi,
Could you check permissions set on /home/yunohost.app/joplin ? (ls -ld /home/yunohost.app/joplin)

drwxr-x--- 3 joplin joplin 4096 Mar 21 09:07 /home/yunohost.app/joplin

Mar 21 seems to be an old relic, when I tried the same before.

and namei -l /home/yunohost.app/joplin/te/st/testingconnectionpisieLrT

namei -l /home/yunohost.app/joplin/te/st/testingconnectionpisieLrT
f: /home/yunohost.app/joplin/te/st/testingconnectionpisieLrT
drwxr-xr-x root   root   /
drwxr-xr-x root   root   home
drwxr-xr-x root   root   yunohost.app
drwxr-x--- joplin joplin joplin
                         te - Permission denied

Once again:

sudo namei -l /home/yunohost.app/joplin/te/st/testingconnectionpisieLrT
[sudo] password for admin: 
f: /home/yunohost.app/joplin/te/st/testingconnectionpisieLrT
drwxr-xr-x root   root   /
drwxr-xr-x root   root   home
drwxr-xr-x root   root   yunohost.app
drwxr-x--- joplin joplin joplin
drwxr-xr-x 988    988    te
drwxr-xr-x 988    988    st
                         testingconnectionpisieLrT - No such file or directory

Try to set permissions as:

drwxr-xr-x joplin joplin te
drwxr-xr-x joplin joplin st

chown -R joplin:joplin /home/yunohost.app/joplin/te/

Thank, that works great!