Re: [Puppet Users] Having trouble with facter - invalid argument

2013-05-09 Thread Stefan Schulte
On Wed, 8 May 2013 06:49:32 -0700 (PDT) jcbollinger john.bollin...@stjude.org wrote: Examining the code doesn't reveal any obvious error. Facter uses this: def self.read_sysfs_dmi_entries(path=/sys/firmware/dmi/entries/1-0/raw) if File.exists?(path) File.read(path) end end

Re: [Puppet Users] Having trouble with facter - invalid argument

2013-05-09 Thread Charlie Brune
Here's the output for the commands you requested. Thanks again for looking into it. +* ruby --version* ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-linux] +* ls -l /sys/firmware/dmi/entries/1-0/raw* -r 1 root root 0 May 6 10:39 /sys/firmware/dmi/entries/1-0/raw +* stat

Re: [Puppet Users] Having trouble with facter - invalid argument

2013-05-08 Thread Angel Angelov
Hi all, I am seeing the same error recently and here's the output after the last modification: facter --debug --trace virtual about to execute /bin/uname -s Could not retrieve virtual: Invalid argument - /sys/firmware/dmi/entries/1-0/raw about to execute /sbin/virt-what 2/dev/null value for

Re: [Puppet Users] Having trouble with facter - invalid argument

2013-05-08 Thread jcbollinger
On Wednesday, May 8, 2013 3:50:46 AM UTC-5, Angel Angelov wrote: I just want to provide some more information on this one. Recently it started to show the following output when doing puppet runs: puppet agent --test /usr/share/rubygems/rubygems/custom_require.rb:36:in `require': iconv will

Re: [Puppet Users] Having trouble with facter - invalid argument

2013-05-08 Thread Charlie Brune
I also did the modification that Stefan requested and my output is the same as yours: [root@hogwarts ~]# facter --debug virtual about to execute /bin/uname -s Could not retrieve virtual: Invalid argument - /sys/firmware/dmi/entries/1-0/raw about to execute /sbin/virt-what 2/dev/null value

Re: [Puppet Users] Having trouble with facter - invalid argument

2013-05-08 Thread Charlie Brune
Sorry... I forgot to answer John's questions (above). Facter produces the same error messages running under sudo. Also, I have SELinux turned off. [root@hogwarts ~]# *facter virtual* Could not retrieve virtual: Invalid argument - /sys/firmware/dmi/entries/1-0/raw physical [root@hogwarts

Re: [Puppet Users] Having trouble with facter - invalid argument

2013-05-08 Thread Angel Angelov
SELinux is disabled and the commands were ran as root. Downgrading the facter to 1.6.18 version seems fixing the problem. Thank you very much for the support guys. Best Regards, Angel Angelov On Wed, May 8, 2013 at 6:20 PM, Charlie Brune goo...@bruneworld.com wrote: Sorry... I forgot to

Re: [Puppet Users] Having trouble with facter - invalid argument

2013-05-07 Thread Charlie Brune
I did discover that Puppet appears to be running just fine. I think the problem may be isolated to facter and puppet appears to forgive the problem. 8-) Here's the output you requested. (I don't see a trace.) [root@hogwarts log]# facter -v 1.7.0 [root@hogwarts log]# facter --debug --trace

Re: [Puppet Users] Having trouble with facter - invalid argument

2013-05-07 Thread Charlie Brune
[root@hogwarts ~]# facter --debug --timing virtual kernel: 2.97ms Could not retrieve virtual: Invalid argument - /sys/firmware/dmi/entries/1-0/raw virtual: 50.26ms lsbdistid: 0.53ms value for lsbdistid is still nil operatingsystem: 2.00ms hardwaremodel: 3.36ms architecture: 10.61ms virtual:

Re: [Puppet Users] Having trouble with facter - invalid argument

2013-05-07 Thread Stefan Schulte
On Tue, 7 May 2013 13:00:53 -0700 (PDT) Charlie Brune goo...@bruneworld.com wrote: [root@hogwarts ~]# facter --debug --timing virtual kernel: 2.97ms Could not retrieve virtual: Invalid argument - /sys/firmware/dmi/entries/1-0/raw virtual: 50.26ms lsbdistid: 0.53ms value for lsbdistid is

[Puppet Users] Having trouble with facter - invalid argument

2013-05-06 Thread Charlie Brune
I'm trying to install Puppet on a Fedora 17 box. The puppet agent --test command fails with this error message: Could not retrieve virtual: Invalid argument - /sys/firmware/dmi/entries/1-0/raw I get the same error message if I type the command facter virtual. This box is a physical machine.

Re: [Puppet Users] Having trouble with facter - invalid argument

2013-05-06 Thread Stefan Schulte
On Mon, 6 May 2013 10:26:38 -0700 (PDT) Charlie Brune goo...@bruneworld.com wrote: I'm trying to install Puppet on a Fedora 17 box. The puppet agent --test command fails with this error message: Could not retrieve virtual: Invalid argument - /sys/firmware/dmi/entries/1-0/raw I get