NastuzziSamy / files_external_gdrive

[BETA - UNSTABLE] GDrive external storage for NextCloud
GNU Affero General Public License v3.0
79 stars 23 forks source link

Can't work on NC 16 #51

Open blackfoxsar opened 5 years ago

blackfoxsar commented 5 years ago

When I pass the Credentials, I saw an Error at External storages

スクリーンショット 2019-07-29 13 40 38

The NC's Log:

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

 0. /var/www/mydomain.com/nextcloud/apps/files_external/lib/config.php line 266
    OCA\Files_external_gdrive\Storage\GoogleDrive->__construct("*** sensitive parameter replaced ***")
 1. /var/www/mydomain.com/nextcloud/apps/files_external/lib/Controller/StoragesController.php line 253
    OC_Mount_Config::getBackendStatus("*** sensitive parameters replaced ***")
 2. /var/www/mydomain.com/nextcloud/apps/files_external/lib/Controller/StoragesController.php line 305
    OCA\Files_External\Controller\StoragesController->updateStorageStatus("*** sensitive parameters replaced ***")
 3. /var/www/mydomain.com/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 166
    OCA\Files_External\Controller\StoragesController->show(2, "*** sensitive parameter replaced ***")
 4. /var/www/mydomain.com/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 99
    OC\AppFramework\Http\Dispatcher->executeController(OCA\Files_Extern ... {}, "show")
 5. /var/www/mydomain.com/nextcloud/lib/private/AppFramework/App.php line 126
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Files_Extern ... {}, "show")
 6. /var/www/mydomain.com/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main("OCA\\Files_Exte ... r", "show", OC\AppFramework\ ... {}, {id: "2",_route: ... "})
 7. <<closure>>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({id: "2",_route: ... "})
 8. /var/www/mydomain.com/nextcloud/lib/private/Route/Router.php line 297
    undefinedundefinedcall_user_func(OC\AppFramework\ ... {}, {id: "2",_route: ... "})
 9. /var/www/mydomain.com/nextcloud/lib/base.php line 975
    OC\Route\Router->match("/apps/files_external/globalstorages/2")
10. /var/www/mydomain.com/nextcloud/index.php line 42
    OC::handleRequest()

GET /apps/files_external/globalstorages/2?testOnly=true
from <MyIpAddress> by <MyAccount> at 2019-07-29T04:07:04+00:00
mmathie commented 5 years ago

I have the same problem, NC 16 as well.

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

 0. /var/www/html/apps/files_external/lib/config.php line 271
    OCA\Files_external_gdrive\Storage\GoogleDrive->__construct("*** sensitive parameter replaced ***")
 1. /var/www/html/apps/files_external/lib/Controller/StoragesController.php line 253
    OC_Mount_Config::getBackendStatus("*** sensitive parameters replaced ***")
 2. /var/www/html/apps/files_external/lib/Controller/StoragesController.php line 305
    OCA\Files_External\Controller\StoragesController->updateStorageStatus("*** sensitive parameters replaced ***")
 3. /var/www/html/apps/files_external/lib/Controller/UserStoragesController.php line 107
    OCA\Files_External\Controller\StoragesController->show("4", "*** sensitive parameter replaced ***")
 4. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 166
    OCA\Files_External\Controller\UserStoragesController->show("4", "*** sensitive parameter replaced ***")
 5. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 99
    OC\AppFramework\Http\Dispatcher->executeController(OCA\Files_Extern ... {}, "show")
 6. /var/www/html/lib/private/AppFramework/App.php line 126
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Files_Extern ... {}, "show")
 7. /var/www/html/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main("OCA\\Files_Exte ... r", "show", OC\AppFramework\ ... {}, {id: "4",_route: ... "})
 8. <<closure>>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({id: "4",_route: ... "})
 9. /var/www/html/lib/private/Route/Router.php line 297
    undefinedundefinedcall_user_func(OC\AppFramework\ ... {}, {id: "4",_route: ... "})
10. /var/www/html/lib/base.php line 975
    OC\Route\Router->match("/apps/files_external/userstorages/4")
11. /var/www/html/index.php line 42
    OC::handleRequest()

GET /apps/files_external/userstorages/4?testOnly=true
from <<MyIpAddress>> by <<MyAccount>> at 2019-09-12T19:36:37+00:00

OAuth2 seems to work and requests do get made to the google API.

image

image 2nd Column: Number of requests 3rd Column: Errors/Exceptions

There are no other error messages or log entries. But, there are entries that are logged to the browser console every time I click either the red icon or the check-mark to apply the external storage config.

image

Deprecated call $.tooltip('destroy') has been deprecated and should be removed main.js:504:147
    tooltip https://nextcloud.08154711.xyz/core/js/dist/main.js?v=13587112-1:504
    updateStatus https://nextcloud.08154711.xyz/apps/files_external/js/settings.js?v=13587112-1:1217
    success https://nextcloud.08154711.xyz/apps/files_external/js/settings.js?v=13587112-1:1146
    success https://nextcloud.08154711.xyz/apps/files_external/js/settings.js?v=13587112-1:258
    u https://nextcloud.08154711.xyz/core/js/dist/main.js?v=13587112-1:39
    fireWith https://nextcloud.08154711.xyz/core/js/dist/main.js?v=13587112-1:39
    k https://nextcloud.08154711.xyz/core/js/dist/main.js?v=13587112-1:39
    t https://nextcloud.08154711.xyz/core/js/dist/main.js?v=13587112-1:39
mmathie commented 5 years ago

Additional information:

When pressing the folder created by the mounting process the following message is shown:

There was an error with message: Empty response from the server. Do you want to review mount point config in admin settings page?

AdamGalt commented 5 years ago

Similar issue here. Credentials are accepted as valid, oauth2 screen works and storage appears to mount correctly.

image

The root of the external storage is accessible, but sub-directories show no content. Logs show:

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

  1. /var/www/nextcloud/apps/files_external/lib/config.php line 271 OCA\Files_external_gdrive\Storage\GoogleDrive->__construct(" sensitive parameter replaced ")
  2. /var/www/nextcloud/apps/files_external/lib/Controller/StoragesController.php line 256 OC_Mount_Config::getBackendStatus(" sensitive parameters replaced ")
  3. /var/www/nextcloud/apps/files_external/lib/Controller/StoragesController.php line 305 OCA\Files_External\Controller\StoragesController->updateStorageStatus(" sensitive parameters replaced ")
  4. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 166 OCA\Files_External\Controller\StoragesController->show(3, " sensitive parameter replaced ")
  5. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 99 OC\AppFramework\Http\Dispatcher->executeController(OCA\Files_Extern ... {}, "show")
  6. /var/www/nextcloud/lib/private/AppFramework/App.php line 126 OC\AppFramework\Http\Dispatcher->dispatch(OCA\Files_Extern ... {}, "show")
  7. /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47 OC\AppFramework\App::main("OCA\Files_Exte ... r", "show", OC\AppFramework\ ... {}, {id: "3",_route: ... "})
  8. <> OC\AppFramework\Routing\RouteActionHandler->__invoke({id: "3",_route: ... "})
  9. /var/www/nextcloud/lib/private/Route/Router.php line 297 undefinedundefinedcall_user_func(OC\AppFramework\ ... {}, {id: "3",_route: ... "})
  10. /var/www/nextcloud/lib/base.php line 975 OC\Route\Router->match("/apps/files_external/globalstorages/3")
    1. /var/www/nextcloud/index.php line 42 OC::handleRequest()

GET /apps/files_external/globalstorages/3?testOnly=true from by adam at 2019-11-12T22:03:35+00:00`

It is firing off requests to the gdrive but showing errors:

image