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

There is 301 error when I want to sync up with owncloud server #237

Closed
sooit opened this issue Nov 4, 2012 · 20 comments
Closed

There is 301 error when I want to sync up with owncloud server #237

sooit opened this issue Nov 4, 2012 · 20 comments
Assignees
Labels

Comments

@sooit
Copy link

sooit commented Nov 4, 2012

I installed owncloud 4.5.1a at my php server. Everything is OK when I use web UI. I also download sync client to my Mac book air.

I input the url like this: https://mydomainname/owncloud/ . Input the correct username and password. I got the following errors. Can someone help me on this?


Successfully connected to https://mydomainname/owncloud: ownCloud version 2012.4.5.1a (4.90.2)

Local sync folder /Users/wuhui/ownCloud already exists, setting it up for sync.

Remote folder clientsync creation failed with error 301.

Connection to ownCloud could not be established. Please check again.

I checked what error 301 means on internet. It looks clientsync was asked to redirect. But on the web, the actual URL isn't changed. It's strange.

@ghost ghost assigned danimo Nov 5, 2012
@dragotin
Copy link
Contributor

dragotin commented Nov 5, 2012

Danimo, do you have an idea here?

@fmms
Copy link
Contributor

fmms commented Nov 5, 2012

I think we need more information on the server setup nginx, apache?

The other ticket mentioning a 301 is #22.

@danimo
Copy link
Contributor

danimo commented Nov 5, 2012

Please confirm that this is not a http -> https redirect and that there are no reverse proxies, etc involved.

@sooit
Copy link
Author

sooit commented Nov 6, 2012

It's not a http-> https redirect. I install owncloud on a php web hosting server from inmotionhosting.com.
I always use https. The url of owncloud installed is : https://antnavi.com/files
There is a test account for your testing purpose: username/password is test/test

The environment information is below:
Apache version 2.2.22
PHP version 5.3.16
MySQL version 5.5.24-cll
Architecture x86_64
Operating system linux

Any suggestion on this? Thanks very much.

@dgmac
Copy link

dgmac commented Feb 21, 2013

Hello, well I have the same problem
cloud

@azamalfayez
Copy link

me too. any idea please?

@danimo
Copy link
Contributor

danimo commented Mar 1, 2013

Did you try https:// instead of http://? This looks like you have checked "Redirect to HTTPS" in the ownCloud server settings.

@azamalfayez
Copy link

oh gosh, danimo thanks for your reply. please help me. this drives me crazy.
yes i've tried https same issue. but i don't think my web hosting has SSL. i have no clue!

@danimo
Copy link
Contributor

danimo commented Mar 1, 2013

Just try to find out where the 301 tries to lead you. This looks like a redirect loop, since ownCloud client shoud follow 301's otherwise. Try to point your browser to /public.php/webdav and see where the browser guides you.

@azamalfayez
Copy link

wait. this time when i try https, it shows this error:
Failed to connect to ownCloud!
Error: Error downloading https://.......com/owncloud/status.php - server replied: Not Found
Connection to ownCloud could not be established. Please check again.

@danimo
Copy link
Contributor

danimo commented Mar 1, 2013

@azamalfayez Then your server setup is completely busted. Nothing we can do in the client.

@azamalfayez
Copy link

yes it seems it's not working with https at all. do you have an idea where in the server setting I can disable 'redirects to https'?

@azamalfayez
Copy link

i tried to trace the error in the log and here is the root cause:
"Unable to get the PAC script at "http://wpad/wpad.dat" (Remote Host Unavailable)" would that help?

@danimo
Copy link
Contributor

danimo commented Mar 1, 2013

So you are on Windows? Try to either switch "Proxy settings" to "No Proxy", or go to control panel -> Internet Properties -> Connections -> LAN Settings and uncheck "Automatically detect settings".

@azamalfayez
Copy link

you mean the server? it's PHP web hosting (webhostingHub). I've installed owncloud manually and via Softaculous.

Client is Mac OS.

@danimo
Copy link
Contributor

danimo commented Mar 1, 2013

I meant the client. In that case try to switch "Proxy settings" to "No Proxy".

@azamalfayez
Copy link

same error :(
sorry for bothering you, and thanks for your replies. but still, 301 error still shows when I connect from the desktop client, as well as the iOS app. any advice or workaround?

@danimo
Copy link
Contributor

danimo commented Mar 2, 2013

If it shows a 301 from both, it's a setup problem.

@azamalfayez
Copy link

Finally, I found the 'explanation' not a solution! which is not pleasant.

Here it is:
"The remote folder clientsync creation looks like it failed because you're trying to create a folder using webDAV - which will not work on a Shared Server account (any Business level account). You should be able to make this folder mount on your desktop system, but not with the web hosting server. You can make this service work on a VPS or Dedicated server account, but unfortunately not on the your current level of account. "
source: http://www.inmotionhosting.com/support/community-support/website/owncloud-sync-issues

I think I'm gonna upgrade.

Thanks danimo for your help.

@jancborchardt
Copy link
Member

I’m closing this issue because it has been inactive for a few months. This probably means that the issue is not reproducible or it has been fixed in a newer version.

Please reopen if the error still persists with the latest stable version (currently ownCloud 5.0.9) and then please use the issue template. You an also contribute directly by providing a patch – see the developer manual. :)

Thank you!

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

No branches or pull requests

7 participants