Project

General

Profile

Ubuntu 10.04 Error while uploading attachments in wiki

Added by Chrome Silver almost 14 years ago

Hi there,

I'm quite new to Redmine, still I managed to get it working on Ubuntu Server 10.04. Only a few things make me sick so far, the worst: Neither I nor any other user is able to upload files in to any project wiki. After selecting a file to upload and hitting the button the following error occurs:

redMine 500 error

Internal error

An error occurred on the page you were trying to access.
If you continue to experience problems please contact your redMine administrator for assistance.

I found out that this error already occurred on a Debian bug-tracking forum, here's the link:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=569208

But on my machine a dokuwiki never has been installed and no global aliases are defined.

Any suggestions?

MTHX in advance,
ChromeSilver


Replies (4)

RE: Ubuntu 10.04 Error while uploading attachments in wiki - Added by Felix Schäfer almost 14 years ago

Have a look at your redmine log, it should be under redmine_dir/logs/production.log. My bet though is a permission problem, either the user running redmine can't write to the tmp directory (location depends on what server you use for redmine) or it can't write to redmine_dir/files.

(Please note that these are all the standard paths, the debian/ubuntu packages are known to put stuff wherever they seem fit)

RE: Ubuntu 10.04 Error while uploading attachments in wiki - Added by Chrome Silver almost 14 years ago

Hi Felix,

I didn't install the Ubuntu-Package for it didn't work at all. I resolved the dependencies, then download and unpacked the official archive from redmine.org, did the fine-tuning (changed ownership of files, etc. to www-data) and put it all into /opt/redmine - then I created a symlink in /var/www to /opt/redmine/public and a php forwarding skript.

What did the trick was a "chmod -R 777" on the files-directory, which has an ownership of www-data:www-data. As a fact a chmod to 775 did not work. What puzzles me indeed. Any more suggestions?

MTHX,
ChromeSilver

RE: Ubuntu 10.04 Error while uploading attachments in wiki - Added by Felix Schäfer almost 14 years ago

If you are using passenger: passenger does some user switching of it's own, see http://modrails.com/documentation/Users%20guide%20Apache.html#PassengerUserSwitching and linked explanations.

RE: Ubuntu 10.04 Error while uploading attachments in wiki - Added by Chrome Silver almost 14 years ago

Yeah! Passenger' user switching to nobody:nogroup was the source of all evil. But as a fact I can live with letting the files directory prone to everyone, since from the web no-one is able to access it bypassing Redmine. Thank you very much for your efficieny!

Grz,
ChromeSilver

    (1-4/4)