core icon indicating copy to clipboard operation
core copied to clipboard

Internal Server Error 500

Open cyberdaemon opened this issue 13 years ago • 19 comments

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.

cyberdaemon avatar Jan 11 '13 14:01 cyberdaemon

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

DeepDiver1975 avatar Jan 11 '13 14:01 DeepDiver1975

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" [email protected] 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: https://github.com/owncloud/core/issues/1153#issuecomment-12147461

cyberdaemon avatar Jan 11 '13 15:01 cyberdaemon

how big is big? ;-)

DeepDiver1975 avatar Jan 11 '13 15:01 DeepDiver1975

greater than 100MB

cyberdaemon avatar Jan 11 '13 15:01 cyberdaemon

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

DeepDiver1975 avatar Jan 11 '13 15:01 DeepDiver1975

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 avatar Jan 11 '13 15:01 cyberdaemon

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

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

cyberdaemon avatar Jan 14 '13 07:01 cyberdaemon

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

cyberdaemon avatar Jan 15 '13 12:01 cyberdaemon

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 avatar Jan 15 '13 14:01 cyberdaemon

Anyone? Please help

cyberdaemon avatar Jan 18 '13 08:01 cyberdaemon

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 avatar Jan 18 '13 10:01 cyberdaemon

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

cyberdaemon avatar Jan 29 '13 16:01 cyberdaemon

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?

tanghus avatar Jan 29 '13 18:01 tanghus

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

cyberdaemon avatar Jan 29 '13 22:01 cyberdaemon

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 ;)

tanghus avatar Jan 29 '13 22:01 tanghus

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 avatar Jan 30 '13 10:01 cyberdaemon

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 avatar Jan 31 '13 10:01 cyberdaemon

Is there any way to turn on logging to sabredav?

cyberdaemon avatar Feb 06 '13 20:02 cyberdaemon

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

cyberdaemon avatar Mar 13 '13 23:03 cyberdaemon