Closed mdechiaro closed 11 months ago
This means the shim crashes for some reason, you can try editing it to have the lines from this comment here and see if you get anything?
https://github.com/choria-io/go-choria/issues/1215#issuecomment-816798832
If you already did (as you mention) its difficult to say what it can be
I think I found the issue, and support for Puppet 8 is missing in mcollective_choria module. This prevented a few packages from installing. When I downgraded to Puppet v7, the following changes were made:
Notice: /Stage[main]/Mcollective_agent_nettest/Mcollective::Module_plugin[mcollective_agent_nettest]/Package[net-ping]/ensure: created (corrective)
Notice: /Stage[main]/Mcollective_choria/Mcollective::Module_plugin[mcollective_choria]/Package[nats-pure]/ensure: created (corrective)
Notice: /Stage[main]/Puppetagent::Service/Service[puppet]: Triggered 'refresh' from 1 event
Info: Mcollective::Module_plugin[mcollective_agent_nettest]: Scheduling refresh of Service[choria-server]
After this change, upgrading to Puppet v8 works. This also explains why I couldn't get any logs with earlier testing, because necessary packages were missing.
I am going to close this issue, since the issue was caused by missing gems. The module that installs these is currently missing Puppet 8 support, so opened an issue over there. The fix is:
---
mcollective_choria::gem_dependencies:
"choria-mcorpc-support": "2.26.2"
OS: Ubuntu 22.04 Puppet: 8.3.1 Version:
mod 'choria-mcollective_agent_shell', '1.0.6'
Command:mco shell run 'echo foo' -W fqdn=puppetdev.domain.com
I tried setting the encoding as per the docs without success.
I get a
Cannot decode output from Shim for Ruby action shell#run: EOF
error on this system with simple commands. There are other Ubuntu 22.04 systems that do not have this issue, so it's strange that its occurring.I tried enabling debug logs and even tried efforts done on 1215 without any luck. Any assistance in exposing more verbose logs would be helpful.