Question


All transactions are set to pending and nothing runs. How can I check whether the OnApp daemon is running and restart it correctly?


Environment


Any OnApp version


Answer


To check and restart the OnApp daemon:

  1. SSH to the Control Panel server. If there are no the backups and transactions when running the command below, it means that the OnApp daemon is not running:

    ps aux | grep onapp
    CODE
  2. If the OnApp daemon is not running, stop onapp:

    service onapp stop
    CODE
  3. CD to the directory below:

    cd /onapp/interface/tmp/pids/
    CODE
  4. Look for onapp_daemon.rb.pid. If you can see it and the PID # is zero, the daemon is not running. Kill it and restart it:

    rm -rf onapp_daemon.rb.pid
    CODE
  5. Start onapp:

    service onapp start
    CODE

    You should see similar output as in the example below:

    Starting SSH Key Server...
    Agent pid 27822
    Identity added: /onapp/interface/config/keys/private (/onapp/interface/config/keys/private)
    Starting All Runners (Schedules, Transactions, Backups and Hypervisor, Cluster Monitor) ...
    Starting Hypervisor Data Receiver...
    Starting VNC Proxy..
    CODE
  6. Ls -l the /onapp/interface/tmp/pids/ directory. If the output is the same as below, it means that the deamon is backed up and running correctly:

    ls -l
    total 16
    -rw-r--r-- 1 onapp onapp 0 Feb  6 09:16 0.852188522247947.14689
    -rw-r--r-- 1 onapp onapp 6 Feb  8 11:35 onapp_daemon.rb.pid
    -rw-r--r-- 1 onapp onapp 5 Feb  8 11:35 receiver.pid
    -rw-r--r-- 1 root  root  6 Feb  8 11:35 ssh-agent.pid
    -rw-r--r-- 1 root  root  6 Feb  8 11:35 vnc_proxy.pid
    CODE