Hello all ,

First note to let you know that we manage multiple repo through code 
manager.

 /opt/puppetlabs/server/data/code-manager/r10k.yaml
sources:
repo2: {prefix: false, remote: 
'g...@gitlab.cag.dyn.nsroot.net:puppet/environments.git', basedir: 
/etc/puppetlabs/code-staging/environments, invalid_branches: error}

repo1: {prefix: false, remote: 
'g...@gitlab.cag.dyn.nsroot.net:puppet/puppet.git', basedir: 
/etc/puppetlabs/code-staging/environments, invalid_branches: error}
cachedir: /opt/puppetlabs/server/data/code-manager/git
forge: {baseurl: 'https://forgeapi.puppetlabs.com'}
git:
repositories:
- {remote: 'g...@gitlab.cag.dyn.nsroot.net:puppet/puppet.git'}
- {remote: 'g...@gitlab.cag.dyn.nsroot.net:puppet/environments.git'}
private_key: /etc/puppetlabs/puppetserver/ssh/id-control_repo.rsa
provider: rugged
deploy:
purge_levels: [deployment, environment, puppetfile]
purge_whitelist: [.resource_types]
pool_size: 4
--------------------------------------------------
we recently upgraded puppetserver to latest 2021.7.1 and after code deploy 
not working and throwing below error as 404 Not found.

code deploy error:
-------------------------------

2022/11/15 09:33:32 DEBUG - Log level changed to: debug

2022/11/15 09:33:32 DEBUG - Token format is valid --dry-run implies --all.

--dry-run implies --wait.

Dry-run deploying all environments.

POST /code-manager/v1/deploys HTTP/1.1

Host: <puppetserver>:8170

User-Agent: Go-http-client/1.1

Content-Length: 47

Accept: application/json

Content-Type: application/json

X-Authentication: ANmKypqCX7yA4zGfQCfTrc4B8M4rd6jxmfjxQF_MF_W8

Accept-Encoding: gzip

 

{"deploy-all":true,"dry_run":true,"wait":true}

 

HTTP/1.1 404 Not Found

Content-Length: 75

Cache-Control: must-revalidate,no-cache,no-store

Content-Type: application/json

 

{

"message":"Not Found",

"url":"/code-manager/v1/deploys",

"status":"404"

}

2022/11/15 09:33:32 DEBUG - [POST /deploys][404] Deploy default  
&{Details:<nil> Kind: Msg:}

2022/11/15 09:33:32 ERROR - [POST /deploys][404] 

r10k config managing


Does anyone face similar issue with code manager deployment ?

Regards,
Nandha

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/b13a0031-bd3d-4a32-8fc6-8b54569fc2abn%40googlegroups.com.

Reply via email to