[Bucardo-general] Can't call method "prepare" on an undefined value

web at mr-paradox.net web at mr-paradox.net
Fri Mar 9 04:24:47 UTC 2012


<sigh> ignore. As usual it just takes me emailing everyone for me to figure it out.
  

(It WASN'T actually connecting, i must have done my various "or die" checks wrong
when trying to debug)
  
Thanks


On Thu, Mar 08, 2012 at 08:13:27PM -0800, web at mr-paradox.net wrote:
- Howdy,
- 
- I'm getting the following error when running bucardo_ctl.
- 
- Can't call method "prepare" on an undefined value at ./bucardo_ctl line 3620.
- 
- 
- 3620 is in add_all_goats:
- $dbh2->prepare($SQL);
- 
- After some research it seems that in
-     ## Connect to the remote database
-     my $dbh2 = connect_database({name => $db->{name}});
- 
- connect_database seems to successfully connect to my database however
- the return $dbh2 at the end of that function doesn't seem to work.
- 
- Here's all the info i can think of to add.
- 
- RHEL 6.1 x32
- 
- PG Version: 9.1.3
- 
- bucardo_ctl version 4.4.8
- 
- Perl: 4:5.10.1-119.el6
- perl-DBD-Pg: 2.15.1-3.el6
- perl-DBI: 1.609-4.el6
- perl-DBIx-Safe  1.2.5-6.el6 
- 
- bucardo=# select * from bucardo.db;
- -[ RECORD 1 ]--------+-----------------------------
- name                 | the_master
- dbhost               | 192.168.21.149
- dbport               | 5432
- dbname               | shonuff
- dbuser               | bucardo
- dbpass               | 
- dbconn               | 
- dbservice            | 
- pgpass               | 
- status               | active
- sourcelimit          | 0
- targetlimit          | 0
- server_side_prepares | t
- cdate                | 2012-03-08 20:23:57.73325+00
- 
- 
- Any ideas?
- 
- 
- Thanks.
- _______________________________________________
- Bucardo-general mailing list
- Bucardo-general at bucardo.org
- https://mail.endcrypt.com/mailman/listinfo/bucardo-general
- 


More information about the Bucardo-general mailing list