whobutdrew: (Default)
Drew ([personal profile] whobutdrew) wrote in [site community profile] dw_dev2009-09-05 02:10 pm
Entry tags:

Here I am again...

So I got past the patching problem I had earlier this week, thanks to you guys. I ran through the rest of the steps in the wiki, and reached the end! So I fire up a browser, punch in my address, and get...

This. The "Oops! Something's broked" error. I combed through the comments, and the poster there was running dw-free and dw-nonfree code, and eventually rolled back to just dw-free. From there, it looked as if he ran into similar problems than I did, and (presumably) went on his merry way once getting those worked out.

So here are the results of a `tail /var/log/apache2/error.log`, after restarting my Apache services and attempting to hit my site again.


[Sat Sep 05 14:13:06 2009] [notice] caught SIGTERM, shutting down
[Sat Sep 05 14:13:11 2009] [notice] Apache/2.2.11 (Ubuntu) mod_apreq2-20051231/2.6.0 mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations
[Sat Sep 05 14:13:50 2009] [error] [client 192.168.2.102] Can't call method "selectrow_array" on an undefined value at /home/dw/cgi-bin/ljlib.pl line 1948.\n
[Sat Sep 05 14:13:50 2009] [error] [client 192.168.2.102] File does not exist: /home/dw/htdocs/favicon.ico
Unable to load language code: en_DW at /home/dw/cgi-bin/ljlang.pl line 665. @ ubuntu
Unable to load language code: en_DW at /home/dw/cgi-bin/ljlang.pl line 665. @ ubuntu
[Sat Sep 05 14:13:50 2009] [error] [client 192.168.2.102] Unable to load language code: en_DW at /home/dw/cgi-bin/ljlang.pl line 665.\n
[Sat Sep 05 14:21:15 2009] [error] [client ########] Can't call method "selectrow_array" on an undefined value at /home/dw/cgi-bin/ljlib.pl line 1948.\n
[Sat Sep 05 14:21:15 2009] [error] [client ########] File does not exist: /home/dw/htdocs/favicon.ico
Unable to load language code: en_DW at /home/dw/cgi-bin/ljlang.pl line 665. @ ubuntu
Unable to load language code: en_DW at /home/dw/cgi-bin/ljlang.pl line 665. @ ubuntu
[Sat Sep 05 14:21:15 2009] [error] [client ########] Unable to load language code: en_DW at /home/dw/cgi-bin/ljlang.pl line 665.\n



On the bright side, this is farther I've ever gotten on LJ code! Thanks to my manual configurations... I mean butchery... I could get a site internally viewable, but not externally. Now, though, the whole dang interwebs can see my error. So my excitement remains unfettered, as progress is progress.

Thanks again for everyone's help before, and in advance for the assistance now! I'll try my best not to spam the comm, I promise. :)
mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)

[staff profile] mark 2009-09-05 11:47 pm (UTC)(link)
It sounds like your database isn't properly configured. Did you/have you successfully run bin/upgrading/update-db.pl? And that works?
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2009-09-06 02:08 am (UTC)(link)
The error about the language code is probably a symptom not a cause (it means that it wasn't able to load the site strings from the database). I'm trying to match up the line you gave me with my version of the code, but line 1948 in ljlib.pl is just a closing brace. Could you update to the latest code, reconfigure (if necessary, but it shouldn't be), and try again?
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2009-09-06 02:48 am (UTC)(link)
Hm, do bin/cvsreport.pl -s -c, too. Did that move over anything?
exor674: Computer Science is my girlfriend (Default)

[personal profile] exor674 2009-09-06 04:19 am (UTC)(link)
You'll need to reapply the patch heh.

Also -- your error looks like you missed running

$LJHOME/bin/upgrading/texttool.pl load

(note, it might be texttool, it might have dashes -- I'm trying to recall off the top of my head which is kinda fail right now)
pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)

[personal profile] pauamma 2009-09-06 12:56 pm (UTC)(link)
$LJHOME/bin/upgrading/update-db.pl -p
I think you need to use the -r option there too. Try:
$LJHOME/bin/upgrading/update-db.pl -r -p
Also, can you post the content of bin/upgrading/text.dat (and text-local.dat, if also using dw-nonfree), and the settings for @LJ::LANGS and $LJ::DEFAULT_LANG (if present) in $LJHOME/etc/config*.pl? That may help troubleshoot the "Unable to load language code: en_DW" error message.
pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)

[personal profile] pauamma 2009-09-06 04:40 pm (UTC)(link)
OK. Relevant line from text.dat is
lang:1:en:English
If you don't have a text-local.dat (and you likely don't), that means that your installation only knows about en, but you try to make it use en_DW in one of the config files.

Trying to see those files gives me 500 pages, but at a guess, one of them (I can't remember which one offhand) has either @LJ::LANGS set to qw(en_DW en) or $LJ::DEFAULT_LANG set to "en_DW" (which could happen if you leave it unset, since the default value is $LJ::LANGS[0]. If that's the problem, just remove en_DW from @LJ::LANGS and remove any setting for $LJ::DEFAULT_LANG. That should fix it.

(Note: those may be present as @LANGS and $DEFAULT_LANG in the files)

If that still doesn't work, comment with the contents of the config files. (Suitably sanitized - we don't need to know the password for your MySQL database, or any other sensitive information)
pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)

[personal profile] pauamma 2009-09-06 05:51 pm (UTC)(link)
Change it to read
@LANGS = qw( en );
then restart your Apache and you should be fine. (You may need to rerun texttool too, just in case.)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2009-09-07 01:27 pm (UTC)(link)
Hmm, okay we should probably fix that in the default config file, shouldn't we? And only have en_DW in config-local.pl?
pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)

[personal profile] pauamma 2009-09-07 02:02 pm (UTC)(link)
Hmm, in which order are files loaded? Having qw( en ) in config.pl and qw( en en_DW ) in config-local.pl only works if config.pl is loaded first, but IIRC it relies on variables set in config-local.pl for some of the variables it sets, so that wouldn't work. Alternate solution would be to remove it entirely from config.pl and have something in (IIRC) cgi-bin/ljdefaults.pl along the lines of @LANGS = qw( en ) unless @LANGS;