External Storage Mounting - Issue with Google Drive
By mistake, my Google-Drive was unmounted from the external storage. Then I tried to mount it again, but always without success.
After trying search in Owncloud.org forum, I found the same issues happening to a lot of people.
The failure seems due to two issues:
- Cookie: before clear the necessary cookie, the mounting after authorisation on Google will return nothing in the OwnCloud, i.e. nothing shows in the mounting line, or no corresponding folder (such as "GoogleDrive") will be created in the "Files".
- Previously mounted: it seems that the google account which has already be used for mounting into owncloud cannot be re-mounted. I am not professional for programming but it seems there is something wrong in the file \apps\files_external\ajax\google.php which cannot deal with such a re-mount case.
Also, is it possible to update the auth version to the latest, i.e. to use the API access?
Thanks.
What is the cookie? What auth version?
I'm having trouble understanding what you're saying, can you provide exact steps to reproduce. This is also a good branch to test on with external storage: #1031
I got the same problem as reflected in the OwnCloud Forum. The topic is "Using external storage Dropbox GDrive with owncloud 4.5", refer to : http://forum.owncloud.org/viewtopic.php?f=3&t=3696
The issue due to unmounting Google Drive from external storage are reflected inside, such as by "topedia". It seems a lot of people got the same issue too. Your post #400 seems similar.
The issue unable to mount Google Drive even for the first time was also reflected. I tried by myself as advised in that topic that by clearing all the cookies of Internet Explorer the google drive can be mounted into the "Files" even though access may not be granted successfully.
For OAuth version, my understanding it that the Owncloud 4.5 is using google OAuth 1.0 or 2.0 which are recommended by Google to be updated to the latest by using API access. When I check the scope of access requested by the App, it seems requesting for the previous Google Docs instead of the actual Google Drive.
Anyway, I am not IT guy but just curious with the External Storage function provided by OwnCloud. Thanks.
I am not able to mount a Google Drive with a freshly installed 4.5.6. I get to google page where you can push the "Grant access" button, then OC comes back with no drive attached. No mount.php files gets generated, nothing in the database, nothing in the log file. That's what I get in the ssl_access log file:
193.6.210.35 - - [28/Jan/2013:15:32:59 +0100] "POST /net-tar2/?app=files_external&getfile=ajax/google.php HTTP/1.1" 200 237
193.6.210.35 - - [28/Jan/2013:15:33:17 +0100] "GET /net-tar2/settings/personal.php?oauth_verifier=xprhA2NdmEMY_6RAX1VPhN4t&oauth_token=4%2FIS0rhBYRz1TQKJRm1bwv1rgteLPt HTTP/1.1" 200 13425
193.6.210.35 - - [28/Jan/2013:15:33:17 +0100] "GET /net-tar2/?app=files_external&getfile=css%2Fsettings.css HTTP/1.1" 304 -
I am in the process of intoducing OC at our local university, so I am doing lots of tests. I wasn't able to mount Google drive with 4.5.4, I had success with 4.5.5, now I did a fresh install with 4.5.6 and nothing again. I went to my google account, revoked the access to my own service thinking that was the problem. But that didn't help either.
What can be the problem?
@torlasz Everything should be fixed in this pull request #1031
Please test it, I'm still waiting for approval to merge.
I'm not familiar with git, that's what I did: git clone https://github.com/owncloud/core ./owncloud git clone https://github.com/owncloud/apps git clone https://github.com/owncloud/3rdparty cd owncloud git branch --track external_storage_ui_feedback remotes/origin/external_storage_ui_feedback git checkout external_storage_ui_feedback I set up the alias, db, permissions etc. Enabled the external storage app. My problem is that I cannot test attaching Gdrive, because selecting anything from drop down boxes doesn't do anything. I cannot even change the language. Version is 4.91.2 in config.php. What am I doing wrong? I would be happy to test it, but I am stuck.
Sorry, for the trouble, I got it, the 3rd party directory was not set up properly. Now attaching a Google Drive works as expected!
@torlasz Great! Could you add a :+1: to #1031
Sure. I am really impressed by the speed developers respond here to issues raised! Keep up the good work!
Since pull request #1031 has been merged into OC 5 RC1 this issue can be regarded as fixed in OC 5