I have started a cluster with three nodes and have written the appropriate VagrantFile and the aerospace.config files for the three nodes. However, the AMC is not showing the third node.
Three nodes are running as per the arrows on the right; but they dont display in the Nodes section.
I tried adding them with the GUI option but AMC crashes immediately. I also tried implementing in the URL likewise
http://localhost:8081/#dashboard/localhost:3000/30/33.33.33.91:3000,33.33.33.95:3000,33.33.33.92:3000 but no help.
Configurations:
MacOS, Vagrant 1.9.5, Aerospike Community Edition build 3.12.1
Check /var/log/amc/amc.log grep for “refresh failed” and check whether the communication between your nodes is taking place or not. You can figure out error by looking into the log files.
The amc error log states
failed to establish with error: dial tcp: too many colons in address ::1:3000; 33:33:33:95:3000 failed to establish with error: dial tcp 33:33:33:95:3000: i/o timeout; 127.0.0.1:3000 failed to establish with error: dial tcp 127.0.0.1:3000: getsockopt: connection refused;
Ah, so this may be an IPV6 issue. I had similar issues.
Instead of opening AMC and targeting “localhost”, try targeting the full IP address of the server which AMC is installed on. You could also try 127.0.0.1
nice! I have submitted a request to have Aerospike prefer ipv4 when possible. Not sure if it’ll be done, but the workaround is fairly easy. Alternatively you could change your hosts file…
After deploying AMC via docker, AMC will be in it’s own container. Accessing http://localhost:8081 should bring up a window asking you to enter the IP of a node in a cluster. You must use an IP of the Aerospike node, and AMC must be able to route to it and connect on port 3000 to it. After that you will be redirected to a url that has node IPs in the list.
run amc
docker run -tid -p 8081:8081 --name aerospike-console aerospike/amc
It looks from the shared screen like the IP entered in the original box was 127.0.0.1, which will not work as AMC is in it’s own container and doesn’t have Aerospike running in the said container.