thx for this hint. Did never make my hands dirty on NC.
Found a way to list all apps, but:
Looks, like I need to update php? Or where is this message coming from?
If so - whats the right way to do it on such a yunohst server?
root@mv:/var/www/nextcloud# sudo -u www-data php occ app:list
This version of Nextcloud requires at least PHP 8.0<br/>You are currently running 7.4.33. Please update your PHP version.
root@mv:~# sudo -u nextcloud php8.2 --define apc.enable_cli=1 /var/www/nextcloud/occ app:list
An unhandled exception has been thrown:
OCP\HintException: [0]: Memcache OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)
You should enter the nextcloud shell like this sudo yunohost app shell nextcloud
Then run your occ commands php occ app:list
When finished exit the nextcloud shell exit
thx!
Did try this before.
Now did double check.
same error:
nextcloud@mv:~$ php occ app:list
An unhandled exception has been thrown:
OCP\HintException: [0]: Memcache OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)
at least inside the shell php verison seems to be the correct one ;))
nextcloud@mv:~$ php occ app:list
An unhandled exception has been thrown:
OCP\HintException: [0]: Memcache OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)
nextcloud@mv:~$ php --version
PHP 8.2.24 (cli) (built: Sep 27 2024 04:03:56) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.24, Copyright (c) Zend Technologies
with Zend OPcache v8.2.24, Copyright (c), by Zend Technologies
You have mail in /var/mail/nextcloud
I know this menu.
Since my nextcloud is not running and Iâm not able to fire the occ commands I was thinking if ther maybe is a safe mode to start NC without the apps (apprarently I need to deactivate or even remove the polls app). But donât know how to achieve this
Entered the shell an then tried php as well as php8.2
nextcloud@mv:~$ php --define apc.enable_cli=1 occ app:list
An unhandled exception has been thrown:
OCP\HintException: [0]: Memcache OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)
nextcloud@mv:~$ php8.2 --define apc.enable_cli=1 occ app:list
An unhandled exception has been thrown:
OCP\HintException: [0]: Memcache OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)
I looked in the nextcloud forum and it seems not possible. There is a workaround by removing apcu from the config file.
In the nextcloud shell open config/config.php and replace âmemcache.localâ => â\OC\Memcache\APCuâ,
With âmemcache.localâ => ânoneâ,
Save the file and try running occ commands again, when done, revert that change
I highly appreciate your help!
Unfortuenately changing config/config.php as mentioned does not change anythingâŠ
nextcloud@mv:~$ php --define apc.enable_cli=1 occ app:list
An unhandled exception has been thrown:
OCP\HintException: [0]: Memcache none not available for local cache (Is the matching PHP module installed and enabled?)
nextcloud@mv:~$ php8.2 --define apc.enable_cli=1 occ app:list
An unhandled exception has been thrown:
OCP\HintException: [0]: Memcache none not available for local cache (Is the matching PHP module installed and enabled?)
Only when delete the line the output changes âdramaticallyâ. But thatâs a complete different issue, I guess!?
nextcloud@mv:~$ php8.2 --define apc.enable_cli=1 occ app:list
PHP module zip not installed.
Please ask your server administrator to install the module.
An unhandled exception has been thrown:
Exception: Environment not properly prepared. in /var/www/nextcloud/lib/private/Console/Application.php:167
Stack trace:
#0 /var/www/nextcloud/console.php(101): OC\Console\Application->loadCommands()
#1 /var/www/nextcloud/occ(11): require_once('...')
#2 {main}
An error prevents the configuration panel from being displayed:
Could not read return from hook /etc/yunohost/apps/nextcloud/scripts/config. Error: Corrupted YAML read from /tmp/tmp38bjy399/stdreturn (reason: mapping values are not allowed here<br> in "<unicode string>", line 9, column 60:<br> ... s been thrown: OCP\HintException: [0]: Memcache OC\Memcache\APCu ... <br> ^). Raw content: fpm_footprint:<br> high<br>fpm_free_footprint:<br> 0<br>fpm_usage: 'medium'<br>maintenance_mode:<br> 1<br>system_addressbook_exposed:<br> An unhandled exception has been thrown: OCP\HintException: [0]: Memcache OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)<br>
Please report this error to the YunoHost team to get it fixed!
Can I just uninstall and re-install NC using the gui? without looooosing data?