Development External Storage support for Microsoft OneDrive [Error: Storage is temporarily not available]

Hi everyone,

I have started to develop an app to connect OneDrive as External Storage into NextCloud. I have used this 3rd part repositories:

I have tested Oauth2 and onedrive sdk (all operations like list, mkdir etc…) with success.

When I try to access OneDrive folder from apps/files I give back this error message —> Storage is temporarily not available.

The logs reports this error:

{"reqId":"XPpJUpHKnotb0syPWHdPIAAAAIY","level":4,"time":"June 07, 2019 13:24:02","remoteAddr":"...............","user":"admin","app":"webdav","method":"PROPFIND","url":"\/remote.php\/dav\/files\/admin\/OneDrive","message":{"Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Message":"Unknown storage backend \"files_external_onedrive\"","Code":0,"Trace":[{"file":"\/app\/home\/owncloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Tree.php","line":76,"function":"getChild","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["OneDrive"]},{"file":"\/app\/home\/owncloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":967,"function":"getNodeForPath","class":"Sabre\\DAV\\Tree","type":"->","args":["files\/admin\/OneDrive"]},{"file":"\/app\/home\/owncloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":1666,"function":"getPropertiesIteratorForPath","class":"Sabre\\DAV\\Server","type":"->","args":["files\/admin\/OneDrive",["{DAV:}getlastmodified","{DAV:}getetag","{DAV:}getcontenttype","{DAV:}resourcetype","{http:\/\/owncloud.org\/ns}fileid","{http:\/\/owncloud.org\/ns}permissions","{http:\/\/owncloud.org\/ns}size","{DAV:}getcontentlength","{http:\/\/nextcloud.org\/ns}has-preview","{http:\/\/nextcloud.org\/ns}mount-type","{http:\/\/nextcloud.org\/ns}is-encrypted","{http:\/\/open-collaboration-services.org\/ns}share-permissions","{http:\/\/owncloud.org\/ns}tags","{http:\/\/owncloud.org\/ns}favorite","{http:\/\/owncloud.org\/ns}comments-unread","{http:\/\/owncloud.org\/ns}owner-id","{http:\/\/owncloud.org\/ns}owner-display-name","{http:\/\/owncloud.org\/ns}share-types"],1]},{"file":"\/app\/home\/owncloud\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php","line":355,"function":"generateMultiStatus","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Generator"},false]},{"function":"httpPropFind","class":"Sabre\\DAV\\CorePlugin","type":"->"......    

This the settings of test environment

  • Nextcloud 16
  • CentOS 7
  • Apache 2.4
  • PHP 7.3 FPM
  • MariaDB 5

Any ideas? As soon as possible I’ll push the repo on github —> https://github.com/hevelius/files_external_onedrive

Thank you so much,
M.

1 Like

The main developers of NC are rarely on the forum. So for Nextcloud-related stuff, don’t hesitate to ask via IRC as well.

Hi hevelius

Thanks for your work, this is exactly what we war looking for. It seems like the Nextcloud Team are not interessted to go this road. But I think it is a huge win for a lot of people. Keep going, good luck with your development!

Regards