Not able to verify Aerospike installation on Ubuntu 16.04


#1

I have been following these instructions: https://www.aerospike.com/docs/operations/install/linux/ubuntu I am now trying to verify my installation from: https://www.aerospike.com/docs/operations/verify

/opt/aeropspike, /etc/aerospike/, /etc/aerospike/aerospike.conf, /opt/aerospike/bin/, /opt/aerospike/doc/, /opt/aerospike/sys/, /opt/aerospike/usr/ directories/files are created as I can see.

but the following directories were not created or alteast not found in the path given. I keep getting the message-“No such file or directory”: /etc/init.d/aerospike, /etc/logrotate.d/aerospike, /var/log/aerospike/, /usr/bin/asd

Is there any step that I am missing here?

I am also not able to run : ‘cli -h 127.0.0.1 -n test -o set -k Aerospike -b name -v “Aerospike, Inc.”’ command. ERROR: The program ‘cli’ is currently not installed. To run ‘cli’ please ask your administrator to install the package ‘mono-runtime’

I am also not able to use the command ‘ascli’ or ‘asmonitor’ either. ERROR: No command ‘asmonitor’ found and No command ‘ascli’ found respectively.

Note: I am able to start and stop the server using: ‘sudo service aerospike start/status/stop’ My Machine details: Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: xenial

Kindly help asap. Thanks!


#2

Ubuntu 16.04.3 would use systemd service for startup. We may need to update the install doc.

Please see following for an up-to-date info on stopping/starting a debian based system with systemd.

https://www.aerospike.com/docs/operations/upgrade/aerospike#2

Here are the systemd command lines:

Stopping aerospike:

$ sudo systemctl stop aerospike

Starting aerospike:

$ sudo systemctl start aerospike

`

Verify process is running:

$ `sudo systemctl status aerospike`

● aerospike.service - Aerospike Server
   Loaded: loaded (/usr/lib/systemd/system/aerospike.service; disabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/aerospike.service.d
           └─aerospike.conf
   Active: active (running) since Thu 2018-06-14 14:11:04 PDT; 7s ago
  Process: 27538 ExecStartPre=/usr/bin/asd-systemd-helper (code=exited, status=0/SUCCESS)
 Main PID: 27545 (asd)
    Tasks: 140
   Memory: 1.1G
      CPU: 3.816s
   CGroup: /system.slice/aerospike.service
           └─27545 /usr/bin/asd --config-file /etc/aerospike/aerospike.conf --fgdaemon

, cli and asmonitor are obsolete tools and have been completely replaced by aql and asadm Seems the documentation is lagging a bit.

Please see:

https://discuss.aerospike.com/t/list-of-aerospike-tools-to-be-deprecated-mid-may-2016/2863/2

Logrotate is also not configured by default on a systemd system. You can configure logrotate by following this guide:

https://www.aerospike.com/docs/operations/configure/log/logrotate.html#logrotate-policy-on-systemd-environments

or you could use journalctl for logging.


#3

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.