Error on update to 11.0.2

I tried running the upgrade from the web interface, where I’m told I have a large instance (really? It’s only just installed, but ok). now… when I try the command "sudo -u (user of the account) php occ upgrade, I get the output below. Ignore, unless required, the ffmpeg issue. this is a cPanel server, and ffmpeg is not high on our list of things to do. I was successful on another instance on this shared server.

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/extensions/no-debug-non-zts-20131226/ffmpeg.so’ - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/ffmpeg.so: cannot open
shared object file: No such file or directory in Unknown on line 0
PHP Warning: Module ‘redis’ already loaded in Unknown on line 0
X-Powered-By: PHP/5.6.29
Set-Cookie: oc1lk1yxg6k2=88fdb141353fca6ba5277fac1301a664; path=/; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: oc_sessionPassphrase=53V43i7RP1gOCB%2FiGzviQ%2BuIbyJCb2MWNaL9QPH9%2FVai17fLnB%2FbmLlUQyP8lJC8F86XXfuNj3wMf%2Bt0Qq0fEqyF71fDEBK%2FCiSuNsajyIDRLXhR9Por8B5uizQ2UYwA; path=/; httponly
Content-Security-Policy:default-src ‘self’; script-src ‘self’ ‘unsafe-eval’ ‘nonce-QjhTbG85U3YwMFFOTGpRM2U5Wnd4ZE44R0Q5a3FUcjRaRlhXa2FCUFc4dz06U0xUdHlxSEJsQTlCZTNOK0tJRW90UGdLZkhZbG1ncWZVbUtENmMwYUk0cz0=’; style-src ‘self’ ‘unsafe-inline’; frame-src *; img-src * data: blob:; font-src ‘self’ data:; media-src *; connect-src *
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Frame-Options: Sameorigin
X-Robots-Tag: none
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Set-Cookie: nc_sameSiteCookielax=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax
Set-Cookie: nc_sameSiteCookiestrict=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict
Content-type: text/html; charset=UTF-8

This script can be run from the command line only

sudo -u $username /path/to/occ upgrade

Alternative as root:

su - $username -s /bin/bash

then go to the location of occ and run it:
./occ upgrade

If occ can’t be run directly:

chmod 750 /path/to/occ

cu

When I run the initial command you sent:

root@storm [/]# sudo -u atmo /home/atmo/public_html/nextcloud/occ upgrade
sudo: obfuscated/occ: command not found

when I run as root:
root@storm [/]# su - atmo -s /bin/bash
Attempting to create directory /home/atmo/perl5
atmo@atmosphere-online.ca [~]# cd public_html/nextcloud/
atmo@atmosphere-online.ca [~/public_html/nextcloud]# ./occ upgrade
-bash: ./occ: Permission denied
running ll on it shows that atmo (the user) is user and group (and correct based on cPanel requirements), and chmod 750 changes nothing.

Then occ is not executable.

chmod +x ./occ
./occ upgrade

Please verify that the interpreter in the shebang at the top of the script exists.

If not, change it to:
#!/usr/bin/env php
and check that you can execute php just by running php
If that’s working you might try:
php ./occ upgrade

that makes sense. now, I get the same error (or statement I guess) as I had before. the ffmpeg isn’t a concern at this point, but might become one later (I’ll get there, no rush), but the error about must be run from the command line is odd… considering that’s what we’re doing.

Thanks again for the help… love the community!

root@storm [/home/atmo/public_html/nextcloud]# sudo -u atmo ./occ upgrade
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/extensions/no-debug-non-zts-20131226/ffmpeg.so’ - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Module ‘redis’ already loaded in Unknown on line 0
X-Powered-By: PHP/5.6.29
Set-Cookie: oc1lk1yxg6k2=5b16eb29d6ca54556ed822c6e8f1f9cb; path=/; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: oc_sessionPassphrase=dalaMt4GNMRn3DpipfhLEcBdyGz8rWEnOfzH3UNeH86zTZ2%2BQix5wu4n7f0p5U3qRPT4vUGcYmOG85BhorwJ2Es%2FKKGogcjrebfw6x3BXfb97T39ZpRZjUwNe3EdmLul; path=/; httponly
Content-Security-Policy:default-src ‘self’; script-src ‘self’ ‘unsafe-eval’ ‘nonce-OE1QUDlDMjYzM3hrZzM0N2ZGcFZtdk8rSjR4V21mZTYxVEQrdmZreENnVT06bGFXOG9rL1F1aTRSckFkMEdXZ2M4TWJyUXNZRjJJTHp2MkNwMzhwWk8zVT0=’; style-src ‘self’ ‘unsafe-inline’; frame-src *; img-src * data: blob:; font-src ‘self’ data:; media-src *; connect-src *
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Frame-Options: Sameorigin
X-Robots-Tag: none
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Set-Cookie: nc_sameSiteCookielax=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax
Set-Cookie: nc_sameSiteCookiestrict=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict
Content-type: text/html; charset=UTF-8

This script can be run from the command line only