Ask Your Question
0

Error: {"kind": "not-found", "msg": "The requested code-manager resource was not found", "details": null}

asked 2016-07-17 05:12:02 -0600

Kulo gravatar image

Hi, I have successfully setup Code Manager in Puppet Enterprise 2016.2. I have verified I can sync up with GitHub when I run puppet-code deploy manually. But when I access the web hook url, I get the error below

{"kind": "not-found", "msg": "The requested code-manager resource was not found", "details": null}

I have put in the token as well.

What am I missing ??

Thanks

Kulo

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
0

answered 2017-01-16 09:25:38 -0600

I too an getting the same error when troubleshooting code manager and using curl from the cli. All other code manager and r10k checks have succeeded without any errors.

I can see no other reason for this failure. I have -k on my curl to get round the self signed SSL certificate and I have -X POST.

Are there any further suggestions as to what is missing? The full URL generated from the troubleshooting page is

curl --verbose -k -X POST -H 'Content-Type: ap "X=Authentication: `cat ~/.puppetlabs/token`" https://puppet.mydomain.com:8170/code-manager/v1/deploy -d '{"environments": ["production"], "wait": true}'

Any help appreciated.

Thanks

James

edit flag offensive delete link more

Comments

James, it could have been a copy/paste issue, but the curl command you posted is messed up a bit. The Content-Type should be application/json, and the single quote following that is missing.

curl --verbose -k -X POST -H 'Content-Type: application/json'  # etc...

bentlema gravatar imagebentlema ( 2017-05-05 17:15:58 -0600 )edit
0

answered 2016-07-28 13:21:32 -0600

scotje gravatar image

The code-manager /webhook endpoint only accepts a POST request. Can you verify that is what you are attempting to send it?

edit flag offensive delete link more
0

answered 2016-07-28 13:27:11 -0600

This caught me up, too...

Is it possible you're troubleshooting with curl and it's sending an HTTP GET instead of an HTTP Post? try adding -X POST to your curl command and see if that doesn't help.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-07-17 05:12:02 -0600

Seen: 233 times

Last updated: Jul 28 '16