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

Internal Server Error 500 #1153

Closed
cyberdaemon opened this issue Jan 11, 2013 · 19 comments
Closed

Internal Server Error 500 #1153

cyberdaemon opened this issue Jan 11, 2013 · 19 comments
Labels

Comments

@cyberdaemon
Copy link

Hi,

i´m getting this error: Internal Server Error 500 whenever i´m trying to upload a large file. I´m using the latest owncloud with php 5.3 and httpd-2.2.3-65

Hope you can help me. Thank you.

C.

@DeepDiver1975
Copy link
Member

Which server environment are you running?
Anything in the web server error logs?
Latest ownCloud means 4.5.5 or git master?

@cyberdaemon
Copy link
Author

Hi, im running owncloud 4.5.5 on centos 5.7. As far as I could see there are no errors I the apache logs. As I mentioned this happens only on big files regardless of the sync software. The file gets copied about 95% and hangs for about 1min. It almost seems there is a timeout generating this error.

C.

"Thomas Müller" notifications@github.com schrieb:

Which server environment are you running?
Anything in the web server error logs?
Latest ownCloud means 4.5.5 or git master?


Reply to this email directly or view it on GitHub:
#1153 (comment)

@DeepDiver1975
Copy link
Member

how big is big? ;-)

@cyberdaemon
Copy link
Author

greater than 100MB

@DeepDiver1975
Copy link
Member

hmm - how long does it take? You are possibly running into a session timeout.
Please have a look into data/owncloud.log

@cyberdaemon
Copy link
Author

The file has old entries so there are no clues. I even tried to map the webdav folder in win explorer with the same results: file does get uplaoded aprox 95% to 99% and then hangs for about 1 to 2 min. After that the error appears.

@cyberdaemon
Copy link
Author

I found also a entry about this issue in the forum:

http://forum.owncloud.org/viewtopic.php?f=3&t=2552&start=40

@cyberdaemon
Copy link
Author

I´ve updated php from 5.3 to 5.4 but no change.

@cyberdaemon
Copy link
Author

Ok, here´s a small update: i´ve configured in apache a webdav folder and uploaded the same file i did with owncloud:

LimitXMLRequestBody 131072 Dav On Options +Indexes IndexOptions FancyIndexing AddDefaultCharset UTF-8 AuthType Basic AuthName "WebDAV Server" AuthUserFile /home/www/webdav/.DAVlogin Require valid-user Order allow,deny Allow from all

Result: the file gets uploaded without any problem. So i think this must be a ownlcoud issue but to be honest i do not know where to search anymore.

@cyberdaemon
Copy link
Author

Anyone? Please help

@cyberdaemon
Copy link
Author

OK, when i map the owncloud folder in Win 7 Explorer i get the following error: 0x80070057
As i mentioned, uploading the same file directly into a previously configured webdav folder in apache works.

@cyberdaemon
Copy link
Author

Looks like nobody seems to care?! I´ve tried now to upload the file via ownclouds webgui which worked fine. So the source of error can only be sabredav. How can i update ownlcouds sabredav to the latest sabredav available on googlecode? Thank you

@tanghus
Copy link
Contributor

tanghus commented Jan 29, 2013

Ok, here´s a small update: i´ve configured in apache a webdav folder and uploaded the same file i did with owncloud:

Apache DAV has to be disabled for the host running ownCloud or it will interfere with SabreDAV. Are you sure it is?

@cyberdaemon
Copy link
Author

tanghus, thank you for reply. Ì´ve completely deactivated the DAV module in apache reloaded and started a new sync. The same error occures.

@tanghus
Copy link
Contributor

tanghus commented Jan 29, 2013

I don't see you mentioning which client you use for uploading, is it the ownCloud sync client (mirall)?
Do you check both apaches access.log and the error.log?

Ì´ve completely deactivated the DAV module in apache reloaded

Meaning restarting apache, right? Just to be sure ;)

@cyberdaemon
Copy link
Author

Hi tanghus, thank you for your reply. It doesn´t matter what sync client I´m using (GoodSync, owncloud sync client 1.2, even mapping a ownlcoud folder with windows explorer) it´s the same error. The only way it works is uploading via ownclouds webgui.
I´ve configured a fresh installation, with new database to a non SSL virtualhost...same issue.
The strange thing is, this error 500 can´t be found in any apache log files although i used LogLevel debug

I don´t get this. :(

@cyberdaemon
Copy link
Author

I´ve downgraded to 4.5.4 and at that point when the upload fails i see this in the error log:

[Thu Jan 31 11:11:15 2013] [error] PHP Notice: Undefined index: mimetype in /owncloudtest/lib/filecache.php on line 373
[Thu Jan 31 11:11:15 2013] [error] PHP Notice: Undefined index: id in /owncloudtest/lib/filecache.php on line 371

In 4.5.6 the broken upload doesn´t generate any error at all.

@cyberdaemon
Copy link
Author

Is there any way to turn on logging to sabredav?

@cyberdaemon
Copy link
Author

I´ve traced the sync process with wireshark and this and foudn the problem:
owncloud_error500-1

It turned out that the value for wait_timeout in my.cnf was too small so increasing this value fixed the problem.

Cheers

Chris

@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.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants