Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Drive external storage broke my owncloud #22958

Closed
stanelie opened this issue Mar 8, 2016 · 6 comments
Closed

Google Drive external storage broke my owncloud #22958

stanelie opened this issue Mar 8, 2016 · 6 comments

Comments

@stanelie
Copy link

stanelie commented Mar 8, 2016

Expected behaviour

Attach a google drive external storage and be able to use it

Actual behaviour

It doesn't work well with big files because it is unable to stream (see issue #5949). So I tried to remove the google drive external storage. Now, I get
"Error while loading the list of folders from the server" from the Mac or PC client and I am unable to sync anything. Also, I now get "Your web server is not yet set up properly to allow file synchronization because the WebDAV interface seems to be broken." in the admin panel.

Steps to reproduce

  1. Attach external Google Drive storage containing big files
  2. weep

Server configuration

Operating system:
Ubuntu 14.04
Web server:
Apache
Database:
MySQL
PHP version:
5.5.9-1ubuntu4.14
ownCloud version:
8.2.2
Storage backend:
Local and smb shares through "external storage" app

Client configuration

Client version:
2.x
Operating system:
windows 7
OS language:
English
Installation path of client:
default

Logs

  1. Output of owncloud --logwindow or owncloud --logfile log.txt
    empty
  2. Web server error log:
    nothing relevant
  3. ownCloud log (data/owncloud.log):
    Exception: {"Exception":"Exception","Message":"Creating \\OC\\Files\\Storage\\Google storage failed","Code":0,"Trace":"#0 \/var\/www\/owncloud\/apps\/files_external\/lib\/config.php(258): OC\\Files\\Storage\\Google->__construct(Array)\n#1 \/var\/www\/owncloud\/apps\/files_external\/controller\/storagescontroller.php(237): OC_Mount_Config::getBackendStatus('\\OC\\Files\\Stora...', Array, false)\n#2 \/var\/www\/owncloud\/apps\/files_external\/controller\/storagescontroller.php(257): OCA\\Files_External\\Controller\\StoragesController->updateStorageStatus(Object(OCA\\Files_external\\Lib\\StorageConfig))\n#3 [internal function]: OCA\\Files_External\\Controller\\StoragesController->show(13)\n#4 \/var\/www\/owncloud\/lib\/private\/appframework\/http\/dispatcher.php(159): call_user_func_array(Array, Array)\n#5 \/var\/www\/owncloud\/lib\/private\/appframework\/http\/dispatcher.php(89): OC\\AppFramework\\Http\\Dispatcher->executeController(Object(OCA\\Files_External\\Controller\\GlobalStoragesController), 'show')\n#6 \/var\/www\/owncloud\/lib\/private\/appframework\/app.php(108): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OCA\\Files_External\\Controller\\GlobalStoragesController), 'show')\n#7 \/var\/www\/owncloud\/lib\/private\/appframework\/routing\/routeactionhandler.php(45): OC\\AppFramework\\App::main('GlobalStoragesC...', 'show', Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\n#8 [internal function]: OC\\AppFramework\\routing\\RouteActionHandler->__invoke(Array)\n#9 \/var\/www\/owncloud\/lib\/private\/route\/router.php(291): call_user_func(Object(OC\\AppFramework\\routing\\RouteActionHandler), Array)\n#10 \/var\/www\/owncloud\/lib\/base.php(851): OC\\Route\\Router->match('\/apps\/files_ext...')\n#11 \/var\/www\/owncloud\/index.php(39): OC::handleRequest()\n#12 {main}","File":"\/var\/www\/owncloud\/apps\/files_external\/lib\/google.php","Line":80}

and also this from tail owncloud.log
{"reqId":"5AkHaFiFahAbGZKcSnsy","remoteAddr":"192.168.0.2","app":"files_external","message":"Exception: {\"Exception\":\"Exception\",\"Message\":\"Creating \\\\OC\\\\Files\\\\Storage\\\\Google storage failed\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/config.php(258): OC\\\\Files\\\\Storage\\\\Google->__construct(Array)\\n#1 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/controller\\\/storagescontroller.php(237): OC_Mount_Config::getBackendStatus('\\\\OC\\\\Files\\\\Stora...', Array, false)\\n#2 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/controller\\\/storagescontroller.php(257): OCA\\\\Files_External\\\\Controller\\\\StoragesController->updateStorageStatus(Object(OCA\\\\Files_external\\\\Lib\\\\StorageConfig))\\n#3 [internal function]: OCA\\\\Files_External\\\\Controller\\\\StoragesController->show(13)\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(159): call_user_func_array(Array, Array)\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\Files_External\\\\Controller\\\\GlobalStoragesController), 'show')\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/app.php(108): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Files_External\\\\Controller\\\\GlobalStoragesController), 'show')\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/routing\\\/routeactionhandler.php(45): OC\\\\AppFramework\\\\App::main('GlobalStoragesC...', 'show', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#8 [internal function]: OC\\\\AppFramework\\\\routing\\\\RouteActionHandler->__invoke(Array)\\n#9 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(291): call_user_func(Object(OC\\\\AppFramework\\\\routing\\\\RouteActionHandler), Array)\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(851): OC\\\\Route\\\\Router->match('\\\/apps\\\/files_ext...')\\n#11 \\\/var\\\/www\\\/owncloud\\\/index.php(39): OC::handleRequest()\\n#12 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/google.php\",\"Line\":80}","level":3,"time":"2016-03-08T15:23:53+00:00"}

Note : the 192.168.0.2 local address is my reverse proxy.

@LukasReschke LukasReschke added this to the 9.0.1-next-maintenance milestone Mar 8, 2016
@stanelie
Copy link
Author

stanelie commented Mar 8, 2016

Any thoughts on how I can clean up this mess so that I can use ownCloud again without reinstalling from scratch?

@LukasReschke LukasReschke removed this from the 9.0.1-next-maintenance milestone Mar 8, 2016
@LukasReschke
Copy link
Member

@stanelie You could try to disable files_external. Is deleting the mountpoint not possible?

@stanelie
Copy link
Author

stanelie commented Mar 8, 2016

I could, but I'd rather not.
I was reckless and I messed with the googledrive external storage on a production server. The users are using the external storage app and I'm afraid disabling and re-enabling it will trigger a re-download on their sync clients.
Also, I am the only user affected, so, I'd rather take the long way and fix the underlying issue. Also, we might learn something from this.

@stanelie
Copy link
Author

stanelie commented Mar 8, 2016

Well,

I upgraded to ownCloud 9 and I was able to see the phantom google drive external storage mount under the admin account and remove it. I can now sync with the client and list available folders.

Maybe there should be a warning when one tries to set up a google drive external storage mount point that it might break everything.

@PVince81
Copy link
Contributor

GDrive is now able to stream download since OC 9.0.1 and error handling of unavailable storages have been improved.

Feel free to reopen if you're still getting breakages.

@lock
Copy link

lock bot commented Aug 3, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants