[SOLVED] Yunohost injoignable après màj échouée de Nextcloud

,

Salut !
Gros problème ce matin !
J’ai tenté une mise à jour de nextcloud via l’interface graphique mais cette-ci a échoué.
A partir de ce moment, impossible de me connecter à l’interface graphique/au portail de connexion via mon navigateur.
Reboot tenté via la ligne de commande, mais même résultat… Les autres applications sont également injoignables via cette interface, mais ont l’air de fonctionner car, par exemple, thunderbird récupère sans souci mes mails.

Par quel bout je prends cette affaire ?
Merci d’avance !

You should start with the log of the nextcloud’s upgrade. To see what happened.

Hello,

where can I find it ?

Thanks

I think that Nextcloud is no longer installed on my machine… It seems like disappeared…

You can find operation’s logs in /var/log/yunohost/categories/operation

In /var/log/yunohost/ there is just an element named “media”… no logs found…

There’s nothing else in that directory ?
Which version of YunoHost are you running ?

Just upgraded to version 3 few days ago…

You should have at least a generic log for YunoHost, whatever the version.

I’m quite sure your problem is about php7. But in order to be sure, and check if there’s anything else. Could you please run

sudo yunohost tools diagnosis

Run

sudo yunohost tools diagnosis

says :

host: Debian 9.6
    kernel: 4.14.79-v7+
    packages: 
      yunohost: 
        repo: stable
        version: 3.3.3
      yunohost-admin: 
        repo: stable
        version: 3.3.1
      moulinette: 
        repo: stable
        version: 3.3.1
      ssowat: 
        repo: stable
        version: 3.3.2
    backports: 
    system: 
      disks: 
        mmcblk0p1: Mounted on /boot, 62.0MiB (40.0MiB free)
        root: Mounted on /, 916.0GiB (135.8GiB free)
      memory: 
        ram: 927.2MiB (555.1MiB free)
        swap: 100.0MiB (100.0MiB free)
    nginx: 
      - nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
      - nginx: configuration file /etc/nginx/nginx.conf test is successful
    services: 
      avahi-daemon: running (enabled)
      dnsmasq: running (enabled)
      dovecot: running (enabled)
      fail2ban: running (enabled)
      glances: running (enabled)
      metronome: running (enabled)
      mysql: running (enabled)
      nginx: failed (enabled)
      nslcd: running (enabled)
      php7.0-fpm: running (enabled)
      postfix: exited (enabled)
      redis-server: running (enabled)
      rspamd: running (enabled)
      slapd: running (enabled)
      ssh: running (enabled)
      yunohost-api: running (enabled)
      yunohost-firewall: exited (enabled)
    applications: 
      freshrss: FreshRSS
      jirafeau: Jirafeau
      rainloop: Rainloop
      ttrss: Tiny Tiny RSS
      wordpress: WordPress
    security: 
      CVE-2017-5754: 
        name: meltdown
        vulnerable: False

No Nextcloud found…

Ok, so it’s not php but nginx.

Run

sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

but the interface is always down and diagnonsis tool returned

nginx: failed (enabled)

Ok, try to restart it then

sudo systemctl start nginx

Job for nginx.service failed because the control process exited with error code.
See “systemctl status nginx.service” and “journalctl -xe” for details.

systemctl status nginx.service

returns

● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2018-12-15 12:36:08 UTC; 28s ago
     Docs: man:nginx(8)
  Process: 5036 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE)
  Process: 5032 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)

and

journalctl -xe

says :

Dec 15 12:37:15 croets.net php[1381]: [12:37:15/5083] Sending digests, batch of max 15 users, headline limit = 1000
Dec 15 12:37:15 croets.net php[1381]: [12:37:15/5083] All done.
Dec 15 12:37:16 croets.net sshd[5076]: Failed password for root from 112.85.42.88 port 46233 ssh2
Dec 15 12:37:16 croets.net php[1381]: [12:37:16/1381] [reap_children] child 5079 reaped.
Dec 15 12:37:16 croets.net php[1381]: [12:37:16/1381] [SIGCHLD] jobs left: 0
Dec 15 12:37:17 croets.net slapd[969]: <= mdb_equality_candidates: (cn) not indexed
Dec 15 12:37:17 croets.net slapd[969]: slap_global_control: unrecognized control: 1.3.6.1.4.1.4203.666.5.16
Dec 15 12:37:17 croets.net slapd[969]: <= mdb_equality_candidates: (gidNumber) not indexed
Dec 15 12:37:17 croets.net slapd[969]: <= mdb_equality_candidates: (sudoUser) not indexed
Dec 15 12:37:17 croets.net slapd[969]: <= mdb_equality_candidates: (sudoUser) not indexed
Dec 15 12:37:17 croets.net slapd[969]: <= mdb_equality_candidates: (sudoUser) not indexed
Dec 15 12:37:17 croets.net slapd[969]: <= mdb_equality_candidates: (sudoUser) not indexed
Dec 15 12:37:17 croets.net slapd[969]: <= mdb_equality_candidates: (sudoUser) not indexed
Dec 15 12:37:17 croets.net slapd[969]: <= mdb_equality_candidates: (sudoUser) not indexed
Dec 15 12:37:17 croets.net slapd[969]: <= mdb_equality_candidates: (sudoUser) not indexed
Dec 15 12:37:17 croets.net slapd[969]: <= mdb_substring_candidates: (sudoUser) not indexed
Dec 15 12:37:17 croets.net sudo[5088]:    admin : TTY=pts/0 ; PWD=/home/admin ; USER=root ; COMMAND=/bin/journalctl -xe
Dec 15 12:37:17 croets.net sudo[5088]: pam_unix(sudo:session): session opened for user root by admin(uid=0)
...skipping...
Dec 15 12:37:15 croets.net php[1381]: [12:37:15/5083] Sending digests, batch of max 15 users, headline limit = 1000
Dec 15 12:37:15 croets.net php[1381]: [12:37:15/5083] All done.
Dec 15 12:37:16 croets.net sshd[5076]: Failed password for root from 112.85.42.88 port 46233 ssh2
Dec 15 12:37:16 croets.net php[1381]: [12:37:16/1381] [reap_children] child 5079 reaped.
Dec 15 12:37:16 croets.net php[1381]: [12:37:16/1381] [SIGCHLD] jobs left: 0
Dec 15 12:37:17 croets.net slapd[969]: <= mdb_equality_candidates: (cn) not indexed
Dec 15 12:37:17 croets.net slapd[969]: slap_global_control: unrecognized control: 1.3.6.1.4.1.4203.666.5.16
Dec 15 12:37:17 croets.net slapd[969]: <= mdb_equality_candidates: (gidNumber) not indexed
Dec 15 12:37:17 croets.net slapd[969]: <= mdb_equality_candidates: (sudoUser) not indexed
Dec 15 12:37:17 croets.net slapd[969]: <= mdb_equality_candidates: (sudoUser) not indexed
Dec 15 12:37:17 croets.net slapd[969]: <= mdb_equality_candidates: (sudoUser) not indexed
Dec 15 12:37:17 croets.net slapd[969]: <= mdb_equality_candidates: (sudoUser) not indexed
Dec 15 12:37:17 croets.net slapd[969]: <= mdb_equality_candidates: (sudoUser) not indexed
Dec 15 12:37:17 croets.net slapd[969]: <= mdb_equality_candidates: (sudoUser) not indexed
Dec 15 12:37:17 croets.net slapd[969]: <= mdb_equality_candidates: (sudoUser) not indexed
Dec 15 12:37:17 croets.net slapd[969]: <= mdb_substring_candidates: (sudoUser) not indexed
Dec 15 12:37:17 croets.net sudo[5088]:    admin : TTY=pts/0 ; PWD=/home/admin ; USER=root ; COMMAND=/bin/journalctl -xe
Dec 15 12:37:17 croets.net sudo[5088]: pam_unix(sudo:session): session opened for user root by admin(uid=0)
lines 996-1013/1013 (END)

Check the log with

