Bonjour,
depuis plusieurs semaine, je me rend compte que mon yunohost n’est plus disponible, il faut que je redemmarer ma machine virtuel pour qu’il fonctionne à nouveau
pouvez vous m’aider à debuger ce probléme svp
quand je n’accéde plus à mon yunhost j’ai le message suivant
Quand j’utilisais un RPI, j’ai déjà eu la même chose, ça venait d’un OOM. J’avais augmenté le swap et ça avait résolu le problème. Donc je vérifierais:
1-Les logs, syslog entre autre.
2-Assez de RAM? Allouer plus de RAM à la VM et voir si le problème persiste.
3-Vérifier le swap, l’augmenter au besoin.
Pour info J’ai le même message que toi sur ma VM proxmox et ton problème n’est pas en lien avec celui-ci. Il semblerait qu’ajouter msr.allow_writes=on aux options du boot résoudrait le problème, je n’ai pas pas encore testé. Les explications dans l’article ci-dessous:
@Issa, sans plus de détails il est difficile de trouver la cause de l’incident.
Sur la capture ton instance a l’air de fonctionner, car elle utilise 82.45 % de la RAM, mais elle n’a pas son adresse IPv4 qui devrait être normalement 192.168.1.20
Cette VM a une IP distribué par DHCP ou fixe ?
De plus je ne sais pas combien d’applications sont installées sur cette instance, mais 2 CPU et 4 Go de RAM me paraissent juste.
Le Proxmox est en 64 Bit ?
EDIT :
juste pour mon information et pour d’autre si besoin, pour faire fonctionner l’agent Zabbix il faut autoriser le port sur le firewall yunohsot :
Ta configuration /etc/network/interfaces dit :
iface ens18 inet dhcp et iface ens18 inet static, commentes la ligne dhcp et redémarres le service réseau ou redémarres la VM.
Ton Proxmox est en v7.2-11, il y a eu pas mal de mises à jour depuis. Nous sommes en v7.3-4 maintenant, mais ton problème ne vient pas de là.
Je te propose de doubler la quantité de RAM et de CPU de cette VM.
Ok donc la j’ai u nouveau probléme mon nginx qui demmare plus :
admin@serveur:~$ sudo service nginx status
● 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: timeout) since Thu 2023-01-05 10:21:33 CET; 4min 27s ago
Docs: man:nginx(8)
Process: 714 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=killed, signal=TERM)
CPU: 71ms
janv. 05 10:20:03 serveur.fr systemd[1]: Starting A high performance web server and a reverse proxy server...
janv. 05 10:20:24 serveur.fr nginx[714]: nginx: [warn] "ssl_stapling" ignored, host not found in OCSP responder "r3.o.lencr.org" in the certificate "/etc/yuno>
janv. 05 10:20:44 serveur.fr nginx[714]: nginx: [warn] "ssl_stapling" ignored, host not found in OCSP responder "r3.o.lencr.org" in the certificate "/etc/yuno>
janv. 05 10:21:04 serveur.fr nginx[714]: nginx: [warn] "ssl_stapling" ignored, host not found in OCSP responder "r3.o.lencr.org" in the certificate "/etc/yuno>
janv. 05 10:21:24 serveur.fr nginx[714]: nginx: [warn] "ssl_stapling" ignored, host not found in OCSP responder "r3.o.lencr.org" in the certificate "/etc/yuno>
janv. 05 10:21:33 serveur.fr systemd[1]: nginx.service: start-pre operation timed out. Terminating.
janv. 05 10:21:33 serveur.fr systemd[1]: nginx.service: Control process exited, code=killed, status=15/TERM
janv. 05 10:21:33 serveur.fr systemd[1]: nginx.service: Failed with result 'timeout'.
janv. 05 10:21:33 serveur.fr systemd[1]: Failed to start A high performance web server and a reverse proxy server.
janv. 05 10:24:44 serveur.fr systemd[1]: nginx.service: Unit cannot be reloaded because it is inactive.
Dans la configuration de /etc/network/interfaces je vois que ton dns-nameservers est 192.168.1.6, c’est volontaire ? Si tu as un serveur DNS sur cette IP vérifies si la machine répond.
Pour tester mets 192.168.1.254 comme dns-nameservers et redémares ta VM.
oui c’est mon serveur DNS local
mais meme le fait qu’il soit OFF pourquoi ça gênerais le d’emmargé de nginx c’est pas logique pour moi, ou un truc que j’ai pas compris ?
j’ai lancé nginx en mode debug
admin@namel:~$ sudo service nginx stop
admin@namel:~$ sudo nginx -t
nginx: [warn] "ssl_stapling" ignored, host not found in OCSP responder "r3.o.lencr.org" in the certificate "/etc/yunohost/certs/mastodon.serveur.fr/crt.pem"
nginx: [warn] "ssl_stapling" ignored, host not found in OCSP responder "r3.o.lencr.org" in the certificate "/etc/yunohost/certs/mastodon.serveur.fr/crt.pem"
nginx: [warn] "ssl_stapling" ignored, host not found in OCSP responder "r3.o.lencr.org" in the certificate "/etc/yunohost/certs/serveur.fr/crt.pem"
nginx: [warn] "ssl_stapling" ignored, host not found in OCSP responder "r3.o.lencr.org" in the certificate "/etc/yunohost/certs/serveur.fr/crt.pem"
nginx: [warn] "ssl_stapling" ignored, host not found in OCSP responder "r3.o.lencr.org" in the certificate "/etc/yunohost/certs/news.serveur.fr/crt.pem"
nginx: [warn] "ssl_stapling" ignored, host not found in OCSP responder "r3.o.lencr.org" in the certificate "/etc/yunohost/certs/news.serveur.fr/crt.pem"
nginx: [warn] "ssl_stapling" ignored, host not found in OCSP responder "r3.o.lencr.org" in the certificate "/etc/yunohost/certs/pixelfed.serveur.fr/crt.pem"
nginx: [warn] "ssl_stapling" ignored, host not found in OCSP responder "r3.o.lencr.org" in the certificate "/etc/yunohost/certs/pixelfed.serveur.fr/crt.pem"
nginx: [warn] "ssl_stapling" ignored, host not found in OCSP responder "r3.o.lencr.org" in the certificate "/etc/yunohost/certs/vpn.serveur.fr/crt.pem"
nginx: [warn] "ssl_stapling" ignored, host not found in OCSP responder "r3.o.lencr.org" in the certificate "/etc/yunohost/certs/vpn.serveur.fr/crt.pem"
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
il n’y a que du warning, il devrait quand même démarrer ?
Avec le vm.swappiness = 0, le swap sera utilisé quand il ne te restera plus de RAM. Par défaut, on commence à swapper quand 60 % de la RAM est utilisée
Puis appliquer les paramètres en lançant cette commande :
sysctl -p