I got an error when installing puppet on my server and executing command sudo puppet resource group puppet ensure=present
The error message is
[solr#e3slri01 ~]$ sudo puppet resource group puppet ensure=present
Failed to load feature test for libuser: uninitialized constant Puppet::FileSystem::File
Error: /File[/etc/puppet]: Could not evaluate: uninitialized constant Puppet::FileSystem::File
Notice: /File[/etc/puppet/ssl]: Dependency File[/etc/puppet] has failures: true
Warning: /File[/etc/puppet/ssl]: Skipping because of failed dependencies
Notice: /File[/etc/puppet/ssl/private_keys]: Dependency File[/etc/puppet] has failures: true
Warning: /File[/etc/puppet/ssl/private_keys]: Skipping because of failed dependencies
Error: /File[/var/lib/puppet]: Could not evaluate: uninitialized constant Puppet::FileSystem::File
Notice: /File[/var/lib/puppet/run]: Dependency File[/var/lib/puppet] has failures: true
Warning: /File[/var/lib/puppet/run]: Skipping because of failed dependencies
Notice: /File[/var/lib/puppet/state]: Dependency File[/var/lib/puppet] has failures: true
Warning: /File[/var/lib/puppet/state]: Skipping because of failed dependencies
Notice: /File[/var/lib/puppet/lib]: Dependency File[/var/lib/puppet] has failures: true
Warning: /File[/var/lib/puppet/lib]: Skipping because of failed dependencies
Notice: /File[/etc/puppet/ssl/public_keys]: Dependency File[/etc/puppet] has failures: true
Warning: /File[/etc/puppet/ssl/public_keys]: Skipping because of failed dependencies
Notice: /File[/etc/puppet/ssl/certs]: Dependency File[/etc/puppet] has failures: true
Warning: /File[/etc/puppet/ssl/certs]: Skipping because of failed dependencies
Notice: /File[/var/lib/puppet/log]: Dependency File[/var/lib/puppet] has failures: true
Warning: /File[/var/lib/puppet/log]: Skipping because of failed dependencies
Notice: /File[/etc/puppet/ssl/private]: Dependency File[/etc/puppet] has failures: true
Warning: /File[/etc/puppet/ssl/private]: Skipping because of failed dependencies
Notice: /File[/etc/puppet/ssl/certificate_requests]: Dependency File[/etc/puppet] has failures: true
Warning: /File[/etc/puppet/ssl/certificate_requests]: Skipping because of failed dependencies
Error: Could not run: Got 2 failure(s) while initializing: Could not evaluate: uninitialized constant Puppet::FileSystem::File; Could not evaluate: uninitialized constant Puppet::FileSystem::File
I am newbie to puppet and know nothing about ruby. I don't know what I do wrong here.
Can you tell me how to fix this? thanks.
BTW.
[solr#e3slri01 ~]$ ruby --version
ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux]
[solr#e3slri01 ~]$ sudo puppet --version
3.3.2
[solr#e3slri01 ~]$ sudo facter --version
1.7.3
And PS.
[solr#e3slri01 puppet]$ pwd
/etc/puppet
[solr#e3slri01 puppet]$ ll
total 8
-rw-r--r-- 1 root root 4133 Feb 25 22:56 auth.conf
It seems that some files and folders are missed in /etc/puppet.
For me, this happenend where I had a version of puppet installed via gem, and also via Ubuntu packages (from the puppet labs repo).
Doing "gem uninstall puppet" and then "apt-get install puppet" fixed it for me.
Related
I'm having trouble running haste-boot --force --local (though the same thing also happens when booting the latest cabal version with plain haste-boot). It makes some progress, then fails out with
cabal: Error: some packages failed to install:
bytestring-0.10.4.1 failed during the building phase. The exception was:
ExitFailure 1
haste-lib-0.4 depends on bytestring-0.10.4.1 which failed to install
Command '/home/inaimathi/.cabal/bin/haste-inst' failed with error code 1
I've since manually installed bytestring-0.10.4.1 with cabal install so that:
~/projects/haste-compiler $ cabal install bytestring-0.10.4.1
Resolving dependencies...
All the requested packages are already installed:
bytestring-0.10.4.1
Use --reinstall if you want to reinstall anyway.
~/projects/haste-compiler $
but the haste version still isn't cooperating.
~/projects/haste-compiler $ haste-inst install bytestring-0.10.4.1 haste-inst install bytestring-0.10.4.1
Resolving dependencies...
In order, the following will be installed:
bytestring-0.10.4.1 (reinstall) changes: base-4.6.0.1 added, deepseq-1.4.0.0
added, integer-gmp-0.5.0.0 added
Warning: Note that reinstalls are always dangerous. Continuing anyway...
Configuring bytestring-0.10.4.1...
Building bytestring-0.10.4.1...
Preprocessing library bytestring-0.10.4.1...
hastec: user error (Haste needs to be rebooted; please run haste-boot)
Failed to install bytestring-0.10.4.1
cabal: Error: some packages failed to install:
bytestring-0.10.4.1 failed during the building phase. The exception was:
ExitFailure 1
~/projects/haste-compiler $
Based on that error message, it looks like installing the appropriate bytestring version with haste-inst requires that I run haste-boot first, but haste-boot is failing because of an error related to installing bytestring.
Any ideas on what I can do here?
EDIT:
The relevant snippet seems to happen much earlier than the actual error in installation:
...
Data/ByteString/Internal.hs:212:10:
No instance for (Control.DeepSeq.GNFData
(GHC.Generics.Rep ByteString))
arising from a use of `Control.DeepSeq.$gdmrnf'
Possible fix:
add an instance declaration for
(Control.DeepSeq.GNFData (GHC.Generics.Rep ByteString))
In the expression: (Control.DeepSeq.$gdmrnf)
In an equation for `rnf': rnf = (Control.DeepSeq.$gdmrnf)
In the instance declaration for `NFData ByteString'
Failed to install bytestring-0.10.4.1
...
Edit 2: Jefffrey, the terminal session you requested would put this post above the 30000 character limit. Here's a pastebin link to it instead.
I need some screen capture application for RHEL6.5 and tried few ways to get one but failed.
yum install gnemo-utils and got:
Reading Local RPMDB
rpmdb time: 0.000
Setting up Install Process
Checking for virtual provide or file-provide for gnome-utils
No package gnome-utils available.
Error: Nothing to do
Q: Is there a repo or some other way to get it installed?
yum install shutter
Error: Package: shutter-0.93-1.el6.nux.noarch (nux-dextop)
Requires: perl(JSON)
Error: Package: perl-Net-OAuth-0.28-1.el6.noarch (epel)
Requires: perl(Digest::SHA)
Error: Package: shutter-0.93-1.el6.nux.noarch (nux-dextop)
Requires: perl(Time::HiRes)
Error: Package: perl-Net-DBus-0.33.6-8.el6.x86_64 (epel)
Requires: perl(Time::HiRes)
Error: Package: perl-HTTP-Server-Simple-0.43-1.el6.rf.noarch (rpmforge)
Requires: perl(CGI)
Error: Package: perl-Gtk2-1.248-1.el6.x86_64 (epel)
Requires: perl(HTML::TreeBuilder)
..... more errors related to `perl`
Trying to get perl:
COMMAND: yum install perl
Installroot: /
Ext Commands:
perl
Setting up Package Sacks
Running "exclude" handler for "security" plugin
pkgsack time: 0.060
Reading Local RPMDB
rpmdb time: 0.000
Setting up Install Process
Checking for virtual provide or file-provide for perl
Nothing to do
Q: How it can be resolved?
Print Screen shortcut is complaining for gnome-screenshot not found.
Q: How it can be installed?
Ultimately, I just need some application to get screenshots.
Regards,
Try yum install gnome-utils.
You can find which package provides a particular command as follows:
# yum provides \*gnome-screenshot
[...]
1:gnome-utils-2.28.1-10.el6.x86_64 : GNOME utility programs
Repo : base
Matched from:
Filename : /usr/share/gnome-screenshot
Filename : /usr/bin/gnome-screenshot
I had a 3rd party repo added in but the machine has been re-register with RHN afterwards.
I had to remove the 3-rd party repos and register the machine again.
I'm trying to install cabal-nirvana on OSX 10.7.5, but I get the following output:
cabal install cabal-nirvana
Resolving dependencies...
Downloading cabal-nirvana-0.2.2...
Configuring cabal-nirvana-0.2.2...
Building cabal-nirvana-0.2.2...
Preprocessing executable 'cabal-nirvana' for cabal-nirvana-0.2.2...
<command line>: cannot satisfy -package-id HTTP-4000.2.3-c26f702c170ca487dfea54c2f3d6d4c0
(use -v for more information)
cabal: Error: some packages failed to install:
cabal-nirvana-0.2.2 failed during the building phase. The exception was:
ExitFailure 1
Any ideas?
In case it helps,
ghc: 7.4.1
cabal-install: 0.14.0
When I do ghc-pkg check, I get the following output:
WARNING: cache is out of date: /Library/Frameworks/GHC.framework/Versions/7.4.1- i386/usr/lib/ghc-7.4.1/package.conf.d/package.cache
use 'ghc-pkg recache' to fix.
Warning: haddock-interfaces: /Library/Haskell/ghc-7.4.1/lib/GLUT-2.1.2.1/doc/html/GLUT.haddock doesn't exist or isn't a file
Warning: haddock-interfaces: /Library/Haskell/ghc-7.4.1/lib/haskell-platform-2012.2.0.0/doc/html/haskell-platform.haddock doesn't exist or isn't a file
Warning: haddock-html: /Library/Haskell/ghc-7.4.1/lib/haskell-platform-2012.2.0.0/doc/html doesn't exist or isn't a directory
Nevermind... I did the 'ghc-pkg recache' and a 'sudo cabal update cabal-install', and then I was able to install cabal-nirvana without issues... The keyword here appears to be 'sudo'... D'oh!
... And by "Nevermind" I don't mean the Nirvana album :)
When I try to install the "encoding" library, I get this failure, but I can't find any documentation to tell me what it means:
$ sudo cabal install encoding --global
Resolving dependencies...
cabal: Error: some packages failed to install:
encoding-0.6.6 failed during the configure step. The exception was:
ExitFailure 127
EDIT: With verbose logging, I have:
$ cabal install encoding --global -v
Reading available packages...
Resolving dependencies...
In order, the following would be installed:
encoding-0.6.6 (new package)
Extracting
/home/aditya/.cabal/packages/hackage.haskell.org/encoding/0.6.6/encoding-0.6.6.tar.gz
to /tmp/encoding-0.6.610687...
creating /tmp/encoding-0.6.610687/encoding-0.6.6/dist/setup
/tmp/encoding-0.6.610687/encoding-0.6.6/dist/setup/setup configure --verbose=2
--ghc --global --flags=newghc --flags=splitbase --constraint=HaXml ==1.22.5
--constraint=array ==0.3.0.2 --constraint=base ==4.3.1.0 --constraint=binary
==0.5.1.0 --constraint=bytestring ==0.9.1.10 --constraint=containers ==0.4.0.0
--constraint=extensible-exceptions ==0.1.1.2 --constraint=ghc ==7.0.3
--constraint=ghc-prim ==0.2.0.0 --constraint=mtl ==2.0.1.0
--constraint=regex-compat ==0.93.1
World file is already up to date.
cabal: Error: some packages failed to install:
encoding-0.6.6 failed during the configure step. The exception was:
ExitFailure 127
This still doesn't seem to tell me what C library dependency could be missing.
This typically means that C libraries were missing, that were required by the package (or one of its dependencies).
Turning on verbose logging should help.
$ cabal install encoding -v
When I do
cabal install GLFW-b
I get an error:
Resolving dependencies...
<command line>: cannot satisfy -package Cabal-1.10.1.0:
Cabal-1.10.1.0-49678efb6bfc399545e2b61629b900e2 is unusable due to missing or recursive dependencies:
process-1.0.1.5-107ac5b78a5845608025ca13d328fdc5
(use -v for more information)
cabal: Error: some packages failed to install:
GLFW-b-0.0.2.10 failed during the configure step. The exception was:
ExitFailure 1
I am running the Haskell Platform 2010.2.0.0. Does anybody else get this? How can I fix this error?
The Haskell Platform version you're using included Cabal-1.8.0.6. The simplest solution should be to upgrade to the latest Haskell Platform which includes Cabal-1.10.1.0.