Re: Bootstrap issue with 3.18.2 on Debian 11

"'Vratislav Podzimek' via help-cfengine" <[email protected]>
Newsgroups gmane.comp.sysutils.cfengine.general
Message-ID <[email protected]>
On Wed, 2022-08-10 at 10:44 -0700, Bob wrote:
> Greetings community,
> 
> Migrating from 3.15.1 to 3.18.2 using the community edition. When we provision a new system, one
> of the commands that runs toward the end of the install is:
> 
> $ROOTCMD cf-agent --skip-bootstrap-policy-run -B $server
> 
> The $ROOT_CMD in this case calls "chroot /target" to do the bootstrap. The command (on Debian 11)
> seems to lock-up or is in an infinite loop. Other scenarios I've tested:
> 
> * community 3.18.2 on Debian 10 -- bootstrapping works
> * community 3.18.2 on Debian 10 package on Debian 11 - does not work (same issue)
> * community 3.18.2 on Debian 11 package post-install environment -- bootstrapping works
> 
> Also note on Debian 11 with the Debian 11 package, cf-agent is doing something because I receive
> some emails with some warning messages.
> Any suggestions for getting this to work in a chroot environment?
Hi Bob!

1. What happens if you split the command and do '$ROOTCMD' first and then, inside the environment 
   it creates, run 'cf-agent...'?
2. Or can you try running the whole thing with 'strace -ff' so that maybe you can see where it got 
   stuck?
3. Another alternative is to kill the process with 'Ctrl+\' (or send it the SIGABRT signal) which 
   should create a core dump that you can then analyze with a debugger.

I hope one of the above options sheds more light on this.

--
Vratislav

-- 
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/3f86106ca09ece66a6282b86cb5a60296ce45478.camel%40northern.tech.
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEENAH7ns+FyuCe6j1XmyV2peQQR/QFAmL7jmwACgkQmyV2peQQ
R/THJg/7BeUTMDb2PHFxKCQZKvDRZILQyGbbRGNj8PqKjIZAj3qdxph/2otyHfyI
FWqv97wB8vlua0foFVO9KINmiKrceHIcCJp0rgGQ736+JBpKpEC9DEzUUFbq+sfj
qsK3mA7tDs11cdoIPX48WlN3lIBhjeHBgyyKy0Vuu0uLL0jbH+YibJinzUG+my6D
8LhrkuPT0sq0IlGNrDL4lWK26WBmq6STWfjRW7FaLm+5BoHAnMRgtrC0Sb/vSILY
fb2ElyKHzLRcv5cOqRJBvHSxnsbg/i1ITvUIPEfX7YErUXOFpvwTaDfrCuzUOWfw
bj6bthO2XMSlMyxPX79ccIR44GxqWXfyIHx0CIrjiCX1UQlFeZRTvtGW74kidHU+
/7p+5Q3EVVS3xd7vvRlaQ1xkvUlfZCWLYPadmnSbyAAJfnfFYqRIMymmAYpTxBEh
42ENGRx1mOJoOyVwqQGiYk2VOpUi2CZmcZuUwuztFTInbxItbmzsy0wxKJoFzVcH
weHA5zzWPe8KPYl2X8xOfZQ3onxvmdtGrjG5qfaudaiEEICB0gtb7pSrPvztUoKh
SOohU2E8FAjcANs07YTciFOHwO1lJEx0ycyhc5t/MlDx1+KAz8urgWzXf9gmdMxa
LejFT+LjKKnOjvsmeCOHowmi8+72qomBt8o1l9TomASK5U61UPc=
=7YSa
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.