Upgrade in command line (impossible to do it via web-interface)

Hi all,

for an unknown reason, impossible to update my yunohost via the web interface. (the Updating the list of available packages… takes so much times…)

So I with to do it via command line but I m not sure about command.
is yunohost tools upgrade and yonohost apps upgrade do everything ? I mean (apt-get update and upgrade ?).

Is there any command to verbose ?

to give an example, it’s take 10 minutes to update the list… only update. I tried to upgrade but after 3 hours, I stopped. Maybe the repository not good anymore ??

2018-04-20 10:05:28,162 INFO yunohost.tools tools_update - [645.3] Updating the list of available packages…
2018-04-20 10:14:19,419 INFO yunohost.tools tools_update - [645.3] Done

My YunoHost configuration

**Hardware:**raspberry (128 gb card)
Internet access:
yunohost:
repo: stable
version: 2.7.10
yunohost-admin:
repo: stable
version: 2.7.7
moulinette:
repo: stable
version: 2.7.7
ssowat:
repo: stable
version: 2.7.7
Have you personalized your yunohost with some specifics configurations or do you use only the yunohost cli/webadmin tool ? personalized / basic
If personalized, how:

Description of my problem

Say what you want to do, what you try to do, what you have got, what you expect. Ask your questions and your hypothesis.
Give exact errors messages (if there are)
Give examples and configuration, it’s better to replace your domain name by an other one.
Give logs if you can ( available in /var/log/ ).

Note: you can use paste.yunohost.org to transfer some data, you can send a complete diagnosis: Webadmin > Tools -> Diagnosis


yunohost tools update
yunohost tools upgrade

Upgrade the system and the apps, this is the method use by the webadmin, if you want to see some verbose, add --verbose or --debug

yunohost app upgrade [APP ...]

Upgrade all, or only one or several apps

Take care if you do debian update/upgrade manually. To do it properlly:

apt update; apt full-upgrade

If you just make apt upgrade you could have your webadmin unable to communicate with yunohost core package (due to different versions)

hi,
seems the prob is worst. if I count, I have 2 issues

  • ldap_sasl_bind_s()
  • apps lists.json is corrupted.

pi@yunohost:~ $ yunohost tools update
Error: yunohost command must be run as root or with sudo.
pi@yunohost:~ $ sudo !!
sudo yunohost tools update
sudo: ldap_sasl_bind_s(): Can’t contact LDAP server
Traceback (most recent call last):
File “/usr/bin/yunohost”, line 219, in
timeout=opts.timeout,
File “/usr/lib/python2.7/dist-packages/moulinette/init.py”, line 133, in cli
‘parser_kwargs’: parser_kwargs,
File “/usr/lib/python2.7/dist-packages/moulinette/core.py”, line 357, in init_interface
return interface(amap, **kwargs)
File “/usr/lib/python2.7/dist-packages/moulinette/interfaces/cli.py”, line 352, in init
m18n.set_locale(get_locale())
File “/usr/lib/python2.7/dist-packages/moulinette/interfaces/cli.py”, line 139, in get_locale
lang = locale.getdefaultlocale()[0]
File “/usr/lib/python2.7/locale.py”, line 543, in getdefaultlocale
return _parse_localename(localename)
File “/usr/lib/python2.7/locale.py”, line 475, in _parse_localename
raise ValueError, ‘unknown locale: %s’ % localename
ValueError: unknown locale: UTF-8
pi@yunohost:~ $ export LC_ALL=en_US.UTF-8
-bash: avertissement :setlocale : LC_ALL : impossible de changer le paramètre de langue (en_US.UTF-8) : Aucun fichier ou dossier de ce type
pi@yunohost:~ $ sudo yunohost tools update
sudo: ldap_sasl_bind_s(): Can’t contact LDAP server

Error: Could not load the application lists. It looks like /etc/yunohost/appslists.json is corrupted.
pi@yunohost:~ $
pi@yunohost:~ $ sudo -i
sudo: ldap_sasl_bind_s(): Can’t contact LDAP server
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
root@yunohost:~# yunohost tools update
Error: Could not load the application lists. It looks like /etc/yunohost/appslists.json is corrupted.
root@yunohost:~#

and here what I have in may son app lists.

root@yunohost:~# cat /etc/yunohost/appslists.json
5
Apr 6 03:37:29 yunohost dovecot: imap(elekis): Connection closed in=23 out=1064
Apr 6 03:37:49 yunohost php[1634]: [03:37:49/1634] [MASTER] active jobs: 0, next spawn at 0 root@yunohost:~#
root@yunohost:~#

How can I have a new apps lists.json.
and about ldap_sasl_bind_s . Is someone know how to ?
thanks.

I have the same problem
My apllists.json is empty

Hello,

if your yunohost is with the latest update, you must be able to use( it’s my apllists.json):

{"yunohost": {"url": "https://app.yunohost.org/apps.json", "lastUpdate": 1572931810}}

I suggest you to add this file to your backup now.