[Nextcloud] 11.0.3 à 12 : échec (PHP Fatal error: Class '\OC\Memcache\APC')

Bonjour,

Je suis à jour sur yunohost : 2.7.2 juste mise à jour à l’instant.

Si j’essaye de mettre à jour NextCloud (11.0.3) :

# yunohost app upgrade nextcloud
Attention : --ignore-hooks is deprecated and will be removed in thefuture. Please use --ignore-system instead.
Attention : Data dir will not saved, because backup_core_only is set.
Attention : 
Attention : Update to nextcloud 12.0.0
Attention : PHP Fatal error:  Class '\OC\Memcache\APC' not found in /var/www/nextcloud/lib/private/Memcache/Factory.php on line 116
Attention : PHP Fatal error:  Class '\OC\Memcache\APC' not found in /var/www/nextcloud/lib/private/Memcache/Factory.php on line 116
Attention : Unable to upgrade Nextcloud
Attention : Upgrade failed.

Je suis donc un peu bloqué. Pour information via l’interface GUI, j’ai :

Yunohost encountered an internal error :confused:
The following information might be useful for the person helping you :
Action

{"locale":"fr","ignore_packages":""}

Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/api.py", line 406, in process
    ret = self.actionsmap.process(arguments, timeout=30, route=_route)
  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 514, in tools_upgrade
    logger.error(m18n.n('app_upgrade_failed'))
  File "/usr/lib/python2.7/dist-packages/moulinette/core.py", line 205, in n
    return self._namespaces[self._current_namespace].translate(key, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/moulinette/core.py", line 92, in translate
    return self._translations[self.locale][key].encode('utf-8').format(*args, **kwargs)
KeyError: 'app'

Une idée ? Je peut éventuellement installer Memcache APC manuellement :).

[edit]
Oups : https://github.com/YunoHost-Apps/nextcloud_ynh/issues/50 m’en vais tester ceci

OK, donc édition de /var/www/nextcloud/config/config.php, suppression de la ligne "memcache.locking": "\\OC\\Memcache\\APC" et

# yunohost app upgrade nextcloud
Attention : --ignore-hooks is deprecated and will be removed in thefuture. Please use --ignore-system instead.
Attention : Data dir will not saved, because backup_core_only is set.
Attention : 
Attention : Update to nextcloud 12.0.0
Attention :  Starting ...
Attention :     0/0 [>---------------------------]   0% Starting ...
Attention :     0/0 [>---------------------------]   0%
Attention : Update to nextcloud 12.0.2
Attention : Note that if you've installed some third-parties Nextcloud applications, they are probably disabled and you'll have to manually activate them again.
Succès ! nextcloud a été mis à jour
Succès ! La configuration de SSOwat a été générée
Succès ! Mise à jour terminée

Cool :slight_smile:

Merci @JimboJoe

1 Like