Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

barbie (2653)

  reversethis-{ku. ... m} {ta} {eibrab}

Leader of [] and a CPAN author []. Co-organised YAPC::Europe in 2006 and the 2009 QA Hackathon, responsible for the YAPC Conference Surveys [] and the QA Hackathon [] websites. Also the current caretaker for the CPAN Testers websites and data stores.

If you really want to find out more, buy me a Guinness ;)

Memoirs of a Roadie []
CPAN Testers Reports []
YAPC Conference Surveys []
QA Hackathon []

Journal of barbie (2653)

Monday August 15, 2005
04:40 AM

Birmingham OpenGuide .. the saga continues

[ #26285 ]

This weekend I set about installing the OpenGuides software and setting up PostgreSQL, ready to install all the data and software for the Birmingham OpenGuide site on my home box. have negotiated a new server to host our site on, and to maximise it's usage we want to put the OpenGuide site back up. Steve was trying to do this, but has been beset with hardware problems for the last year.

So OpenGuides installs fine, PostgreSQL appears to be up and running, and I have all the scripts, data and images from the site Steve was working on.

I then spend half a day trying to figure out why I can't just load the database dump that Steve gave me into PostgreSQL. It took a while of searching and trial and error, but I finally did it. The problem was I was trying to be a little secure over what users were created and the db owner has to be superuser, ie they can create users. That little snippet isn't clear in the docs, and I was trying to figure out how to set a user as a superuser. Any road up, users are now set up, and db is loaded without errors.

Next I fired up the CGI script. Unfortunately Steve was working with an older copy of OpenGuides, and there are quite a few changes in the last year. No big deal, but it mean installing a few extra plugins. That's when I discovered the flaw in PostgreSQL.

Well I'm assuming its PostgreSQL, but it's definitely a bug.

I started to install 'CGI::Wiki::Locator::UK', and make test failed. Digging deeper, the problem is this. Two entries from the metadata table:

'21 clone','os_y',1000

You would expect the following:

SELECT node FROM metadata
WHERE metadata_type = 'os_y'
AND metadata_value >= 995
AND metadata_value <= 1005

to return both nodes, '21' and '21 clone'. It doesn't it returns nothing. Remove the '>= 995' line and it works. So according to PostgreSQL '1000 >= 995' is false.

I installed the plugin anyway, and started up the script again. I then hit another PostgreSQL problem. I get a FAILED:IDENT error. However, this time I am supecting that the DSN setup in OpenGuides may be at fault, as the connect line is:


Shouldn't the DSN be 'dbi:Pg:dname=openguides'? It was gone 11pm last night when I got that far, so plan to have another crack tonight. But installing software shouldn't be this cumbersome.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.