j’ai un bug que je ne connais pas sur mon serveur ynh, je ne peux plus updater ou upgrader les app car j’ai ce message d’erreur :

Error: Retrieved file for application list mm is not valid
Traceback (most recent call last):
  File "/usr/bin/yunohost", line 219, in <module>
  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 452, in tools_update
    app_dict = app_info(app_id, raw=True)
  File "/usr/lib/moulinette/yunohost/app.py", line 337, in app_info
    ret = app_list(filter=app, raw=True)[app]
  File "/usr/lib/moulinette/yunohost/app.py", line 242, in app_list
    with open(json_path) as json_list:
IOError: [Errno 2] No such file or directory: u'/var/cache/yunohost/repo/mm.json' 

effectivement le fichier n’existe pas :frowning:

mon serveur (dédié chez ovh)

cat /etc/debian_version 

mon YNH :

yunohost -v
  repo: stable
  version: 2.7.7
  repo: stable
  version: 2.7.7
  repo: stable
  version: 2.7.7
  repo: stable
  version: 2.7.7

j’obtiens cette erreur avec

yunohost tools update
yunohost app upgrade nextcloud
yunohost tools diagnosis

mais pas avec

yunohost tools update --ignore-apps
yunohost tools upgrade --ignore-apps

une idée ?

Did you manually add a custom application list at some point ? :s

nope, not that i know

What is the content of /etc/yunohost/appslists.json ?

To see it:

cat /etc/yunohost/appslists.json

You can copy it on a paste with

cat  /etc/yunohost/appslists.json | yunopaste

If there is a “mm” in it’s very strange.


here it is : https://paste.yunohost.org/pubucobema

yes there is

"mm": {"url": "https://github.com/YunoHost-Apps/mattermost_ynh", "lastUpdate": null}

mattermost is not installed on my instance, i tryed but it failed.
can i saffely edit the appslists.json and remove the mm entry ?

Well I’m not sure how you ended up in that state, maybe you used the command yunohost app fetchlist by mistake or something…

Anyway, yes, it should be safe to edit the appslists.json and remove the mm entry, as long (as long as you are careful with the json syntax)

thanks, i edited the appslists.json to remove the mm entry, ans every things seems to work well know
remains the mystery of how this entry ended here, or how the mm.json files disapeared … but that will be an other story