Nginx: Erreurs 403 et sites/domaines suite à manip Wordpress

Matériel: Raspberry Pi 4 model B. image Debian buster
Version de YunoHost: 4.3.6.2 (stable) derrière freebox mini 4K
J’ai accès à mon serveur : En SSH | Par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non

Bonjour,

J’héberge sur Yunohost un blog sous Wordpress, un serveur mail, une instance Nextcloud et divers autres services (Wallabag, un blog ghost, une instance FreshRSS…).

Il y a quelques temps, J’avais modifié manuellement la config NGINX pour permettre l’affichage de “belles urls” dans Wordpress. Ça fonctionnait, malgré un ralentissement notable.

Il y a deux jours, j’ai voulu modifier la landing page de ce blog, via les outils de configuration graphique du thème de wordpress. Depuis, le blog est inaccessible, et j’ai des erreurs NGINX tous azimuts - 402, 403 ou 404, ou parfois “file not found” ou “error context init”.

J’ai retiré mes modifications manuelles du fichier de conf nginx; j’ai réussi brièvement à accéder à l’admin de Worpdress, et même à remettre les URLs standards; tout ça n’y a rien fait, et même pire: c’est maintenant presque l’ensemble des services qui est inaccessible, sur deux domaines différents.

Seule l’admin de Yunohost m’est encore accessible, et mon serveur mail est opérationnel (j’y accède via Thunderbird). En revanche, les mises à jour échouent.

J’imagine que c’est la config de Nginx qui est cassée. Comment est-ce que je pourrais réparer ça?

Merci pour votre aide!

sudo yunohost tools regen-conf
que donne le diagnostic ?

Salut et merci pour ta réponse. Voilà la sortie:

$ sudo yunohost tools regen-conf
Warning: The configuration file '/etc/ssh/sshd_config' has been manually modified and will not be updated
Warning: The configuration file '/etc/ldap/slapd.ldif' has been manually modified and will not be updated
Success! Configuration updated for 'dnsmasq'
dnsmasq: 
  applied: 
    /etc/resolv.dnsmasq.conf: 
      status: updated
  pending: 
slapd: 
  applied: 
  pending: 
    /etc/ldap/slapd.ldif: 
      status: modified
ssh: 
  applied: 
  pending: 
    /etc/ssh/sshd_config: 
      status: modified

Désolé c’était plutôt
yunohost tools regen-conf nginx --force
Sinon as tu modifié les fichiers qu’il est dit qu’ils ont été modifiés ?
Et le diagnostic ?

J’ai lancé la commande, je n’ai aucune sortie - pas de message d’erreur non plus.

Le diagnostic affiche un avertissement concernant la config système, le même qui apparaissait précédemment:

Le fichier de configuration /etc/ssh/sshd_config semble avoir été modifié manuellement.

Autrement, le service ghost est failed, et sinon, RAS.

Non! C’est ça qui est surprenant…

Donc on commence par
yunohost tools regen-conf --force
Puis on vérifie le log de nginx. Tu peux trouver tous les logs dans services >nginx. Ceux qui nous intéressent sont ceux qui se terminent par error.

Hello,

D’abord deux précisions, j’avais zappé, désolé:

  • comme j’avais un backup du wordpress et que je prévoyais une migration du blog vers une autre solution, voyant les erreurs d’accès à répétition j’ai supprimé la webapp.
  • J’ai bidouillé les permissions sur /var/www/ pour accéder à la webapp en FTP sans être root. Si je ne me suis pas trompé j’ai remis ensuite tous les dossiers en 755 et tous les fichiers en 644 (c’est ce que j’ai trouvé comme paramètres conseillés pour Wordpress).

Ensuite, la sortie du terminal:

$ sudo yunohost tools regen-conf --force
[sudo] password for jeremy: 
Warning: The ssh configuration has been manually modified, but you need to explicitly specify category 'ssh' with --force to actually apply the changes.
Success! Configuration updated for 'slapd'
Success! Configuration updated for 'dnsmasq'
Warning: Warning: The unit file, source configuration file or drop-ins of slapd.service changed on disk. Run 'systemctl daemon-reload' to reload units.
dnsmasq: 
  applied: 
    /etc/resolv.dnsmasq.conf: 
      status: updated
  pending: 
slapd: 
  applied: 
    /etc/ldap/slapd.ldif: 
      status: force-removed
  pending: 
ssh: 
  applied: 
  pending: 
    /etc/ssh/sshd_config: 
      status: modified

Le log des erreurs d’accès Nginx à mon.domaine.me (j’ai anonymisé);

2022/03/05 11:31:21 [crit] 1544#1544: *2838 stat() "/var/www/nextcloud/remote.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:789c:9ad3:390c:e0e5, server: mon.domaine.me, request: "OPTIONS /nuage/remote.php/dav/principals/users/marie/ HTTP/2.0", host: "mon.domaine.me"
2022/03/05 11:31:22 [crit] 1544#1544: *2839 stat() "/var/www/nextcloud/remote.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:789c:9ad3:390c:e0e5, server: mon.domaine.me, request: "PROPFIND /nuage/remote.php/dav/principals/users/marie/ HTTP/2.0", host: "mon.domaine.me"
2022/03/05 11:31:22 [crit] 1544#1544: *2840 stat() "/var/www/nextcloud/remote.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:789c:9ad3:390c:e0e5, server: mon.domaine.me, request: "PROPFIND /nuage/remote.php/dav/calendars/marie/ HTTP/2.0", host: "mon.domaine.me"
2022/03/05 11:38:02 [crit] 1544#1544: *2848 stat() "/var/www/nextcloud/index.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:9921:ded0:3af4:b530, server: mon.domaine.me, request: "GET /nuage/index.php/204 HTTP/2.0", host: "mon.domaine.me"
2022/03/05 11:55:03 [crit] 1544#1544: *2869 stat() "/var/www/nextcloud/index.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:9921:ded0:3af4:b530, server: mon.domaine.me, request: "GET /nuage/index.php/204 HTTP/2.0", host: "mon.domaine.me"
2022/03/05 12:10:35 [crit] 1544#1544: *2885 stat() "/var/www/nextcloud/index.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:9921:ded0:3af4:b530, server: mon.domaine.me, request: "GET /nuage/index.php/204 HTTP/2.0", host: "mon.domaine.me"
2022/03/05 12:26:02 [crit] 1544#1544: *2909 stat() "/var/www/nextcloud/index.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:9921:ded0:3af4:b530, server: mon.domaine.me, request: "GET /nuage/index.php/204 HTTP/2.0", host: "mon.domaine.me"
2022/03/05 12:41:34 [crit] 1544#1544: *2929 stat() "/var/www/nextcloud/index.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:9921:ded0:3af4:b530, server: mon.domaine.me, request: "GET /nuage/index.php/204 HTTP/2.0", host: "mon.domaine.me"
2022/03/05 12:41:34 [crit] 1544#1544: *2930 stat() "/var/www/nextcloud/index.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:9921:ded0:3af4:b530, server: mon.domaine.me, request: "GET /nuage/index.php/204 HTTP/2.0", host: "mon.domaine.me"
2022/03/05 12:41:34 [crit] 1547#1547: *2932 stat() "/var/www/nextcloud/index.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:9921:ded0:3af4:b530, server: mon.domaine.me, request: "GET /nuage/index.php/204 HTTP/2.0", host: "mon.domaine.me"
2022/03/05 12:41:34 [crit] 1544#1544: *2931 stat() "/var/www/nextcloud/index.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:9921:ded0:3af4:b530, server: mon.domaine.me, request: "GET /nuage/index.php/204 HTTP/2.0", host: "mon.domaine.me"
2022/03/05 12:41:34 [crit] 1547#1547: *2936 stat() "/var/www/nextcloud/index.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:9921:ded0:3af4:b530, server: mon.domaine.me, request: "GET /nuage/index.php/204 HTTP/2.0", host: "mon.domaine.me"
2022/03/05 12:41:34 [crit] 1544#1544: *2935 stat() "/var/www/nextcloud/index.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:9921:ded0:3af4:b530, server: mon.domaine.me, request: "GET /nuage/index.php/204 HTTP/2.0", host: "mon.domaine.me"
2022/03/05 12:56:35 [crit] 1544#1544: *2961 stat() "/var/www/nextcloud/index.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:9921:ded0:3af4:b530, server: mon.domaine.me, request: "GET /nuage/index.php/204 HTTP/2.0", host: "mon.domaine.me"
2022/03/05 12:56:35 [crit] 1547#1547: *2962 stat() "/var/www/nextcloud/index.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:9921:ded0:3af4:b530, server: mon.domaine.me, request: "GET /nuage/index.php/204 HTTP/2.0", host: "mon.domaine.me"
2022/03/05 12:56:35 [crit] 1544#1544: *2964 stat() "/var/www/nextcloud/index.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:9921:ded0:3af4:b530, server: mon.domaine.me, request: "GET /nuage/index.php/204 HTTP/2.0", host: "mon.domaine.me"
2022/03/05 12:56:35 [crit] 1544#1544: *2965 stat() "/var/www/nextcloud/index.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:9921:ded0:3af4:b530, server: mon.domaine.me, request: "GET /nuage/index.php/204 HTTP/2.0", host: "mon.domaine.me"
2022/03/05 12:56:36 [crit] 1544#1544: *2966 stat() "/var/www/nextcloud/index.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:9921:ded0:3af4:b530, server: mon.domaine.me, request: "GET /nuage/index.php/204 HTTP/2.0", host: "mon.domaine.me"
2022/03/05 13:02:24 [crit] 1544#1544: *2974 stat() "/var/www/nextcloud/index.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:9921:ded0:3af4:b530, server: mon.domaine.me, request: "GET /nuage/index.php/204 HTTP/2.0", host: "mon.domaine.me"
2022/03/05 13:04:37 [crit] 1544#1544: *2976 stat() "/var/www/nextcloud/index.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:9921:ded0:3af4:b530, server: mon.domaine.me, request: "GET /nuage/index.php/204 HTTP/2.0", host: "mon.domaine.me"
2022/03/05 13:12:06 [crit] 1544#1544: *2989 stat() "/var/www/nextcloud/index.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:9921:ded0:3af4:b530, server: mon.domaine.me, request: "GET /nuage/index.php/204 HTTP/2.0", host: "mon.domaine.me"
2022/03/05 13:27:09 [crit] 1544#1544: *3006 stat() "/var/www/nextcloud/index.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:9921:ded0:3af4:b530, server: mon.domaine.me, request: "GET /nuage/index.php/204 HTTP/2.0", host: "mon.domaine.me"
2022/03/05 13:29:51 [crit] 1544#1544: *3009 stat() "/var/www/nextcloud/remote.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "GET /nuage/remote.php/webdav/ HTTP/1.1", host: "mon.domaine.me"
2022/03/05 13:29:55 [crit] 1544#1544: *3010 stat() "/var/www/nextcloud/remote.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "PROPFIND /nuage/remote.php/caldav/ HTTP/1.1", host: "mon.domaine.me"
2022/03/05 13:29:55 [crit] 1544#1544: *3012 stat() "/var/www/nextcloud/remote.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "PROPFIND /nuage/remote.php/dav/ HTTP/1.1", host: "mon.domaine.me"
2022/03/05 13:29:55 [crit] 1544#1544: *3014 stat() "/var/www/nextcloud/remote.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "GET /nuage/remote.php/webdav/ HTTP/1.1", host: "mon.domaine.me"
2022/03/05 13:29:55 [crit] 1544#1544: *3015 stat() "/var/www/nextcloud/remote.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "GET /nuage/remote.php/webdav/ HTTP/1.1", host: "mon.domaine.me"
2022/03/05 13:29:55 [crit] 1544#1544: *3016 stat() "/var/www/nextcloud/remote.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "GET /nuage/remote.php/webdav/ HTTP/1.1", host: "mon.domaine.me"
2022/03/05 13:29:55 [crit] 1544#1544: *3017 stat() "/var/www/nextcloud/remote.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "GET /nuage/remote.php/webdav/ HTTP/1.1", host: "mon.domaine.me"
2022/03/05 13:29:55 [crit] 1544#1544: *3018 stat() "/var/www/nextcloud/remote.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "GET /nuage/remote.php/webdav/ HTTP/1.1", host: "mon.domaine.me"
2022/03/05 13:29:57 [crit] 1544#1544: *3019 stat() "/var/www/nextcloud/ocs/v1.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "GET /nuage/ocs/v1.php/cloud/user?format=json HTTP/2.0", host: "mon.domaine.me"
2022/03/05 13:29:59 [crit] 1544#1544: *3020 stat() "/var/www/wallabag2/web/oauth/v2/token" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "POST /plustard/oauth/v2/token HTTP/2.0", host: "mon.domaine.me"
2022/03/05 13:29:59 [error] 1544#1544: *3020 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "POST /plustard/oauth/v2/token HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm-wallabag2.sock:", host: "mon.domaine.me"
2022/03/05 13:30:01 [crit] 1544#1544: *3022 stat() "/var/www/nextcloud/status.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "GET /nuage/status.php HTTP/1.1", host: "mon.domaine.me"
2022/03/05 13:30:01 [crit] 1544#1544: *3022 stat() "/var/www/nextcloud/index.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "GET /nuage/nextcloud/status.php HTTP/1.1", host: "mon.domaine.me"
2022/03/05 13:30:04 [crit] 1544#1544: *3024 stat() "/var/www/nextcloud/remote.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "PROPFIND /nuage/remote.php/dav/calendars/jeremy/personnel-1/ HTTP/2.0", host: "mon.domaine.me"
2022/03/05 13:30:04 [crit] 1544#1544: *3024 stat() "/var/www/nextcloud/remote.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "PROPFIND /nuage/remote.php/dav/calendars/jeremy/agenda-partag/ HTTP/2.0", host: "mon.domaine.me"
2022/03/05 13:30:04 [crit] 1544#1544: *3024 stat() "/var/www/nextcloud/remote.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "PROPFIND /nuage/remote.php/dav/calendars/jeremy/personal/ HTTP/2.0", host: "mon.domaine.me"
2022/03/05 13:30:05 [crit] 1544#1544: *3027 stat() "/var/www/nextcloud/remote.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "PROPFIND /nuage/remote.php/dav/addressbooks/users/jeremy/z-app-generated--contactsinteraction--recent/ HTTP/2.0", host: "mon.domaine.me", referrer: "https://mon.domaine.me/nuage/remote.php/dav/addressbooks/users/jeremy/z-app-generated--contactsinteraction--recent/"
2022/03/05 13:30:05 [crit] 1544#1544: *3027 stat() "/var/www/nextcloud/remote.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "PROPFIND /nuage/remote.php/dav/addressbooks/users/jeremy/contacts/ HTTP/2.0", host: "mon.domaine.me", referrer: "https://mon.domaine.me/nuage/remote.php/dav/addressbooks/users/jeremy/z-app-generated--contactsinteraction--recent/"
2022/03/05 13:31:02 [crit] 1544#1544: *3028 stat() "/var/www/nextcloud/status.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "GET /nuage/status.php HTTP/1.1", host: "mon.domaine.me"
2022/03/05 13:31:02 [crit] 1544#1544: *3028 stat() "/var/www/nextcloud/index.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "GET /nuage/nextcloud/status.php HTTP/1.1", host: "mon.domaine.me"
2022/03/05 13:32:04 [crit] 1544#1544: *3032 stat() "/var/www/nextcloud/status.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "GET /nuage/status.php HTTP/1.1", host: "mon.domaine.me"
2022/03/05 13:32:04 [crit] 1544#1544: *3032 stat() "/var/www/nextcloud/index.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "GET /nuage/nextcloud/status.php HTTP/1.1", host: "mon.domaine.me"
2022/03/05 13:33:06 [crit] 1544#1544: *3062 stat() "/var/www/nextcloud/status.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "GET /nuage/status.php HTTP/1.1", host: "mon.domaine.me"
2022/03/05 13:33:06 [crit] 1544#1544: *3062 stat() "/var/www/nextcloud/index.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "GET /nuage/nextcloud/status.php HTTP/1.1", host: "mon.domaine.me"
2022/03/05 13:34:08 [crit] 1544#1544: *3063 stat() "/var/www/nextcloud/status.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "GET /nuage/status.php HTTP/1.1", host: "mon.domaine.me"
2022/03/05 13:34:08 [crit] 1544#1544: *3063 stat() "/var/www/nextcloud/index.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "GET /nuage/nextcloud/status.php HTTP/1.1", host: "mon.domaine.me"
2022/03/05 13:35:10 [crit] 1544#1544: *3065 stat() "/var/www/nextcloud/status.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "GET /nuage/status.php HTTP/1.1", host: "mon.domaine.me"
2022/03/05 13:35:10 [crit] 1544#1544: *3065 stat() "/var/www/nextcloud/index.php" failed (13: Permission denied), client: 2a01:e0a:570:1b10:dc8c:3486:fff9:4f8e, server: mon.domaine.me, request: "GET /nuage/nextcloud/status.php HTTP/1.1", host: "mon.domaine.me

