Hi Erwin, The puppetserver ca migrate command must be run while the puppetserver service is stopped, but it looks like we're not catching the particular connection error you're getting when we check to see whether the service is running.
I'm wondering if you have an unusual networking setup, e.g. custom DNS config, IPv6, etc. I was not able to reproduce your issue on a first attempt, so it would also be helpful to know which version of puppetserver you're running, what OS platform you're running on, and which version of Ruby you're using. Thanks! On Thu, Feb 25, 2021 at 2:59 AM Erwin Bogaard <erwin.boga...@gmail.com> wrote: > > Hi, > > I'm trying to solve the notofocation about "The cadir is currently > configured to be inside the /etc/puppetlabs/puppet/ssl directory". > When I follow the steps, and run: > > # puppetserver ca migrate --config /etc/puppetlabs/puppet/puppet.conf > > I get the message: "Puppetserver service is running. Please stop it before > attempting to run this command." > > If I then stop the puppetserver service and run the command again, I get > the following Error: "Fatal error when running action 'migrate' > Error: Failed connecting to https://xxx.loc:8140/status/v1/simple/ca > Root cause: Failed to open TCP connection to xxx.loc:8140 (Invalid > argument - connect(2) for "xxx.loc" port 8140)" > > That no connection is possible seems logical, as I stopped the service > prevously. > > If "puppetsever ca migrate" won't run when the service is running, but it > needs to connect to the service, how is that ever going to work? I'm > baffeled. > > As a work around: is there maybe a manual way to execute this migration? > > -- > 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/c4627ffb-887d-490e-9dc6-7b730cdf3622n%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/c4627ffb-887d-490e-9dc6-7b730cdf3622n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- *Molly Waggett* she/her Senior Software Engineer @ Puppet -- 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/CAFOE68BoFH--d632-qBiB%2BsfL80BX%3Do7JXExOiN04HU1p9d2NQ%40mail.gmail.com.