Problem with Nextcloud Repository

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 25.0.2

The issue you are facing:

Hi,

I have configured Nextcloud repository in Moodle as follows:

And I can see ClassRafiee repository in the list. It asked me to log in, I did and I granted the access to my Nextcloud, However, my files in Nextcloud are not visible in Moodle to choose them:

Would you please let me know where the issue is?
Thanks

Is this the first time you’ve seen this error? (Y/N): Y

The output of your Nextcloud log in Admin > Logging:

[no app in context] Info: Deprecated event type for OCP\IDBConnection::CHECK_MISSING_COLUMNS: Symfony\Component\EventDispatcher\GenericEvent is used

GET /index.php/settings/ajax/checksetup
from 2.177.144.0 by admin at 2023-01-13T14:13:27+00:00



[no app in context] Info: Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "contacts.contacts.directcircle" as such route does not exist. at <<closure>>

 0. /home/atwozico/cloud.rafiee.net/lib/private/Route/Router.php line 361
    Symfony\Component\Routing\Generator\UrlGenerator->generate("contacts.contacts.directcircle", ["eveBbHyOWcz8Gk1amTtugkgd5mZ76sc"], 1)
 1. /home/atwozico/cloud.rafiee.net/lib/private/URLGenerator.php line 103
    OC\Route\Router->generate("contacts.contacts.directcircle", ["eveBbHyOWcz8Gk1amTtugkgd5mZ76sc"])
 2. /home/atwozico/cloud.rafiee.net/apps/circles/lib/Model/ModelManager.php line 561
    OC\URLGenerator->linkToRoute("contacts.contacts.directcircle", ["eveBbHyOWcz8Gk1amTtugkgd5mZ76sc"])
 3. /home/atwozico/cloud.rafiee.net/apps/circles/lib/Model/Circle.php line 733
    OCA\Circles\Model\ModelManager->generateLinkToCircle("eveBbHyOWcz8Gk1amTtugkgd5mZ76sc")
 4. /home/atwozico/cloud.rafiee.net/apps/circles/lib/Model/Circle.php line 855
    OCA\Circles\Model\Circle->getUrl()
 5. <<closure>>
    OCA\Circles\Model\Circle->jsonSerialize()
 6. /home/atwozico/cloud.rafiee.net/apps/circles/lib/Service/FederatedUserService.php line 1293
    json_encode(OCA\Circles\Model\Circle {})
 7. /home/atwozico/cloud.rafiee.net/apps/circles/lib/Service/FederatedUserService.php line 1067
    OCA\Circles\Service\FederatedUserService->cacheSingleCircle(OCA\Circles\Model\FederatedUser {}, OCA\Circles\Model\Circle {})
 8. /home/atwozico/cloud.rafiee.net/apps/circles/lib/Service/FederatedUserService.php line 979
    OCA\Circles\Service\FederatedUserService->getSingleCircle(OCA\Circles\Model\FederatedUser {}, true)
 9. /home/atwozico/cloud.rafiee.net/apps/circles/lib/Service/FederatedUserService.php line 533
    OCA\Circles\Service\FederatedUserService->fillSingleCircleId(OCA\Circles\Model\FederatedUser {}, true)
10. /home/atwozico/cloud.rafiee.net/apps/circles/lib/ShareByCircleProvider.php line 565
    OCA\Circles\Service\FederatedUserService->getLocalFederatedUser("admin")
11. /home/atwozico/cloud.rafiee.net/lib/private/Share20/Manager.php line 1406
    OCA\Circles\ShareByCircleProvider->getSharedWith("admin", 7, null, -1, 0)
12. /home/atwozico/cloud.rafiee.net/apps/files_sharing/lib/MountProvider.php line 97
    OC\Share20\Manager->getSharedWith("admin", 7, null, -1)
13. /home/atwozico/cloud.rafiee.net/lib/private/Files/Config/MountProviderCollection.php line 134
    OCA\Files_Sharing\MountProvider->getMountsForUser(OC\User\User {}, OC\Files\Storage\StorageFactory {})
14. /home/atwozico/cloud.rafiee.net/lib/private/Files/SetupManager.php line 226
    OC\Files\Config\MountProviderCollection->addMountForUser(OC\User\User {}, OC\Files\Mount\Manager {}, Closure {})
