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

External Storage Mount Points Don't Stick #400

Closed
kmontenegro opened this issue Nov 13, 2012 · 41 comments
Closed

External Storage Mount Points Don't Stick #400

kmontenegro opened this issue Nov 13, 2012 · 41 comments

Comments

@kmontenegro
Copy link

I'm running OwnCloud5 pre-alpha 1 on CentOS. I'm able to log-in and upload files and create directories. The external storage box is checked thereby enabling it for users.

When I create a Google Drive or Dropbox mount point, I can go through all the expected steps to completion but when I go back to the user's personal tab under the settings cog, the mount point does not appear as saved.

For the Dropbox issue, it's my understanding that a folder with the mount point name must be created. When I do that, the folder never populates with the Dropbox contents and, going back to the personal settings pane, the Dropbox mountpoint is not visible....so, after recreating the mount point numerous times, I'm at wits end.

2 questions: where is the log file that might point me in the right direction and might it make sense to roll back to 4.x?

@ghost ghost assigned MTGap Nov 14, 2012
@LukasReschke
Copy link
Member

@MTGap I assume this one is for you.

@karlitschek
Copy link
Contributor

This is strange. Can´t reproduce. Can you try again with 4.5.3 that we release next monday? Thanks

@muttilai
Copy link

Did you press ENTER after giving the app secret? For me the "Grant access" button didn't appear until I pressed enter there (which I first didn't do as I copy pasted the codes)

@MTGap
Copy link
Contributor

MTGap commented Dec 26, 2012

Did the 'Grant Access' button appear and did you authenticate through Google/Dropbox?

I changed the dropbox configuration to listen to paste events as well to show the button: 48a3966

@JFOC
Copy link

JFOC commented Dec 28, 2012

for external storage googledrive and dropbox:
external storage mount (googledrive,dropbox) still not working for me in 4.5.5 or in previous versions.
after authentication just give me back blank configuration in settings page and no configuration in mount.php
one more thing if successful on configuration setup in settings page, there is 'configured' flag in mount.php for googledrive and its set as false.

What is this flag mean for 'configured' ?

for external storage FTP:
if mount external storage is FTP always give me back LSTAT error in files list.

Notes: all above error is not caused by file/directory permissions/owners problem, I have been check any logs related to permission in server and also file/directory permission/ownership itself

Also need to know the correct steps for external storage:
create directory from FILES first or just create external storage settings in settings page and the settings configuration will make its own directory based on mount point configuration ?

and for mount point is need to be like /mountpointdirectory or mountpointdirectory in mount point field?

@MTGap
Copy link
Contributor

MTGap commented Dec 28, 2012

Configured set to false means that the configuration isn't complete. There's 2 steps involved with OAuth and it only went through the first step. When Google redirects you back to ownCloud, do you see oauth_token and oauth_verifier in the URL? You may want to check your javascript console and the ajax requests to see if there are any errors.

@JFOC
Copy link

JFOC commented Dec 28, 2012

do we need activate 2-step security authentication in google settings ?

@MTGap
Copy link
Contributor

MTGap commented Dec 28, 2012

That's unrelated. Please check the mount.php after clicking Grant Access for Google Drive setup. I have a suspicion of a problem.

@JFOC
Copy link

JFOC commented Dec 28, 2012

The site private.sitexx.net is requesting access to your Google Account for the product(s) listed below.

Google Docs
Google Docs
Google Docs
Google is not affiliated with private.sitexx.net, and we recommend that you grant access only if you trust the site.

If you grant access, you can revoke access at any time under 'My Account'. private.sitexx.net will not have access to your password or any other personal information from your Google Account. Learn more

This website has not registered with Google to establish a secure connection for authorization requests. We recommend that you deny access unless you trust the website.

after press' Grant Access' from google page give me back the url :
http://private.sitexx.net/settings/admin.php?oauth_verifier=zyiDapA2tgqBaE_mA429WOYY&oauth_token=4%2Fs33s7lpYp_S7F-7jazUc21e1VLtU

@MTGap
Copy link
Contributor

MTGap commented Dec 28, 2012

Alright, did you check if there was an entry for Google Drive after you were redirected to Google?

@JFOC
Copy link

JFOC commented Dec 28, 2012

which entry ? did u available for chat on freenode irc ? might be will be more easily identifying this problem when we have quick chat

@MTGap
Copy link
Contributor

MTGap commented Dec 29, 2012

We concluded that Safari is causing problems for the external storage UI and Google Drive/Dropbox configuration. I don't have Safari to test, anyone with Safari that can provide some more details?

@tomneedham
Copy link
Member

So I just tried to mount a google drive folder using the external_storage_ui_feedback branch on Chrome 23.0, on Mac 10.8.2.

Results:

Typed in mount point /google, selected google drive, clicked grant access, typed in my password on googles site, redirected back to my ownCloud, the external storage entry has vanished. Tried refreshing the page, no difference.

@tomneedham
Copy link
Member

Same results using Safari 6.0.1

@JFOC
Copy link

JFOC commented Dec 30, 2012

on MAc 10.8.2 with Chrome, Firefox has no problem. the problem is safari 6.0.2 or previous version.

@tomneedham you can have try click granted access before adding Applicable user/group permission and the configuration is not vanished

@MTGap
Copy link
Contributor

MTGap commented Jan 1, 2013

@JFOC, @tomneedham Can you try the external_storage_ui_feedback branch? #1031