sudo journalctl -u nginx
-- Logs begin at Thu 2016-11-03 17:16:46 UTC, end at Sat 2018-12-15 13:05:29 UTC. --
Dec 15 10:17:27 croets.net systemd[1]: Starting A high performance web server and a reverse proxy server...
Dec 15 10:18:12 croets.net nginx[593]: nginx: [warn] "ssl_stapling" ignored, host not found in OCSP responder "ocsp.int-x3.letsencrypt.org"
Dec 15 10:18:34 croets.net nginx[1491]: nginx: [warn] "ssl_stapling" ignored, host not found in OCSP responder "ocsp.int-x3.letsencrypt.org"
Dec 15 10:18:34 croets.net nginx[1491]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Dec 15 10:18:34 croets.net nginx[1491]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Dec 15 10:18:34 croets.net nginx[1491]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Dec 15 10:18:34 croets.net nginx[1491]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Dec 15 10:18:35 croets.net nginx[1491]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Dec 15 10:18:35 croets.net nginx[1491]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Dec 15 10:18:35 croets.net nginx[1491]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Dec 15 10:18:35 croets.net nginx[1491]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Dec 15 10:18:36 croets.net nginx[1491]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Dec 15 10:18:36 croets.net nginx[1491]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Dec 15 10:18:36 croets.net nginx[1491]: nginx: [emerg] still could not bind()
Dec 15 10:18:37 croets.net systemd[1]: nginx.service: Control process exited, code=exited status=1
Dec 15 10:18:37 croets.net systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Dec 15 10:18:37 croets.net systemd[1]: nginx.service: Unit entered failed state.
Dec 15 10:18:37 croets.net systemd[1]: nginx.service: Failed with result 'exit-code'.
Dec 15 12:36:05 croets.net systemd[1]: Starting A high performance web server and a reverse proxy server...
Dec 15 12:36:06 croets.net nginx[5036]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Dec 15 12:36:06 croets.net nginx[5036]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Dec 15 12:36:06 croets.net nginx[5036]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Dec 15 12:36:06 croets.net nginx[5036]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Dec 15 12:36:07 croets.net nginx[5036]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Dec 15 12:36:07 croets.net nginx[5036]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Dec 15 12:36:07 croets.net nginx[5036]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Dec 15 12:36:07 croets.net nginx[5036]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Dec 15 12:36:08 croets.net nginx[5036]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Dec 15 12:36:08 croets.net nginx[5036]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Dec 15 12:36:08 croets.net nginx[5036]: nginx: [emerg] still could not bind()
Dec 15 12:36:08 croets.net systemd[1]: nginx.service: Control process exited, code=exited status=1
Dec 15 12:36:08 croets.net systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Dec 15 12:36:08 croets.net systemd[1]: nginx.service: Unit entered failed state.
Dec 15 12:36:08 croets.net systemd[1]: nginx.service: Failed with result 'exit-code'.
lines 18-35/35 (END)

I don’t understand…

Could you please check apache2 service

sudo systemctl status apache2

● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2018-12-15 10:18:02 UTC; 4h 22min ago
Process: 1009 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 1241 (apache2)
CGroup: /system.slice/apache2.service
├─1241 /usr/sbin/apache2 -k start
├─1244 /usr/sbin/apache2 -k start
├─1245 /usr/sbin/apache2 -k start
├─1246 /usr/sbin/apache2 -k start
├─1247 /usr/sbin/apache2 -k start
├─1248 /usr/sbin/apache2 -k start
├─2409 /usr/sbin/apache2 -k start
├─2411 /usr/sbin/apache2 -k start
└─2412 /usr/sbin/apache2 -k start
Dec 15 10:17:49 croets.net systemd[1]: Starting The Apache HTTP Server…
Dec 15 10:18:02 croets.net systemd[1]: Started The Apache HTTP Server.

no problem here I think…

Bonjour @gabrus

Par curiosité, peux-tu préciser ce que te renvoie un # df -h ?
Histoire de connaître ton partitionnement :wink:
(car lorsque que j’avais un partitionnement “par défaut”, et donc des partitions /var et /tmp trop petites, j’avais le même souci !)

Sangokuss

Bonjour @Sango,

donne :

Filesystem      Size  Used Avail Use% Mounted on
/dev/root       916G  781G   99G  89% /
devtmpfs        460M     0  460M   0% /dev
tmpfs           464M   80K  464M   1% /dev/shm
tmpfs           464M   24M  440M   6% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           464M     0  464M   0% /sys/fs/cgroup
/dev/mmcblk0p1   63M   23M   41M  36% /boot
tmpfs            93M     0   93M   0% /run/user/1007