Skip to content

Groupfolder occ commands failed as soon as a subfolder is created by the web interface #1855

@forsequans

Description

@forsequans

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Create a group folder from settings
    get its id with php occ groupfolders:list
    if for example 131 is the ID of this groupfolder scan it with php occ groupfolders:scan 131
    	Folder	
+---------+-------+--------------+
| Folders | Files | Elapsed time |
+---------+-------+--------------+
| 1       | 0     | 00:00:00     |
+---------+-------+--------------+
  1. Then from files create a new text file in this folder and scan again the folder with occ command
	Folder	
	File	hello.txt
+---------+-------+--------------+
| Folders | Files | Elapsed time |
+---------+-------+--------------+
| 1       | 1     | 00:00:00     |
+---------+-------+--------------+
  1. Now from files create a new subdirectory for this group folder and scan again the folder with occ command
	Folder	
	File	hello.txt

In Request.php line 770:
                                                                                
  [Exception]                                                                   
  The requested uri() cannot be processed by the script '/data/nextcloud/occ')  
                                                                                

Exception trace:
  at /data/nextcloud/lib/private/AppFramework/Http/Request.php:770
 OC\AppFramework\Http\Request->getRawPathInfo() at /data/nextcloud/lib/private/AppFramework/Http/Request.php:796
 OC\AppFramework\Http\Request->getPathInfo() at /data/nextcloud/apps/workflowengine/lib/Check/RequestURL.php:77
 OCA\WorkflowEngine\Check\RequestURL->getActualValue() at /data/nextcloud/apps/workflowengine/lib/Check/RequestURL.php:52
 OCA\WorkflowEngine\Check\RequestURL->executeCheck() at /data/nextcloud/apps/workflowengine/lib/Service/RuleMatcher.php:245
 OCA\WorkflowEngine\Service\RuleMatcher->check() at /data/nextcloud/apps/workflowengine/lib/Service/RuleMatcher.php:180
 OCA\WorkflowEngine\Service\RuleMatcher->getMatchingOperations() at /data/nextcloud/apps/workflowengine/lib/Service/RuleMatcher.php:128
 OCA\WorkflowEngine\Service\RuleMatcher->getFlows() at /data/nextcloud/apps/files_automatedtagging/lib/Operation.php:95
 OCA\FilesAutomatedTagging\Operation->checkOperations() at /data/nextcloud/apps/files_automatedtagging/lib/Listener/CacheListener.php:43
 OCA\FilesAutomatedTagging\Listener\CacheListener->handle() at /data/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php:75
 OC\EventDispatcher\ServiceEventListener->__invoke() at /data/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php:251
 Symfony\Component\EventDispatcher\EventDispatcher->callListeners() at /data/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php:73
 Symfony\Component\EventDispatcher\EventDispatcher->dispatch() at /data/nextcloud/lib/private/EventDispatcher/EventDispatcher.php:88
 OC\EventDispatcher\EventDispatcher->dispatch() at /data/nextcloud/lib/private/EventDispatcher/EventDispatcher.php:100
 OC\EventDispatcher\EventDispatcher->dispatchTyped() at /data/nextcloud/lib/private/Files/Cache/Cache.php:417
 OC\Files\Cache\Cache->update() at /data/nextcloud/lib/private/Files/Cache/Wrapper/CacheJail.php:148
 OC\Files\Cache\Wrapper\CacheJail->update() at /data/nextcloud/lib/private/Files/Cache/Wrapper/CacheWrapper.php:145
 OC\Files\Cache\Wrapper\CacheWrapper->update() at /data/nextcloud/apps/groupfolders/lib/Mount/RootEntryCache.php:52
 OCA\GroupFolders\Mount\RootEntryCache->update() at /data/nextcloud/lib/private/Files/Cache/Scanner.php:291
 OC\Files\Cache\Scanner->addToCache() at /data/nextcloud/lib/private/Files/Cache/Scanner.php:224
 OC\Files\Cache\Scanner->scanFile() at /data/nextcloud/lib/private/Files/Cache/Scanner.php:427
 OC\Files\Cache\Scanner->handleChildren() at /data/nextcloud/lib/private/Files/Cache/Scanner.php:388
 OC\Files\Cache\Scanner->scanChildren() at /data/nextcloud/lib/private/Files/Cache/Scanner.php:340
 OC\Files\Cache\Scanner->scan() at /data/nextcloud/apps/groupfolders/lib/Command/Scan.php:82
 OCA\GroupFolders\Command\Scan->execute() at /data/nextcloud/3rdparty/symfony/console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at /data/nextcloud/core/Command/Base.php:168
 OC\Core\Command\Base->run() at /data/nextcloud/3rdparty/symfony/console/Application.php:1009
 Symfony\Component\Console\Application->doRunCommand() at /data/nextcloud/3rdparty/symfony/console/Application.php:273
 Symfony\Component\Console\Application->doRun() at /data/nextcloud/3rdparty/symfony/console/Application.php:149
 Symfony\Component\Console\Application->run() at /data/nextcloud/lib/private/Console/Application.php:209
 OC\Console\Application->run() at /data/nextcloud/console.php:99
 require_once() at /data/nextcloud/occ:11
  1. Once you remove the newly created subfolder, occ return to normal execution

Server configuration

Operating system: Debian 10

Web server: Apache 2.4.38

Database: Postgresql 9

PHP version: 7.3.31

Nextcloud version: (see Nextcloud admin page) 22.2.3.0

Group folders version: 10.0.1 (also fail in 10.0.0)

Are you using an external user-backend, if yes which one: LDAP

Client configuration

Browser: Firefox or Chrome

Operating system: Debain 10

Logs

Web server error log

Web server error log
No Log as run by occ

Nextcloud log (data/nextcloud.log)

Nextcloud log
No log in file, see error message in desription

Browser log

Browser log
Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. to developIssues that are ready for developmentbugfeature: occItems related to the OCC CLI interface

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions