Nextcloud 18.0.3 OCC command help

Nextcloud version (eg, 18.0.3):
Operating system and version (Ubuntu 18.04.03):
Apache or nginx version (Apache 2.4.):
PHP version (7.3):

Hi,

I have been using Nextcloud for a while but never actually got the OCC commands running. If I click on the “overview” I get some warnings about several issues but some are indicating that they can fix using the OCC command. For example this one: “occ db:add-missing-indices”. The hosting I am on is supporting a shell but while I am trying to run the commands I am always ending in error.

When I log into the shell using a “custom” generate login I got this: Welcome to Ubuntu 18.04.3 LTS (GNU/Linux 4.4.0-176-generic x86_64). I have then tried to navigate to the root folder of Nextcloud and run for example this: sudo -u www-data php occ db:convert-filecache-bigint. The output is that “sudo” is not recognized and of course I can’t install it. If I run the command without the sudo -u www-data, I will get the message below:

Your data directory is invalid
Ensure there is a file called ".ocdata" in the root of the data directory.

Cannot create "data" directory
This can usually be fixed by giving the webserver write access to the root directory. See https://docs.nextcloud.com/server/18/go.php?to=admin-dir_permissions

An unhandled exception has been thrown:
Exception: Environment not properly prepared. in /home/3d-sphere.com/sub/unicorn/lib/private/Console/Application.php:167
Stack trace:
#0 /home/3d-sphere.com/sub/unicorn/console.php(98): OC\Console\Application->loadCommands()
#1 /home/3d-sphere.com/sub/unicorn/occ(11): require_once('/home/3d-sphere...')
#2 {main}uid27767@shellserver:~/3d-sphere.com/sub/unicorn$

I have found some workarounds for the “sudo” issue using “su” but when I point to the www-data user, it asks for password and I certainly have no idea about it: su - www-data -c php occ db:convert-filecache-bigint

I am absolutely lost and have no idea what I am doing wrong or how to run the OCC commands without the error above ect… Any thoughts?

thx, Tomas

The output of your Nextcloud log in Admin > Logging:

