Error 500 on SERVER: Server Error: Not authorized to call find on /file_metadata/files/

259 views
Skip to first unread message

Gustavo Moreno Fernández

unread,
Feb 16, 2017, 7:31:57 PM2/16/17
to Puppet Users
Hi,


Puppet server is launching this error message in test environment:


Error: /Stage[main]/Ejecuta/File[nombre.sh]: Could not evaluate: Could not retrieve file metadata for puppet:///files/nombre.sh: Error 500 on SERVER: Server Error: Not authorized to call find on /file_metadata/files/nombre.sh with {:rest=>"files/nombre.sh", :links=>"manage", :checksum_type=>"md5", :source_permissions=>"ignore"}



I'm googling but I don't find this server error with 500 code.


The class related is:



class ejecuta {
        File['nombre.sh'] -> Exec['muestra_nombre']

        file { 'nombre.sh':
                ensure => 'file',
                source => "puppet:///files/nombre.sh",
                links => 'manage',
                path => '/usr/local/bin',
                owner => 'gus',
                group => 'gus',
                mode => '0777',
             }

        exec {'muestra_nombre':
                command => '/usr/local/bin/nombre.sh',
                refreshonly => true,
        }
}

 
auth.conf


path /puppet/v3/file_metadata/files
method search,find
auth yes
allow_ip 192.168.0.0/16


Versions:

Puppetserver       2.7.2
Puppet Agent       4.9.2      



Any idea?

Peter Faller

unread,
Feb 17, 2017, 2:13:53 AM2/17/17
to Puppet Users
Where does the file 'nombre.sh' live on your Puppet master? Is it in the 'files/' directory in your module? In that case you should use 'puppet:///modules/<module-name>/nombre.sh'

On Friday, 17 February 2017 02:31:57 UTC+2, Gustavo Moreno Fernández wrote:
Hi,
<snip>
Reply all
Reply to author
Forward
0 new messages