Package: puppetmaster
Version: 0.23.2-12
Severity: normal

Hi!

Oct 27 10:28:33 services puppetmasterd[24088]: Could not call: PGError:
ERROR:  invalid input syntax for type boolean: "'t'" : SELECT * FROM
resources WHERE (resources."exported" = '''t''')  ORDER BY updated_at
DESC LIMIT 1

I traced this to puppet/network/handler/master.rb:

| # check for recently exported virtual resources
| resource = Puppet::Rails::Resource.find_by_exported(

where I had to change the first param to plain 't' to get it working.
>From the error message, it seems as if rails is escaping this twice.



Also, the error at this point leaves the puppetmaster dead in the water:

[EMAIL PROTECTED]:/# ps auxwf | grep [r]uby
puppet   24088  1.8  3.4  66200 54600 ?        Ssl  10:27   0:08 ruby 
/usr/sbin/puppetmasterd
[EMAIL PROTECTED]:/# /etc/init.d/puppetmaster restart
Restarting puppet configuration management tool master serverAddress already in 
use - bind(2)
.
[EMAIL PROTECTED]:/# ps auxwf | grep [r]uby
puppet   24088  1.7  3.3  63932 52608 ?        Ssl  10:27   0:09 ruby 
/usr/sbin/puppetmasterd
[EMAIL PROTECTED]:/# 


Regards, David


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-xen-vserver-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages puppetmaster depends on:
ii  facter                     1.3.5-1       a library for retrieving facts fro
ii  lsb-base                   3.1-23.2etch1 Linux Standard Base 3.1 init scrip
ii  puppet                     0.23.2-12     centralised configuration manageme
ii  ruby                       1.8.2-1       An interpreter of object-oriented 

Versions of packages puppetmaster recommends:
ii  rails                         1.2.3-2    MVC ruby based framework geared fo
ii  rdoc                          1.8.2-1    Generate documentation from ruby s

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to