Hi, I’m Sairam. I’m facing a problem in the installation of aerospike virtual machine through following the steps in this link: http://www.aerospike.com/docs/operations/install/vagrant/win
at Step 5: Verify Aerospike and AMC are running
Tried this
$ vagrant ssh -c “sudo service aerospike status”
asd is stopped
Connection to 127.0.0.1 closed.
AMC was running successful but, asd has stopped. Could you please help me to sort this problem?
Appears Aerospike has stopped, check the server logs.
Albot
June 2, 2017, 9:30pm
3
Did it ever start? What does the tail end of the log say? (last 50 lines or so)
Hi guys, thanks for helping me and I have solved the asd problem by the start command. But, now I have a new problem while I was trying to add the third node through https:// localhost:8081
Warning : connection lost with the server
And I have checked with asd and amc and came to know that amc dead, but pid file exists.
Sairam Saini@DESKTOP-FH71MIA MINGW64 ~
$ vagrant ssh -c “sudo /etc/init.d/amc status”
amc dead but pid file exists
Connection to 127.0.0.1 closed.
I have tried a restart and start, stop commands and nothing is working.
I have reset by browser proxy setting in advanced.
And I have shut down the virtual machine using vagrant halt and started again and the same thing happened when I was trying to add the third node.
Could you please help me. I appreciate your help. Thanks for your time.
Albot
June 4, 2017, 9:53pm
5
Please post /var/log/aerospike/aerospike.log from the failed node
Thanks Albot for helping me.
Sairam Saini@DESKTOP-FH71MIA MINGW64 ~
$ vagrant ssh -c “ip address”
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 08:00:27:46:fd:b3 brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 brd 10.0.2.255 scope global eth0
inet6 fe80::a00:27ff:fe46:fdb3/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 08:00:27:65:ee:6b brd ff:ff:ff:ff:ff:ff
inet 172.28.128.3/24 brd 172.28.128.255 scope global eth1
inet6 fe80::a00:27ff:fe65:ee6b/64 scope link
valid_lft forever preferred_lft forever
Connection to 127.0.0.1 closed.
I have tried with first one (127.0.0.1) and it worked fine but when I have tried with 10.0.2.15 (second node) it failed.
Here is the log
Sairam Saini@DESKTOP-FH71MIA MINGW64 ~
$ vagrant ssh -c "tail /var/log/aerospike/aerospike.log "
Jun 04 2017 22:11:35 GMT: INFO (info): (ticker.c:170) NODE-ID bb96bee65270008 CLUSTER-SIZE 1
Jun 04 2017 22:11:35 GMT: INFO (info): (ticker.c:253) system-memory: free-kbytes 1885172 free-pct 91 heap-kbytes (1098714,1099488,1159168) heap-efficiency-pct 94.8
Jun 04 2017 22:11:35 GMT: INFO (info): (ticker.c:267) in-progress: tsvc-q 0 info-q 0 nsup-delete-q 0 rw-hash 0 proxy-hash 0 tree-gc-q 0
Jun 04 2017 22:11:35 GMT: INFO (info): (ticker.c:289) fds: proto (0,14,14) heartbeat (0,0,0) fabric (0,0,0)
Jun 04 2017 22:11:35 GMT: INFO (info): (ticker.c:298) heartbeat-received: self 38713 foreign 0
Jun 04 2017 22:11:35 GMT: INFO (info): (ticker.c:328) fabric-bytes-per-second: bulk (0,0) ctrl (0,0) meta (0,0) rw (0,0)
Jun 04 2017 22:11:35 GMT: INFO (info): (ticker.c:382) {test} objects: all 0 master 0 prole 0
Jun 04 2017 22:11:35 GMT: INFO (info): (ticker.c:443) {test} migrations: complete
Jun 04 2017 22:11:35 GMT: INFO (info): (ticker.c:462) {test} memory-usage: total-bytes 0 index-bytes 0 sindex-bytes 0 data-bytes 0 used-pct 0.00
Jun 04 2017 22:11:35 GMT: INFO (info): (ticker.c:492) {test} device-usage: used-bytes 0 avail-pct 99
Connection to 127.0.0.1 closed.
Albot
June 6, 2017, 12:50am
7
This is the taIL end of the log from failed node? Are you sure Aerospike is stopped?
I’m a little confused now. Do you still have a problem with Aerospike, or just now with AMC?
Thanks Albot for your time. My problem has solved and if have any I will bring up here.
[vagrant@vm1hn ~]$ ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:46:FD:B3
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe46:fdb3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:653 errors:0 dropped:0 overruns:0 frame:0
TX packets:576 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:70441 (68.7 KiB) TX bytes:77468 (75.6 KiB)
eth1 Link encap:Ethernet HWaddr 08:00:27:A4:A8:E0
inet addr:172.28.128.12 Bcast:172.28.128.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fea4:a8e0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2514 errors:0 dropped:0 overruns:0 frame:0
TX packets:2592 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:791496 (772.9 KiB) TX bytes:1014613 (990.8 KiB)
eth2 Link encap:Ethernet HWaddr 08:00:27:5D:4D:9D
inet addr:10.1.1.11 Bcast:10.1.1.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe5d:4d9d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:552 (552.0 b) TX bytes:4664 (4.5 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1364 errors:0 dropped:0 overruns:0 frame:0
TX packets:1364 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:482858 (471.5 KiB) TX bytes:482858 (471.5 KiB)
[vagrant@vm1hn ~]$ exit
logout
Connection to 127.0.0.1 closed.
Sairam Saini@DESKTOP-FH71MIA MINGW64 ~/aerospike-vm
$ vim vagrantfile
Sairam Saini@DESKTOP-FH71MIA MINGW64 ~/aerospike-vm
$ vagrant ssh-config
Host VM1
HostName 127.0.0.1
User vagrant
Port 2222
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile “C:/Users/Sairam Saini/.vagrant.d/insecure_private_key”
IdentitiesOnly yes
LogLevel FATAL
Host VM2
HostName 127.0.0.1
User vagrant
Port 2202
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile “C:/Users/Sairam Saini/.vagrant.d/insecure_private_key”
IdentitiesOnly yes
LogLevel FATAL
Host VM3
HostName 127.0.0.1
User vagrant
Port 2205
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile “C:/Users/Sairam Saini/.vagrant.d/insecure_private_key”
IdentitiesOnly yes
LogLevel FATAL
Vagrantfile
I want to add VM1 node to the cluster and it’s saying failed to connect hosts
could you please help me to find flaw in vagrnat file