Pour le coup ce sont bien des erreurs de permissions… Vu que j’ai appliqué les modifs de permissions sur /var/www ça doit venir de là, mais je ne sais pas comment rétablir les bonnes permissions…

Je ne suis pas sûr mais essaye
sudo apt --reinstall install nextcloud puis vérifie si nextcloud fonctionne correctement

Il n’y a pas de dangers pour les données en réinstallant de cette manière?

Non, ça va juste réinstaller l’application sans toucher aux données. Tu peux essayer avec une autre application

1 Like
$ sudo apt --reinstall install nextcloud
[sudo] password for jeremy: 
Sorry, try again.
[sudo] password for jeremy: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package nextcloud

:thinking:
Nextcloud est bien présent dans la liste des applis sur l’interface d’admin graphique de Yunohost…

Oui parce que je me suis trompé
sudo yunohost app install nextcloud --reinstall
C’est une application yunohost :sweat_smile:

1 Like
$ sudo yunohost app install nextcloud --reinstall
usage: yunohost {app} ...
                [-h] [--output-as {json,plain,none}] [--debug] [--quiet]
                [--timeout ==SUPPRESS==] [-v]
yunohost: error: unrecognized arguments: --reinstall

Je tourne autour de la commande en plaçant réinstall avant nextcloud, etc. mais ça ne fonctionne pas!

