Skip Menu |
 

This queue is for tickets about the Smolder CPAN distribution.

Report information
The Basics
Id: 55674
Status: open
Priority: 0/
Queue: Smolder

People
Owner: Nobody in particular
Requestors: MARKSTOS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.51
Fixed in: (no value)



Subject: problem with non-sensible tmpdir value: mkdir /tmp//usr/home/smokebot: Permission denied
Download (untitled) / with headers
text/plain 1.8k
I'll volunteer to look at this one myself, but want to describe it here. I'm working on running Smolder as a CGI script through an existing Apache install. Smolder is failing to load due the following error chain. The critical bit is this: mkdir /tmp//usr/home/smokebot: Permission denied So for some reason, a non-sensible tmpdir value is being constructed. The follow stack trace is below: ### [Dispatch] ERROR for request '/app': Unable to load module 'Smolder::Control::Public': Smolder::DB::Project can't load Smolder::DB::SmokeReport: mkdir /tmp//usr/home/smokebot: Permission denied at /usr/home/smokebot/www/cgi-bin/../../lib/perl5/i386-freebsd- 64int/Template/Provider.pm line 388 Compilation failed in require at /usr/home/smokebot/www/cgi- bin/../../lib/perl5/Smolder/DB/SmokeReport.pm line 6. BEGIN failed--compilation aborted at /usr/home/smokebot/www/cgi- bin/../../lib/perl5/Smolder/DB/SmokeReport.pm line 6. Compilation failed in require at /usr/home/smokebot/www/cgi- bin/../../lib/perl5/Class/DBI.pm line 1223. at /usr/home/smokebot/www/cgi- bin/../../lib/perl5/Class/DBI/Relationship/HasMany.pm line 26 Compilation failed in require at /usr/home/smokebot/www/cgi- bin/../../lib/perl5/Smolder/DB/Developer.pm line 6. BEGIN failed--compilation aborted at /usr/home/smokebot/www/cgi- bin/../../lib/perl5/Smolder/DB/Developer.pm line 6. Compilation failed in require at /usr/home/smokebot/www/cgi- bin/../../lib/perl5/Smolder/Control.pm line 17. BEGIN failed--compilation aborted at /usr/home/smokebot/www/cgi- bin/../../lib/perl5/Smolder/Control.pm line 17. Compilation failed in require at (eval 26) line 3. ...propagated at /usr/local/lib/perl5/5.8.8/base.pm line 85. BEGIN failed--compilation aborted at /usr/home/smokebot/www/cgi- bin/../../lib/perl5/Smolder/Control/Public.pm line 3. Compilation failed in require at (eval 25) line 3.
Download (untitled) / with headers
text/plain 2.5k
This can be considered resolved as a not-a-bug. Smolder was in fact creating a directory tree correctly inside of /tmp. It turns out that I run Smolder previously as another user, which had created some of the same directory structure, and the second user did not have permission to the use and recreate the original structure. I suppose this could be a problem if multiple users were using Smolder on the same machine, but I'm also OK with just resolving the ticket for now. ( My workaround was to delete the "/tmp/usr" directory from the old user, which was no longer needed. ) On Wed Mar 17 17:52:16 2010, MARKSTOS wrote: Show quoted text
> I'll volunteer to look at this one myself, but want to describe it
here. Show quoted text
> > I'm working on running Smolder as a CGI script through an existing > Apache install. > > Smolder is failing to load due the following error chain. The critical > bit is this: > > mkdir /tmp//usr/home/smokebot: Permission denied > > So for some reason, a non-sensible tmpdir value is being constructed. > The follow stack trace is below: > > ### > > > [Dispatch] ERROR for request '/app': Unable to load module > 'Smolder::Control::Public': Smolder::DB::Project can't load > Smolder::DB::SmokeReport: mkdir /tmp//usr/home/smokebot: Permission > denied at /usr/home/smokebot/www/cgi-bin/../../lib/perl5/i386-freebsd- > 64int/Template/Provider.pm line 388 > Compilation failed in require at /usr/home/smokebot/www/cgi- > bin/../../lib/perl5/Smolder/DB/SmokeReport.pm line 6. > BEGIN failed--compilation aborted at /usr/home/smokebot/www/cgi- > bin/../../lib/perl5/Smolder/DB/SmokeReport.pm line 6. > Compilation failed in require at /usr/home/smokebot/www/cgi- > bin/../../lib/perl5/Class/DBI.pm line 1223. at > /usr/home/smokebot/www/cgi- > bin/../../lib/perl5/Class/DBI/Relationship/HasMany.pm line 26 > Compilation failed in require at /usr/home/smokebot/www/cgi- > bin/../../lib/perl5/Smolder/DB/Developer.pm line 6. > BEGIN failed--compilation aborted at /usr/home/smokebot/www/cgi- > bin/../../lib/perl5/Smolder/DB/Developer.pm line 6. > Compilation failed in require at /usr/home/smokebot/www/cgi- > bin/../../lib/perl5/Smolder/Control.pm line 17. > BEGIN failed--compilation aborted at /usr/home/smokebot/www/cgi- > bin/../../lib/perl5/Smolder/Control.pm line 17. > Compilation failed in require at (eval 26) line 3. > ...propagated at /usr/local/lib/perl5/5.8.8/base.pm line 85. > BEGIN failed--compilation aborted at /usr/home/smokebot/www/cgi- > bin/../../lib/perl5/Smolder/Control/Public.pm line 3. > Compilation failed in require at (eval 25) line 3.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.