Last modified: 2013-06-08 22:58:44 UTC
PHP scripts & Co. get an unset $HOME. When they call jsub, the latter tries to set the output file to /$JOBNAME.out (and .err). It should be possible to use "(getpwuid ($<)) [7]" instead of "$ENV {'HOME'}" to fix jsub. On Toolserver, $HOME isn't set as well IIRC, so this might not be a regression, but if $HOME would be set, it would probably make it much less surprising for a lot of users who think that it's always there.
Related URL: https://gerrit.wikimedia.org/r/65007 (Gerrit Change I7d03609b0c901527c0dcd492ba99af64e517a13e)
BUMP some idea how to fix this?
There does not seem to be a clean way to fix this; CGIs (and, by extension those invoked through suphp) do not have a $HOME set by the webserver under the presumption that it would be the apache user's and suphp is careful to not otherwise alter the environment. This does need to be documented, however, to avoid confusion.
(In reply to comment #3) > There does not seem to be a clean way to fix this; CGIs (and, by extension > those invoked through suphp) do not have a $HOME set by the webserver under > the > presumption that it would be the apache user's and suphp is careful to not > otherwise alter the environment. > This does need to be documented, however, to avoid confusion. Eh, this issue has been fixed by Gerrit change #65007?
The patch fixes jsub's /dependence/ on $HOME being there, it doesn't put $HOME back in. :-)
(In reply to comment #5) > The patch fixes jsub's /dependence/ on $HOME being there, it doesn't put > $HOME > back in. :-) So the lesson seems to be: Don't use commas in bug summaries :-).