Skip Menu |
 

This queue is for tickets about the Smolder CPAN distribution.

Report information
The Basics
Id: 58496
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: "Internal Server Error" details going nowhere.
Download (untitled) / with headers
text/plain 298b
I'm experiencing an "Internal Server Error" with Smolder, and I'm not able to reach the diagnostic details to find out why. The details are not going to the "app log" location I setup, or to the Apache error log. If neither of these can be used, then the error should be printed to the screen.
Download (untitled) / with headers
text/plain 102b
Are you running Smolder with it's built-in server or as a CGI (since I know you're working on that)?
Download (untitled) / with headers
text/plain 969b
As a CGI. I had just tried manually adding my own admin user, because I couldn't find the documentation for the default admin password. What *is* it? :) I ran a script like the one below. I suspect it created a data situation that was being barfed on. Any help is appreciated. I hope I'll see you at YAPC to discuss it further. We are on the verge of completing our corporate install of Smolder, but need to get some of the details ironed out. ### use FindBin::Real 'Bin'; use lib Bin() . '/../lib/perl5'; use Smolder::DB::Developer; use Smolder::DB::Preference; use Smolder::DB::SmokeReport; my $dev = Smolder::DB::Developer->create({ username => 'mark', fname => 'Mark', lname => 'Stosberg', email => 'mark@summersault.com', password => 'not my real password', admin => 1, preference => Smolder::DB::Preference->create({ email_type => 'full', email_freq => 'daily', }), });
On Thu Jun 17 14:03:05 2010, MARKSTOS wrote: Show quoted text
> I had just tried manually adding my own admin user, because I couldn't > find the documentation for the default admin password. What *is* it? :)
It's "admin" and "qa_rocks". It's documented in the UI (from the home screen click on "Admin Tutorial" which for our smolder install is located at http://smolder.plusthree.com/app/public/admin_tutorial). But you're right it should be in the main manual document. Show quoted text
> I ran a script like the one below. I suspect it created a data situation > that was being barfed on.
Yeah, Smolder assumes that the DB has a certain schema and certain default entries. Smolder will create a new database when the app is started (and upgrade an existing database if a new version is installed). You can look at Smolder::Server's start() method to see how this is done. Show quoted text
> We are on the verge of completing our corporate install of Smolder, but > need to get some of the details ironed out.
Btw, what's the motivation behind having Smolder run as a CGI? Could you run it on a higher port and use a reverse proxy?
Subject: Re: [rt.cpan.org #58496] "Internal Server Error" details going nowhere.
Date: Thu, 17 Jun 2010 15:11:58 -0400
To: bug-Smolder [...] rt.cpan.org
From: Mark Stosberg <mark [...] summersault.com>
Download (untitled) / with headers
text/plain 1.9k
On Thu, 17 Jun 2010 14:43:09 -0400 "Michael Peters via RT" <bug-Smolder@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=58496 > > > On Thu Jun 17 14:03:05 2010, MARKSTOS wrote: >
> > I had just tried manually adding my own admin user, because I couldn't > > find the documentation for the default admin password. What *is* it? :)
> > It's "admin" and "qa_rocks". It's documented in the UI (from the home > screen click on "Admin Tutorial" which for our smolder install is > located at http://smolder.plusthree.com/app/public/admin_tutorial). But > you're right it should be in the main manual document.
Thanks. Show quoted text
> > I ran a script like the one below. I suspect it created a data situation > > that was being barfed on.
> > Yeah, Smolder assumes that the DB has a certain schema and certain > default entries. Smolder will create a new database when the app is > started (and upgrade an existing database if a new version is installed). > > You can look at Smolder::Server's start() method to see how this is done.
Thanks. I found the related code and created bin/smolder_create_database based on it. It's my my smolder-as-cgi branch now. Show quoted text
> Btw, what's the motivation behind having Smolder run as a CGI? Could you > run it on a higher port and use a reverse proxy?
It is easier for us to manage it as part of an existing Apache install than to manage another service. It is a factor that no FreeBSD init.d script exists to manage stop/starting the server on demand and at boot/shutdown time. I've done a clean recreation of the database now using the code from start(), but I'm still getting "Internal Server Error" on page loads. I'll have to track that down further. Mark -- . . . . . . . . . . . . . . . . . . . . . . . . . . . Mark Stosberg Principal Developer mark@summersault.com Summersault, LLC 765-939-9301 ext 202 database driven websites . . . . . http://www.summersault.com/ . . . . . . . .


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.