Skip to content

Managevisor: Creating or updating managevisor information (servers)

Make changes to these

attracs-linux-playbooks/services/managevisor/configs/attracs.yml attracs-linux-playbooks/frontend/frontend-data.yml

Run these

Managevisor

ansible-playbook services/managevisor/managevisor.yml --vault-password-file=.vault_password_file

Frontend

ansible-playbook frontend/frontend-update.yml -i inventory/frontend.ini --vault-password-file=.vault_password_file

Google Cloud

Make sure you have a firewall rule that allows traffic like this: * Type: Ingress * Targets: Apply to all * Filters: 95.216.3.175, 95.216.7.126, 135.181.86.26 * Protocols / ports: 9191-9194 * Action: Allow * Network: (make sure this is the network your instance is running on!!)

Then, if it's a new server, it should appear after refreshing the page and if it's an old server you modified, the changes appear after reloading from the server actions.

Troubleshooting

Server showing as shut down, applications and docker containers are not shown. When clicking Server actions → force reload, an internal server error occurs: Managevisor dashboard image for reference

Error messages: /tmp/managevisor-nightly.attracs.com-stdout---supervisor-qQkk0y.log

12:27.53 [managevisor]:   adi.devops.confidential.instance.stable.2 https://E6vBUR1hpO****:2DtqUulJix****@38-sup.nodes.attracs.com/RPC2
managevisor.go:186 12:27.53 [managevisor]: ERROR: node init failed: getState: 503 Service Unavailable

/tmp/managevisor-nightly.attracs.com-stdout---supervisor-qQkk0y.log

12:30.02 [managevisor]: /api/v1/force-update/system-info                            node=32b5030e7802cec9d55965a52cfade8507e189b0
12:30.02 [managevisor]: [DONE] /api/v1/force-update/system-info                     1.84ms     500 Internal Server Error application/json

12:30.03 [managevisor]: /api/v1/force-update/node                                   node=32b5030e7802cec9d55965a52cfade8507e189b0
12:30.03 [managevisor]: [DONE] /api/v1/force-update/node                            1.45ms     500 Internal Server Error application/json

/tmp/managevisor-nightly.attracs.com-stdout---supervisor-qQkk0y.log

managevisor-node.go:83 08:57.35 [managevisor]: ERROR: UpdateProgramBuildInfoFor "attracs-managevisor-agent": Could not find process "attracs-managevisor-agent"
managevisor-node.go:89 08:57.35 [managevisor]: ERROR: Failed to find process info for "RUNNING" event: getProcessInfo: 503 Service Unavailable

Fix: likely you have to update the frontend-data using the ansible-playbook attracs-linux-playbooks/frontend/frontend-update.yml using the command provided above in this documentation.