iFailed
  • hi,

    i'm a noob and i've also failed to successfully install airtime 2.0.3. i had it previously installed on the same machine but because somehow i managed to corrupt some files, i decided to apt purge and reinstall manually as shown here.
    now this is what i have:

    AIRTIME_STATUS_URL             = http://localhost:80/api/status/format/json/api_key/%%api_key%%
    AIRTIME_SERVER_RESPONDING      = OK
    KERNEL_VERSION                 = UNKNOWN
    MACHINE_ARCHITECTURE           = UNKNOWN
    TOTAL_MEMORY_MBYTES            = UNKNOWN
    TOTAL_SWAP_MBYTES              = UNKNOWN
    AIRTIME_VERSION                = UNKNOWN
    OS                             = Ubuntu 10.04.4 LTS i686
    CPU                            = AMD Turion(tm) 64 X2 Mobile Technology TL-56
    WEB_SERVER                     = A
    PLAYOUT_ENGINE_PROCESS_ID      = FAILED
    PLAYOUT_ENGINE_RUNNING_SECONDS = 0
    PLAYOUT_ENGINE_MEM_PERC        = 0%
    PLAYOUT_ENGINE_CPU_PERC        = 0%
    LIQUIDSOAP_PROCESS_ID          = FAILED
    LIQUIDSOAP_RUNNING_SECONDS     = 0
    LIQUIDSOAP_MEM_PERC            = 0%
    LIQUIDSOAP_CPU_PERC            = 0%
    MEDIA_MONITOR_PROCESS_ID       = FAILED
    MEDIA_MONITOR_RUNNING_SECONDS  = 0
    MEDIA_MONITOR_MEM_PERC         = 0%
    MEDIA_MONITOR_CPU_PERC         = 0%
    RABBITMQ_PROCESS_ID            = FAILED
    RABBITMQ_RUNNING_SECONDS       = 0
    RABBITMQ_MEM_PERC              = 0%
    RABBITMQ_CPU_PERC              = 0%

    i tried everything i found on forums regarding this error but no luck.
    any ideas?



  • 18 Comments sorted by
  • What else have you tried? What's the output of

    "sudo monit status"

    ?
    Airtime Pro Hosting: http://airtime.pro
  • hey,

    this is what i get at sudo monit status:

    /etc/monit/monitrc:237: Warning: include files not found '/etc/monit.d/*'
    /etc/monit/conf.d/monit:7: Error: syntax error 'startup=1'

    i tried this and this unfinished thread where you were close to giving a solution when the guy reinstalled (which i also considered)

  • It looks like something is wrong with your install of monit. 

    You file in /etc/default/monit should look similar to

    # Defaults for monit initscript
    # sourced by /etc/init.d/monit
    # installed at /etc/default/monit by maintainer scripts
    # Stefan Alfredsson <alfs@debian.org>

    # You must set this variable to for monit to start
    startup=1

    # You can change the location of the state file here
    # It can also be set in monitrc
    # STATEFILE="/var/lib/monit/monit.state"

    # To change the intervals which monit should run,
    # edit the configuration file /etc/monit/monitrc
    # It can no longer be configured here.


    Your /etc/monit/conf.d should look as follows:

    martin@Thinkpad-T410:/etc/monit/conf.d$ ls -l
    total 20
    -rw------- 1 root root 160 May 17 17:45 monit-airtime-generic.cfg
    -rw------- 1 root root 325 May 17 17:45 monit-airtime-liquidsoap.cfg
    -rw------- 1 root root 336 May 17 17:45 monit-airtime-media-monitor.cfg
    -rw------- 1 root root 319 May 17 17:45 monit-airtime-playout.cfg
    -rw------- 1 root root 321 May 17 17:45 monit-airtime-rabbitmq-server.cfg


    Your /etc/monit/monitrc should contain the following line:
    include /etc/monit/conf.d/*





    Airtime Pro Hosting: http://airtime.pro
  • "Your /etc/monit/conf.d should look as follows:"

    martin@Thinkpad-T410:/etc/monit/conf.d$ ls -l
    total 20
    -rw------- 1 root root 160 May 17 17:45 monit-airtime-generic.cfg
    -rw------- 1 root root 325 May 17 17:45 monit-airtime-liquidsoap.cfg
    -rw------- 1 root root 336 May 17 17:45 monit-airtime-media-monitor.cfg
    -rw------- 1 root root 319 May 17 17:45 monit-airtime-playout.cfg
    -rw------- 1 root root 321 May 17 17:45 monit-airtime-rabbitmq-server.cfg


    i supposed you were referring to a file but with the chance of saying something stupid, my conf.d is a folder so i'm quite confused. which file to edit or which are the terminal commands for that?
    unfortunately, i'm still a noob :)

    both of the files contain the lines you mentioned.
  • I just want you to list the contents of that directory.
    Airtime Pro Hosting: http://airtime.pro
  • oh, sorry. this was dumb of me.
    yes, the files are there, as listed.
  • What's the output of the following line:

    sudo grep "include" /etc/monit/monitrc

    I believe you have two includes in your monitrc file. One include points to a directory that doesn't exist (or is empty), and so monit exits with an error.
    Airtime Pro Hosting: http://airtime.pro
  • ## It is possible to include additional configuration parts from other files or
    include /etc/monit/conf.d/*
  • Could you temporarily move

    /etc/monit/conf.d/monit to somewhere else. That file seems suspect. Then try 

    sudo service monit restart
    sudo monit status
    Airtime Pro Hosting: http://airtime.pro
  • The Monit daemon 5.0.3 uptime: 0m

    Process 'rabbitmq-server'
      status                            not monitored
      monitoring status                 not monitored
      data collected                    Sun May 20 15:24:35 2012

    Process 'airtime-playout'
      status                            not monitored
      monitoring status                 not monitored
      data collected                    Sun May 20 15:24:35 2012

    Process 'airtime-media-monitor'
      status                            not monitored
      monitoring status                 not monitored
      data collected                    Sun May 20 15:24:35 2012

    Process 'airtime-liquidsoap'
      status                            not monitored
      monitoring status                 not monitored
      data collected                    Sun May 20 15:24:35 2012

    System 'stefan-laptop'
      status                            running
      monitoring status                 monitored
      load average                      [0.75] [0.81] [0.41]
      cpu                               -1.0%us -1.0%sy -1.0%wa
      memory usage                      293464 kB [20.7%]
      data collected                    Sun May 20 15:24:35 2012


    this is what i get after moving the monit file
  • ok great. now you should be able to simply do "airtime-install -r" and everything ahould be up and running. Not sure how that file got into that directory, but it didn't belong there.
    Airtime Pro Hosting: http://airtime.pro
  • airtime: command not found


    this is what i get when typing this line in terminal
  • Sorry i meant from the install_minimal airtime directory
    Airtime Pro Hosting: http://airtime.pro
  • Ah, I see you did an install apt-get. Try this:

    sudo apt-get install --reinstall airtime
    Airtime Pro Hosting: http://airtime.pro
  • at some point i did an install apt-get indeed. but at reinstall i get this:

    Reading package lists... Done
    Building dependency tree      
    Reading state information... Done
    E: Couldn't find package airtime


  • Your system is in a very strange state. The best I can do to help is to try restarting Airtime from scratch. It seems that Monit problem you had was resolved so this time it should work.
    Airtime Pro Hosting: http://airtime.pro
  • i supposed the same that's why i'll reinstall ubuntu from scratch along with airtime and liquidsoap. since it used to work i'm pretty sure it will work again.
    hopefully, no glitches this time 
    i'll let you know if i succeed.

    thanks for helping me out!

    stefan
  • I wouldn't reinstall the entire OS. A simple reinstall of Airtime should do.

    I would try "sudo apt-get purge airtime"

    and the reinstall using

    "sudo apt-get install airtime"
    Airtime Pro Hosting: http://airtime.pro