L Error: Action Failed get_task: Task 4e2d3e05-be15-471b-5220-ec67584b08a9 result: Stopping Monitored Services: Stop all services: Running command: 'monit stop -g vcap', stdout: '', stderr: 'monit-actual: > Cannot connect to the monit daemon. Did you start it with http support? monit-actual: Cannot connect to the monit daemon. Did you start it with http support? ': exit status 1 Task 2924 | 01:14:03 | Error: Action Failed get_task: Task 4e2d3e05-be15-471b-5220-ec67584b08a9 result: Stopping Monitored Services: Stop all services: Running command: 'monit stop -g vcap', stdout: '', stderr: 'monit-actual: > Cannot connect to the monit daemon. Did you start it with http support? monit-actual: Cannot connect to the monit daemon. Did you start it with http support? ': exit status 1
The fix is included in the Stemcell itself, as a workaround, you can apply this iptables command to any VM within the deployment using the Stemcell (including Bosh director vm):
For Bosh Director VM ssh:
-Locate and copy the Director's password in Operations Manager under BOSH tile >> credential >> VM credentials.
-Run ssh -o StrictHostKeyChecking=no vcap@<bosh vm ip> to ssh as 'vcap' user.
This command resolves by inserting a rule which allows all packets that are already established.
Note: It is highly likely that you would need to re-run the command after any recreate of the bosh VM, this is because if you use the iptables command, it would persist the new rules onto either ephemeral or root disk for the VM. Only persistent disks survive a recreate of the VM.
Engineering has included the fix into the Stemcell. If you face this issue would need to be using Jammy v1.64+ stemcell or Xenial v621.364+ and should be able to upload the fixed stemcell within Operations Manager and assign it to the tile having monit issues, including the BOSH Director.