# \[Resolved\] Error while updating from CLI + error nginx

**URL:** https://forum.yunohost.org/t/resolved-error-while-updating-from-cli-error-nginx/3574
**Category:** Support
**Tags:** french, english
**Created:** [October 1, 2017, 5:39pm UTC](https://forum.yunohost.org/t/resolved-error-while-updating-from-cli-error-nginx/3574 "2017-10-01T17:39:20Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![nath5394](https://forum.yunohost.org/user_avatar/forum.yunohost.org/nath5394/32/1717_2.png) [@nath5394](https://forum.yunohost.org/u/nath5394)
#### Post date: [October 1, 2017, 5:39pm UTC](https://forum.yunohost.org/t/resolved-error-while-updating-from-cli-error-nginx/3574/1 "2017-10-01T17:39:20Z")

</div>

Hello,

First THANK YOU for yunohost 🙂  
Merci beaucoup, c’est vraiment pratique à installer et gérer je trouve. Bon je continue en anglais 😉

I noticed recently that my version of yunohost is old, so I tried to apply the update with the CLI and not the GUI.  
I had this error when entering

```
root@server :~# yunohost tools update --verbose
Traceback (most recent call last):
  File "/usr/bin/yunohost", line 217, in <module>
    timeout=opts.timeout,
  File "/usr/lib/python2.7/dist-packages/moulinette/ __init__.py", line 136, in cli
    moulinette.run(args, output_as=output_as, password=password, timeout=timeout)
  File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/cli.py", line 390, in run
    ret = self.actionsmap.process(args, timeout=timeout)
  File "/usr/lib/python2.7/dist-packages/moulinette/actionsmap.py", line 495, in process
    return func(**arguments)
  File "/usr/lib/moulinette/yunohost/tools.py", line 321, in tools_update
    logger.info(m18n.n('updating_apt_cache'))
NameError: global name 'm18n' is not defined

```

Here are the versions I have :

```
root@server :~# yunohost --version
yunohost: 2.5.6
yunohost-admin: 2.6.2
moulinette: 2.7.2
ssowat: 2.7.2

```

I don’t know why the yunohost and yunohost did not update themseleves…

Thanks in advance for any kind of help.

---

<div class="post-metadata">

### Author: ![ppr](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/p/8c91f0/32.png) [@ppr](https://forum.yunohost.org/u/ppr)
#### Post date: [October 1, 2017, 7:10pm UTC](https://forum.yunohost.org/t/resolved-error-while-updating-from-cli-error-nginx/3574/2 "2017-10-01T19:10:49Z")

</div>

Bonsoir @nath5394 ,

FR : Normalement, la mise à niveau se fait via les commandes suivantes :  
EN : Usually upgrade is done with these commands:

edit :

> FR : **toujours faire une sauvegarde avant.**  
> EN : **always backup before.**

> apt-get update  
> apt-get upgrade  
> apt-get dist-upgrade

FR : Sinon, en utilsant la commande  
EN : Otherwise using command

> yunohost tools update --verbose

FR : il est nécessaire de vérifier ton  
EN : it’s necessary to checkup your

> /etc/apt folder or sources lists

> [@\[solved\] Can not upgrade to 2.7 (error 404)](https://forum.yunohost.org/t/solved-can-not-upgrade-to-2-7-error-404/3389):
>
> Hi, I am trying to upgrade to Yunohost 2.7 but it fails while contacting a package url : root@xxxxx:~# yunohost tools update Traceback (most recent call last): File "/usr/bin/yunohost", line 217, in \<module\> timeout=opts.timeout, File "/usr/lib/python2.7/dist-packages/moulinette/\_\_init\_\_.py", line 139, in cli moulinette.run(args, output\_as=output\_as, password=password, timeout=timeout) File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/cli.py", line 358, in run ret …

> [@\[solved\] Can not upgrade to 2.7 (error 404)](https://forum.yunohost.org/t/solved-can-not-upgrade-to-2-7-error-404/3389/2):
>
> It was an issue with my /etc/apt sources directory issue ; sorry about that

FR : Attention  
EN : Carefull

> [@Debian Stretch | YunoHost is NOT YET compatible | YunoHost N'EST PAS ENCORE compatible](https://forum.yunohost.org/t/debian-stretch-yunohost-is-not-yet-compatible-yunohost-nest-pas-encore-compatible/3048/5):
>
> Another important information: we have been informed that some of you have had and unintended upgrade to Debian Strech while using yunohost tools upgrade. This is because, in your apt sources files (the files located in /etc/apt/sources.list and /etc/apt/sources.list.d/\* the word stable is used instead of jessie). To solve this problem, you can either check those files and replace stable with jessiewhen it applies or use this application we wrote that will do this job for you: [https://github…](https://github.com/YunoHost-Apps/no_stretch_ynh)

ppr

---

<div class="post-metadata">

### Author: ![nath5394](https://forum.yunohost.org/user_avatar/forum.yunohost.org/nath5394/32/1717_2.png) [@nath5394](https://forum.yunohost.org/u/nath5394)
#### Post date: [October 4, 2017, 7:04pm UTC](https://forum.yunohost.org/t/resolved-error-while-updating-from-cli-error-nginx/3574/3 "2017-10-04T19:04:17Z")

</div>

Hello,

FR : Merci pour ta réponse. En fait pour les mises à jour je ne faisais que apt-get update puis apt-get upgrade. Sans faire apt-get dist-upgrade.

EN : Thank you for your reply. The problem was : to upgrade I just used to do apt-get update and then apt-get upgrade. But I did not do apt-get dist-upgrade.

FR : J’ai vérifié le fichier sources.list. Ok. Et puis j’ai pu mettre à jour sans soucis.  
EN : I checked the sources.list file. Ok. After that I could upgrade without problem.

FR: Manque de chance les services nginx et mysql ne démarrent pas. Systemctl status me dit qu’il y a une erreur. Où chercher ?  
EN : Unfortunatly nginx and mysql services did not start. systemctl status reports error. Where should I look ?

Merci,  
Nath’

---

<div class="post-metadata">

### Author: ![nath5394](https://forum.yunohost.org/user_avatar/forum.yunohost.org/nath5394/32/1717_2.png) [@nath5394](https://forum.yunohost.org/u/nath5394)
#### Post date: [October 6, 2017, 11:56am UTC](https://forum.yunohost.org/t/resolved-error-while-updating-from-cli-error-nginx/3574/4 "2017-10-06T11:56:04Z")

</div>

Hello,

So I have a problem with nginx.  
Should I post it in another topic ?

Here is the outpout for nginx -t

```
root@serve:~# nginx -t
nginx: [emerg] location "ynhpanel\.(js|json|css)" cannot be inside the named location "@searx" in /etc/nginx/conf.d/yunohost_panel.conf.inc:7
nginx: configuration file /etc/nginx/nginx.conf test failed

```

I will check nginx config files, but I don’t really know out it should be normally.

Nath’

---

<div class="post-metadata">

### Author: ![ppr](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/p/8c91f0/32.png) [@ppr](https://forum.yunohost.org/u/ppr)
#### Post date: [October 6, 2017, 12:16pm UTC](https://forum.yunohost.org/t/resolved-error-while-updating-from-cli-error-nginx/3574/5 "2017-10-06T12:16:38Z")

</div>

Bonjour / Hi @nath5394 ,

Tu sembles avoir un soucis avec l’application “Searx” / You seems to have a problem with the “Searx” apps.  
Une solution a été trouvé ici / A solution found here :

> [@Probleme avec searx après migration](https://forum.yunohost.org/t/probleme-avec-searx-apres-migration/3091):
>
> Alors suite à une mise à jour de Mastodon qui me disait en gros que je n’avais pas suffisamment de RAM, j’ai voulu tout migrer mon Yunohost sur un serveur plus gros (je suis chez Scaleway), voici ma procédure : création d’un “snapshot” de mon serveur VC1S acheter un serveur VC1M en y installant le “snapshot” changer l’adresse IP dans ma zone DNS pour pointer vers ce nouveau serveur Donc accès SSH = OK mais impossible d’accéder à yunohost frowning admin@Yunohost:~$ systemctl status nginx.se…

Désinstaller “Searx” … et peut-être la réinstaller. Chose qui n’a a priori pas été faite par cet utilisateur (réinstallation) / Uninstall “Searx” … and maybe reinstall it. It haven’t done a priori in this case by the user (reinstallation).

ppr

---

<div class="post-metadata">

### Author: ![nath5394](https://forum.yunohost.org/user_avatar/forum.yunohost.org/nath5394/32/1717_2.png) [@nath5394](https://forum.yunohost.org/u/nath5394)
#### Post date: [October 6, 2017, 5:08pm UTC](https://forum.yunohost.org/t/resolved-error-while-updating-from-cli-error-nginx/3574/6 "2017-10-06T17:08:23Z")

</div>

Thank you removing searx resolved the problem.

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [January 18, 2023, 8:15pm UTC](https://forum.yunohost.org/t/resolved-error-while-updating-from-cli-error-nginx/3574/7 "2023-01-18T20:15:23Z")

</div>


