'/opt/puppetlabs/bin/puppetserver ca setup' returned 1 instead of one of [0]

Installation of foreman-proxy-content

Follow below manual

https://theforeman.org/plugins/katello/3.17/installation/smart_proxy.html

Foreman 2.2 / Katello 3.17 / puppet server 6.14

foreman-installer --scenario foreman-proxy-content
–foreman-proxy-content-parent-fqdn “katello.example.com
–foreman-proxy-register-in-foreman “true”
–foreman-proxy-foreman-base-url “https://katello.example.com
–foreman-proxy-trusted-hosts “katello.example.com
–foreman-proxy-trusted-hosts “myproxy.example.com
–foreman-proxy-oauth-consumer-key “UVrAZfMaCfBiiWejoUVLYCZHT2xhzuFV”
–foreman-proxy-oauth-consumer-secret “ZhH8p7M577ttNU3WmUGWASag3JeXKgUX”
–certs-tar-file “/root/myproxy.example.com-certs.tar”


Error:

'/opt/puppetlabs/bin/puppetserver ca setup' returned 1 instead of one of [0]

should i need to delete it ? from where how ?

Delete /etc/puppetlabs/puppet/ssl folder and it will work.