problem connecting flexsnap agent to cloudpoint server
Installed RHEL7 rpm without issue but registering agent fails. It seems like its trying to communicate with localhost opposed to the cloudpoint server? I'm missing something?
<snip>
Aug 23 12:14:41 ip-172-31-13-56.ec2.internal flexsnap-agent[6422] flexsnap.util: INFO - Starting serviceAug 23 12:14:41 ip-172-31-13-56.ec2.internal flexsnap-agent[6422] pika.adapters.base_connection: INFO - Connecting to ::1:5671 with SSL
Aug 23 12:14:41 ip-172-31-13-56.ec2.internal flexsnap-agent[6422] pika.adapters.base_connection: WARNING - Connection to ::1:5671 failed: [Errno 111] Connection refused
Aug 23 12:14:41 ip-172-31-13-56.ec2.internal flexsnap-agent[6422] pika.adapters.base_connection: INFO - Connecting to 127.0.0.1:5671 with SSL
Aug 23 12:14:41 ip-172-31-13-56.ec2.internal flexsnap-agent[6422] pika.adapters.base_connection: WARNING - Connection to 127.0.0.1:5671 failed: [Errno 111] Connection refused
Aug 23 12:14:41 ip-172-31-13-56.ec2.internal flexsnap-agent[6422] pika.connection: WARNING - Could not connect, 0 attempts left
Aug 23 12:14:41 ip-172-31-13-56.ec2.internal flexsnap-agent[6422] pika.callback: ERROR - Calling <bound method SelectConnection._on_connection_error of <pika.adapters.select_connection.SelectConnection object at 0x2823b90>> for "0:_on_connection_error" failed
<snip>
Hello!
Yes, it does look like it's trying to connect to localhost instead of cloudpoint. A configuration file needs to be created that tells the agent where to connect to. This command should create the necessary file:
# (echo "[global]"; echo "target = myhost") >/etc/flexsnap.conf
with "myhost" replaced with the hostname of your cloudpoint server. It looks like this step was missed in our documentation. Sorry for the confusion! We'll get it fixed soon.
Ryan