15. /home/atwozico/cloud.rafiee.net/lib/private/Files/SetupManager.php line 318
    OC\Files\SetupManager->OC\Files\{closure}("*** sensitive parameters replaced ***")
16. /home/atwozico/cloud.rafiee.net/lib/private/Files/SetupManager.php line 227
    OC\Files\SetupManager->setupForUserWith(OC\User\User {}, Closure {})
17. /home/atwozico/cloud.rafiee.net/lib/private/Files/SetupManager.php line 389
    OC\Files\SetupManager->setupForUser(OC\User\User {})
18. /home/atwozico/cloud.rafiee.net/lib/private/Files/Mount/Manager.php line 95
    OC\Files\SetupManager->setupForPath("/admin/files/")
19. /home/atwozico/cloud.rafiee.net/lib/private/Files/View.php line 215
    OC\Files\Mount\Manager->find("/admin/files/")
20. /home/atwozico/cloud.rafiee.net/lib/private/Files/View.php line 1446
    OC\Files\View->getMount("/")
21. /home/atwozico/cloud.rafiee.net/lib/private/Files/Node/Folder.php line 101
    OC\Files\View->getDirectoryContent("/", "", OC\Files\Node\LazyUserFolder {})
22. /home/atwozico/cloud.rafiee.net/apps/dav/lib/Connector/Sabre/Directory.php line 260
    OC\Files\Node\Folder->getDirectoryListing()
23. /home/atwozico/cloud.rafiee.net/3rdparty/sabre/dav/lib/DAV/Tree.php line 200
    OCA\DAV\Connector\Sabre\Directory->getChildren()
24. /home/atwozico/cloud.rafiee.net/3rdparty/sabre/dav/lib/DAV/Server.php line 900
    Sabre\DAV\Tree->getChildren("")
25. /home/atwozico/cloud.rafiee.net/3rdparty/sabre/dav/lib/DAV/Server.php line 982
    Sabre\DAV\Server->generatePathNodes(Sabre\DAV\PropFind {}, [Sabre\DAV\PropF ... }])
26. /home/atwozico/cloud.rafiee.net/3rdparty/sabre/dav/lib/DAV/Server.php line 1662
    Sabre\DAV\Server->getPropertiesIteratorForPath("", ["{DAV:}resourcetype"], 1)
27. /home/atwozico/cloud.rafiee.net/3rdparty/sabre/dav/lib/DAV/Server.php line 1647
    Sabre\DAV\Server->writeMultiStatus(Sabre\Xml\Writer ... ]}, Generator {}, false)
28. /home/atwozico/cloud.rafiee.net/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 346
    Sabre\DAV\Server->generateMultiStatus(Generator {}, false)
29. /home/atwozico/cloud.rafiee.net/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAV\CorePlugin->httpPropFind(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
30. /home/atwozico/cloud.rafiee.net/3rdparty/sabre/dav/lib/DAV/Server.php line 472
    Sabre\DAV\Server->emit("method:PROPFIND", [Sabre\HTTP\Requ ... }])
31. /home/atwozico/cloud.rafiee.net/3rdparty/sabre/dav/lib/DAV/Server.php line 253
    Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
32. /home/atwozico/cloud.rafiee.net/3rdparty/sabre/dav/lib/DAV/Server.php line 321
    Sabre\DAV\Server->start()
33. /home/atwozico/cloud.rafiee.net/apps/dav/appinfo/v1/webdav.php line 85
    Sabre\DAV\Server->exec()
34. /home/atwozico/cloud.rafiee.net/remote.php line 171
    require_once("/home/atwozico/ ... p")

PROPFIND /remote.php/webdav
from 2.177.144.0 by admin at 2023-01-13T14:13:26+00:00


[no app in context] Debug: OC\AppFramework\Middleware\Security\Exceptions\NotLoggedInException: Current user is not logged in at <<closure>>

0. /home/atwozico/cloud.rafiee.net/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php line 97
   OC\AppFramework\Middleware\Security\SecurityMiddleware->beforeController(OC\Core\Controll ... {}, "grantPage")
1. /home/atwozico/cloud.rafiee.net/lib/private/AppFramework/Http/Dispatcher.php line 125
   OC\AppFramework\Middleware\MiddlewareDispatcher->beforeController(OC\Core\Controll ... {}, "grantPage")
2. /home/atwozico/cloud.rafiee.net/lib/private/AppFramework/App.php line 172
   OC\AppFramework\Http\Dispatcher->dispatch(OC\Core\Controll ... {}, "grantPage")
3. /home/atwozico/cloud.rafiee.net/lib/private/Route/Router.php line 298
   OC\AppFramework\App::main("OC\\Core\\Contr ... r", "grantPage", OC\AppFramework\ ... {}, ["core.ClientFlowLogin.grantPage"])
4. /home/atwozico/cloud.rafiee.net/lib/base.php line 1047
   OC\Route\Router->match("/login/flow/grant")
5. /home/atwozico/cloud.rafiee.net/index.php line 36
   OC::handleRequest()

GET /index.php/login/flow/grant?stateToken=yNy991gVRsTANy3CevhCFyEHcHM0IDpQ83qy5YxFw9ha9rEUVfjHNyy011adD4R4&clientIdentifier=XOYtXZGqDrRU25HWDDAsABX7mREG8Careh6Ifa8iyEK4P7paS9WdHYiO9qErEMK2&oauthState=/repository/repository_callback.php?callback%3Dyes%26repo_id%3D9%26sesskey%3D1564sKWazx&user=&direct=0
from 2.177.144.0 at 2023-01-13T14:12:35+00:00


[no app in context] Debug: OC\AppFramework\Middleware\Security\Exceptions\CrossSiteRequestForgeryException: CSRF check failed at <<closure>>

0. /home/atwozico/cloud.rafiee.net/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php line 97
   OC\AppFramework\Middleware\Security\SecurityMiddleware->beforeController(OCA\UserStatus\C ... {}, "heartbeat")
1. /home/atwozico/cloud.rafiee.net/lib/private/AppFramework/Http/Dispatcher.php line 125
   OC\AppFramework\Middleware\MiddlewareDispatcher->beforeController(OCA\UserStatus\C ... {}, "heartbeat")
2. /home/atwozico/cloud.rafiee.net/lib/private/AppFramework/App.php line 172
   OC\AppFramework\Http\Dispatcher->dispatch(OCA\UserStatus\C ... {}, "heartbeat")
3. /home/atwozico/cloud.rafiee.net/lib/private/Route/Router.php line 298
   OC\AppFramework\App::main("OCA\\UserStatus ... r", "heartbeat", OC\AppFramework\ ... {}, ["ocs.user_status.Heartbeat.heartbeat"])
4. /home/atwozico/cloud.rafiee.net/ocs/v1.php line 63
   OC\Route\Router->match("/ocsapp/apps/us ... t")
5. /home/atwozico/cloud.rafiee.net/ocs/v2.php line 23
   require_once("/home/atwozico/ ... p")

PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json
from 2.177.144.0 by admin at 2023-01-13T14:15:03+00:00


[no app in context] Debug: OC\AppFramework\Middleware\Security\Exceptions\NotLoggedInException: Current user is not logged in at <<closure>>

0. /home/atwozico/cloud.rafiee.net/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php line 97
   OC\AppFramework\Middleware\Security\SecurityMiddleware->beforeController(OC\Core\Controll ... {}, "grantPage")
1. /home/atwozico/cloud.rafiee.net/lib/private/AppFramework/Http/Dispatcher.php line 125
   OC\AppFramework\Middleware\MiddlewareDispatcher->beforeController(OC\Core\Controll ... {}, "grantPage")
2. /home/atwozico/cloud.rafiee.net/lib/private/AppFramework/App.php line 172
   OC\AppFramework\Http\Dispatcher->dispatch(OC\Core\Controll ... {}, "grantPage")
3. /home/atwozico/cloud.rafiee.net/lib/private/Route/Router.php line 298
   OC\AppFramework\App::main("OC\\Core\\Contr ... r", "grantPage", OC\AppFramework\ ... {}, ["core.ClientFlowLogin.grantPage"])
4. /home/atwozico/cloud.rafiee.net/lib/base.php line 1047
   OC\Route\Router->match("/login/flow/grant")
5. /home/atwozico/cloud.rafiee.net/index.php line 36
   OC::handleRequest()

GET /index.php/login/flow/grant?stateToken=yNy991gVRsTANy3CevhCFyEHcHM0IDpQ83qy5YxFw9ha9rEUVfjHNyy011adD4R4&clientIdentifier=XOYtXZGqDrRU25HWDDAsABX7mREG8Careh6Ifa8iyEK4P7paS9WdHYiO9qErEMK2&oauthState=/repository/repository_callback.php?callback%3Dyes%26repo_id%3D9%26sesskey%3D1564sKWazx&user=&direct=0
from 2.177.144.0 at 2023-01-13T14:12:35+00:00


[no app in context] Info: Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "contacts.contacts.directcircle" as such route does not exist. at <<closure>>

 0. /home/atwozico/cloud.rafiee.net/lib/private/Route/Router.php line 361
    Symfony\Component\Routing\Generator\UrlGenerator->generate("contacts.contacts.directcircle", ["TT1WEMiyFfBVHelx7IHVvH46uq1FMa2"], 1)
 1. /home/atwozico/cloud.rafiee.net/lib/private/URLGenerator.php line 103
    OC\Route\Router->generate("contacts.contacts.directcircle", ["TT1WEMiyFfBVHelx7IHVvH46uq1FMa2"])
 2. /home/atwozico/cloud.rafiee.net/apps/circles/lib/Model/ModelManager.php line 561
    OC\URLGenerator->linkToRoute("contacts.contacts.directcircle", ["TT1WEMiyFfBVHelx7IHVvH46uq1FMa2"])
 3. /home/atwozico/cloud.rafiee.net/apps/circles/lib/Model/Circle.php line 733
    OCA\Circles\Model\ModelManager->generateLinkToCircle("TT1WEMiyFfBVHelx7IHVvH46uq1FMa2")
 4. /home/atwozico/cloud.rafiee.net/apps/circles/lib/Model/Circle.php line 855
    OCA\Circles\Model\Circle->getUrl()
 5. <<closure>>
    OCA\Circles\Model\Circle->jsonSerialize()
 6. /home/atwozico/cloud.rafiee.net/apps/circles/lib/Service/FederatedUserService.php line 1293
    json_encode(OCA\Circles\Model\Circle {})
 7. /home/atwozico/cloud.rafiee.net/apps/circles/lib/Service/FederatedUserService.php line 1067
    OCA\Circles\Service\FederatedUserService->cacheSingleCircle(OCA\Circles\Model\FederatedUser {}, OCA\Circles\Model\Circle {})
 8. /home/atwozico/cloud.rafiee.net/apps/circles/lib/Service/FederatedUserService.php line 979
    OCA\Circles\Service\FederatedUserService->getSingleCircle(OCA\Circles\Model\FederatedUser {}, true)
 9. /home/atwozico/cloud.rafiee.net/apps/circles/lib/Service/FederatedUserService.php line 533
    OCA\Circles\Service\FederatedUserService->fillSingleCircleId(OCA\Circles\Model\FederatedUser {}, true)
10. /home/atwozico/cloud.rafiee.net/apps/circles/lib/ShareByCircleProvider.php line 565
    OCA\Circles\Service\FederatedUserService->getLocalFederatedUser("moodleclass")
11. /home/atwozico/cloud.rafiee.net/lib/private/Share20/Manager.php line 1406
    OCA\Circles\ShareByCircleProvider->getSharedWith("moodleclass", 7, null, -1, 0)
12. /home/atwozico/cloud.rafiee.net/apps/files_sharing/lib/MountProvider.php line 97
    OC\Share20\Manager->getSharedWith("moodleclass", 7, null, -1)
13. /home/atwozico/cloud.rafiee.net/lib/private/Files/Config/MountProviderCollection.php line 134
    OCA\Files_Sharing\MountProvider->getMountsForUser(OC\User\User {}, OC\Files\Storage\StorageFactory {})
14. /home/atwozico/cloud.rafiee.net/lib/private/Files/SetupManager.php line 226
    OC\Files\Config\MountProviderCollection->addMountForUser(OC\User\User {}, OC\Files\Mount\Manager {}, Closure {})
15. /home/atwozico/cloud.rafiee.net/lib/private/Files/SetupManager.php line 318
    OC\Files\SetupManager->OC\Files\{closure}("*** sensitive parameters replaced ***")
16. /home/atwozico/cloud.rafiee.net/lib/private/Files/SetupManager.php line 227
    OC\Files\SetupManager->setupForUserWith(OC\User\User {}, Closure {})
17. /home/atwozico/cloud.rafiee.net/lib/private/Files/SetupManager.php line 389
    OC\Files\SetupManager->setupForUser(OC\User\User {})
18. /home/atwozico/cloud.rafiee.net/lib/private/Files/Mount/Manager.php line 95
    OC\Files\SetupManager->setupForPath("/moodleclass/files")
19. /home/atwozico/cloud.rafiee.net/lib/private/Files/View.php line 1390
    OC\Files\Mount\Manager->find("/moodleclass/files")
20. /home/atwozico/cloud.rafiee.net/lib/private/Files/Node/Root.php line 205
    OC\Files\View->getFileInfo("/moodleclass/files")
21. /home/atwozico/cloud.rafiee.net/lib/private/Files/Node/LazyUserFolder.php line 43
    OC\Files\Node\Root->get("/moodleclass/files")
22. <<closure>>
    OC\Files\Node\LazyUserFolder->OC\Files\Node\{closure}("*** sensitive parameters replaced ***")
23. /home/atwozico/cloud.rafiee.net/lib/private/Files/Node/LazyFolder.php line 69
    call_user_func(Closure {})
24. /home/atwozico/cloud.rafiee.net/lib/private/Files/Node/LazyFolder.php line 510
    OC\Files\Node\LazyFolder->__call("getRecent", [7])
25. /home/atwozico/cloud.rafiee.net/apps/recommendations/lib/Service/RecentlyEditedFilesSource.php line 68
    OC\Files\Node\LazyFolder->getRecent(7)
26. /home/atwozico/cloud.rafiee.net/apps/recommendations/lib/Service/RecommendationService.php line 88
    OCA\Recommendations\Service\RecentlyEditedFilesSource->getMostRecentRecommendation(OC\User\User {}, 7)
27. <<closure>>
    OCA\Recommendations\Service\RecommendationService->OCA\Recommendations\Service\{closure}("*** sensitive parameters replaced ***")
28. /home/atwozico/cloud.rafiee.net/apps/recommendations/lib/Service/RecommendationService.php line 89
    array_reduce([OCA\Recommendat ... }], Closure {}, "*** sensitive parameters replaced ***")
29. /home/atwozico/cloud.rafiee.net/apps/recommendations/lib/Controller/RecommendationController.php line 82
    OCA\Recommendations\Service\RecommendationService->getRecommendations(OC\User\User {})
30. /home/atwozico/cloud.rafiee.net/lib/private/AppFramework/Http/Dispatcher.php line 225
    OCA\Recommendations\Controller\RecommendationController->always()
31. /home/atwozico/cloud.rafiee.net/lib/private/AppFramework/Http/Dispatcher.php line 133
    OC\AppFramework\Http\Dispatcher->executeController(OCA\Recommendati ... {}, "always")
32. /home/atwozico/cloud.rafiee.net/lib/private/AppFramework/App.php line 172
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Recommendati ... {}, "always")
33. /home/atwozico/cloud.rafiee.net/lib/private/Route/Router.php line 298
    OC\AppFramework\App::main("OCA\\Recommenda ... r", "always", OC\AppFramework\ ... {}, ["recommendations.recommendation.always"])
34. /home/atwozico/cloud.rafiee.net/lib/base.php line 1047
    OC\Route\Router->match("/apps/recommend ... s")
35. /home/atwozico/cloud.rafiee.net/index.php line 36
    OC::handleRequest()

GET /index.php/apps/recommendations/api/recommendations/always
from 2.177.144.0 by moodleclass at 2023-01-13T14:13:07+00:00

Hi,

I have the same problem. Did you find a solution?

Thanks
Andreas