Unable to find active node in AMC "Nodes"

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.

Try adding them to the url. Or restast AMC. AMC is kinda shoddy…

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

Which version of amc? Anything in the and log?

Var log amc

the log files do not have any errors. ssh-ing the vagrant boxes individually helped me.

  • Restarting the AMC service worked for me.

  • 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.

  • Check this link http://www.aerospike.com/docs/amc/install/linux/el6 it may help you in resolving it.

You can check your error logs of AMC at /var/log/amc/error.log if any generated.

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;

I have also upgraded the amc to 4.0.12.

AMC errors are being displayed in the /var/log/amc/amc.log instead of the /var/log/amc/error.log

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

@Albot I got the same issue it worked for me when I gave full IP address of the server.

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…

1 Like

I have installed aerospike server in kubernates cluster. And accessing it locally through the kube context by port forwarding on port 3000

I want to see AMC, so i am using docker image with following command:

docker run -tid -p 8081:8081 --name aerospike-console aerospike/amc

docker container is up but when I try to access it it showing me connection refused.

Getting error when below API:

Request:

GET 'http://localhost:8081/aerospike/service/clusters/get-cluster-id' 

Response:

{"error":"Failed to connect to hosts:dial tcp 127.0.0.1:3000: connect: connection refused","status":"failure"}

Anybody can help here?

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.

  1. run amc

docker run -tid -p 8081:8081 --name aerospike-console aerospike/amc

  1. from your browser, access http://localhost:8081. You will see the following screen.

  1. enter the IP address of an Aerospike cluster node, like so:

  1. The URL you will be redirected to will contain a list of IPs of the nodes:

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.

By the way, AMC (what was community and enterprise AMC) is open source and lives at aerospike-community/amc.

See Hello Aerospike Monitoring Stack, Goodbye AMC.