Overview
During the installation of the Agent Proxy on a Virtual Machine, we receive the following error, aembit_agent_proxy.service: Main process exited, code=exited, status=2/INVALIDARGUMENT.
The error prevents successful installation of the Agent Proxy.
Feb 26 21:21:58 ip-172-31-6-2 systemd[1]: aembit_agent_proxy.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Feb 26 21:21:59 ip-172-31-6-2 rules.sh[291163]: Installing traffic steering rules to the Agent Proxy.
Feb 26 21:21:59 ip-172-31-6-2 rules.sh[291163]: firewalld not installed.
Feb 26 21:21:59 ip-172-31-6-2 rules.sh[291163]: Couldn't notify Agent Proxy, received HTTP 000 (1/10).
Feb 26 21:22:00 ip-172-31-6-2 rules.sh[291163]: Couldn't notify Agent Proxy, received HTTP 000 (2/10).
Relates To
- Virtual Machine
Cause
- Agent Controller installed with option AEMBIT_MANAGED_TLS_HOSTNAME. This enables TLS encryption between Agent Proxy and Agent Controller
- During Agent Proxy installation, HTTP port (5000 by default) was specified
- E.g.
-
sudo AEMBIT_AGENT_CONTROLLER=http://<controller_endpoint>:5000 AEMBIT_LOG_LEVEL=debug ./install
-
- E.g.
Solution
Agent Proxy installation should leverage port 5443 for TLS Encryption. Validate the port expected to communicate on is for TLS encryption.
sudo AEMBIT_AGENT_CONTROLLER=http://<controller_endpoint>:5443 AEMBIT_LOG_LEVEL=debug ./install