Error	PHP	shell_exec(): Unable to execute 'cat /etc/systemd/timesyncd.conf 2>/dev/null |grep '^NTP=' | cut -f 2 -d " "' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#96		2020-04-10T23:02:11+0200
Error	PHP	shell_exec(): Unable to execute 'cat /etc/ntp.conf 2>/dev/null |grep '^pool' | cut -f 2 -d " "' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#95		2020-04-10T23:02:11+0200
Error	PHP	shell_exec(): Unable to execute 'cat /etc/systemd/timesyncd.conf 2>/dev/null |grep '^NTP=' | cut -f 2 -d " "' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#96		2020-04-10T23:02:10+0200
Error	PHP	shell_exec(): Unable to execute 'cat /etc/ntp.conf 2>/dev/null |grep '^pool' | cut -f 2 -d " "' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#95		2020-04-10T23:02:10+0200
Error	PHP	shell_exec(): Unable to execute 'cat /etc/systemd/timesyncd.conf 2>/dev/null |grep '^NTP=' | cut -f 2 -d " "' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#96		2020-04-10T23:02:09+0200
Error	PHP	shell_exec(): Unable to execute 'cat /etc/ntp.conf 2>/dev/null |grep '^pool' | cut -f 2 -d " "' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#95		2020-04-10T23:02:09+0200
Error	PHP	shell_exec(): Unable to execute 'cat /etc/systemd/timesyncd.conf 2>/dev/null |grep '^NTP=' | cut -f 2 -d " "' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#96		2020-04-10T23:02:07+0200
Error	PHP	shell_exec(): Unable to execute 'cat /etc/ntp.conf 2>/dev/null |grep '^pool' | cut -f 2 -d " "' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#95		2020-04-10T23:02:07+0200
Error	PHP	shell_exec(): Unable to execute 'cat /etc/systemd/timesyncd.conf 2>/dev/null |grep '^NTP=' | cut -f 2 -d " "' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#96		2020-04-10T23:02:06+0200
Error	PHP	shell_exec(): Unable to execute 'cat /etc/ntp.conf 2>/dev/null |grep '^pool' | cut -f 2 -d " "' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#95		2020-04-10T23:02:06+0200
Error	PHP	shell_exec(): Unable to execute 'cat /etc/systemd/timesyncd.conf 2>/dev/null |grep '^NTP=' | cut -f 2 -d " "' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#96		2020-04-10T23:02:05+0200
Error	PHP	shell_exec(): Unable to execute 'cat /etc/ntp.conf 2>/dev/null |grep '^pool' | cut -f 2 -d " "' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#95		2020-04-10T23:02:05+0200
Error	PHP	shell_exec(): Unable to execute 'cat /etc/systemd/timesyncd.conf 2>/dev/null |grep '^NTP=' | cut -f 2 -d " "' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#96		2020-04-10T23:02:04+0200
Error	PHP	shell_exec(): Unable to execute 'cat /etc/ntp.conf 2>/dev/null |grep '^pool' | cut -f 2 -d " "' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#95		2020-04-10T23:02:04+0200
Error	PHP	shell_exec(): Unable to execute 'cat /etc/systemd/timesyncd.conf 2>/dev/null |grep '^NTP=' | cut -f 2 -d " "' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#96		2020-04-10T23:02:02+0200
Error	PHP	shell_exec(): Unable to execute 'cat /etc/ntp.conf 2>/dev/null |grep '^pool' | cut -f 2 -d " "' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#95		2020-04-10T23:02:02+0200
Error	PHP	shell_exec(): Unable to execute 'cat /etc/systemd/timesyncd.conf 2>/dev/null |grep '^NTP=' | cut -f 2 -d " "' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#96		2020-04-10T23:02:01+0200
Error	PHP	shell_exec(): Unable to execute 'cat /etc/ntp.conf 2>/dev/null |grep '^pool' | cut -f 2 -d " "' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#95		2020-04-10T23:02:01+0200
Error	PHP	shell_exec(): Unable to execute 'ip -o -6 addr show lo | sed -e 's/^.*inet6 \([^ ]\+\).*/\1/'' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#125		2020-04-10T23:01:59+0200
Error	PHP	shell_exec(): Unable to execute 'ip addr show dev lo | grep "inet " | cut -d ' ' -f 6 | cut -f 1 -d '/'' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#124		2020-04-10T23:01:59+0200
Error	PHP	shell_exec(): Unable to execute 'ip addr show dev lo | grep "link/ether " | cut -d ' ' -f 6 | cut -f 1 -d '/'' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#123		2020-04-10T23:01:59+0200
Error	PHP	shell_exec(): Unable to execute 'ip -o -6 addr show eth0 | sed -e 's/^.*inet6 \([^ ]\+\).*/\1/'' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#125		2020-04-10T23:01:59+0200
Error	PHP	shell_exec(): Unable to execute 'ip addr show dev eth0 | grep "inet " | cut -d ' ' -f 6 | cut -f 1 -d '/'' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#124		2020-04-10T23:01:59+0200
Error	PHP	shell_exec(): Unable to execute 'ip addr show dev eth0 | grep "link/ether " | cut -d ' ' -f 6 | cut -f 1 -d '/'' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#123		2020-04-10T23:01:59+0200
Error	PHP	shell_exec(): Unable to execute 'ip -o -6 addr show bonding_masters | sed -e 's/^.*inet6 \([^ ]\+\).*/\1/'' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#125		2020-04-10T23:01:59+0200
Error	PHP	shell_exec(): Unable to execute 'ip addr show dev bonding_masters | grep "inet " | cut -d ' ' -f 6 | cut -f 1 -d '/'' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#124		2020-04-10T23:01:59+0200
Error	PHP	shell_exec(): Unable to execute 'ip addr show dev bonding_masters | grep "link/ether " | cut -d ' ' -f 6 | cut -f 1 -d '/'' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#123		2020-04-10T23:01:59+0200
Error	PHP	shell_exec(): Unable to execute 'cat /etc/resolv.conf |grep -i '^nameserver'|head -n1|cut -d ' ' -f2' at /nfsmnt/hosting1_2/1/b/1b762867-630f-4dca-b3dc-caca865f417b/3d-sphere.com/sub/unicorn/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#106		2020-04-10T23:01:59+0200
Warning	core	Login failed: 'admin' (Remote IP: '94.228.89.180')		2020-04-10T22:57:32+0200
Warning	appstoreFetcher	Could not connect to appstore: cURL error 28: Operation timed out after 9992 milliseconds with 2768896 out of 4644885 bytes received (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)		2020-04-09T12:30:17+0200
Warning	appstoreFetcher	Could not connect to appstore: cURL error 28: Operation timed out after 10000 milliseconds with 0 bytes received (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)		2020-04-06T12:00:17+0200
Warning	appstoreFetcher	Could not connect to appstore: cURL error 28: Connection timed out after 10001 milliseconds (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)		2020-04-05T12:00:19+0200
Info	updater	\OC\Updater::resetLogLevel: Reset log level to Warning(2)		2020-04-05T11:23:26+0200
Info	updater	\OC\Updater::maintenanceDisabled: Turned off maintenance mode		2020-04-05T11:23:26+0200
Info	updater	\OC\Updater::updateEnd: Update successful		2020-04-05T11:23:26+0200
Info	updater	\OC\Updater::finishedCheckCodeIntegrity: Finished code integrity check		2020-04-05T11:23:26+0200
Info	updater	\OC\Updater::startCheckCodeIntegrity: Starting code integrity check...		2020-04-05T11:23:23+0200
Info	updater	\OC\Repair::step: Repair step: Reset generated avatar flag		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Info	updater	\OC\Repair::info: Repair info: Repair step already executed		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OC\Repair::info: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Info	updater	\OC\Repair::step: Repair step: Sets the enterprise logo		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Info	updater	\OC\Repair::step: Repair step: Switches from deprecated "production" to "stable" update channel		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Info	updater	\OC\Repair::step: Repair step: Clear access cache of projects		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Info	updater	\OC\Repair::info: Repair info: No need to remove link shares.		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OC\Repair::info: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Info	updater	\OC\Repair::step: Repair step: Remove potentially over exposing share links		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Info	updater	\OC\Repair::step: Repair step: Add background job to cleanup login flow v2 tokens		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Info	updater	\OC\Repair::step: Repair step: Cleanup invalid photocache files for carddav		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Info	updater	\OC\Repair::step: Repair step: Queue a one-time job to cleanup old backups of the updater		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Info	updater	\OC\Repair::step: Repair step: Add preview background cleanup job		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Info	updater	\OC\Repair::step: Repair step: Clear every generated avatar on major updates		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Info	updater	\OC\Repair::info: Repair info: JS cache cleared		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OC\Repair::info: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::preDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::preDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::preDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::preDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::preDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::preDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::preDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::preDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::preDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::preDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::preDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::preDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Info	updater	\OC\Repair::info: Repair info: SCSS cache cleared		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OC\Repair::info: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	SCSSCacher: css cache cleared!		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::preDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::preDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::preDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::preDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::preDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::preDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::preDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::preDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::preDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::preDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::preDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::preDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::preDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200
Debug	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-04-05T11:23:23+0200

Hi tsalat,

Some providers restrict or limit the Shell usage, so customers cannot use elevated commands.

You could use the occ web app from Apps in your admin account. With this, you should be able to execute the required occ commands.

2 Likes

Worked like charm! thx

I confirm this is working on my 18.0.4 instance.

Thanks!