Skip to content

Issues with fresh OSS install #68

@gonzalesMK

Description

@gonzalesMK

I executed the following command from a fresh repository clone

sudo docker compose --profile puppet up

but I was unable to run the testing command:

docker compose --profile test run testing puppet agent -t

because I got those errors in the command line:

sudo docker compose --profile test run testing puppet agent -t
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Error 403 on SERVER: Forbidden request: /puppet/v3/node/crafty-testing. (method :get). Please see the server logs for details.
Info: Using environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Notice: Requesting catalog from puppet:8140 (172.20.0.4)
Notice: Catalog compiled by puppet.
Error: Could not retrieve catalog from remote server: Error 403 on SERVER: Forbidden request: /puppet/v3/catalog/crafty-testing. (method :post). Please see the server logs for details.
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Error: Could not send report: Error 403 on SERVER: Forbidden request: /puppet/v3/report/crafty-testing. (method :put). Please see the server logs for details.

Would you mind help me fix whatever I'm missing? I checked auth.conf and it seems alright.

Here is some debug info

found those errors on the log:

puppet-1       | 2024-09-03 21:12:20,219 ERROR [p.t.a.rules] Forbidden request: crafty-testing.(172.20.0.7) access to /puppet/v3/catalog/crafty-testing. (method :post) (authenticated: true) denied by rule 'puppetlabs v3 catalog from agents'.
puppet-1       | 172.20.0.7 - - - 03/Sep/2024:21:12:20 +0000 "POST /puppet/v3/catalog/crafty-testing.?environment=production HTTP/1.1" 403 109 172.20.0.7 172.20.0.7 8140 6
puppet-1       | 2024-09-03 21:12:20,279 ERROR [p.t.a.rules] Forbidden request: crafty-testing.(172.20.0.7) access to /puppet/v3/report/crafty-testing. (method :put) (authenticated: true) denied by rule 'puppetlabs report'.

I also tried to run this command on the puppet container:

sudo docker container exec puppet-puppet-1  puppet agent -t

and I got those errors:

Info: Using environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Notice: Requesting catalog from puppet:8140 (172.20.0.5)
Notice: Catalog compiled by puppet.
Error: Could not retrieve catalog from remote server: Error 403 on SERVER: Forbidden request: /puppet/v3/catalog/puppet. (method :post). Please see the server logs for details.
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Error: Could not send report: Error 403 on SERVER: Forbidden request: /puppet/v3/report/puppet. (method :put). Please see the server logs for details.

and the logs:

puppet-1       | 2024-09-03 21:15:21,841 ERROR [p.t.a.rules] Forbidden request: puppet.(172.20.0.5) access to /puppet/v3/catalog/puppet. (method :post) (authenticated: true) denied by rule 'puppetlabs v3 catalog from agents'.
puppet-1       | 172.20.0.5 - - - 03/Sep/2024:21:15:21 +0000 "POST /puppet/v3/catalog/puppet.?environment=production HTTP/1.1" 403 101 172.20.0.5 172.20.0.5 8140 9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions