Skip to content

OC\User\NoUserException: Backends provided no user object #19647

Closed as not planned

Description

@tigernero79

I use two nextcloud updated to version 18.0.1 and I have problem in deleting files from a shared federated folder. while nextcloud user who shared my folder with me you can safely operate the files I who received the federated folder I can upload the images but not delete them although on another instance I have permissions on the folder for editing. I get this error "OC \ User \ NoUserException: Backends provided no user object" how can I solve?

Attach complete error:

[webdav] Fatal: OC\User\NoUserException: Backends provided no user object at <<closure>>

 0. <<closure>>
    OC\Files\Node\Root->getUserFolder("[email protected]/")
 1. /var/www/Pensierando/nx/lib/private/Files/Node/LazyRoot.php line 65
    call_user_func_array([OC\Files\Node\Root {},"getUserFolder"], ["[email protected]/"])
 2. /var/www/Pensierando/nx/lib/private/Files/Node/LazyRoot.php line 282
    OC\Files\Node\LazyRoot->__call("getUserFolder", ["[email protected]/"])
 3. /var/www/Pensierando/nx/apps/files_trashbin/lib/Storage.php line 142
    OC\Files\Node\LazyRoot->getUserFolder("[email protected]/")
 4. /var/www/Pensierando/nx/apps/files_trashbin/lib/Storage.php line 182
    OCA\Files_Trashbin\Storage->shouldMoveToTrash("2020-02-23_161848.jpg")
 5. /var/www/Pensierando/nx/apps/files_trashbin/lib/Storage.php line 100
    OCA\Files_Trashbin\Storage->doDelete("2020-02-23_161848.jpg", "unlink")
 6. /var/www/Pensierando/nx/apps/files_accesscontrol/lib/StorageWrapper.php line 287
    OCA\Files_Trashbin\Storage->unlink("2020-02-23_161848.jpg")
 7. /var/www/Pensierando/nx/lib/private/Files/View.php line 1162
    OCA\FilesAccessControl\StorageWrapper->unlink("2020-02-23_161848.jpg")
 8. /var/www/Pensierando/nx/lib/private/Files/View.php line 716
    OC\Files\View->basicOperation("unlink", "/Cartella Con T ... g", ["delete"])
 9. /var/www/Pensierando/nx/apps/dav/lib/Connector/Sabre/File.php line 448
    OC\Files\View->unlink("/Cartella Con T ... g")
10. /var/www/Pensierando/nx/3rdparty/sabre/dav/lib/DAV/Tree.php line 179
    OCA\DAV\Connector\Sabre\File->delete()
11. /var/www/Pensierando/nx/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 287
    Sabre\DAV\Tree->delete("files/Tiger/Car ... g")
12. <<closure>>
    Sabre\DAV\CorePlugin->httpDelete(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
13. /var/www/Pensierando/nx/3rdparty/sabre/event/lib/EventEmitterTrait.php line 105
    call_user_func_array([Sabre\DAV\CorePlugin {},"httpDelete"], [Sabre\HTTP\Requ ... }])
14. /var/www/Pensierando/nx/3rdparty/sabre/dav/lib/DAV/Server.php line 479
    Sabre\Event\EventEmitter->emit("method:DELETE", [Sabre\HTTP\Requ ... }])
15. /var/www/Pensierando/nx/3rdparty/sabre/dav/lib/DAV/Server.php line 254
    Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
16. /var/www/Pensierando/nx/apps/dav/lib/Server.php line 319
    Sabre\DAV\Server->exec()
17. /var/www/Pensierando/nx/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
18. /var/www/Pensierando/nx/remote.php line 165
    require_once("/var/www/Pensie ... p")

DELETE /remote.php/dav/files/Tiger/Cartella%20Con%20Tiger/2020-02-23_161848.jpg
from 37.160.88.102 by Tiger at 2020-02-25T21:10:45+00:00

Activity

  1. tigernero79 commented on Feb 26, 2020

    @tigernero79
    Author

    in practice, those who receive the federated folder from another nextcloud despite having the permissions to delete, cannot delete files that only the one who shared the federated folder puts in that folder, while I, who received the shared folder in my nextcloud, can only files but don't delete them as well if other has given me the permissions.

  2. tigernero79 commented on Feb 26, 2020

    @tigernero79
    Author

    @nickvergessen I read that you committed to the problem that I have on nextcloud 12,

    nextcloud/files_downloadactivity#8

    but now I run on instance nextcloud 18.0.1 and I still have that error on the federated shared folders where those who shared can delete the files and those who receive the federated folder it cannot delete the files inside despite having received the permissions. how to solve?

  3. pilsetnieks commented on Apr 28, 2020

    @pilsetnieks
  4. arjan-s commented on Jul 8, 2020

    @arjan-s
  5. aimotrens commented on Jul 23, 2020

    @aimotrens
  6. arjan-s commented on Jul 23, 2020

    @arjan-s
  7. uPvtkBlpiucvDUf commented on Jul 29, 2020

    @uPvtkBlpiucvDUf

    I jus had a look at the stacktrace from #19647 (comment) and the code. The problem seems to be this in the trashbin app (OCA\Files_Trashbin\Storage::shouldMoveToTrash):

    // check if there is a app which want to disable the trash bin for this file
    $fileId = $this->storage->getCache()->getId($path);
    $owner = $this->storage->getOwner($path);
    if ($owner === false) {
    	$nodes = $this->rootFolder->getById($fileId);
    } else {
    	$nodes = $this->rootFolder->getUserFolder($owner)->getById($fileId);
    }

    This assumes $owner is either false or a user. However, for federated shares, $owner is something like [email protected]/, which is neither false nor a user. As a result, $this->rootFolder->getUserFolder($owner) raises an exception and the delete operation fails.

    The problem seems to have been introduced in this commit: 8e7c287. I think the trashbin behavior needs to be adjusted to work with federated shares. Unfortunately, I don't know enough about nextcloud internals to know how the trashbin should be correctly handled in this case.

    @rullzer Can you help?

    Fwiw: I can reproduce this issue on 19.0.1 and when it occurs I can also reproduce this other issue: nextcloud/desktop#853 regarding high CPU usage of the desktop client. This high CPU usage occurs precisely after I receive a federated share and then try to delete a file in this share (which fails as described above). If I remove the federated share, also the desktop client syncing issue is gone. The reason seems to be that the server always sends a new Etag to the client for the federated share so that the client is constantly syncing (according to logs recorded with nextcloud --logdebug). I will write a more detailed comment about this when I find the time.

  8. fettfoen commented on Jul 31, 2020

    @fettfoen
  9. khlschrnk commented on Sep 12, 2020

    @khlschrnk

    I also got this problem since a a long time. Now, with 19.0.3 it's still appearing in my log at every run of cron.

  10. kiplingw commented on Sep 19, 2020

    @kiplingw

    I am experiencing the same problem on 19.0.3. Remote user shared a folder with me. They have given me full permissions to create, edit, and delete. I am able to do all of but the latter. The logs show the following stack trace:

    {"reqId":"X2Z8DISIBkpZi3KVwiBabgAAAA0",
    "level":3,
    "time":"2020-09-19T21:45:53+00:00",
    "remoteAddr":"<redacted>",
    "user":"kip",
    "app":"files",
    "method":"DELETE",
    "url":"/remote.php/dav/files/<redacted>/test.md",
    "message":"Backends provided no user object for <redacted>@nextcloud.<redacted>.com/",
    "userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0",
    "version":"19.0.3.1"}
    {
        "reqId":"X2Z8DISIBkpZi3KVwiBabgAAAA0",
    
        "level":4,
    
        "time":"2020-09-19T21:45:53+00:00",
    
        "remoteAddr":"<redacted>",
    
        "user":"kip",
    
        "app":"webdav",
    
        "method":"DELETE",
    
        "url":"/remote.php/dav/files/<redacted>/test.md",
    
        "message":
        {
            "Exception":"OC\\User\\NoUserException",
    
            "Message":"Backends provided no user object",
    
            "Code":0,
    
            "Trace":
            [
                {
                    "function":"getUserFolder",
    
                    "class":"OC\\Files\\Node\\Root",
    
                    "type":"->",
    
                    "args":
                    [
                        "<redacted>@nextcloud.<redacted>.com/"
                    ]
                },
    
                {
                    "file":"/home/ct_nextcloud/nextcloud.<redacted>.com/lib/private/Files/Node/LazyRoot.php",
    
                    "line":66,
    
                    "function":"call_user_func_array",
    
                    "args":
                    [
                        [
                            {
                                "__class__":"OC\\Files\\Node\\Root"
                            },
    
                            "getUserFolder"
                        ],
    
                        [
                            "<redacted>@nextcloud.<redacted>.com/"
                        ]
                    ]
                },
    
                {
                    "file":"/home/ct_nextcloud/nextcloud.<redacted>.com/lib/private/Files/Node/LazyRoot.php",
    
                    "line":283,
    
                    "function":"__call",
    
                    "class":"OC\\Files\\Node\\LazyRoot",
    
                    "type":"->",
    
                    "args":
                    [
                        "getUserFolder",
    
                        [
                            "<redacted>@nextcloud.<redacted>.com/"
                        ]
                    ]
                },
    
                {
                    "file":"/home/ct_nextcloud/nextcloud.<redacted>.com/apps/files_trashbin/lib/Storage.php",
    
                    "line":141,
    
                    "function":"getUserFolder",
    
                    "class":"OC\\Files\\Node\\LazyRoot",
    
                    "type":"->",
    
                    "args":
                    [
                        "<redacted>@nextcloud.<redacted>.com/"
                    ]
                },
    
                {
                    "file":"/home/ct_nextcloud/nextcloud.<redacted>.com/apps/files_trashbin/lib/Storage.php",
    
                    "line":181,
    
                    "function":"shouldMoveToTrash",
    
                    "class":"OCA\\Files_Trashbin\\Storage",
    
                    "type":"->",
    
                    "args":
                    [
                        "test.md"
                    ]
                },
    
                {
                    "file":"/home/ct_nextcloud/nextcloud.<redacted>.com/apps/files_trashbin/lib/Storage.php",
    
                    "line":99,
    
                    "function":"doDelete",
    
                    "class":"OCA\\Files_Trashbin\\Storage",
    
                    "type":"->",
    
                    "args":
                    [
                        "test.md",
    
                        "unlink"
                    ]
                },
    
                {
                    "file":"/home/ct_nextcloud/nextcloud.<redacted>.com/lib/private/Files/View.php",
    
                    "line":1161,
    
                    "function":"unlink",
    
                    "class":"OCA\\Files_Trashbin\\Storage",
    
                    "type":"->",
    
                    "args":
                    [
                        "test.md"
                    ]
                },
    
                {
                    "file":"/home/ct_nextcloud/nextcloud.<redacted>.com/lib/private/Files/View.php",
    
                    "line":718,
    
                    "function":"basicOperation",
    
                    "class":"OC\\Files\\View",
    
                    "type":"->",
    
                    "args":
                    [
                        "unlink",
    
                        "/<redacted>/test.md",
    
                        [
                            "delete"
                        ]
                    ]
                },
    
                {
                    "file":"/home/ct_nextcloud/nextcloud.<redacted>.com/apps/dav/lib/Connector/Sabre/File.php",
    
                    "line":458,
                    "function":"unlink",
                    "class":"OC\\Files\\View",
                    "type":"->",
                    "args":
                    [
                        "/<redacted>/test.md"
                    ]
                },
                {
                    "file":"/home/ct_nextcloud/nextcloud.<redacted>.com/3rdparty/sabre/dav/lib/DAV/Tree.php",
                    "line":183,
                    "function":"delete",
                    "class":"OCA\\DAV\\Connector\\Sabre\\File",
                    "type":"->",
                    "args":[]
                },
                {
                    "file":"/home/ct_nextcloud/nextcloud.<redacted>.com/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
                    "line":295,
                    "function":"delete",
                    "class":"Sabre\\DAV\\Tree",
                    "type":"->",
                    "args":
                    [
                        "files/kip/<redacted>/test.md"
                    ]
                },
                {
                    "file":"/home/ct_nextcloud/nextcloud.<redacted>.com/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
                    "line":89,
                    "function":"httpDelete",
                    "class":"Sabre\\DAV\\CorePlugin",
                    "type":"->",
                    "args":
                    [
                        {
                            "__class__":"Sabre\\HTTP\\Request"
                        },
                        {
                            "__class__":"Sabre\\HTTP\\Response"
                        }
                    ]
                },
                {
                    "file":"/home/ct_nextcloud/nextcloud.<redacted>.com/3rdparty/sabre/dav/lib/DAV/Server.php",
                    "line":474,
                    "function":"emit",
                    "class":"Sabre\\DAV\\Server",
                    "type":"->",
                    "args":
                    [
                        "method:DELETE",
                        [
                            {
                                "__class__":"Sabre\\HTTP\\Request"
                            },
                            {
                                "__class__":"Sabre\\HTTP\\Response"
                            }
                        ]
                    ]
                },
                {
                    "file":"/home/ct_nextcloud/nextcloud.<redacted>.com/3rdparty/sabre/dav/lib/DAV/Server.php",
                    "line":251,
                    "function":"invokeMethod",
                    "class":"Sabre\\DAV\\Server",
                    "type":"->",
                    "args":
                    [
                        {
                            "__class__":"Sabre\\HTTP\\Request"
                        },
                        {
                            "__class__":"Sabre\\HTTP\\Response"
                        }
                    ]
                },
                {
                    "file":"/home/ct_nextcloud/nextcloud.<redacted>.com/3rdparty/sabre/dav/lib/DAV/Server.php",
                    "line":319,
                    "function":"start",
                    "class":"Sabre\\DAV\\Server",
                    "type":"->",
                    "args":
                    [
                    ]
                },
                {
                    "file":"/home/ct_nextcloud/nextcloud.<redacted>.com/apps/dav/lib/Server.php",
                    "line":320,
                    "function":"exec",
                    "class":"Sabre\\DAV\\Server",
                    "type":"->",
                    "args":
                    [
                    ]
                },
                {
                    "file":"/home/ct_nextcloud/nextcloud.<redacted>.com/apps/dav/appinfo/v2/remote.php",
                    "line":35,
                    "function":"exec",
                    "class":"OCA\\DAV\\Server",
                    "type":"->",
                    "args":
                    [
                    ]
                },
                {
                    "file":"/home/ct_nextcloud/nextcloud.<redacted>.com/remote.php",
                    "line":167,
                    "args":
                    [
                        "/home/ct_nextcloud/nextcloud.<redacted>.com/apps/dav/appinfo/v2/remote.php"
                    ],
                    "function":"require_once"
                }
            ],
            "File":"/home/ct_nextcloud/nextcloud.<redacted>.com/lib/private/Files/Node/Root.php",
            "Line":373,
            "CustomMessage":"--"
        },
        "userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0",
        "version":"19.0.3.1"
    }
    
    
  11. andyboeh commented on Oct 5, 2020

    @andyboeh
    Contributor

    I have the same problem. Since in #19647 (comment) it was mentioned that files_trashbin could be the problem, I disabled the "Deleted Files" app on the receiving cloud (it's still enabled on the sharing server). I could then delete the shared folder without a problem.

  12. 31 remaining items

  13. solracsf commented on Dec 13, 2023

    @solracsf
    Member

    Reports are a duplicate of nextcloud/groupfolders#2559 so closing gere.

  14. k00ni commented on Dec 13, 2023

    @k00ni
    Contributor

    I am confused why this is a duplicate of nextcloud/groupfolders#2559, when this one is over 2 years older than the linked issue. This issue also contains more information about the problem and tested configurations. It was closed in the meantime but reopened. It seems there is some confusion around here.

  15. solracsf commented on Dec 13, 2023

    @solracsf
    Member

    No there isn't. Problem is that people see "Backends provided no user object" in the error log and thinks "this is the same issue" while it is not the same issue. All recents reports (this year reports) on this issue are related to GroupFolders app, not Server.

    So, it is a duplicate since the issue must be tracked on GroupFolders repo, not here.

  16. dgsiegel commented on Dec 13, 2023

    @dgsiegel

    So, it is a duplicate since the issue must be tracked on GroupFolders repo, not here.

    I don't think this is the case, as we don't have the GroupFolders app installed. It only happens with public shares in our instance, see my comment (#19647 (comment)) above.

  17. adriangalbincea commented on Dec 13, 2023

    @adriangalbincea

    So, it is a duplicate since the issue must be tracked on GroupFolders repo, not here.

    I don't think this is the case, as we don't have the GroupFolders app installed. It only happens with public shares in our instance, see my comment (#19647 (comment)) above.

    I agree. I don't have that app either and I get the same error.

  18. solracsf commented on Dec 13, 2023

    @solracsf
    Member

    Where are your logs backtrace?

    Because "Me too I have the same problem/error/wathever..." means nothing unfortunately...

  19. dgsiegel commented on Dec 14, 2023

    @dgsiegel

    Where are your logs backtrace?

    There are plenty of log backtraces already in this issue, but here you go:

    [files] Error: OC\User\NoUserException: Backends provided no user object at <<closure>>
    
     0. <<closure>>
        OC\Files\Node\Root->getUserFolder()
     1. /var/www/<redacted>/lib/private/Files/Node/LazyFolder.php line 74
        call_user_func_array()
     2. /var/www/<redacted>/lib/private/Files/Node/LazyRoot.php line 40
        OC\Files\Node\LazyFolder->__call()
     3. /var/www/<redacted>/apps/files_versions/lib/Listener/FileEventsListener.php line 359
        OC\Files\Node\LazyRoot->getUserFolder()
     4. /var/www/<redacted>/apps/files_versions/lib/Listener/FileEventsListener.php line 295
        OCA\Files_Versions\Listener\FileEventsListener->getPathForNode()
     5. /var/www/<redacted>/apps/files_versions/lib/Listener/FileEventsListener.php line 116
        OCA\Files_Versions\Listener\FileEventsListener->pre_remove_hook()
     6. /var/www/<redacted>/lib/private/EventDispatcher/ServiceEventListener.php line 86
        OCA\Files_Versions\Listener\FileEventsListener->handle()
     7. /var/www/<redacted>/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 251
        OC\EventDispatcher\ServiceEventListener->__invoke()
     8. /var/www/<redacted>/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 73
        Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     9. /var/www/<redacted>/lib/private/EventDispatcher/EventDispatcher.php line 94
        Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
    10. /var/www/<redacted>/lib/private/EventDispatcher/EventDispatcher.php line 106
        OC\EventDispatcher\EventDispatcher->dispatch()
    11. /var/www/<redacted>/lib/private/Files/Node/HookConnector.php line 149
        OC\EventDispatcher\EventDispatcher->dispatchTyped()
    12. /var/www/<redacted>/lib/private/legacy/OC_Hook.php line 105
        OC\Files\Node\HookConnector->delete()
    13. /var/www/<redacted>/lib/private/Files/View.php line 1270
        OC_Hook::emit()
    14. /var/www/<redacted>/lib/private/Files/View.php line 1144
        OC\Files\View->runHooks()
    15. /var/www/<redacted>/lib/private/Files/View.php line 702
        OC\Files\View->basicOperation()
    16. /var/www/<redacted>/apps/dav/lib/Connector/Sabre/File.php line 536
        OC\Files\View->unlink()
    17. /var/www/<redacted>/3rdparty/sabre/dav/lib/DAV/Tree.php line 179
        OCA\DAV\Connector\Sabre\File->delete()
    18. /var/www/<redacted>/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 281
        Sabre\DAV\Tree->delete()
    19. /var/www/<redacted>/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
        Sabre\DAV\CorePlugin->httpDelete()
    20. /var/www/<redacted>/3rdparty/sabre/dav/lib/DAV/Server.php line 472
        Sabre\DAV\Server->emit()
    21. /var/www/<redacted>/3rdparty/sabre/dav/lib/DAV/Server.php line 253
        Sabre\DAV\Server->invokeMethod()
    22. /var/www/<redacted>/3rdparty/sabre/dav/lib/DAV/Server.php line 321
        Sabre\DAV\Server->start()
    23. /var/www/<redacted>/apps/dav/appinfo/v1/publicwebdav.php line 123
        Sabre\DAV\Server->exec()
    24. /var/www/<redacted>/public.php line 81
        require_once("/var/www/<redacted>. ... p")
    
    DELETE /public.php/webdav/<redacted>.pdf
    from <redacted> at 2023-12-13T23:10:38+00:00
    
    [files] Error: OC\User\NoUserException: Backends provided no user object at <<closure>>
    
     0. <<closure>>
        OC\Files\Node\Root->getUserFolder()
     1. /var/www/<redacted>/lib/private/Files/Node/LazyFolder.php line 74
        call_user_func_array()
     2. /var/www/<redacted>/lib/private/Files/Node/LazyRoot.php line 40
        OC\Files\Node\LazyFolder->__call()
     3. /var/www/<redacted>/apps/files_versions/lib/Listener/FileEventsListener.php line 359
        OC\Files\Node\LazyRoot->getUserFolder()
     4. /var/www/<redacted>/apps/files_versions/lib/Listener/FileEventsListener.php line 281
        OCA\Files_Versions\Listener\FileEventsListener->getPathForNode()
     5. /var/www/<redacted>/apps/files_versions/lib/Listener/FileEventsListener.php line 120
        OCA\Files_Versions\Listener\FileEventsListener->remove_hook()
     6. /var/www/<redacted>/lib/private/EventDispatcher/ServiceEventListener.php line 86
        OCA\Files_Versions\Listener\FileEventsListener->handle()
     7. /var/www/<redacted>/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 251
        OC\EventDispatcher\ServiceEventListener->__invoke()
     8. /var/www/<redacted>/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 73
        Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     9. /var/www/<redacted>/lib/private/EventDispatcher/EventDispatcher.php line 94
        Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
    10. /var/www/<redacted>/lib/private/EventDispatcher/EventDispatcher.php line 106
        OC\EventDispatcher\EventDispatcher->dispatch()
    11. /var/www/<redacted>/lib/private/Files/Node/HookConnector.php line 159
        OC\EventDispatcher\EventDispatcher->dispatchTyped()
    12. /var/www/<redacted>/lib/private/legacy/OC_Hook.php line 105
        OC\Files\Node\HookConnector->postDelete()
    13. /var/www/<redacted>/lib/private/Files/View.php line 1270
        OC_Hook::emit()
    14. /var/www/<redacted>/lib/private/Files/View.php line 1202
        OC\Files\View->runHooks()
    15. /var/www/<redacted>/lib/private/Files/View.php line 702
        OC\Files\View->basicOperation()
    16. /var/www/<redacted>/apps/dav/lib/Connector/Sabre/File.php line 536
        OC\Files\View->unlink()
    17. /var/www/<redacted>/3rdparty/sabre/dav/lib/DAV/Tree.php line 179
        OCA\DAV\Connector\Sabre\File->delete()
    18. /var/www/<redacted>/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 281
        Sabre\DAV\Tree->delete()
    19. /var/www/<redacted>/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
        Sabre\DAV\CorePlugin->httpDelete()
    20. /var/www/<redacted>/3rdparty/sabre/dav/lib/DAV/Server.php line 472
        Sabre\DAV\Server->emit()
    21. /var/www/<redacted>/3rdparty/sabre/dav/lib/DAV/Server.php line 253
        Sabre\DAV\Server->invokeMethod()
    22. /var/www/<redacted>/3rdparty/sabre/dav/lib/DAV/Server.php line 321
        Sabre\DAV\Server->start()
    23. /var/www/<redacted>/apps/dav/appinfo/v1/publicwebdav.php line 123
        Sabre\DAV\Server->exec()
    24. /var/www/<redacted>/public.php line 81
        require_once("/var/www/<redacted>. ... p")
    
    DELETE /public.php/webdav/<redacted>.pdf
    from <redacted> at 2023-12-13T23:10:38+00:00
    

    I get this error accessing a public share with read&write permissions enabled. I'm accessing that folder via curl and rclone and using the share's id as well as a password to upload and edit files in that folder.

  20. solracsf commented on Dec 14, 2023

    @solracsf
    Member

    Good.

    #41786 has been shipped with v27.1.5 (or v28), released today, it can help in this case.

    Can you test and report back?
    If this does not help, please provide a JSON backtrace.

  21. dgsiegel commented on Dec 15, 2023

    @dgsiegel

    #41786 has been shipped with v27.1.5 (or v28), released today, it can help in this case.

    Can you test and report back? If this does not help, please provide a JSON backtrace.

    Can't find the error anymore in our logs. Thanks!

  22. Marcus1Pierce commented on Dec 17, 2023

    @Marcus1Pierce

    After update to Nextcloud v27.1.5 i still have this error in my logs

    [core] Error: OC\User\NoUserException: Backends provided no user object at <<closure>>
    
     0. <<closure>>
        OC\Files\Node\Root->getUserFolder("")
     1. /var/www/html/lib/private/Files/Node/LazyFolder.php line 74
        call_user_func_array([["OC\\Files\\No ... "], [""])
     2. /var/www/html/lib/private/Files/Node/LazyRoot.php line 40
        OC\Files\Node\LazyFolder->__call("getUserFolder", [""])
     3. /var/www/html/custom_apps/groupfolders/lib/Versions/VersionsBackend.php line 73
        OC\Files\Node\LazyRoot->getUserFolder("")
     4. /var/www/html/custom_apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php line 72
        OCA\GroupFolders\Versions\VersionsBackend->getVersionsForFile(["OC\\User\\User"], ["OC\\Files\\FileInfo"])
     5. /var/www/html/custom_apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php line 59
        OCA\GroupFolders\Versions\GroupVersionsExpireManager->expireFolder([52,"Pusat/Accou ... "])
     6. /var/www/html/custom_apps/groupfolders/lib/BackgroundJob/ExpireGroupVersions.php line 43
        OCA\GroupFolders\Versions\GroupVersionsExpireManager->expireAll()
     7. /var/www/html/lib/public/BackgroundJob/Job.php line 81
        OCA\GroupFolders\BackgroundJob\ExpireGroupVersions->run(null)
     8. /var/www/html/lib/public/BackgroundJob/TimedJob.php line 103
        OCP\BackgroundJob\Job->start(["OC\\BackgroundJob\\JobList"])
     9. /var/www/html/lib/public/BackgroundJob/TimedJob.php line 93
        OCP\BackgroundJob\TimedJob->start(["OC\\BackgroundJob\\JobList"])
    10. /var/www/html/cron.php line 152
        OCP\BackgroundJob\TimedJob->execute(["OC\\BackgroundJob\\JobList"], ["OC\\Log"])
    
    at 2023-12-17T00:30:01+00:00
    
    [files] Error: OC\User\NoUserException: Backends provided no user object at <<closure>>
    
     0. <<closure>>
        OC\Files\Node\Root->getUserFolder("")
     1. /var/www/html/lib/private/Files/Node/LazyFolder.php line 74
        call_user_func_array([["OC\\Files\\No ... "], [""])
     2. /var/www/html/lib/private/Files/Node/LazyRoot.php line 40
        OC\Files\Node\LazyFolder->__call("getUserFolder", [""])
     3. /var/www/html/custom_apps/groupfolders/lib/Versions/VersionsBackend.php line 73
        OC\Files\Node\LazyRoot->getUserFolder("")
     4. /var/www/html/custom_apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php line 72
        OCA\GroupFolders\Versions\VersionsBackend->getVersionsForFile(["OC\\User\\User"], ["OC\\Files\\FileInfo"])
     5. /var/www/html/custom_apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php line 59
        OCA\GroupFolders\Versions\GroupVersionsExpireManager->expireFolder([52,"Pusat/Accou ... "])
     6. /var/www/html/custom_apps/groupfolders/lib/BackgroundJob/ExpireGroupVersions.php line 43
        OCA\GroupFolders\Versions\GroupVersionsExpireManager->expireAll()
     7. /var/www/html/lib/public/BackgroundJob/Job.php line 81
        OCA\GroupFolders\BackgroundJob\ExpireGroupVersions->run(null)
     8. /var/www/html/lib/public/BackgroundJob/TimedJob.php line 103
        OCP\BackgroundJob\Job->start(["OC\\BackgroundJob\\JobList"])
     9. /var/www/html/lib/public/BackgroundJob/TimedJob.php line 93
        OCP\BackgroundJob\TimedJob->start(["OC\\BackgroundJob\\JobList"])
    10. /var/www/html/cron.php line 152
        OCP\BackgroundJob\TimedJob->execute(["OC\\BackgroundJob\\JobList"], ["OC\\Log"])
    
    at 2023-12-17T00:30:01+00:00
    

    Using Nextcloud 27-fpm Docker with latest pull
    All Nextcloud Apps up to date

  23. solracsf commented on Dec 17, 2023

    @solracsf
    Member

    @Marcus1Pierce your error is a duplicate of nextcloud/groupfolders#2559

    Keep it simple:

    1. if the line /groupfolders/lib/Versions/VersionsBackend.php is present in the backtrace, it is a duplicate of Backends provided no user object / Duplicate entry for key 'gf_versions_uniq_index' groupfolders#2559 in this case please also make sure you're using Group Folders app version v16.0.1. If these 2 conditions are met (line is present and app is v16.0.1) report on groupfolders repo.
    2. if the line is not in the logs, and you are using 28 or 27.1.5, report a new issue here. If line is not present and you're using v26 or v27.1.4 or less, upgrade to v27.1.5.
  24. Marcus1Pierce commented on Dec 18, 2023

    @Marcus1Pierce

    @Marcus1Pierce your error is a duplicate of nextcloud/groupfolders#2559

    @solracsf Sorry i though it the same think. I didn't read your comment before.

    1. if the line /groupfolders/lib/Versions/VersionsBackend.php is present in the backtrace, it is a duplicate of Logs filled with cron errors "Backends provided no user object" groupfolders#2559 in this case please also make sure you're using Group Folders app version v16.0.1. If these 2 conditions are met (line is present and app is v16.0.1) report on groupfolders repo.
    2. if the line is not in the logs, and you are using 28 or 27.1.5, report a new issue here. If line is not present and you're using v26 or v27.1.4 or less, upgrade to v27.1.5.

    If i check groupfolders v16.0.1 is available in Nextcloud v28. I think i can't upgarde to Nextcloud 28 for now. And for Nextcloud v27.1.5, latest version of groupfolders is 15.3.1.

  25. thompol commented on Sep 15, 2024

    @thompol

    if the line is not in the logs, and you are using 28 or 27.1.5, report a new issue here. If line is not present and you're using v26 or v27.1.4 or less, upgrade to v27.1.5.

    I'm seeing this issue on Nextcloud Hub 8 - version 29.0.2. The error is shown for a user that is deleted.

    Backtrace:

    {"reqId":"VDrCRUWF8Ocic19ty6gl","level":3,"time":"2024-09-15T09:37:00+00:00","remoteAddr":"","user":"--","app":"files","method":"","url":"--","message":"Backends provided no user object for auth.examle.com-663","userAgent":"--","version":"29.0.2.2","exception":{"Exception":"OC\\User\\NoUserException","Message":"Backends provided no user object","Code":0,"Trace":[{"function":"getUserFolder","class":"OC\\Files\\Node\\Root","type":"->","args":["auth.examle.com-663"]},{"file":"/var/www/html/lib/private/Files/Node/LazyFolder.php","line":84,"function":"call_user_func_array","args":[[["OC\\Files\\Node\\Root"],"getUserFolder"],["auth.examle.com-663"]]},{"file":"/var/www/html/lib/private/Files/Node/LazyRoot.php","line":53,"function":"__call","class":"OC\\Files\\Node\\LazyFolder","type":"->","args":["getUserFolder",["auth.examle.com-663"]]},{"file":"/var/www/html/custom_apps/files_fulltextsearch/lib/Service/FilesService.php","line":558,"function":"getUserFolder","class":"OC\\Files\\Node\\LazyRoot","type":"->","args":["auth.examle.com-663"]},{"file":"/var/www/html/custom_apps/files_fulltextsearch/lib/Service/FilesService.php","line":577,"function":"getFileFromId","class":"OCA\\Files_FullTextSearch\\Service\\FilesService","type":"->","args":["auth.examle.com-663",577]},{"file":"/var/www/html/custom_apps/files_fulltextsearch/lib/Service/FilesService.php","line":1288,"function":"getFileFromIndex","class":"OCA\\Files_FullTextSearch\\Service\\FilesService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/files_fulltextsearch/lib/Service/FilesService.php","line":707,"function":"updateDirectoryContentIndex","class":"OCA\\Files_FullTextSearch\\Service\\FilesService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/files_fulltextsearch/lib/Provider/FilesProvider.php","line":314,"function":"updateDocument","class":"OCA\\Files_FullTextSearch\\Service\\FilesService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/fulltextsearch/lib/Service/IndexService.php","line":409,"function":"updateDocument","class":"OCA\\Files_FullTextSearch\\Provider\\FilesProvider","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/fulltextsearch/lib/Cron/Index.php","line":109,"function":"updateDocument","class":"OCA\\FullTextSearch\\Service\\IndexService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/fulltextsearch/lib/Cron/Index.php","line":77,"function":"liveCycle","class":"OCA\\FullTextSearch\\Cron\\Index","type":"->","args":[]},{"file":"/var/www/html/lib/public/BackgroundJob/Job.php","line":80,"function":"run","class":"OCA\\FullTextSearch\\Cron\\Index","type":"->","args":[null]},{"file":"/var/www/html/lib/public/BackgroundJob/TimedJob.php","line":102,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->","args":[["OC\\BackgroundJob\\JobList"]]},{"file":"/var/www/html/lib/public/BackgroundJob/TimedJob.php","line":92,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->","args":[["OC\\BackgroundJob\\JobList"]]},{"file":"/var/www/html/cron.php","line":176,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->","args":[["OC\\BackgroundJob\\JobList"]]}],"File":"/var/www/html/lib/private/Files/Node/Root.php","Line":370,"message":"Backends provided no user object for auth.examle.com-663","exception":[],"CustomMessage":"Backends provided no user object for auth.examle.com-663"},"id":"66e6aabe0a7d7"}
    
  26. thompol commented on Sep 15, 2024

    @thompol

    Seems to be fixed after upgrading my AIO containers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmap27-feedbackbug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions