Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not install puppet-docsf (downloaded from git) #3

Open
e-it opened this issue Apr 12, 2016 · 6 comments
Open

Can not install puppet-docsf (downloaded from git) #3

e-it opened this issue Apr 12, 2016 · 6 comments

Comments

@e-it
Copy link

e-it commented Apr 12, 2016

Hello,

unfortunately I'm getting this error-message when I try to use the CSF module:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class docsf for example.com on node example.com .
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

This is the tree of the module in module path (/etc/puppet/environments/production/modules) for foreman:

docsf/
├── lib
│   └── facter
│       └── configserver_firewall.rb
├── LICENSE
├── manifests
│   ├── init.pp
│   ├── params.pp
│   ├── postinit.pp
│   └── preinit.pp
├── metadata.json
├── README.md
├── spec
│   └── spec_helper.rb
├── templates
│   ├── conf.maldet.erb
│   ├── csf.allow.erb
│   ├── csf.conf.erb
│   ├── csf.fignore.erb
│   ├── csf.ignore.erb
│   └── csf.pignore.erb
└── tests
    └── init.pp

This is the tree with permissions and users/groups:

[root@puppet modules]# tree -p -u -g docsf/
docsf/
├── [drwxr-xr-x puppet   root    ]  lib
│   └── [drwxr-xr-x puppet   root    ]  facter
│       └── [-rw-r--r-- puppet   root    ]  configserver_firewall.rb
├── [-rw-r--r-- puppet   root    ]  LICENSE
├── [drwxr-xr-x puppet   root    ]  manifests
│   ├── [-rw-r--r-- puppet   root    ]  init.pp
│   ├── [-rw-r--r-- puppet   root    ]  params.pp
│   ├── [-rw-r--r-- puppet   root    ]  postinit.pp
│   └── [-rw-r--r-- puppet   root    ]  preinit.pp
├── [-rw-r--r-- puppet   root    ]  metadata.json
├── [-rw-r--r-- puppet   root    ]  README.md
├── [drwxr-xr-x puppet   root    ]  spec
│   └── [-rw-r--r-- puppet   root    ]  spec_helper.rb
├── [drwxr-xr-x puppet   root    ]  templates
│   ├── [-rw-r--r-- puppet   root    ]  conf.maldet.erb
│   ├── [-rw-r--r-- puppet   root    ]  csf.allow.erb
│   ├── [-rw-r--r-- puppet   root    ]  csf.conf.erb
│   ├── [-rw-r--r-- puppet   root    ]  csf.fignore.erb
│   ├── [-rw-r--r-- puppet   root    ]  csf.ignore.erb
│   └── [-rw-r--r-- puppet   root    ]  csf.pignore.erb
└── [drwxr-xr-x puppet   root    ]  tests
    └── [-rw-r--r-- puppet   root    ]  init.pp

@cleverlight
Copy link
Contributor

I've had something similar when file permissions or selinux were
misconfigured, so that puppet couldn't read the module's files from the
filesystem.

On Tue, 12 Apr 2016, 11:20 SPQRInc, [email protected] wrote:

Hello,

unfortunately I'm getting this error-message when I try to use the CSF
module:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class docsf for example.com on node example.com .
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

This is the tree of the module in module path (
/etc/puppet/environments/production/modules) for foreman:

docsf/
├── lib
│ └── facter
│ └── configserver_firewall.rb
├── LICENSE
├── manifests
│ ├── init.pp
│ ├── params.pp
│ ├── postinit.pp
│ └── preinit.pp
├── metadata.json
├── README.md
├── spec
│ └── spec_helper.rb
├── templates
│ ├── conf.maldet.erb
│ ├── csf.allow.erb
│ ├── csf.conf.erb
│ ├── csf.fignore.erb
│ ├── csf.ignore.erb
│ └── csf.pignore.erb
└── tests
└── init.pp


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#3

@e-it
Copy link
Author

e-it commented Apr 12, 2016

Hello,

hm - I dont know if that will help. All other modules configured on this machine are working fine.

What did you change exactly?

@cleverlight
Copy link
Contributor

Hi! I found that when I'd used git to clone the module into my folder, I'd
not set up the sticky bit and acl properly, so my docsf module wasn't
readable by puppet. I manually fixed those permissions using chmod, chcon
and semanage and then restarted puppet server.

On Tue, 12 Apr 2016, 11:43 SPQRInc, [email protected] wrote:

Hello,

hm - I dont know if that will help. All other modules configured on this
machine are working fine.

What did you change exactly?


You are receiving this because you commented.

Reply to this email directly or view it on GitHub
#3 (comment)

@e-it
Copy link
Author

e-it commented Apr 12, 2016

Hello,

I tried to change the files in manifests performing chmod -c 0644 but it did not work. Could you explain which files you edited with chmod (also 0644?), chcon and semanage?

I would be really happy about any help :-) Thanks a lot in advance.

@cleverlight
Copy link
Contributor

Sorry no. You need to ensure a consistent set of file ownership and
permissions. The easiest way if you've already got working modules is to
look for differences. An ls -la, or ls -laZ if you're using selinux, should
show you the inconsistencies.

On Tue, 12 Apr 2016, 12:17 SPQRInc, [email protected] wrote:

Hello,

I tried to change the files in manifests performing chmod -c 0644 but it
did not work. Could you explain which files you edited with chmod (also
0644?), chcon and semanage?

I would be really happy about any help :-) Thanks a lot in advance.


You are receiving this because you commented.

Reply to this email directly or view it on GitHub
#3 (comment)

@e-it
Copy link
Author

e-it commented Apr 12, 2016

Solved it by cloning the working version from forge.puppetlabs.com and replacing the contents ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants