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

HTTP error 403 when trying to upload with the OSX client or via webDav (CLI) #3243

Closed
stoefln opened this issue May 6, 2013 · 4 comments
Closed

Comments

@stoefln
Copy link

stoefln commented May 6, 2013

Something is wrong on the serverside. I have owncloud 5.0.5 running on my server, but only download is working via webDav (html upload is working). I am always getting a 403 from the server. I also tried to upload with the cadaver webDav CLI client-> same problem.
Can someone help me with this?

Here is the log:

...
05-06 11:00:58:387 oc_module: Working on file Jelly objects
05-06 11:00:58:387 oc_module:   :> Subtracting -1 from modtime 1367742529
05-06 11:00:58:387 oc_module: STAT result from propfind: Jelly objects, mtime: 1367742530
05-06 11:00:58:387 oc_module: Directory of file to open exists.
05-06 11:00:58:387 oc_module: PUT request on /remote.php/webdav/clientsync/Jelly%20objects/jelly%20object.JPG!
05-06 11:00:58:387 oc_module: Sendfile handling request type PUT.
05-06 11:00:58:387 oc_module: Put file size: 3178496, variable sizeof: 8
05-06 11:00:58:656 status.php returns:  "{"installed":"true","version":"5.0.6","versionstring":"5.0.5","edition":""}"   0  Reply:  QNetworkReplyImpl(0x102375360) 
05-06 11:00:58:656 Unknown info from ownCloud status.php:  "installed" = "true" 
05-06 11:00:58:656 #-------# oC found on  "http://cloud.microtrash.net" 
05-06 11:01:08:650 * Polling "ownCloud" for changes. Ignoring all pending events until now 
05-06 11:01:08:650 *  "ownCloud" Poll timer disabled 
05-06 11:01:08:650 Schedule folder  "ownCloud"  to sync! 
05-06 11:01:43:624 oc_module: sendfile request failed with http status 403!
05-06 11:01:43:624 _csync_push_file: file: /Users/stephan/ownCloud/Jelly objects/jelly object.JPG, command: sendfile, error: Invalid argument from errno 22
05-06 11:01:43:624 _csync_push_file: Remote repository atomar push enabled for owncloud://cloud.microtrash.net/remote.php/webdav/clientsync/Glanzer Honorar7 Ajado.pdf (0).
05-06 11:01:43:624 oc_module: => open called for owncloud://cloud.microtrash.net/remote.php/webdav/clientsync/Glanzer Honorar7 Ajado.pdf
05-06 11:01:43:624 oc_module: Stating directory owncloud://cloud.microtrash.net/remote.php/webdav/clientsync
05-06 11:01:43:624 oc_module: owncloud_stat owncloud://cloud.microtrash.net/remote.php/webdav/clientsync called
05-06 11:01:43:977 oc_module: Simple propfind result code 207.
05-06 11:01:43:977 oc_module: Server Date from HTTP header value: Mon, 06 May 2013 09:01:42 GMT
05-06 11:01:43:977 oc_module: Ok: Time delta remained (almost) the same: -1.
05-06 11:01:43:977 oc_module: => Errno after fetch resource list for owncloud://cloud.microtrash.net/remote.php/webdav/clientsync: 0
05-06 11:01:43:977 oc_module: Working on file clientsync
05-06 11:01:43:977 oc_module:   :> Subtracting -1 from modtime 1367742529
05-06 11:01:43:977 oc_module: STAT result from propfind: clientsync, mtime: 1367742530
05-06 11:01:43:977 oc_module: Directory of file to open exists.
05-06 11:01:43:977 oc_module: PUT request on /remote.php/webdav/clientsync/Glanzer%20Honorar7%20Ajado.pdf!
05-06 11:01:43:977 oc_module: Sendfile handling request type PUT.
05-06 11:01:43:977 oc_module: Put file size: 28516, variable sizeof: 8
05-06 11:01:44:563 oc_module: sendfile request failed with http status 403!
@stoefln
Copy link
Author

stoefln commented May 6, 2013

By the way: only upload is not working. I can cd and ls through the directories via the CLI webDav client- thats working like a charm... But no upload :(

dav:/remote.php/webdav/> put /Users/stephan/Downloads/comusecase.pdf 
Uploading /Users/stephan/Downloads/comusecase.pdf to `/remote.php/webdav/comusecase.pdf':
Progress: [=============================>] 100,0% of 178955 bytes failed:
403 Forbidden
dav:/remote.php/we

@ghost
Copy link

ghost commented May 6, 2013

Have a look at this FAQ entry about WebDAV issues:

https://forum.owncloud.org/viewtopic.php?f=17&t=7536

or provide informations about your environment with the reporting template available here:

https://raw.github.com/owncloud/core/master/issue_template.md

If you have such server issues you should at least provide the informations which webserver you're running.

@stoefln
Copy link
Author

stoefln commented May 16, 2013

I went through all the settings, and also talked to the hosting providers support (its hostgator).
I cant find any problematic setting, everything else is working fine.
Here is my phpinfo(): http://snk.to/f-c7xjscuv

@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 you still encounter this issue 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 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants