Project

General

Profile

Strange problem with file upload in documents

Added by Viktor Yagnov about 13 years ago

Just installed remine.
All works fine, but I can't upload file more than 6Kb or near that. If I try to upload larger file, I gain "500 Internal Server Error". How to fix than, or to enable debug mode to find out the reasons of error?


Replies (15)

RE: Strange problem with file upload in documents - Added by Etienne Massip about 13 years ago

Could you post the exception trace you'll find in your log/production.log file, please ?

RE: Strange problem with file upload in documents - Added by Viktor Yagnov about 13 years ago

There is nothing there.
No exceptions or errors. I've attached file
Maybe I should enable deeper loglevel somewhere?

RE: Strange problem with file upload in documents - Added by Etienne Massip about 13 years ago

What's your Redmine version ?

What's your http / ruby server ?

Did you really mean 6kb, not 6mb ?

http://redmine.sidewinder.su is unavailable with a HTTP 500, is it normal ?

RE: Strange problem with file upload in documents - Added by Viktor Yagnov about 13 years ago

  1. ruby --version
    ruby 1.8.7 (2010-08-16 patchlevel 302) [amd64-freebsd8]

Apache/2.2.17 (FreeBSD) mod_ssl/2.2.17 OpenSSL/0.9.8n DAV/2 PHP/5.2.17 with Suhosin-Patch Phusion_Passenger/3.0.2

Yes. 6Kb or near that. I can upload file 7275 bytes, but 8852 bytes cause 500 error

I was adding some changes to httpd.conf. It could be unavailabe fore some time.

RE: Strange problem with file upload in documents - Added by Etienne Massip about 13 years ago

What are your upload limits (Redmine and Passenger) ?

RE: Strange problem with file upload in documents - Added by Viktor Yagnov about 13 years ago

For Redmine - default 5Mb

As about Passenger.. I couldn't find where I can see this

RE: Strange problem with file upload in documents - Added by Viktor Yagnov about 13 years ago

there is no any limitations in httpd.conf
post_max_size=40M
but this string in php.ini and doesn't have any influence on ruby applications
I've traced with httpFox that if I upload big file, apache accepts only 256Kb, then brakes the connection. In error log appears a string "Child closed with signal 10".
If there any limitations in fastCgi mode for passenger?

RE: Strange problem with file upload in documents - Added by Etienne Massip about 13 years ago

I'm don't know much about Apache / Passenger / fastCgi :(

Don't you have some more information in http-errors-log or /var/log/myapp_fcgi_crash.log (see source:trunk/public/dispatch.fcgi.example) ?

RE: Strange problem with file upload in documents - Added by Viktor Yagnov about 13 years ago

Found one more thing
If I start WEBrick web server
ruby script/server -e production
and try to work directly with it at port 3000, all works fine
Though there is a problem in interface between apache and ruby

RE: Strange problem with file upload in documents - Added by Viktor Yagnov about 13 years ago

will try no run redmine with nginx

RE: Strange problem with file upload in documents - Added by Viktor Yagnov about 13 years ago

Problem solved:
It was in permissions to passenger dir for buffered uploads
solved by adding PassengerUploadBufferDir with path to writeable directory in httpd.conf

    (1-15/15)