LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 03-20-2019, 10:21 AM   #1
AlanRaczek
LQ Newbie
 
Registered: Mar 2019
Posts: 9

Rep: Reputation: Disabled
Puppet agent gives 500 error access denied using master/agent model


Hi,
I am new to Linux and Puppet. I have set up a test environment running Centos 7.x and Puppet 5.5. I was actually able to get a certificate signed by the master but if I do a puppet agent -tv I get:
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Permission denied - /opt/puppetlabs/server/data/puppetserver/yaml/facts
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

Pings work great, port 8140 is open on master. I am lost right now, just grasping at strings. Not sure where to look.

Any ideas?

...Alan
 
Old 03-20-2019, 10:31 PM   #2
dieselboy
LQ Newbie
 
Registered: Feb 2019
Posts: 25

Rep: Reputation: Disabled
Talk about jumping in at the deep end Error 500 means something wrong on the server but could be a bad request also.

Whats your goal with puppet?

Can you post back the output of:

Code:
ss -an | grep LIST
 
Old 03-21-2019, 06:53 AM   #3
AlanRaczek
LQ Newbie
 
Registered: Mar 2019
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dieselboy View Post
Talk about jumping in at the deep end Error 500 means something wrong on the server but could be a bad request also.

Whats your goal with puppet?

Can you post back the output of:

Code:
ss -an | grep LIST
Goal is just to learn Puppet, I have been going through a tutorial.

Code:
u_str  LISTEN     0      10     /var/lib/gssproxy/default.sock 45295                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      100    public/pickup 49880                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      100    public/qmgr 49887                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      128    /var/run/rpcbind.sock 44552                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      100    public/flush 52351                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      128    /run/systemd/private 26653                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      128    /run/systemd/journal/stdout 55                    * 0                     skmem:(r0,rb16777216,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      128    /run/lvm/lvmpolld.socket 23869                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      100    private/rewrite 52336                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      100    private/bounce 52339                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      100    private/defer 52342                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      100    private/trace 52345                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      100    private/verify 52348                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      100    private/proxymap 52354                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      100    public/showq 52366                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      5      /var/run/lsm/ipc/simc 44923                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      5      /var/run/lsm/ipc/sim 44925                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_seq  LISTEN     0      128    /run/udev/control 23937                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      128    /run/lvm/lvmetad.socket 23939                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      10     /var/run/abrt/abrt.socket 47240                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      100    public/cleanup 49884                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      100    private/smtp 52360                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      100    private/relay 52363                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      100    private/error 52369                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      100    private/tlsmgr 52333                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      100    private/retry 52372                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      100    private/discard 52375                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      100    private/local 52378                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      100    private/virtual 52381                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      100    private/lmtp 52384                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      128    /run/dbus/system_bus_socket 42932                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      100    private/anvil 52387                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      100    private/scache 52390                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      100    private/proxywrite 52357                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      32     /var/run/vmware/guestServicePipe 47310                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
u_str  LISTEN     0      10     /run/gssproxy.sock 45296                 * 0                     skmem:(r0,rb212992,t0,tb212992,f0,w0,o0,bl0,d0)
tcp    LISTEN     0      128     *:sunrpc                *:*
tcp    LISTEN     0      128     *:ssh                   *:*
tcp    LISTEN     0      100    127.0.0.1:smtp                  *:*
tcp    LISTEN     0      50     :::8140                 :::*
tcp    LISTEN     0      128    :::sunrpc               :::*
tcp    LISTEN     0      128    :::ssh                  :::*
tcp    LISTEN     0      100       ::1:smtp                 :::*
[root@puppetmaster log]#
 
Old 03-21-2019, 07:16 AM   #4
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by AlanRaczek View Post
Hi,
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Permission denied - /opt/puppetlabs/server/data/puppetserver/yaml/facts
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Have you looked at the permission here?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to Setup Puppet Master and Agent on CentOS 7 LXer Syndicated Linux News 0 06-11-2018 03:10 PM
TO install Puppet master and agent on open suse hporeddi SUSE / openSUSE 2 08-06-2016 11:02 AM
SELinux to allow puppet-server at https://puppet-server:8140 sndlt Linux - Security 8 05-04-2015 01:12 PM
puppet --version bash: puppet: command not found don boyage Linux - Server 1 12-04-2014 10:44 AM
Parameter to execute shell script on puppet client through Puppet server niraj.kumar Linux - Server 3 02-08-2011 09:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 11:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration