Giter Club home page Giter Club logo

files_external_onedrive's Introduction

Hello there! 👋 I’m a passionate Software Engineer 👨‍💻 dedicated to exploring and leveraging the latest technologies to build impactful solutions.

With a keen interest in the ever-evolving 📱mobile landscape, I’m currently focussed in developing projects related to digital identity wallets, aiming to enhance user experience and security in the digital age.


files_external_onedrive's People

Contributors

ddt3 avatar feurigel avatar hevelius avatar hiro5id avatar l0ric0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

files_external_onedrive's Issues

Business Account - Possible to do without Admin Approval?

Went through the auth, it appears to work fine, but the final step requires admin approval.

This is a business OneDrive account; there's no way my company would deem it worth the time to even glance at this.

Is there any way to proceed with a user-level OAuth2 of some sort?

result.data is undefined in oauth2.js

Hello,

I am trying to configure external onedrive on my instance of NC 19.0.5 with files_external_onedrive in version 1.0.9 (from yesterday). I followed instructions in readme, but when I click "grant access" it won't happen anything and in console are found logs attached below. Do you know what can cause this error? I looked for oauth file but I didn't found it, so is it problem with some library?

image

edit: Problem still persists after update to NC 20.0.4, external storage 1.11.0 and external_storage_onedrive 1.0.9

Could not find resource file, apps/files_external/js/../../..//cloud/apps/

It doesn't seem to do anything when I press the grant access button. Nextcloud is installed in a folder named cloud and not on the root directory and I installed the onedrive plugin through the apps store built in to Nextcloud.

[files_external] Debug: Could not find resource file "/cloud/apps/files_external/js/../../..//cloud/apps/files_external_onedrive/js/onedrive.js"

GET /cloud/index.php/settings/admin/externalstorages

Any help would be appreciated

Exception: OneDrive storage not yet configured

I was so happy with the OneDrive capability, but I'm getting this error some time latter.

I've configured as stated in README file. I've got the green check and can sync normally. No problem so far. After few hours I get and error:

HTTP transmission error

image

When I check my web for the configuration:

image

Red mark.

If I erase my client secret in Azure and create a new one, it starts working again for few hours.
EDIT: I can even use the same secret, but I need to erase to validate again!

I'm lost!

Logged in, OneDrive not in files section

I've managed to sign into OneDrive by inputting a client_id and client_secret into the external storage option in NextCloud. I then log in to my Office365 account, and NextCloud seems to believe that all is well, giving me a green tick. However, OneDrive never actually shows up in the files section - I seem to have logged in, but can't access my OneDrive at all

Configuring OAuth2 is based on depreciated azure interface

Azure app registrations have changed, which makes it hard to follow the given instructions:

  • "Name Your App and then click Create App"
    Should include the choice: "Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)"

  • client secret needs to be copied during creation, it can't be done afterwards.

  • "Under the section Authorization API add auth for"
    it is now called API permissions and it is not clear which api to add the permission to. (Microsoft Graph)

App causes invalid signature errors after installation.

After installing External Storage: OneDrive, you cannot install any other app. The error message you'll get is:

App with id [app name] has invalid signature

Posts with this issue:

  1. https://help.nextcloud.com/t/cannot-install-or-update-any-app-invalid-signature/101783
  2. https://www.reddit.com/r/NextCloud/comments/kh5zdm/all_apps_fail_to_install_with_error_app_has/

Error log downloading OneDrive integration as an example:

[settings] Error: Exception: App with id integration_onedrive has invalid signature at <<closure>>

0. /snap/nextcloud/24940/htdocs/apps/settings/lib/Controller/AppSettingsController.php line 445
   OC\Installer->downloadApp("integration_onedrive")
1. /snap/nextcloud/24940/htdocs/lib/private/AppFramework/Http/Dispatcher.php line 169
   OCA\Settings\Controller\AppSettingsController->enableApps(["integration_onedrive"], [])
2. /snap/nextcloud/24940/htdocs/lib/private/AppFramework/Http/Dispatcher.php line 100
   OC\AppFramework\Http\Dispatcher->executeController(OCA\Settings\Con ... {}, "enableApps")
3. /snap/nextcloud/24940/htdocs/lib/private/AppFramework/App.php line 152
   OC\AppFramework\Http\Dispatcher->dispatch(OCA\Settings\Con ... {}, "enableApps")
4. /snap/nextcloud/24940/htdocs/lib/private/Route/Router.php line 308
   OC\AppFramework\App::main("OCA\\Settings\\ ... r", "enableApps", OC\AppFramework\ ... {}, {action: null,_r ... "})
5. /snap/nextcloud/24940/htdocs/lib/base.php line 1008
   OC\Route\Router->match("/settings/apps/enable")
6. /snap/nextcloud/24940/htdocs/index.php line 37
   OC::handleRequest()

POST /index.php/settings/apps/enable

Help I installed a OneDrive addon, and now it broke my nextcloud instance

I installed a OneDrive addon, and now it broke my nextcloud instance.
I am using nextcloud v20.0.4

when I access my server I get 500 responses in browser.
On server side I see these logs:

192.168.64.2 - - [29/Dec/2020:03:39:53 +0000] "GET / HTTP/1.1" 500 425 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36"
192.168.64.2 - - [29/Dec/2020:03:39:58 +0000] "GET / HTTP/1.1" 500 425 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36"
192.168.64.2 - - [29/Dec/2020:04:19:05 +0000] "GET / HTTP/1.1" 500 425 "-" "-"

Then I thought, since I can't use the UI to disable the addon, maybe I can do it via command line.

I tried: php -f occ app:disable files_external_onedrive

but that gives error:

An unhandled exception has been thrown:
Error: Interface 'OCA\Files_External\Lib\Config\IBackendProvider' not found in /var/www/html/custom_apps/files_external_onedrive/lib/AppInfo/Application.php:38
Stack trace:
#0 /var/www/html/lib/composer/composer/ClassLoader.php(444): include()
#1 /var/www/html/lib/composer/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/var/www/html/c...')
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass('OCA\\Files_exter...')
#3 [internal function]: spl_autoload_call('OCA\\Files_exter...')
#4 /var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php(108): class_exists('OCA\\Files_exter...')
#5 /var/www/html/lib/base.php(644): OC\AppFramework\Bootstrap\Coordinator->runRegistration()
#6 /var/www/html/lib/base.php(1091): OC::init()
#7 /var/www/html/console.php(49): require_once('/var/www/html/l...')
#8 /var/www/html/occ(11): require_once('/var/www/html/c...')

I also tried php -f occ app:disable files_external
that gives

An unhandled exception has been thrown:
Error: Interface 'OCA\Files_External\Lib\Config\IBackendProvider' not found in /var/www/html/custom_apps/files_external_onedrive/lib/AppInfo/Application.php:38
Stack trace:
#0 /var/www/html/lib/composer/composer/ClassLoader.php(444): include()
#1 /var/www/html/lib/composer/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/var/www/html/c...')
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass('OCA\\Files_exter...')
#3 [internal function]: spl_autoload_call('OCA\\Files_exter...')
#4 /var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php(108): class_exists('OCA\\Files_exter...')
#5 /var/www/html/lib/base.php(644): OC\AppFramework\Bootstrap\Coordinator->runRegistration()
#6 /var/www/html/lib/base.php(1091): OC::init()
#7 /var/www/html/console.php(49): require_once('/var/www/html/l...')
#8 /var/www/html/occ(11): require_once('/var/www/html/c...')
#9 {main}

So i'm stuck with a bricked nextcloud instance because of this addon :(

I really shouldn't be able to break the whole thing due to a faulty addon.

No matter, at this point I just want to remove the addon and get back functionality of the server. I don't know how to remove it manually.

Can anyone help me get unstuck?

Mount configuration incomplete

Hi all,

thanks for your awesome Nextcloud plugin. I managed to get the Azure application up and running (I hope). As the guy from the other issue, the URL doesn't work:

https://myurl.de/index.php/settings/admin/externalstorages

as I got redirected to a nonexistent endpoint.

However, using the URL my browser shows where I add the storages, i.e.

https://myurl.de/settings/admin/externalstorages

works.

Though, authenication seemed to work (it's with green background, I still got a red box stating the error "mount configuration incomplete".

What do I do wrong in Azure?

I am using the 1.0.2 version of your plugin and the latest Nextcloud build (16.0.3). I have full root access to the server.

image

Thanks for your help!

Onedrive Reply URL

Onedrive gets back with "The reply url specified in the request does not match the reply urls configured for the application."

Redirect URLs tested with
mydomain.com/index.php/settings/admin
mydomain.com/index.php/settings/user
mydomain.com/index.php/settings/user/externalstorages
mydomain.com/index.php/settings/admin/externalstorages

result in the same error message.

Doesn't matter if I setup the external storage as a user, admin.
Runing on NC 16.0.6

No release for 1.0.7

there is no release for 1.0.7 but the version was changed in 0c1a34c

So it is not possible to install the app on nextcloud through the app store

non organizational onedrive account

in manual, you said that

Make sure to select:
"Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)"

so, it won't work with non-office365 onedrive account?
i have one drive account with additional storage and using '@outlook.com' account username
while trying to grant access, this error appears

We're unable to complete your request
unauthorized_client: The client does not exist or is not enabled for consumers. If you are the application developer, configure a new application through the App Registrations in the Azure Portal at https://go.microsoft.com/fwlink/?linkid=2083908.

any help appreciated
thank you

error onedrive reply URL

AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: '

i write the https://domain name/to/nextcloud/index.php/settings/admin/externalstorages

Exception during scan: Undefined index: name

When a scan is run via console the next error occurs:

Exception during scan: Undefined index: name
0. /var/www/nextcloud/apps/files_external_onedrive/vendor/hevelius/flysystem-onedrive/src/OneDriveAdapter.php(394): OCA\Files\Command\Scan->exceptionErrorHandler(8, 'Undefined index...', '/var/www/nextcl...', 394, Array)

  1. /var/www/nextcloud/apps/files_external_onedrive/vendor/hevelius/flysystem-onedrive/src/OneDriveAdapter.php(274): MarioPerrotta\FlysystemOneDrive\OneDriveAdapter->normalizeResponse(Array, 'children')
  2. /var/www/nextcloud/apps/files_external_onedrive/lib/Storage/Adapter.php(44): MarioPerrotta\FlysystemOneDrive\OneDriveAdapter->getMetadata('/me/drive/root/...')
  3. /var/www/nextcloud/apps/files_external_onedrive/vendor/league/flysystem-cached-adapter/src/CachedAdapter.php(315): OCA\Files_external_onedrive\Storage\Adapter->getTimestamp('')
  4. /var/www/nextcloud/apps/files_external_onedrive/vendor/league/flysystem-cached-adapter/src/CachedAdapter.php(287): League\Flysystem\Cached\CachedAdapter->callWithFallback('timestamp', '', 'getTimestamp')
  5. /var/www/nextcloud/apps/files_external_onedrive/lib/Storage/OneDrive.php(134): League\Flysystem\Cached\CachedAdapter->getTimestamp('')
  6. /var/www/nextcloud/lib/private/Files/Storage/Common.php(704): OCA\Files_external_onedrive\Storage\OneDrive->filemtime('')
  7. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(582): OC\Files\Storage\Common->getMetaData('')
  8. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/PermissionsMask.php(145): OC\Files\Storage\Wrapper\Wrapper->getMetaData('')
  9. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(582): OC\Files\Storage\Wrapper\PermissionsMask->getMetaData('')
  10. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php(440): OC\Files\Storage\Wrapper\Wrapper->getMetaData('')
  11. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(582): OC\Files\Storage\Wrapper\Availability->getMetaData('')
  12. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(582): OC\Files\Storage\Wrapper\Wrapper->getMetaData('')
  13. /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(112): OC\Files\Storage\Wrapper\Wrapper->getMetaData('')
  14. /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(150): OC\Files\Cache\Scanner->getData('')
  15. /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(336): OC\Files\Cache\Scanner->scanFile('', 3, -1, NULL, true)
  16. /var/www/nextcloud/lib/private/Files/Utils/Scanner.php(245): OC\Files\Cache\Scanner->scan('', true, 3)
  17. /var/www/nextcloud/apps/files/lib/Command/Scan.php(145): OC\Files\Utils\Scanner->scan('/', true, NULL)
  18. /var/www/nextcloud/apps/files/lib/Command/Scan.php(201): OCA\Files\Command\Scan->scanFiles('', '/', Object(Symfony\Component\Console\Output\ConsoleOutput), false, true, false)
  19. /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OCA\Files\Command\Scan->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  20. /var/www/nextcloud/core/Command/Base.php(166): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  21. /var/www/nextcloud/3rdparty/symfony/console/Application.php(908): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  22. /var/www/nextcloud/3rdparty/symfony/console/Application.php(269): Symfony\Component\Console\Application->doRunCommand(Object(OCA\Files\Command\Scan), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  23. /var/www/nextcloud/3rdparty/symfony/console/Application.php(145): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  24. /var/www/nextcloud/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  25. /var/www/nextcloud/console.php(97): OC\Console\Application->run()
  26. /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
  27. {main}

Ubuntu 18.04.4 LTS
Nextcloud 17.0.3
External Storage: OneDrive 1.0.7

Scan is run every night.
I suspect a connection with #29 because a latter nightly scan was possible without error. From time to time I have also #29 on that system.

Breaks WebUI with installation from App Store of NC 20

Hello,
First I would like to thank you for project. Problem I found seem to be an Interface change in NextCloud where other „files_external“ Apps have the same problem:
So I tried to install the App from NextCloud 20 Appstore. But afterwards the whole web interface is broken, only an empty page will be displayed.

When trying to deactivating the app, following happen:

pi@raspberrypi:~ $ sudo -u www-data php /var/www/nextcloud/occ app:list
PHP Fatal error: Interface 'OCA\Files_External\Lib\Config\IBackendProvider' not found in /var/www/nextcloud/apps/files_external_onedrive/lib/AppInfo/Application.php on line 38

pi@raspberrypi:~ $ sudo -u www-data php /var/www/nextcloud/occ app:disable files_external_onedrive
PHP Fatal error: Interface 'OCA\Files_External\Lib\Config\IBackendProvider' not found in /var/www/nextcloud/apps/files_external_onedrive/lib/AppInfo/Application.php on line 38

Work around to fix the Web UI is to remove the folder of the app:
/var/www/nextcloud/apps/files_external_onedrive

Does anyone have an idea how to fix?

Thank you
Christian

Size pending

I have OneDrive empty storage, and not update "Size column". I have this json on response when check size:

{"status":"success","data":{"uploadMaxFilesize":2097152,"maxHumanFilesize":"Carica (massimo 2 MB)","freeSpace":-2,"quota":-3,"used":0,"usedSpacePercent":0,"owner":"Luca","ownerDisplayName":"Luca"}}

League\OAuth2\Client\Provider\Exception\IdentityProviderException: invalid_request

Hi,

I have followed the instructions ans set the correct permissions in Azure but still cannot connect to OneDrive.
In my Nexctloud logs, here is what I see:

[index] Error: League\OAuth2\Client\Provider\Exception\IdentityProviderException: invalid_request at <<closure>>

 0. /var/www/nextcloud/apps/files_external_onedrive/vendor/league/oauth2-client/src/Provider/AbstractProvider.php line 628
    League\OAuth2\Client\Provider\GenericProvider->checkResponse(GuzzleHttp\Psr7\Response {}, {error: "invalid ... "})
 1. /var/www/nextcloud/apps/files_external_onedrive/vendor/league/oauth2-client/src/Provider/AbstractProvider.php line 537
    League\OAuth2\Client\Provider\AbstractProvider->getParsedResponse(GuzzleHttp\Psr7\Request {})
 2. /var/www/nextcloud/apps/files_external_onedrive/lib/Controller/OauthController.php line 136
    League\OAuth2\Client\Provider\AbstractProvider->getAccessToken(League\OAuth2\Cl ... {}, {code: "M951063c ... "})
 3. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 170
    OCA\Files_external_onedrive\Controller\OauthController->receiveToken("0ed8cd58-fc9a-4ee1-8652-4eeaa97a6dc4", "gEKHcG=?ScAWvMCQqAxbpVurI1=Z=990", "https://cloud.k ... s", 2, "M951063c9-3308-abd8-e67b-a0b58ccf0ffa")
 4. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 99
    OC\AppFramework\Http\Dispatcher->executeController(OCA\Files_extern ... {}, "receiveToken")
 5. /var/www/nextcloud/lib/private/AppFramework/App.php line 125
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Files_extern ... {}, "receiveToken")
 6. /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main("OCA\\Files_exte ... r", "receiveToken", OC\AppFramework\ ... {}, {_route: "files_ ... "})
 7. <<closure>>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({_route: "files_ ... "})
 8. /var/www/nextcloud/lib/private/Route/Router.php line 299
    call_user_func(OC\AppFramework\ ... {}, {_route: "files_ ... "})
 9. /var/www/nextcloud/lib/base.php line 1008
    OC\Route\Router->match("/apps/files_external_onedrive/oauth")
10. /var/www/nextcloud/index.php line 38
    OC::handleRequest()

POST /apps/files_external_onedrive/oauth
from 78.233.61.74 by julien at 2020-04-02T05:26:28+00:00

Any hint?

Access limitation for users in your nextcloud instance

Is there a possibility to let users in your NC instance use just a single folder from Onedrive or is the only possibility to give them overall access? I would really love to use OneDrive just for partially extending our overall storage with a subfolder in Onedrive. Any chances to accomplish this?

Undefined index error

On the new version I am getting the following errors:

[PHP] Error: Undefined index: name at /usr/share/webapps/nextcloud/apps/files_external_onedrive/vendor/hevelius/flysystem-onedrive/src/OneDriveAdapter.php#394
[PHP] Error: Array to string conversion at /usr/share/webapps/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php#77
[files] Error: Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'INSERT INTO "oc_filecache" ("mimepart", "mimetype", "mtime", "size", "etag", "storage_mtime", "permissions", "checksum", "path_hash", "path", "parent", "name", "storage") VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params [1, 2, {"path":"children\/","name":null,"timestamp":null,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null}, -1, "5db1808c24c3b", {"path":"children\/","name":null,"timestamp":null,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null}, 23, "", "d41d8cd98f00b204e9800998ecf8427e", "", -1, "", 9]:

SQLSTATE[22P02]: Invalid text representation: 7 FEHLER:  ungültige Eingabesyntax für ganze Zahl: »Array« at <<closure>>

 0. /usr/share/webapps/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 169
    Doctrine\DBAL\Driver\AbstractPostgreSQLDriver->convertException("An exception oc ... «", Doctrine\DBAL\Dr ... ]})
 1. /usr/share/webapps/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 145
    Doctrine\DBAL\DBALException::wrapException(Doctrine\DBAL\Driver\PDOPgSql\Driver {}, Doctrine\DBAL\Dr ... ]}, "An exception oc ... «")
 2. /usr/share/webapps/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php line 1063
    Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Doctrine\DBAL\Driver\PDOPgSql\Driver {}, Doctrine\DBAL\Dr ... ]}, "INSERT INTO \"o ... )", {1: 1,2: 2,3: {p ... 9})
 3. /usr/share/webapps/nextcloud/lib/private/DB/Connection.php line 216
    Doctrine\DBAL\Connection->executeUpdate("INSERT INTO \"o ... )", [1,2,{path: "chi ... 9], [2,2,2,2,2,2,2,2,2,2,2,2,2])
 4. /usr/share/webapps/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php line 203
    OC\DB\Connection->executeUpdate("INSERT INTO \"o ... )", {dcValue1: 1,dcV ... 9}, {dcValue1: 2,dcV ... 2})
 5. /usr/share/webapps/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 214
    Doctrine\DBAL\Query\QueryBuilder->execute()
 6. /usr/share/webapps/nextcloud/lib/private/Files/Cache/Cache.php line 291
    OC\DB\QueryBuilder\QueryBuilder->execute()
 7. /usr/share/webapps/nextcloud/lib/private/Files/Cache/Wrapper/CacheWrapper.php line 128
    OC\Files\Cache\Cache->insert("", {mimetype: "http ... "})
 8. /usr/share/webapps/nextcloud/lib/private/Files/Cache/Wrapper/CacheWrapper.php line 114
    OC\Files\Cache\Wrapper\CacheWrapper->insert("", {mimetype: "http ... "})
 9. /usr/share/webapps/nextcloud/lib/private/Files/Cache/Scanner.php line 292
    OC\Files\Cache\Wrapper\CacheWrapper->put("", {mimetype: "http ... "})
10. /usr/share/webapps/nextcloud/lib/private/Files/Cache/Scanner.php line 221
    OC\Files\Cache\Scanner->addToCache("", {mimetype: "http ... "}, -1)
11. /usr/share/webapps/nextcloud/lib/private/Files/Cache/Scanner.php line 336
    OC\Files\Cache\Scanner->scanFile("", 1, -1, false, true)
12. /usr/share/webapps/nextcloud/lib/private/Files/Cache/Scanner.php line 515
    OC\Files\Cache\Scanner->scan("", true, 1)
13. /usr/share/webapps/nextcloud/lib/private/Files/Cache/Scanner.php line 532
    OC\Files\Cache\Scanner->OC\Files\Cache\{closure}("*** sensitive parameters replaced ***")
14. /usr/share/webapps/nextcloud/lib/private/Files/Cache/Scanner.php line 516
    OC\Files\Cache\Scanner->runBackgroundScanJob(Closure {}, "")
15. /usr/share/webapps/nextcloud/lib/private/Files/Utils/Scanner.php line 173
    OC\Files\Cache\Scanner->backgroundScan()
16. /usr/share/webapps/nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php line 88
    OC\Files\Utils\Scanner->backgroundScan("")
17. /usr/share/webapps/nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php line 112
    OCA\Files\BackgroundJob\ScanFiles->runScanner(OC\User\User {})
18. /usr/share/webapps/nextcloud/lib/private/BackgroundJob/Job.php line 61
    OCA\Files\BackgroundJob\ScanFiles->run(null)
19. /usr/share/webapps/nextcloud/lib/private/BackgroundJob/TimedJob.php line 55
    OC\BackgroundJob\Job->execute(OC\BackgroundJob\JobList {}, OC\Log {})
20. /usr/share/webapps/nextcloud/cron.php line 124
    OC\BackgroundJob\TimedJob->execute(OC\BackgroundJob\JobList {}, OC\Log {})

Could not extract app files_external_onedrive

I have some issue when i try to download and enable on NC, i got error notification:
"Could not extract app files_external_onedrive: Out-of-path file extraction {/tmp/oc_tmp_gaPFPJ-folder/files_external_onedrive/vendor/bin/phpunit --> ../phpunit/phpunit/phpunit}"

Could not extract app files_external_onedrive

[settings] Error: Exception: Could not extract app files_external_onedrive at <>

  1. /www/wwwroot/mysite/settings/Controller/AppSettingsController.php line 444
    OC\Installer->downloadApp("files_external_onedrive")
  2. /www/wwwroot/mysite/lib/private/AppFramework/Http/Dispatcher.php line 166
    OC\Settings\Controller\AppSettingsController->enableApps(["files_external_onedrive"], [])
  3. /www/wwwroot/mysite/lib/private/AppFramework/Http/Dispatcher.php line 99
    OC\AppFramework\Http\Dispatcher->executeController(OC\Settings\Cont ... {}, "enableApps")
  4. /www/wwwroot/mysite/lib/private/AppFramework/App.php line 126
    OC\AppFramework\Http\Dispatcher->dispatch(OC\Settings\Cont ... {}, "enableApps")
  5. /www/wwwroot/mysite/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main("OC\Settings\C ... r", "enableApps", OC\AppFramework\ ... {}, {_route: "settin ... "})
  6. <>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({_route: "settin ... "})
  7. /www/wwwroot/mysite/lib/private/Route/Router.php line 297
    undefinedundefinedcall_user_func(OC\AppFramework\ ... {}, {_route: "settin ... "})
  8. /www/wwwroot/mysite/lib/base.php line 975
    OC\Route\Router->match("/settings/apps/enable")
  9. /www/wwwroot/mysite/index.php line 42
    OC::handleRequest()

POST /index.php/settings/apps/enable

500 error

I have last external_onedrive. I can connect external storage. But when I go into folder, i have this error:

image

image

This directory is unavailable. please check the logs or contact the administrator

Just setup following guide and am unable to open onedrive folder with error "This directory is unavailable. please check the logs or contact the administrator". external storage connected successfully after granting permissions.
Logs as follows:

Error lib Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'INSERT INTO oc_filecache (mimepart, mimetype, mtime, size, etag, storage_mtime, permissions, checksum, path_hash, path, parent, name, storage) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["1", "2", {"path":"children/","name":null,"timestamp":null,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null}, -1, "5dc9a120cb183", {"path":"children/","name":null,"timestamp":null,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null}, 23, "", "d41d8cd98f00b204e9800998ecf8427e", "", -1, "", 11]: SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: 'Array' for column nextcloud.oc_filecache.mtime at row 1   2019-11-11T08:57:52-0900

Error | PHP | Array to string conversion at /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php#77 |   | 2019-11-11T08:57:52-0900

Error | PHP | Array to string conversion at /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php#77 |   | 2019-11-11T08:57:52-0900

Error | PHP | Undefined index: name at
/config/www/nextcloud/apps/files_external_onedrive/vendor/hevelius/flysystem-onedrive/src/OneDriveAdapter.php#394 |   | 2019-11-11T08:57:52-0900

Compatibility with NC v18+

Is it planned to further extend the support of the app or is development finished? Would be interesting as the app is getting more and more outdated.

In v18.0.4 I see that I get immediatelly that the client secret is wrong. Am I the only one or did some tested it on Nextcloud v18?

Onedrive mount

Hello,

I managed to configure the api on the azure portal,
and the settings on nextcloud are ok.

But when i use the redirect url: settings/user/externalstorages
i get an error saying, the redirect url is incorrect, when i redirect to: settings/admin/externalstorages

it works, but than all my users see my onedrive, instead of their own

Is there something i misconfigured?

this directory is unavailable, please check the logs or contact the administrator.

Version: 16.0.3
Prompt: this directory is unavailable, please check the logs or contact the administrator.
I configured it as required, but this error occurred and could not be used. This is the log in nextcloud.

{"reqId":"D3r97MSldZqYyy3VspQJ","level":3,"time":"2019-08-06T13:26:12+00:00","remoteAddr":"58.22.177.64","user":"admin","app":"lib","method":"PROPFIND","url":"/remote.php/webdav","message":{"Exception":"Doctrine\DBAL\Exception\DriverException","Message":"An exception occurred while executing 'INSERT INTO oc_filecache (mimepart, mimetype, mtime, size, etag, storage_mtime, permissions, checksum, path_hash, path, parent, name, storage) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["1", "2", {"path":"hildren\/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null}, -1, "5d497ff3f3d47", {"path":"hildren\/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null}, 23, "", "d41d8cd98f00b204e9800998ecf8427e", "", -1, "", 25]:\n\nSQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: 'Array' for column nextcloud_db.oc_filecache.mtime at row 1","Code":0,"Trace":[{"file":"/mnt/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php","line":184,"function":"convertException","class":"Doctrine\DBAL\Driver\AbstractMySQLDriver","type":"->","args":["An exception occurred while executing 'INSERT INTO oc_filecache (mimepart, mimetype, mtime, size, etag, storage_mtime, permissions, checksum, path_hash, path, parent, name, storage) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["1", "2", {"path":"hildren\/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null}, -1, "5d497ff3f3d47", {"path":"hildren\/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null}, 23, "", "d41d8cd98f00b204e9800998ecf8427e", "", -1, "", 25]:\n\nSQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: 'Array' for column nextcloud_db.oc_filecache.mtime at row 1",{"errorInfo":["22007",1366,"Incorrect integer value: 'Array' for column nextcloud_db.oc_filecache.mtime at row 1"],"class":"Doctrine\DBAL\Driver\PDOException"}]},{"file":"/mnt/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php","line":158,"function":"wrapException","class":"Doctrine\DBAL\DBALException","type":"::","args":[{"class":"Doctrine\DBAL\Driver\PDOMySql\Driver"},{"errorInfo":["22007",1366,"Incorrect integer value: 'Array' for column nextcloud_db.oc_filecache.mtime at row 1"],"class":"Doctrine\DBAL\Driver\PDOException"},"An exception occurred while executing 'INSERT INTO oc_filecache (mimepart, mimetype, mtime, size, etag, storage_mtime, permissions, checksum, path_hash, path, parent, name, storage) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["1", "2", {"path":"hildren\/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null}, -1, "5d497ff3f3d47", {"path":"hildren\/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null}, 23, "", "d41d8cd98f00b204e9800998ecf8427e", "", -1, "", 25]:\n\nSQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: 'Array' for column nextcloud_db.oc_filecache.mtime at row 1"]},{"file":"/mnt/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php","line":1088,"function":"driverExceptionDuringQuery","class":"Doctrine\DBAL\DBALException","type":"::","args":[{"class":"Doctrine\DBAL\Driver\PDOMySql\Driver"},{"errorInfo":["22007",1366,"Incorrect integer value: 'Array' for column nextcloud_db.oc_filecache.mtime at row 1"],"class":"Doctrine\DBAL\Driver\PDOException"},"INSERT INTO oc_filecache (mimepart, mimetype, mtime, size, etag, storage_mtime, permissions, checksum, path_hash, path, parent, name, storage) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",{"1":"1","2":"2","3":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"4":-1,"5":"5d497ff3f3d47","6":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"7":23,"8":"","9":"d41d8cd98f00b204e9800998ecf8427e","10":"","11":-1,"12":"","13":25}]},{"file":"/mnt/nextcloud/lib/private/DB/Connection.php","line":216,"function":"executeUpdate","class":"Doctrine\DBAL\Connection","type":"->","args":["INSERT INTO oc_filecache (mimepart, mimetype, mtime, size, etag, storage_mtime, permissions, checksum, path_hash, path, parent, name, storage) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",["1","2",{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},-1,"5d497ff3f3d47",{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},23,"","d41d8cd98f00b204e9800998ecf8427e","",-1,"",25],[2,2,2,2,2,2,2,2,2,2,2,2,2]]},{"file":"/mnt/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php","line":222,"function":"executeUpdate","class":"OC\DB\Connection","type":"->","args":["INSERT INTO oc_filecache (mimepart, mimetype, mtime, size, etag, storage_mtime, permissions, checksum, path_hash, path, parent, name, storage) VALUES(:dcValue1, :dcValue2, :dcValue3, :dcValue4, :dcValue5, :dcValue6, :dcValue7, :dcValue8, :dcValue9, :dcValue10, :dcValue11, :dcValue12, :dcValue13)",{"dcValue1":"1","dcValue2":"2","dcValue3":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"dcValue4":-1,"dcValue5":"5d497ff3f3d47","dcValue6":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"dcValue7":23,"dcValue8":"","dcValue9":"d41d8cd98f00b204e9800998ecf8427e","dcValue10":"","dcValue11":-1,"dcValue12":"","dcValue13":25},{"dcValue1":2,"dcValue2":2,"dcValue3":2,"dcValue4":2,"dcValue5":2,"dcValue6":2,"dcValue7":2,"dcValue8":2,"dcValue9":2,"dcValue10":2,"dcValue11":2,"dcValue12":2,"dcValue13":2}]},{"file":"/mnt/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":214,"function":"execute","class":"Doctrine\DBAL\Query\QueryBuilder","type":"->","args":[]},{"file":"/mnt/nextcloud/lib/private/Files/Cache/Cache.php","line":291,"function":"execute","class":"OC\DB\QueryBuilder\QueryBuilder","type":"->","args":[]},{"file":"/mnt/nextcloud/lib/private/Files/Cache/Wrapper/CacheWrapper.php","line":128,"function":"insert","class":"OC\Files\Cache\Cache","type":"->","args":["",{"mimetype":"httpd/unix-directory","mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"size":-1,"etag":"5d497ff3f3d47","storage_mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"permissions":23,"scan_permissions":23,"checksum":"","path":"","parent":-1,"name":""}]},{"file":"/mnt/nextcloud/lib/private/Files/Cache/Wrapper/CacheWrapper.php","line":128,"function":"insert","class":"OC\Files\Cache\Wrapper\CacheWrapper","type":"->","args":["",{"mimetype":"httpd/unix-directory","mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"size":-1,"etag":"5d497ff3f3d47","storage_mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"permissions":23,"scan_permissions":23,"checksum":""}]},{"file":"/mnt/nextcloud/lib/private/Files/Cache/Wrapper/CacheWrapper.php","line":114,"function":"insert","class":"OC\Files\Cache\Wrapper\CacheWrapper","type":"->","args":["",{"mimetype":"httpd/unix-directory","mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"size":-1,"etag":"5d497ff3f3d47","storage_mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"permissions":23,"scan_permissions":23,"checksum":""}]},{"file":"/mnt/nextcloud/lib/private/Files/Cache/Scanner.php","line":292,"function":"put","class":"OC\Files\Cache\Wrapper\CacheWrapper","type":"->","args":["",{"mimetype":"httpd/unix-directory","mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"size":-1,"etag":"5d497ff3f3d47","storage_mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"permissions":23,"scan_permissions":23,"checksum":""}]},{"file":"/mnt/nextcloud/lib/private/Files/Cache/Scanner.php","line":221,"function":"addToCache","class":"OC\Files\Cache\Scanner","type":"->","args":["",{"mimetype":"httpd/unix-directory","mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"size":-1,"etag":"5d497ff3f3d47","storage_mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"permissions":23,"scan_permissions":23,"checksum":""},-1]},{"file":"/mnt/nextcloud/lib/private/Files/View.php","line":1482,"function":"scanFile","class":"OC\Files\Cache\Scanner","type":"->","args":[""]},{"file":"/mnt/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":265,"function":"getDirectoryContent","class":"OC\Files\View","type":"->","args":["/"]},{"file":"/mnt/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":195,"function":"getChildren","class":"OCA\DAV\Connector\Sabre\Directory","type":"->","args":[]},{"file":"/mnt/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":899,"function":"getChildren","class":"Sabre\DAV\Tree","type":"->","args":[""]},{"file":"/mnt/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":978,"function":"generatePathNodes","class":"Sabre\DAV\Server","type":"->","args":[{"class":"Sabre\DAV\PropFind"},[{"class":"Sabre\DAV\PropFind"},{"class":"OCA\DAV\Connector\Sabre\Directory"}]]},{"file":"/mnt/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1666,"function":"getPropertiesIteratorForPath","class":"Sabre\DAV\Server","type":"->","args":["",["{DAV:}resourcetype"],1]},{"file":"/mnt/nextcloud/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":"->","args":[{"absoluteUrl":"https://npxnb.55555.io/remote.php/webdav","class":"Sabre\HTTP\Request"},{"class":"Sabre\HTTP\Response"}]},{"file":"/mnt/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"class":"Sabre\DAV\CorePlugin"},"httpPropFind"],[{"absoluteUrl":"https://npxnb.55555.io/remote.php/webdav","class":"Sabre\HTTP\Request"},{"class":"Sabre\HTTP\Response"}]]},{"file":"/mnt/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":479,"function":"emit","class":"Sabre\Event\EventEmitter","type":"->","args":["method:PROPFIND",[{"absoluteUrl":"https://npxnb.55555.io/remote.php/webdav","class":"Sabre\HTTP\Request"},{"class":"Sabre\HTTP\Response"}]]},{"file":"/mnt/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":254,"function":"invokeMethod","class":"Sabre\DAV\Server","type":"->","args":[{"absoluteUrl":"https://npxnb.55555.io/remote.php/webdav","class":"Sabre\HTTP\Request"},{"class":"Sabre\HTTP\Response"}]},{"file":"/mnt/nextcloud/apps/dav/appinfo/v1/webdav.php","line":80,"function":"exec","class":"Sabre\DAV\Server","type":"->","args":[]},{"file":"/mnt/nextcloud/remote.php","line":163,"args":["/mnt/nextcloud/apps/dav/appinfo/v1/webdav.php"],"function":"require_once"}],"File":"/mnt/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php","Line":125,"Previous":{"Exception":"Doctrine\DBAL\Driver\PDOException","Message":"SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: 'Array' for column nextcloud_db.oc_filecache.mtime at row 1","Code":"22007","Trace":[{"file":"/mnt/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php","line":1079,"function":"execute","class":"Doctrine\DBAL\Driver\PDOStatement","type":"->","args":[]},{"file":"/mnt/nextcloud/lib/private/DB/Connection.php","line":216,"function":"executeUpdate","class":"Doctrine\DBAL\Connection","type":"->","args":["INSERT INTO oc_filecache (mimepart, mimetype, mtime, size, etag, storage_mtime, permissions, checksum, path_hash, path, parent, name, storage) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",["1","2",{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},-1,"5d497ff3f3d47",{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},23,"","d41d8cd98f00b204e9800998ecf8427e","",-1,"",25],[2,2,2,2,2,2,2,2,2,2,2,2,2]]},{"file":"/mnt/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php","line":222,"function":"executeUpdate","class":"OC\DB\Connection","type":"->","args":["INSERT INTO oc_filecache (mimepart, mimetype, mtime, size, etag, storage_mtime, permissions, checksum, path_hash, path, parent, name, storage) VALUES(:dcValue1, :dcValue2, :dcValue3, :dcValue4, :dcValue5, :dcValue6, :dcValue7, :dcValue8, :dcValue9, :dcValue10, :dcValue11, :dcValue12, :dcValue13)",{"dcValue1":"1","dcValue2":"2","dcValue3":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"dcValue4":-1,"dcValue5":"5d497ff3f3d47","dcValue6":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"dcValue7":23,"dcValue8":"","dcValue9":"d41d8cd98f00b204e9800998ecf8427e","dcValue10":"","dcValue11":-1,"dcValue12":"","dcValue13":25},{"dcValue1":2,"dcValue2":2,"dcValue3":2,"dcValue4":2,"dcValue5":2,"dcValue6":2,"dcValue7":2,"dcValue8":2,"dcValue9":2,"dcValue10":2,"dcValue11":2,"dcValue12":2,"dcValue13":2}]},{"file":"/mnt/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":214,"function":"execute","class":"Doctrine\DBAL\Query\QueryBuilder","type":"->","args":[]},{"file":"/mnt/nextcloud/lib/private/Files/Cache/Cache.php","line":291,"function":"execute","class":"OC\DB\QueryBuilder\QueryBuilder","type":"->","args":[]},{"file":"/mnt/nextcloud/lib/private/Files/Cache/Wrapper/CacheWrapper.php","line":128,"function":"insert","class":"OC\Files\Cache\Cache","type":"->","args":["",{"mimetype":"httpd/unix-directory","mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"size":-1,"etag":"5d497ff3f3d47","storage_mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"permissions":23,"scan_permissions":23,"checksum":"","path":"","parent":-1,"name":""}]},{"file":"/mnt/nextcloud/lib/private/Files/Cache/Wrapper/CacheWrapper.php","line":128,"function":"insert","class":"OC\Files\Cache\Wrapper\CacheWrapper","type":"->","args":["",{"mimetype":"httpd/unix-directory","mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"size":-1,"etag":"5d497ff3f3d47","storage_mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"permissions":23,"scan_permissions":23,"checksum":""}]},{"file":"/mnt/nextcloud/lib/private/Files/Cache/Wrapper/CacheWrapper.php","line":114,"function":"insert","class":"OC\Files\Cache\Wrapper\CacheWrapper","type":"->","args":["",{"mimetype":"httpd/unix-directory","mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"size":-1,"etag":"5d497ff3f3d47","storage_mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"permissions":23,"scan_permissions":23,"checksum":""}]},{"file":"/mnt/nextcloud/lib/private/Files/Cache/Scanner.php","line":292,"function":"put","class":"OC\Files\Cache\Wrapper\CacheWrapper","type":"->","args":["",{"mimetype":"httpd/unix-directory","mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"size":-1,"etag":"5d497ff3f3d47","storage_mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"permissions":23,"scan_permissions":23,"checksum":""}]},{"file":"/mnt/nextcloud/lib/private/Files/Cache/Scanner.php","line":221,"function":"addToCache","class":"OC\Files\Cache\Scanner","type":"->","args":["",{"mimetype":"httpd/unix-directory","mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"size":-1,"etag":"5d497ff3f3d47","storage_mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"permissions":23,"scan_permissions":23,"checksum":""},-1]},{"file":"/mnt/nextcloud/lib/private/Files/View.php","line":1482,"function":"scanFile","class":"OC\Files\Cache\Scanner","type":"->","args":[""]},{"file":"/mnt/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":265,"function":"getDirectoryContent","class":"OC\Files\View","type":"->","args":["/"]},{"file":"/mnt/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":195,"function":"getChildren","class":"OCA\DAV\Connector\Sabre\Directory","type":"->","args":[]},{"file":"/mnt/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":899,"function":"getChildren","class":"Sabre\DAV\Tree","type":"->","args":[""]},{"file":"/mnt/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":978,"function":"generatePathNodes","class":"Sabre\DAV\Server","type":"->","args":[{"class":"Sabre\DAV\PropFind"},[{"class":"Sabre\DAV\PropFind"},{"class":"OCA\DAV\Connector\Sabre\Directory"}]]},{"file":"/mnt/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1666,"function":"getPropertiesIteratorForPath","class":"Sabre\DAV\Server","type":"->","args":["",["{DAV:}resourcetype"],1]},{"file":"/mnt/nextcloud/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":"->","args":[{"absoluteUrl":"https://npxnb.55555.io/remote.php/webdav","class":"Sabre\HTTP\Request"},{"class":"Sabre\HTTP\Response"}]},{"file":"/mnt/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"class":"Sabre\DAV\CorePlugin"},"httpPropFind"],[{"absoluteUrl":"https://npxnb.55555.io/remote.php/webdav","class":"Sabre\HTTP\Request"},{"class":"Sabre\HTTP\Response"}]]},{"file":"/mnt/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":479,"function":"emit","class":"Sabre\Event\EventEmitter","type":"->","args":["method:PROPFIND",[{"absoluteUrl":"https://npxnb.55555.io/remote.php/webdav","class":"Sabre\HTTP\Request"},{"class":"Sabre\HTTP\Response"}]]},{"file":"/mnt/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":254,"function":"invokeMethod","class":"Sabre\DAV\Server","type":"->","args":[{"absoluteUrl":"https://npxnb.55555.io/remote.php/webdav","class":"Sabre\HTTP\Request"},{"class":"Sabre\HTTP\Response"}]},{"file":"/mnt/nextcloud/apps/dav/appinfo/v1/webdav.php","line":80,"function":"exec","class":"Sabre\DAV\Server","type":"->","args":[]},{"file":"/mnt/nextcloud/remote.php","line":163,"args":["/mnt/nextcloud/apps/dav/appinfo/v1/webdav.php"],"function":"require_once"}],"File":"/mnt/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php","Line":143,"Previous":{"Exception":"PDOException","Message":"SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: 'Array' for column nextcloud_db.oc_filecache.mtime at row 1","Code":"22007","Trace":[{"file":"/mnt/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php","line":141,"function":"execute","class":"PDOStatement","type":"->","args":[null]},{"file":"/mnt/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php","line":1079,"function":"execute","class":"Doctrine\DBAL\Driver\PDOStatement","type":"->","args":[]},{"file":"/mnt/nextcloud/lib/private/DB/Connection.php","line":216,"function":"executeUpdate","class":"Doctrine\DBAL\Connection","type":"->","args":["INSERT INTO oc_filecache (mimepart, mimetype, mtime, size, etag, storage_mtime, permissions, checksum, path_hash, path, parent, name, storage) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",["1","2",{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},-1,"5d497ff3f3d47",{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},23,"","d41d8cd98f00b204e9800998ecf8427e","",-1,"",25],[2,2,2,2,2,2,2,2,2,2,2,2,2]]},{"file":"/mnt/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php","line":222,"function":"executeUpdate","class":"OC\DB\Connection","type":"->","args":["INSERT INTO oc_filecache (mimepart, mimetype, mtime, size, etag, storage_mtime, permissions, checksum, path_hash, path, parent, name, storage) VALUES(:dcValue1, :dcValue2, :dcValue3, :dcValue4, :dcValue5, :dcValue6, :dcValue7, :dcValue8, :dcValue9, :dcValue10, :dcValue11, :dcValue12, :dcValue13)",{"dcValue1":"1","dcValue2":"2","dcValue3":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"dcValue4":-1,"dcValue5":"5d497ff3f3d47","dcValue6":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"dcValue7":23,"dcValue8":"","dcValue9":"d41d8cd98f00b204e9800998ecf8427e","dcValue10":"","dcValue11":-1,"dcValue12":"","dcValue13":25},{"dcValue1":2,"dcValue2":2,"dcValue3":2,"dcValue4":2,"dcValue5":2,"dcValue6":2,"dcValue7":2,"dcValue8":2,"dcValue9":2,"dcValue10":2,"dcValue11":2,"dcValue12":2,"dcValue13":2}]},{"file":"/mnt/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":214,"function":"execute","class":"Doctrine\DBAL\Query\QueryBuilder","type":"->","args":[]},{"file":"/mnt/nextcloud/lib/private/Files/Cache/Cache.php","line":291,"function":"execute","class":"OC\DB\QueryBuilder\QueryBuilder","type":"->","args":[]},{"file":"/mnt/nextcloud/lib/private/Files/Cache/Wrapper/CacheWrapper.php","line":128,"function":"insert","class":"OC\Files\Cache\Cache","type":"->","args":["",{"mimetype":"httpd/unix-directory","mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"size":-1,"etag":"5d497ff3f3d47","storage_mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"permissions":23,"scan_permissions":23,"checksum":"","path":"","parent":-1,"name":""}]},{"file":"/mnt/nextcloud/lib/private/Files/Cache/Wrapper/CacheWrapper.php","line":128,"function":"insert","class":"OC\Files\Cache\Wrapper\CacheWrapper","type":"->","args":["",{"mimetype":"httpd/unix-directory","mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"size":-1,"etag":"5d497ff3f3d47","storage_mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"permissions":23,"scan_permissions":23,"checksum":""}]},{"file":"/mnt/nextcloud/lib/private/Files/Cache/Wrapper/CacheWrapper.php","line":114,"function":"insert","class":"OC\Files\Cache\Wrapper\CacheWrapper","type":"->","args":["",{"mimetype":"httpd/unix-directory","mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"size":-1,"etag":"5d497ff3f3d47","storage_mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"permissions":23,"scan_permissions":23,"checksum":""}]},{"file":"/mnt/nextcloud/lib/private/Files/Cache/Scanner.php","line":292,"function":"put","class":"OC\Files\Cache\Wrapper\CacheWrapper","type":"->","args":["",{"mimetype":"httpd/unix-directory","mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"size":-1,"etag":"5d497ff3f3d47","storage_mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"permissions":23,"scan_permissions":23,"checksum":""}]},{"file":"/mnt/nextcloud/lib/private/Files/Cache/Scanner.php","line":221,"function":"addToCache","class":"OC\Files\Cache\Scanner","type":"->","args":["",{"mimetype":"httpd/unix-directory","mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"size":-1,"etag":"5d497ff3f3d47","storage_mtime":{"path":"hildren/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null},"permissions":23,"scan_permissions":23,"checksum":""},-1]},{"file":"/mnt/nextcloud/lib/private/Files/View.php","line":1482,"function":"scanFile","class":"OC\Files\Cache\Scanner","type":"->","args":[""]},{"file":"/mnt/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":265,"function":"getDirectoryContent","class":"OC\Files\View","type":"->","args":["/"]},{"file":"/mnt/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":195,"function":"getChildren","class":"OCA\DAV\Connector\Sabre\Directory","type":"->","args":[]},{"file":"/mnt/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":899,"function":"getChildren","class":"Sabre\DAV\Tree","type":"->","args":[""]},{"file":"/mnt/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":978,"function":"generatePathNodes","class":"Sabre\DAV\Server","type":"->","args":[{"class":"Sabre\DAV\PropFind"},[{"class":"Sabre\DAV\PropFind"},{"class":"OCA\DAV\Connector\Sabre\Directory"}]]},{"file":"/mnt/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1666,"function":"getPropertiesIteratorForPath","class":"Sabre\DAV\Server","type":"->","args":["",["{DAV:}resourcetype"],1]},{"file":"/mnt/nextcloud/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":"->","args":[{"absoluteUrl":"https://npxnb.55555.io/remote.php/webdav","class":"Sabre\HTTP\Request"},{"class":"Sabre\HTTP\Response"}]},{"file":"/mnt/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"class":"Sabre\DAV\CorePlugin"},"httpPropFind"],[{"absoluteUrl":"https://npxnb.55555.io/remote.php/webdav","class":"Sabre\HTTP\Request"},{"class":"Sabre\HTTP\Response"}]]},{"file":"/mnt/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":479,"function":"emit","class":"Sabre\Event\EventEmitter","type":"->","args":["method:PROPFIND",[{"absoluteUrl":"https://npxnb.55555.io/remote.php/webdav","class":"Sabre\HTTP\Request"},{"class":"Sabre\HTTP\Response"}]]},{"file":"/mnt/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":254,"function":"invokeMethod","class":"Sabre\DAV\Server","type":"->","args":[{"absoluteUrl":"https://npxnb.55555.io/remote.php/webdav","class":"Sabre\HTTP\Request"},{"class":"Sabre\HTTP\Response"}]},{"file":"/mnt/nextcloud/apps/dav/appinfo/v1/webdav.php","line":80,"function":"exec","class":"Sabre\DAV\Server","type":"->","args":[]},{"file":"/mnt/nextcloud/remote.php","line":163,"args":["/mnt/nextcloud/apps/dav/appinfo/v1/webdav.php"],"function":"require_once"}],"File":"/mnt/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php","Line":141}},"CustomMessage":"Exception while scanning storage "onedrive::28670622-5b5e-4244-962d-653547ec3737::5d497c19b33ea4.31278631""},"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36","version":"16.0.3.0","id":"5d49801bb79d9"}

Can't configure

When trying to configure i just have a red exclamation mark and I can't add the onedrive as storage. All permissions in azure are set correctly. I was able to click grant access and go through the whole microsoft sign in process but upon return it won't allow me to click the tick box to add the storage option. here's the log...

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

  1. /var/www/html/nextcloud/apps/files_external/lib/config.php line 273
    OCA\Files_external_onedrive\Storage\OneDrive->__construct("*** sensitive parameter replaced ***")
  2. /var/www/html/nextcloud/apps/files_external/lib/Controller/StoragesController.php line 254
    OC_Mount_Config::getBackendStatus("*** sensitive parameters replaced ***")
  3. /var/www/html/nextcloud/apps/files_external/lib/Controller/GlobalStoragesController.php line 180
    OCA\Files_External\Controller\StoragesController->updateStorageStatus("*** sensitive parameters replaced ***")
  4. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 170
    OCA\Files_External\Controller\GlobalStoragesController->update("*** sensitive parameters replaced ***")
  5. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 99
    OC\AppFramework\Http\Dispatcher->executeController(OCA\Files_Extern ... {}, "update")
  6. /var/www/html/nextcloud/lib/private/AppFramework/App.php line 125
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Files_Extern ... {}, "update")
  7. /var/www/html/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main("OCA\Files_Exte ... r", "update", OC\AppFramework\ ... {}, {id: "3",_route: ... "})
  8. <>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({id: "3",_route: ... "})
  9. /var/www/html/nextcloud/lib/private/Route/Router.php line 299
    call_user_func(OC\AppFramework\ ... {}, {id: "3",_route: ... "})
  10. /var/www/html/nextcloud/lib/base.php line 1008
    OC\Route\Router->match("/apps/files_external/globalstorages/3")
  11. /var/www/html/nextcloud/index.php line 38
    OC::handleRequest()

PUT /index.php/apps/files_external/globalstorages/3
from 202.185.214.188 by christian at 2020-04-20T15:35:09+00:00`

OneDrive folder does not appear in home directory

After set-up of external storage support for OneDrive, the settings page tells everthing ok, but the OneDrive foler does not appear in the home directory. But it listed in file managers option "External Storage". If opened there the error message "Dieses Verzeichnis ist nicht verfügbar, bitte überprüfen Sie die Logdateien oder kontaktieren Sie den Administrator", saying "This folder is not available, please check logs or contact admin".

Fatal: TypeError: Return value of MarioPerrotta\FlysystemOneDrive\OneDriveAdapter::listContents() must be of the type array, bool returned at <<closure>>

Using:

  • Nextcloud 20.0.4 (docker image nextcloud:apache)
  • External Storage: OneDrive 1.1.0

After adding an a OneDrive External Storage, going to "Files in nextcloud, I get the following error message: "This directory is unavailable, please check the logs or contact the administrator"

In the logs I find the following entry;

[webdav] Fatal: TypeError: Return value of MarioPerrotta\FlysystemOneDrive\OneDriveAdapter::listContents() must be of the type array, bool returned at <>

  1. /var/www/html/custom_apps/files_external_onedrive/vendor/hevelius/flysystem-onedrive/src/OneDriveAdapter.php line 247
    MarioPerrotta\FlysystemOneDrive\OneDriveAdapter->listContents("/Geschäftsstell ... o", true)

any help is highly appreciated.

Compatibility with NC 20

NC 20 has a ton of good features and we plan to migrate to it ASAP. We would also like to use onedrive enterprise account for storage. Can you guys please make a version compatible with NC 20?
Thank you

Nextcloud 17 error

wile trying to add onedrive as external storage I'm getting the following error:

Could not find resource file "/nextcloud/apps/files_external/js/../../..//nextcloud/apps/files_external_onedrive/js/onedrive.js"

there seems to be a .. missing betwen the two /

OneDrive best practice installation recommendation

I'm running Nextcloud in a TrueNAS jail. It runs. When I tried to install the OneDrive app from the Nextcloud app store, I see an error

"Could not extract app files_external_onedrive: Out-of-path file extraction {/tmp/oc_tmp_SxRSiS-folder/files_external_onedrive/vendor/bin/phpunit --> ../phpunit/phpunit/phpunit}"

How should I install from your source code inside a TrueNAS jail?

Failed to authorize two Onedrive accounts

I have two Onedrive accounts and want to add them to my folder. But it seems like I can only add one account and failed to another. Even if I use the admin account to add the other one, it still failed.
image
Does it support multiple accounts?

redirect URL is poorly described in documentation

I have tried the following URLs and for all of them MS reports that the URL does not correspond with the one registered for the app. MS Azure APP registrations only allow https:// for remote URLs and only for local URLs do they allow http://localhost IF the http:// link does not start with 'localhost' it does no longer allow the URL to be saved.

AFAIK the base URL for my nextcloud installation is

https://cloud.feggm.de/index.php

so I tried both with the /settings/user/externalstorages appended and without it

https://cloud.feggm.de/index.php/settings/user/externalstorages

and also tried to invent a local literal file system path like

http://localhost/var/www/virtual/fegm/nextcloud-system/index.php/settings/user/externalstorages
http://localhost/var/www/virtual/fegm/nextcloud-data/index.php/settings/user/externalstorages

But none of those worked. How do I find the right Web return URL to be set for the app?

Exception: OneDrive storage not yet configured NC 17

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

Nothing happens clicking "Grant Access"

Hi,
I have done "Configuring OAuth2".
Azure:

  • App registered
  • client secret created
  • permission added

Nextcloud (20.0.2 @ UCS):

  • App on nextcloud installed / activated (also external_storage)
  • new external storage (OneDrive) added
  • Client ID & Client secret filled in
  • Click at "Grant Access" ... nothing happens
  • When clicking to save the external storage configuration - line ist marked with the red sign

I dont know how to troubleshoot.
Which log file makes sense to have a look at to find out whats going wrong?

Does any body have the same issue?

Encryption on external onedrive storage

How would I do it, if I would like to use Onedrive as encrypted external storage? Would it be easier to just encrypt/decrypt the data client side or is there a possibility to let nextcloud handle that, but for external storage only?

Nextcloud 17 Not show External storage for OneDrive

Hi.
Thanks for your work!

I have a server with NextCloud 17 on Ubuntu 18.04
After "compose install" was a message: Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
OneDrive external storage app is installed, but in the external storage support I can't see this entry.
GoogleDrive works perfect.
The problem on this step: "Copy Client Id and client secret then Go to Nextcloud /settings/user/externalstorages and Add a new storage OneDrive"
Снимок экрана 2019-10-03 в 17 47 20

Creating Onedrive App

I tried to create a onedrive app, but I encountered several problems.

Azure does not accept the Authentication Redirect URI
http://path/to/nextcloud/index.php/settings/admin?sectionid=storage.
I am getting the error message:
Does not contain query strings
Also the URL must start with HTTPS.
Maybe the Redirect URI should be
https://path/to/nextcloud/index.php/settings/admin/externalstorages?

After clicking "Grant access" in my Nextcloud installation nothing happens.
An XHR request gets send to http://path/to/nextcloud/index.php/apps/files_external/ajax/oauth2.php, but I don't get redirected or get any error message.

I am using Nextcloud 16.0.1

Link drops after 1 hour

Nextcloud 16.0.10.

After authing and following guide to setup I can access my onedrive.
But after 1 hour the connection drops and I have to resetup the external storage.

Please advise a workaround or fix?

Configuration fails

Hi,

I am trying to connect my Nextcloud 16.0.5.
I followed the instructions up to where I am supposed to click Grant Access. I seems, I have to save the settings before. Doing so, I get a red "!" in front of the form.
Is there any way to trouble-shoot? - I don't know, where I made an error.

thanks for any help.

regards
Markus

Not able to configure

Hi,

I am not able to configure the connection to OneDrive. I followed all the steps:

Installed in app in my nextlcoud, created an app in azure and tried to mount the storage in my Nextcloud. But the configuration fails, when I click on "grant access". The button seems to have no function. Nothing happens, when I click on it. I am not redirected to Microsoft to authenticate. When I click on the tick to save the connection, I get a red exclamation mark and when I reload the page, the connection is not there.

I run NC 20.0.4 and the newest version of the app. Can you point me to where I can have a look for the problem?

Thanks!

Richard

Onedrive successfully set up, but makes the server stall

Once everything is set up properly, NC server stalls and there is almost no way to have a page without waiting more than 60s (then, timeout occurs).
The only way to stop it is to re-run the apache server and php service, and disable onedrive storage without triggering a webdav scan of OneDrive.
Is it related to the volume of data of the Onedrive set up ? (~ 1TB of Data)
Using Nextcloud 16 on BSD, Onedrive personal with approx 1TB of Data

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.