Project

General

Profile

The apache worker process (which is running as bugtracker) doesn't have permissions to write to this directory

Added by Xeross NA over 14 years ago

Hey,

Whenever I'm uploading files through Redmine (a ruby application) it somehow creates a temoprary folder (passenger.PID) and that's owned by the root user. however it should be owned by bugtracker because passenger is running as that user and all redmine files are owned by it.

The only thing I can think of is that this is somehow conflicting with my mod_ruid but I dunno for sure.

Does anyone know how I can solve this ?

The Error

[ pid=19192 file=ext/apache2/Hooks.cpp:725 time=2009-10-03 22:18:30.629 ]:
  Unexpected error in mod_passenger: An error occured while buffering HTTP upload data to a temporary file in /data/redmine/tmp/passenger.16709/webserver_private. The current Apache worker process (which is running as bugtracker) doesn't have permissions to write to this directory. Please change the permissions for this directory (as well as all parent directories) so that it is writable by the Apache worker process, or set the 'PassengerUploadBufferDir' directive to a directory that Apache can write to.
  Backtrace:
     in 'boost::shared_ptr<Passenger::BufferedUpload> Hooks::receiveRequestBody(request_rec*, const char*)' (Hooks.cpp:1082)
     in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:457)

Thank you for your time, Xeross


Replies (2)

RE: The apache worker process (which is running as bugtracker) doesn't have permissions to write to this directory - Added by John Fisher over 14 years ago

Here is your key I think:
"The current Apache worker process (which is running as bugtracker) doesn't have permissions to write to this directory. Please change the permissions for this directory (as well as all parent directories) so that it is writable by the Apache worker process, or set the 'PassengerUploadBufferDir' directive to a directory that Apache can write to."

Its Apache trying to write to the directory.... I had to really open up the permissions on the log and tmp directory trees in my recent install.... so chmod the directory and subdirectory. My tmp dir is now set to 775, which may be too loose- I have not hardened the site yet

John.

    (1-2/2)