My YunoHost server
Hardware: Old laptop (hp 840 G1)
YunoHost version: yunohost version : 11.2.8.2 (stable)
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If yes, please explain:
Description of my issue
I updated yunohost through the update system in the webadmin without issue apparently, but when I tried to upgrade my apps next, it failed to upgrade the first one (namely calibreweb) and uninstalled it instead. because I’m slow, I then tried to upgrade another app (docuwiki) and faced exactly the same issue :
nginx.service: Failed to parse PID from file /run/nginx.pid: Invalid argument
I then ran a diagnosis and found out the following issue :
nginx: [emerg] invalid number of arguments in "allow" directive in /etc/nginx/conf.d/yunohost_api.conf.inc:11
here is the line 11 to 13 of that file :
allow ;
deny all;
unfortunately this prevent Nginx to restart. I commented out the allow
to make it work, but of course, now, trying to reach the webadmin only give a 403 error
I think that something went wrong during the yunohost upgrade and a script ment to fill the gap after the allow
failed or something…
since I assume that commenting out the deny
line and adding allow all;
is probably stupid, I’m wondering what I should put there to fix the access to the webadmin (I’m not on the same local network) ?
FR
J’ai mis à jour yunohost depuis la fonction “mise à jour” de l’interface web d’administration sans problèmes apparent, mais quand j’ai voulu mettre à jour les applications qui le nécessitaient, la mise à jour de la première (calibreweb) a échoué et l’application a été désinstallée. parce que je suis un peu obtus, j’ai ensuite essayé de mettre à jour une autre application (docuwiki) et rencontré le même problème :
nginx.service: Failed to parse PID from file /run/nginx.pid: Invalid argument
j’ai lancé un diagnostic et trouvé cette erreur :
nginx: [emerg] invalid number of arguments in "allow" directive in /etc/nginx/conf.d/yunohost_api.conf.inc:11
voici le contenu des lignes 11 à 13 de ce fichier :
allow ;
deny all;
malheureusement, cette erreur empèche Nginx de redémarrer. J’ai commenté la ligne allow
pour que ça fonctionne, mais évidemment, maintenant, l’interface wb d’administration n’est plus accessible et renvoie une erreur 403.
Je pense que quelque chose a foiré pendant la mise à jour de yunohost et qu’un script sensé remplir le vide après allow
dans ce fichier n’a pas fonctionné.
Puisque que je suppose que commenter la ligne deny
et ajouter allow all;
est probablement stupide, je me demande ce que je devrais mettre après ce allow
pour restaurer l’accès à l’interface d’administration (je ne suis pas sur le même réseau local que le serveur) ?