1 Like

Je l’ai vu passer il y a quelques semaines

sudo yunohost app upgrade nextcloud --force

1 Like

Bon… La commande a planté et semble avoir supprimé mon install de Nextcloud…

$ sudo yunohost app upgrade nextcloud --force
Info: Now upgrading nextcloud...
Info: [....................] > Loading installation settings...
Info: [+...................] > Ensuring downward compatibility...
Info: [#+++++++++..........] > Backing up the app before upgrading (may take a while)...
Info: [##########++........] > Upgrading dependencies...
Info: [############........] > Making sure dedicated system user exists...
Info: [############........] > Upgrading PHP-FPM configuration...
Info: [############+.......] > Upgrading NGINX web server configuration...
Info: The service nginx has correctly executed the action reload-or-restart.
Info: [#############+......] > Upgrading Nextcloud...
Warning: [Error] Upgrade failed.

J’ai tenté de relancer, mais:

$ sudo yunohost app upgrade nextcloud --force
Error: Could not find nextcloud in the list of installed apps

:frowning:
Je m’arrête là pour ce soir. Merci pour ton aide, je reprends demain si je trouve du temps. Pas sûr que le problème soit spécifiquement lié à Nextcloud parce qu’il y a d’autres services qui restent inaccessibles.

Sur mon serveur

root@home:/var/www# ls -la
total 92
drwxr-xr-x+ 23 root        root      4096 mars   4 23:28 .
drwxr-xr-x  15 root        root      4096 nov.  26 23:55 ..
drwxr-x---   5 diagramsnet www-data  4096 févr. 18 19:21 diagramsnet
drwxr-x---   8 dokuwiki    www-data  4096 févr. 28 22:36 dokuwiki
drwxr-xr-x   2 root        root      4096 févr.  6 10:23 html
drwxr-x---   9 kanboard    www-data  4096 févr.  3 20:16 kanboard
drwxr-x---  13 matomo      www-data  4096 févr.  6 16:16 matomo
drwxr-x---   5 root        www-data  4096 oct.  27 18:29 mindmaps
drwxrwx--x+  3 root        root      4096 janv. 14 15:06 my_webapp
drwxr-x---+  3 root        root      4096 janv. 16 18:35 my_webapp__2
drwxr-x---  13 nextcloud   www-data  4096 févr. 27 14:46 nextcloud
drwxr-xr-x   5 root        root      4096 déc.  17 10:18 onlyofficedrwxr-x---   7 owntracks   www-data  4096 déc.  31 01:34 owntracks
drwxr-x---  14 phpmyadmin  www-data  4096 févr. 14 10:07 phpmyadmindrwxr-x---  12 phpsysinfo  www-data  4096 févr.  3 03:44 phpsysinfodrwxr-xr-x   4 rainloop    www-data  4096 janv. 10 19:43 rainloop
drwxr-x---   4 scratch     www-data  4096 juin  27  2021 scratch
drwxr-x---   2 slingcode   www-data  4096 févr.  2 13:08 slingcode
drwxr-x---   6 root        www-data  4096 mars  28  2021 strut
drwxr-x---   9 sutom       www-data  4096 févr. 14 00:55 sutom
drwxr-x---  13 wallabag2   www-data  4096 févr.  1 14:33 wallabag2
drwxr-xr-x  23 root        root      4096 mars   1 23:17 .well-known
drwxr-xr-x   5 wordpress   wordpress 4096 mars   5 03:00 wordpress
root@home:/var/www#

Hello,

Je confirme que la commande de mise à jour forcée d’hier a fait sauter Nextcloud. Heureusement, ce n’était pas critique car j’avais l’ensemble des données sur une machine et plus de besoin quotidien de synchro depuis quelques semaines… Par contre j’ai perdu mes agendas, et il va falloir que je remette en place un instance quand tout ça sera réglé, pour réimporter mes contacts (sauvegardés via Thunderbird et toujours dispos sur le smartphone).

Je continue donc le nettoyage pour essayer de retrouver un serveur utilisable. Plusieurs infos en vrac:

  • Les permissions dans /var/www:

    $ ls -l
    total 24
    drwxr-x---+ 12 freshrss   www-data 4096 Mar  4 15:38 freshrss
    drw-rwxr--+  2 root       root     4096 Mar  3 08:49 html
    drwxr-x---+ 14 phpmyadmin www-data 4096 Mar  4 14:18 phpmyadmin
    drwxr-x---  14 roundcube  www-data 4096 Dec 13 09:46 roundcube
    drw-r-----+ 13 wallabag2  www-data 4096 Dec 18  2020 wallabag2
    You have mail in /var/mail/jeremy
    
    
  • Suppression ce matin du blog Ghost.

  • FreshRSS est inaccessible. Message d’erreur visible sur la page:

    Error during context user init!
    

    J’aimerais pouvoir y accéder, au moins pour exporter la liste des flux…

  • J’ai fait une tentative de mise à jour de Roundcube qui a échoué. Le log:

2022-03-06 09:54:01,769: DEBUG - 74172 + action=reload
2022-03-06 09:54:01,769: DEBUG - 74172 + line_match=
2022-03-06 09:54:01,770: DEBUG - 74173 + length=20
2022-03-06 09:54:01,771: DEBUG - 74173 + log_path=/var/log/nginx/nginx.log
2022-03-06 09:54:01,771: DEBUG - 74174 + timeout=300
2022-03-06 09:54:01,775: DEBUG - 74175 + '[' reload == stop ']'
2022-03-06 09:54:01,791: DEBUG - 74195 + '[' reload == reload ']'
2022-03-06 09:54:01,792: DEBUG - 74196 + action=reload-or-restart
2022-03-06 09:54:01,792: DEBUG - 74196 + systemctl reload-or-restart nginx
2022-03-06 09:54:02,298: DEBUG - 74703 + echo '[####################] > Restoration completed for roundcube'
2022-03-06 09:54:02,303: DEBUG - 74705 [####################] > Restoration completed for roundcube
2022-03-06 09:54:02,304: DEBUG - 74707 + ynh_exit_properly
2022-03-06 09:54:02,308: DEBUG - 74713 + exit 0
2022-03-06 09:54:03,313: DEBUG - 75717 Pour voir le journal de cette opération 'Restaurer 'roundcube' depuis une sauvegarde', utilisez la commande 'yunohost log show 20220306-095258-backup_restore_app-roundcube'
2022-03-06 09:54:03,554: DEBUG - 75958 The permission database has been resynchronized
2022-03-06 09:54:03,844: DEBUG - 76249 La configuration de SSOwat a été regénérée
2022-03-06 09:54:03,883: DEBUG - 76287 Restauration terminée
2022-03-06 09:54:03,884: DEBUG - 76288 action [28560.1] executed in 75.887s
2022-03-06 09:54:03,885: DEBUG - apps:
2022-03-06 09:54:03,885: DEBUG -   roundcube: Success
2022-03-06 09:54:03,886: DEBUG - system:
2022-03-06 09:54:04,003: DEBUG - + [[ -d /etc/yunohost/apps/roundcube ]]
2022-03-06 09:54:04,004: DEBUG - + ynh_die '--message=The app was restored to the way it was before the failed upgrade.'
2022-03-06 09:54:04,069: WARNING - The app was restored to the way it was before the failed upgrade.
2022-03-06 09:54:05,073: ERROR - Impossible de mettre à jour roundcube : Une erreur s'est produite durant l'exécution du script de mise à niveau de l'application

La sélection du texte est désactivée. Si vous voulez partager ce log *complet*, vous pouvez le faire en cliquant sur le bouton 'Partager avec Yunopaste'.
Ou, si vous voulez vraiment vraiment sélectionner du texte, appuyez sur ces touches : ↓↓↑↑.
Historique

C’est curieux parce que le serveur tourne bien, je reçois et j’envoie les mails sans problèmes. Ce serait bien que ça continue d’ailleurs, ça pour le coup c’est un besoin critique!

A suivre… Toutes interventions et conseils bienvenus!! Merci d’avance :slight_smile:

Je suppose que la restoration d’une application ou l’installation d’une nouvelle application n’est pas possible.
A croire que le serveur n’a pas l’autorisation de toucher à /var/www
La sauvegarde des applications est possible ?

Je rends les armes. J’ai désinstallé Yunohost, basculé sur d’autres services pour le mail et Nextcloud, et désinstallé le serveur. C’est triste mais je n’arrive pas à dégager le temps nécessaire à l’administration - dès qu’il y a un problème, avec un bébé à la maison, c’est mission impossible!

Merci @jarod5001 pour ton aide, et merci en général à toutes les personnes du forum qui ont bien voulu répondre à mes différentes questions au fil du temps. C’est aussi et surtout la communauté qui fait la différence :slight_smile:

Le bilan reste très positif, j’ai beaucoup appris, et j’y reviendrai sans doute un de ces jours!

1 Like

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