[rt-users] File upload problem on FreeBSD

Matthew Seaman matthew.seaman at thebunker.net
Thu Mar 20 11:41:07 EDT 2008


Ran into a bijou little buglet today.

On FreeBSD the UID that apache runs under, www, has a home directory
set to /nonexistent by default -- which as the name implies is a non-existent
directory.

Unfortunately this screws up being able to upload files into RT.  Any attempt
to do that results in a blank screen and the following messages in the log file:

Mar 20 13:28:54 splenetic RT: CGI open of tmpfile: No such file or directory (/usr/local/rt3/bin/webmux.pl:127)  
Mar 20 13:28:54 splenetic kernel: Mar 20 13:28:54 splenetic RT: CGI open of tmpfile: No such file or directory (/usr/local/rt3/bin/webmux.pl:127)  

This appears to be the result of the CGI.pm module trying to open ~www/.tmp 
which of course doesn't exist.  The docco says that in that case, various standard
locations like /usr/tmp or /var/tmp will be tried in sequence until a usable location
is found: however, this doesn't happen and RT hangs.  I think this is a bug.

Workaround is to change the www home dir to an existing (albeit unwritable)
directory.

	Cheers,

	Matthew

-- 
Dr Matthew Seaman                        The Bunker, Ash Radar Station
PGP: 0x60AE908C on servers               Marshborough Rd
Tel: +44 1304 814890                     Sandwich
Fax: +44 1304 814899                     Kent, CT13 0PL, UK 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20080320/fa9e252c/attachment.sig>


More information about the rt-users mailing list