Occ files_external local create

Hello;
I use arch linux with nextcloud not docker.
I want local storage attach.

I created folders:

[I]  >>> sudo ls -la /var/tmp/http-users                                                            (1) 21:30:38 

összesen 24
drwxr-xr-x 6 http      http      4096 nov   20 21.28 .
drwxrwxrwt 9 root      root      4096 nov   20 21.34 ..
drwxr-x--- 2 http      http      4096 nov   20 18.59 t1jog
drwxrwxrwx 2 http      http      4096 nov   20 19.00 t2jog
drwxrwx--- 2 http      gyurmo    4096 nov   20 18.40 vm1
drwxr-xr-x 2 nextcloud nextcloud 4096 nov   20 21.28 vm3

I tried all folder to add external storage:

sudo -u nextcloud php /usr/share/webapps/nextcloud/occ  files_external:create t1 local null::null
sudo -u nextcloud php /usr/share/webapps/nextcloud/occ  files_external:config 2 datadir /var/tmp/http-users/t2jog
sudo -u nextcloud php /usr/share/webapps/nextcloud/occ  files_external:list

But I got error message. Why?

[I] /r/m/g/3000 >>> sudo -u nextcloud php /usr/share/webapps/nextcloud/occ  files_external:verify 2                21:29:27 
An unhandled exception has been thrown:
TypeError: OCA\Circles\Service\ShareWrapperService::getShareByToken(): Argument #1 ($token) must be of type string, null given, called in /usr/share/webapps/nextcloud/apps/circles/lib/ShareByCircleProvider.php on line 584 and defined in /usr/share/webapps/nextcloud/apps/circles/lib/Service/ShareWrapperService.php:162
Stack trace:
#0 /usr/share/webapps/nextcloud/apps/circles/lib/ShareByCircleProvider.php(584): OCA\Circles\Service\ShareWrapperService->getShareByToken()
#1 /usr/share/webapps/nextcloud/lib/private/Share20/Manager.php(1476): OCA\Circles\ShareByCircleProvider->getShareByToken()
#2 /usr/share/webapps/nextcloud/apps/files_external/lib/Config/UserContext.php(75): OC\Share20\Manager->getShareByToken()
#3 /usr/share/webapps/nextcloud/apps/files_external/lib/Config/UserPlaceholderHandler.php(37): OCA\Files_External\Config\UserContext->getUserId()
#4 /usr/share/webapps/nextcloud/apps/files_external/lib/MountConfig.php(99): OCA\Files_External\Config\UserPlaceholderHandler->handle()
#5 /usr/share/webapps/nextcloud/apps/files_external/lib/MountConfig.php(122): OCA\Files_External\MountConfig::substitutePlaceholdersInConfig()
#6 /usr/share/webapps/nextcloud/apps/files_external/lib/Command/Verify.php(124): OCA\Files_External\MountConfig::getBackendStatus()
#7 /usr/share/webapps/nextcloud/apps/files_external/lib/Command/Verify.php(79): OCA\Files_External\Command\Verify->updateStorageStatus()
#8 /usr/share/webapps/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OCA\Files_External\Command\Verify->execute()
#9 /usr/share/webapps/nextcloud/core/Command/Base.php(168): Symfony\Component\Console\Command\Command->run()
#10 /usr/share/webapps/nextcloud/3rdparty/symfony/console/Application.php(1009): OC\Core\Command\Base->run()
#11 /usr/share/webapps/nextcloud/3rdparty/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()
#12 /usr/share/webapps/nextcloud/3rdparty/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()
#13 /usr/share/webapps/nextcloud/lib/private/Console/Application.php(209): Symfony\Component\Console\Application->run()
#14 /usr/share/webapps/nextcloud/console.php(99): OC\Console\Application->run()
#15 /usr/share/webapps/nextcloud/occ(11): require_once('...')
#16 {main}⏎

[/details]

Nextcloud version (eg, 20.0.5): 22.2.0-1
Operating system and version (eg, Ubuntu 20.04): Arch aarch64
nginx version (eg, Apache 2.4.25): 1.21.3-1
PHP version (eg, 7.4): 8.0.12

Hey!
I got the same issue.
Using the GUI, I only got a RED icon when I apply for changes.

Did you solve it ?
Anyone could help please ?

Nextcloud version: 22.2.3
Os: Debian GNU/Linux 11 (bullseye)
Apache version: Apache/2.4.51 (Server built: 2021-10-07T17:49:44)
Php: 8.0.13

1 Like