hevelius / files_external_onedrive

:mega: :floppy_disk: External storage support for Microsoft OneDrive
GNU General Public License v2.0
72 stars 22 forks source link

Exception: OneDrive storage not yet configured NC 17 #21

Open L0ric0 opened 4 years ago

L0ric0 commented 4 years ago

This errors ocures after some time of having a onedrive share configured and results in me being unable to use the external storage.

[webdav] Fatal: Sabre\DAV\Exception\ServiceUnavailable: OneDrive storage not yet configured at <<closure>>

 0. /usr/share/webapps/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php line 76
    OCA\DAV\Connector\Sabre\Directory->getChild("OneDrive")
 1. /usr/share/webapps/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 967
    Sabre\DAV\Tree->getNodeForPath("files/<redacted>/OneDrive")
 2. /usr/share/webapps/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1666
    Sabre\DAV\Server->getPropertiesIteratorForPath("files/<redacted>/OneDrive", ["{DAV:}getlastm ... "], 1)
 3. /usr/share/webapps/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 355
    Sabre\DAV\Server->generateMultiStatus(Generator {}, false)
 4. <<closure>>
    Sabre\DAV\CorePlugin->httpPropFind(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
 5. /usr/share/webapps/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php line 105
    undefinedundefinedcall_user_func_array([Sabre\DAV\CorePlugin {},"httpPropFind"], [Sabre\HTTP\Requ ... }])
 6. /usr/share/webapps/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 479
    Sabre\Event\EventEmitter->emit("method:PROPFIND", [Sabre\HTTP\Requ ... }])
 7. /usr/share/webapps/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 254
    Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
 8. /usr/share/webapps/nextcloud/apps/dav/lib/Server.php line 317
    Sabre\DAV\Server->exec()
 9. /usr/share/webapps/nextcloud/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
10. /usr/share/webapps/nextcloud/remote.php line 163
    undefinedundefinedrequire_once("/usr/share/weba ... p")

PROPFIND /nextcloud/remote.php/dav/files/<redacted>/OneDrive
from 131.246.146.9 by <redacted> at 2019-10-08T08:10:31+00:00
[files_external] Error: Exception: OneDrive storage not yet configured at <<closure>>

 0. /usr/share/webapps/nextcloud/apps/files_external_onedrive/lib/Storage/OneDrive.php line 104
    OCA\Files_external_onedrive\Storage\OneDrive->refreshToken(stdClass {token_ ... "})
 1. /usr/share/webapps/nextcloud/apps/files_external/lib/Service/StoragesService.php line 510
    OCA\Files_external_onedrive\Storage\OneDrive->__construct({client_id: "b96 ... "})
 2. /usr/share/webapps/nextcloud/apps/files_external/lib/Service/StoragesService.php line 476
    OCA\Files_External\Service\StoragesService->getRustyStorageIdFromConfig(OCA\Files_External\Lib\StorageConfig {})
 3. /usr/share/webapps/nextcloud/apps/files_external/lib/Controller/StoragesController.php line 330
    OCA\Files_External\Service\StoragesService->removeStorage(1)
 4. /usr/share/webapps/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 170
    OCA\Files_External\Controller\StoragesController->destroy(1)
 5. /usr/share/webapps/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 99
    OC\AppFramework\Http\Dispatcher->executeController(OCA\Files_Extern ... {}, "destroy")
 6. /usr/share/webapps/nextcloud/lib/private/AppFramework/App.php line 126
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Files_Extern ... {}, "destroy")
 7. /usr/share/webapps/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main("OCA\\Files_Exte ... r", "destroy", OC\AppFramework\ ... {}, {id: "1",_route: ... "})
 8. <<closure>>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({id: "1",_route: ... "})
 9. /usr/share/webapps/nextcloud/lib/private/Route/Router.php line 297
    undefinedundefinedcall_user_func(OC\AppFramework\ ... {}, {id: "1",_route: ... "})
10. /usr/share/webapps/nextcloud/lib/base.php line 1000
    OC\Route\Router->match("/apps/files_external/globalstorages/1")
11. /usr/share/webapps/nextcloud/index.php line 42
    OC::handleRequest()

DELETE /nextcloud/apps/files_external/globalstorages/1
from 91.66.214.49 by <redacted> at 2019-10-08T00:55:51+00:00
Eothred commented 4 years ago

I'm having similar issues with 18.0.4

quancs commented 3 years ago

I meet the same problem with 19.0.1.

This is my log. { "reqId": "Hrj2ZqlfvKVcPRdQSzbJ", "level": 3, "time": "2020-07-25T07:33:26+00:00", "remoteAddr": "113.205.95.217", "user": "quancs", "app": "files_external", "method": "GET", "url": "/apps/files_external/userstorages/2?testOnly=true", "message": { "Exception": "Exception", "Message": "OneDrive storage not yet configured", "Code": 0, "Trace": [ { "file": "/var/www/nextcloud/apps/files_external/lib/config.php", "line": 259, "function": "construct", "class": "OCA\Files_external_onedrive\Storage\OneDrive", "type": "->", "args": [ " sensitive parameter replaced " ] }, { "file": "/var/www/nextcloud/apps/files_external/lib/Controller/StoragesController.php", "line": 254, "function": "getBackendStatus", "class": "OC_Mount_Config", "type": "::", "args": [ " sensitive parameters replaced " ] }, { "file": "/var/www/nextcloud/apps/files_external/lib/Controller/StoragesController.php", "line": 329, "function": "updateStorageStatus", "class": "OCA\Files_External\Controller\StoragesController", "type": "->", "args": [ " sensitive parameters replaced " ] }, { "file": "/var/www/nextcloud/apps/files_external/lib/Controller/UserStoragesController.php", "line": 108, "function": "show", "class": "OCA\Files_External\Controller\StoragesController", "type": "->", "args": [ "2", " sensitive parameter replaced " ] }, { "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php", "line": 170, "function": "show", "class": "OCA\Files_External\Controller\UserStoragesController", "type": "->", "args": [ "2", " sensitive parameter replaced " ] }, { "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php", "line": 100, "function": "executeController", "class": "OC\AppFramework\Http\Dispatcher", "type": "->", "args": [ { "class": "OCA\Files_External\Controller\UserStoragesController" }, "show" ] }, { "file": "/var/www/nextcloud/lib/private/AppFramework/App.php", "line": 137, "function": "dispatch", "class": "OC\AppFramework\Http\Dispatcher", "type": "->", "args": [ { "class": "OCA\Files_External\Controller\UserStoragesController" }, "show" ] }, { "file": "/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php", "line": 47, "function": "main", "class": "OC\AppFramework\App", "type": "::", "args": [ "OCA\Files_External\Controller\UserStoragesController", "show", { "class": "OC\AppFramework\DependencyInjection\DIContainer" }, { "id": "2", "_route": "files_external.user_storages.show" } ] }, { "function": "invoke", "class": "OC\AppFramework\Routing\RouteActionHandler", "type": "->", "args": [ { "id": "2", "_route": "files_external.user_storages.show" } ] }, { "file": "/var/www/nextcloud/lib/private/Route/Router.php", "line": 297, "function": "call_user_func", "args": [ { "class": "OC\AppFramework\Routing\RouteActionHandler" }, { "id": "2", "_route": "files_external.user_storages.show" } ] }, { "file": "/var/www/nextcloud/lib/base.php", "line": 1007, "function": "match", "class": "OC\Route\Router", "type": "->", "args": [ "/apps/files_external/userstorages/2" ] }, { "file": "/var/www/nextcloud/index.php", "line": 37, "function": "handleRequest", "class": "OC", "type": "::", "args": [] } ], "File": "/var/www/nextcloud/apps/files_external_onedrive/lib/Storage/OneDrive.php", "Line": 114, "CustomMessage": "--" }, "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0", "version": "19.0.1.1", "id": "5f1be2ab9251f" }

nordz0r commented 3 years ago

NC19.0.1

[files_external] Error: Exception: OneDrive storage not yet configured at <>

  1. /var/www/html/apps/files_external/lib/config.php line 259 OCA\Files_external_onedrive\Storage\OneDrive->__construct(" sensitive parameter replaced ")
  2. /var/www/html/apps/files_external/lib/Controller/StoragesController.php line 254 OC_Mount_Config::getBackendStatus(" sensitive parameters replaced ")
  3. /var/www/html/apps/files_external/lib/Controller/StoragesController.php line 329 OCA\Files_External\Controller\StoragesController->updateStorageStatus(" sensitive parameters replaced ")
  4. /var/www/html/apps/files_external/lib/Controller/UserStoragesController.php line 108 OCA\Files_External\Controller\StoragesController->show("20", " sensitive parameter replaced ")
  5. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 170 OCA\Files_External\Controller\UserStoragesController->show("20", " sensitive parameter replaced ")
  6. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 100 OC\AppFramework\Http\Dispatcher->executeController(OCA\Files_Extern ... {}, "show")
  7. /var/www/html/lib/private/AppFramework/App.php line 137 OC\AppFramework\Http\Dispatcher->dispatch(OCA\Files_Extern ... {}, "show")
  8. /var/www/html/lib/private/AppFramework/Routing/RouteActionHandler.php line 47 OC\AppFramework\App::main("OCA\Files_Exte ... r", "show", OC\AppFramework\ ... {}, {id: "20",_route ... "})
  9. <> OC\AppFramework\Routing\RouteActionHandler->__invoke({id: "20",_route ... "})
  10. /var/www/html/lib/private/Route/Router.php line 297 call_user_func(OC\AppFramework\ ... {}, {id: "20",_route ... "})
    1. /var/www/html/lib/base.php line 1007 OC\Route\Router->match("/apps/files_external/userstorages/20")
    2. /var/www/html/index.php line 37 OC::handleRequest()

GET /index.php/apps/files_external/userstorages/20?testOnly=true from 10.0.25.27 by 459798F5-83B1-4B42-8E1C-132400668DA2 at 2020-08-11T06:22:07+00:00