And again what @JimmyKater already asked: what’s the exact place you try running it and whats the exact command?
This means the context (which folder?) you try to run occ in? Can you post the command you are trying?
Like if you move to the right folder (/var/www/nextcloud using cd) is the following working?
sudo -u www-data php occ -h
Anyway: You might be triggering the Linux out-of-memory (OOM) killer. Check dmesg for messages about it. It says which process was killed when this happens. How many RAM does your server have for use?
@swindhab There is no exact command. It literately will not take any input give it. But regardless you are right it it OOM. I am currently ruining this off a VM with 3 CPU cores and 8 GB of ram and running behind a load balancer. Do you know how I fix this?
Just had the same issue on Ubuntu 20.4 virtual machine with 2 cores and 4GB of RAM. Actually upgraded a few minutes before that to a new minor release without issues (I always use command line)
occ upgrade just consumed all memory(4GB+swap) until it was finally “Killed” by Linux.
In my case apc.enable_cli was false. Enabled it(by adding “apc.enable_cli=1” without quotes to the bottom of /etc/php/7.4/cli/php.ini ), and now occ upgrade works fine.
PHP Warning: PHP Startup: Unable to load dynamic library ‘apc.so’ (tried: /usr/lib/php/20190902/apc.so (/usr/lib/php/20190902/apc.so: undefined symbol: zif_apcu_store), /usr/lib/php/20190902/apc.so.so (/usr/lib/php/20190902/apc.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘apc.so’ (tried: /usr/lib/php/20190902/apc.so (/usr/lib/php/20190902/apc.so: undefined symbol: zif_apcu_store), /usr/lib/php/20190902/apc.so.so (/usr/lib/php/20190902/apc.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
@sharkbyte: Would you mind not hijacking threads of others? @jon_will: Is the package php-acpu installed on your system?
Is it working if you remove 'memcache.local' => '\\OC\\Memcache\\APCu', from your config.php?