Aerospike service unrecognized in Vagrant centos-6.5 on OSX 10.8.5


#1

After installing Vagrant and and creating aerospike box with

$ vagrant init aerospike/centos-6.5
$ vagrant up
$ vagrant ssh

Inside the VM, I typed

$ sudo service aerospike start

And I got aerospike: unrecognized service

I checked the VM with service --status-all and no aerospike was found.


#2

Hi Jo,

Could you ensure that the folder were you are running the vagrant init and vagrant up is empty. Please see this demo: http://showterm.io/60962c06d65abe6b2c9a3#slow

Also please run and post the following commands:

vagrant box list

I was able to run the following on a macbook:

l

luciens-mbp:Development lucien$ mkdir vagrant-test
luciens-mbp:Development lucien$ cd vagrant-test
luciens-mbp:vagrant-test lucien$ vagrant init aerospike/centos-6.5
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
luciens-mbp:vagrant-test lucien$ vagrant up --provider=virtualbox
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'aerospike/centos-6.5'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'aerospike/centos-6.5' is up to date...
==> default: Setting the name of the VM: vagrant-test_default_1413508423291_23817
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 3000 => 3000 (adapter 1)
    default: 8081 => 8081 (adapter 1)
    default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
    default: /vagrant => /Users/lucien/Development/vagrant-test
luciens-mbp:vagrant-test lucien$ vagrant ssh
Last login: Tue Oct 14 21:54:42 2014 from 10.0.2.2



Thanks for trying out Aerospike!


Following services have been pre-installed:

* Aerospike Server  
* Aerospike Management Console 

What's next?

***************
Client Installs:
***************

 C Client       : sudo /home/vagrant/ClientInstall/as_c_install.sh

 Java Client    : sudo /home/vagrant/ClientInstall/as_java_install.sh

 NodeJS client  : sudo /home/vagrant/ClientInstall/as_nodejs_install.sh

*******
AMC URL:
*******

http://localhost:8081/#dashboard/localhost:3000/30/

***************
Additional info :
***************

http://www.aerospike.com/docs/

****************************************************************************************************
**********Aerospike Database Server is running!
**********Aerospike Monitoring Console is running!

[vagrant@localhost ~]$ sudo service aerospike start Already asd (pid 1253) is running…


#3

It worked! Can I ask for an explanation on why the empty directory?


#4

My guess is you either have an old Vagrantfile in the other directory. Or also there is a hidden .vagrant that might have kept a previous state.

luciens-mbp:vagrant_test3 lucien$ ls -al
total 16
drwxr-xr-x  4 lucien  staff   136 Oct 16 18:57 .
drwxr-xr-x  6 lucien  staff   204 Oct 16 18:55 ..
drwxr-xr-x  3 lucien  staff   102 Oct 16 18:57 .vagrant
-rw-r--r--  1 lucien  staff  4827 Oct 16 18:57 Vagrantfile

Its always safer to start fresh.

best, Lucien