What type of hardware are you using: VPS bought online What YunoHost version are you running: 12.0.16 How are you able to access your server: SSH Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: no
Describe your issue
Upgraded today the system. After this, the services of the installed apps does not start anymore. Log shows Permission denied., same for all apps: forgejo, hedgedoc, minetest, open-web-calendar, wekan
All apps in /var/www have www-data as user and group
I post this here and not in app, as it is a general problem after update of base system
Share relevant logs or error messages
Changing to the requested working directory failed: Permission denied
forgejo.service: Failed at step CHDIR spawning /var/www/forgejo/forgejo: Permission hastebin
wekan.service: Changing to the requested working directory failed: Permission denied
wekan.service: Failed at step CHDIR spawning /opt/node_n/n/versions/node/14/bin/node: Permission denied
Actually, all apps have www-data as owner and as group. I did just run the first the system update, after this the update of the apps. This resulted from the update.
drwxrwx---+ 3 forgejo forgejo 4096 12 mars 15:38 custom
-rwxrwx---+ 1 forgejo forgejo 109815496 2 mai 19:10 forgejo
But starting the service, I have still the same error:
forgejo.service: Changing to the requested working directory failed: Permission denied
forgejo.service: Failed at step CHDIR spawning /var/www/forgejo/forgejo: Permission denied
/home/yunohost.app/forgejo is on forgejo:forgejo as well
Tried to reinstall webcalendar, as update has deleted the app. https://paste.yunohost.org/raw/odejoguwam
Friend having his own yunohost checked my system, said, that there is a problem with ACL records for /var/www. Oh, web interface runs, but klick on Groups and permissions hangs
To add: VPS hoster has changed IP few days ago and said, “they had to reorganize the system” – but no idea, what they did. It’s a VPS with preconfigured Yunohost
Est-ce que tu as une quelconque erreur ou warning dans les logs de l’upgrade ? Que toutes les apps du dossiers /var/www appartiennent à www-data après la mise à jour est le signe que qqch ne s’est pas bien passé.
Pour forgejo, les droits ont l’air correctement rétablis mais quelque chose bloque encore: soit ce sont les permissions sur /var/www, soit c’est autre chose.
Regarde ce que dit namei -l /var/www/forgejo/*, getfacl /var/www et essaie un démarrage à la main avec l’tulisateur forgejo sudo -u forgejo /var/www/forgejo/forgejoet regarde si c’est bien lui qui est censé exécuter le service: sudo systemctl cat forgejo.service.
Pour le reste, essaie ceci:
-droits 755 sur le dossier /var/www (sans récursivité) et sur le dossier /var/www/forgejo avec récursivité et essaie de démarrer le service. Ça doit venir de là : le répertoire /var/www n’est pas accessible aux autres.