Stories
Slash Boxes
Comments
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)

barbie
  reversethis-{ku. ... m} {ta} {eibrab}
http://barbie.missbarbell.co.uk/

Leader of Birmingham.pm [pm.org] and a CPAN author [cpan.org]. Co-organised YAPC::Europe in 2006 and the 2009 QA Hackathon, responsible for the YAPC Conference Surveys [yapc-surveys.org] and the QA Hackathon [qa-hackathon.org] 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 ;)

Links:
Memoirs of a Roadie [missbarbell.co.uk]
[pm.org]
CPAN Testers Reports [cpantesters.org]
YAPC Conference Surveys [yapc-surveys.org]
QA Hackathon [qa-hackathon.org]

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. Birmingham.pm 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:

node,metadata_type,metdata_value
'21','os_y',1000
'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:

DBI->connect('dbname=openguides','username',....);

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.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.