I turned off async, which I think is what was causing the problems and made saving temperamental.

@JFOC
Copy link

JFOC commented Jan 2, 2013

@MTGap I just tried with external_storage_ui_feedback branch on Safari 6.0.2 Mac 10.8.2 and working properly :)

@JFOC
Copy link

JFOC commented Jan 2, 2013

But the the file total size for dropbox looks like wrong size in files list

@tomneedham
Copy link
Member

Works in Chrome 23.0 and Safari 6.0.1 on OSX 10.8.2

@JFOC
Copy link

JFOC commented Jan 22, 2013

Looks like external_storage_ui_feedback fixes are not included in 4.5.6 ?
I am still experiencing problem with Safari in 4.5.6

@Rid
Copy link

Rid commented Jan 28, 2013

I'm having this issue on 4.5.6. Adding Dropbox external mounts isn't working with: Firefox 18.0.1 Mac OS, Chrome 24.0.1312.56 Mac OS, Safari 6.0.2 Mac OS, Chrome 24.0.1312.56 Windows, Firefox 18.0.1 Windows.

Dropbox external mounts are working with: IE 9.0.12 Windows.

@MTGap
Copy link
Contributor

MTGap commented Jan 28, 2013

@Rid Everything should be fixed in this pull request #1031

Please test it, I'm still waiting for approval to merge.

@Rid
Copy link

Rid commented Jan 28, 2013

I checked out that branch, now owncloud seems to be stuck updating, it's been displaying "ownCloud is in maintenance mode" for the last half hour.

httpd has some errors like:

[error] [client xxxx] script '/home/steve/.owncloud/owncloud/core/ajax/requesttoken.php' not found or unable to stat, referer: http://xxxxxx/owncloud/settings/personal.php?uid=98380373&oauth_token=u0p0yrnun25hyvj
[error] [client xxxxx] File does not exist: /home/steve/public_html/core, referer: http://xxxxx/owncloud/settings/personal.php?uid=98380373&oauth_token=u0p0yrnun25hyvj

It's strange because owncloud is not even installed in public_html.

@MTGap
Copy link
Contributor

MTGap commented Jan 28, 2013

Well once it's in maintenance mode it won't come out until you change it in config.php

Did you ever see a page that said 'Updating ownCloud to version...'?

@Rid
Copy link

Rid commented Jan 28, 2013

Yes, I believe it was to 5.0 alpha.

@MTGap
Copy link
Contributor

MTGap commented Jan 28, 2013

Then what happened? Can you check your version in config.php

@Rid
Copy link

Rid commented Jan 28, 2013

Still 'version' => '4.90.7', doesn't seem to be doing anything, nothing in the logs etc..

@MTGap
Copy link
Contributor

MTGap commented Jan 29, 2013

You're going to have to help me out a little more. What did the page say, was there an error? Set maintenance to false and try updating again.

@Rid
Copy link

Rid commented Jan 29, 2013

Looks like it was a db issue, I uploaded a fresh database and it completed the upgrade, now i've got; PHP Fatal error: Class 'Symfony\Component\Routing\RequestContext' not found in /home/steve/.owncloud/owncloud/lib/router.php on line 29, referer: https://xxxxx/owncloud/

@MTGap
Copy link
Contributor

MTGap commented Jan 29, 2013

Do you have the latest 3rdparty?

@MTGap
Copy link
Contributor

MTGap commented Jan 29, 2013

That's your problem: https://github.com/owncloud/3rdparty

@Rid
Copy link

Rid commented Jan 29, 2013

Thanks, now when I add the Dropbox key/secret and press grant access I get "Fetching request tokens failed. Verify that your Dropbox app key and secret are correct."

A couple of logs:
Error files_external Curl error: (60) error setting certificate verify locations: CAfile: rootca CApath: none January 29, 2013 01:28
Warning PHP Undefined index: size at /home/steve/.owncloud/owncloud/settings/personal.php#21 January 29, 2013 01:28

@MTGap
Copy link
Contributor

MTGap commented Jan 29, 2013

Now you're affected by this issue #819

@Rid
Copy link

Rid commented Jan 29, 2013

I've overcome that issue, however I'm still having the issue where I click Allow access in dropbox, am sent back to https://xxxx/owncloud/index.php/settings/personal?uid=98380373&oauth_token=p3e5hywsr9posld and nothing happens. That's on Firefox & Chrome Mac OS.

@zenandjuice
Copy link

Rid, did you ever resolve this? I'm seeing the same behavior (mount point not sticking), using Mac and various browsers.

@Rid
Copy link

Rid commented Feb 4, 2013

I only managed to get it working on IE, Windows. Haven't had a further chance to investigate yet.

@zenandjuice
Copy link

Rid, that worked for me. I had tried Firefox earlier on Windows, and Firefox & Chrome on Mac. IE9 did the trick. Thanks!

@a-schild
Copy link

Same problem here with firefox and ownClout 5.0 Beta 2

Setup only works with IE

@karlitschek
Copy link
Contributor

@MTGap Do you think this will be fixed with the new external storage UI?

@karlitschek
Copy link
Contributor

ping @MTGap :-)

@MTGap
Copy link
Contributor

MTGap commented Mar 3, 2013

Everything should be fixed with #1031

@MTGap MTGap closed this as completed Mar 3, 2013
@lock lock bot locked as resolved and limited conversation to collaborators Aug 24, 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

10 participants