Ubuntu 12.04 installing Airtime,web interface working,but airtime-check-system all Process ID FAILS
  • Hi. Please somebody help me. I wanted to install airtime v2.5.1 on a 15.04 Ubuntu but it isn't supported(among others, because the php version).  I tried on 14.04, same problem, I can't properly downgrade the php package. So I tried on 12.04.5, added your repo to sources.list, downloaded keyring, and apt-get installed airtime. Disabled ufw firewall to ensuze, there will be no problem. At first, the installation was success, but, the airtime-system-check failed with unknown webserver version(I'm using apache2.2 and php5.3...), dns errors, and unknown process IDs. I read on the internet, that was a DNS issue. So ok, I went on purging airtime* rabbitmq* liquidsoap* and monit*, dropped the table and the user in psql and started from the beginning. I have a fixed IP address from my ISP, it has a DNS record to my-ip-add-ress.ispname.hu(speaking figuratively), so i used that, I even made it known to apache, via the ServerName variable in it's main config file. Installed again, almost the same errors, but the webserver unknown disappeared, the airtime-check-system showed the correct server version. I browsed the internet again, so I found out, that there is maybe a locale problem. I'm hungarian, the system was also hungarian, had an utf 8 hungarian locale. I changed that for US english via command line, added the appropiate variables to a suggested file, and dpkg-reconfigured locales. Now my system is English, but thats not a problem. Rebooted, reinstalled again, some lines in the airtime-check system printout had changed, but the process ID fails still the same. It's strange because I can add media via web interface, icecast connects fine, i can add a show, add some music to it, the web interface shows that airtime plays it, but the client connected to icecast hears nothing, even icecast shows that the source from airtime offline.

    here is my airtime-check-system output

    AIRTIME_SERVER_RESPONDING      = OK
    KERNEL_VERSION                 = 3.13.0-62-generic
    MACHINE_ARCHITECTURE           = x86_64
    TOTAL_MEMORY_MBYTES            = 7285472
    TOTAL_SWAP_MBYTES              = 7905276
    AIRTIME_VERSION                = 2.5.1
    OS                             = Ubuntu 12.04.5 LTS x86_64
    CPU                            = AMD A8-5600K APU with Radeon(tm) HD Graphics
    WEB_SERVER                     = Apache/2.2.22 (Ubuntu)
    PLAYOUT_ENGINE_PROCESS_ID      = FAILED
    PLAYOUT_ENGINE_RUNNING_SECONDS = 0
    PLAYOUT_ENGINE_MEM_PERC        = 0%
    PLAYOUT_ENGINE_CPU_PERC        = 0%
    -- Displaying log file /var/log/airtime/pypo/pypo.log
    -- 
    -- 2015-08-28 11:10:40,880 DEBUG - [telnetliquidsoap.py : get_current_stream_id() : line 205] - stream_id: -1
    -- 2015-08-28 11:10:40,882 INFO - [pypoliqqueue.py : main() : line 54] - New schedule received: {}
    -- 2015-08-28 11:10:40,882 INFO - [pypoliqqueue.py : main() : line 34] - waiting indefinitely for schedule
    -- 2015-08-28 11:10:46,672 DEBUG - [api_client.py : __call__() : line 134] - http://91-137-149-14.opticon.hu:80/api/recorded-shows/format/json/api_key/AQ76PSI5BXTW1PWG2WEE
    -- 
    -- 
    LIQUIDSOAP_PROCESS_ID          = FAILED
    LIQUIDSOAP_RUNNING_SECONDS     = 0
    LIQUIDSOAP_MEM_PERC            = 0%
    LIQUIDSOAP_CPU_PERC            = 0%
    -- Displaying log file /var/log/airtime/pypo-liquidsoap/ls_script.log
    -- 2015/08/28 11:11:04 [server:3] Client localhost disconnected.
    -- 2015/08/28 11:11:14 [server:3] New client: localhost.
    -- 2015/08/28 11:11:14 [server:3] Client localhost disconnected.
    -- 2015/08/28 11:11:24 [server:3] New client: localhost.
    -- 2015/08/28 11:11:24 [server:3] Client localhost disconnected.
    -- 
    -- 
    MEDIA_MONITOR_PROCESS_ID       = FAILED
    MEDIA_MONITOR_RUNNING_SECONDS  = 0
    MEDIA_MONITOR_MEM_PERC         = 0%
    MEDIA_MONITOR_CPU_PERC         = 0%
    -- Displaying log file /var/log/airtime/media-monitor/media-monitor.log
    -- 2015-08-28 08:55:10,572 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://91-137-149-14.opticon.hu:80/api/media-monitor-setup/format/json/api_key/AQ76PSI5BXTW1PWG2WEE
    -- 2015-08-28 08:55:10,603 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://91-137-149-14.opticon.hu:80/api/list-all-watched-dirs/format/json/api_key/AQ76PSI5BXTW1PWG2WEE
    -- 2015-08-28 08:55:10,635 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://91-137-149-14.opticon.hu:80/api/list-all-files/format/json/api_key/AQ76PSI5BXTW1PWG2WEE/dir_id/1/all/0
    -- 2015-08-28 08:55:10,663 INFO - [Thread-1] [bootstrap.py : flush_watch()] : LINE 63 - Flushed watch directory (/home/airtime/airtime_media/imported).                 (added, modified, deleted) = (0, 0, 0)
    -- 2015-08-28 08:55:10,664 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://91-137-149-14.opticon.hu:80/api/register-component/format/json/api_key/AQ76PSI5BXTW1PWG2WEE/component/media-monitor
    -- 
    -- 
    -- There appears to be a problem with your Airtime installation.

  • 5 Comments sorted by
  • Please if there is any moderation on this site, **** out my hostnames from the copied output. I fucked up a little bit that copy-paste operation. Also, there are other outputs(starred out some sensitive information plus mydmainname:80 is my domain name mentioned above):

    sudo invoke-rc.d airtime-liquidsoap status
    Liquidsoap Playout Engine is not running
    invoke-rc.d: initscript airtime-liquidsoap, action "status" failed.

    sudo rabbitmqctl status
    [sudo] password for radioserver: 
    Status of node rabbit@server ...
    [{pid,2350},
     {running_applications,[{rabbit,"RabbitMQ","2.7.1"},
                            {os_mon,"CPO  CXC 138 46","2.2.7"},
                            {sasl,"SASL  CXC 138 11","2.1.10"},
                            {mnesia,"MNESIA  CXC 138 12","4.5"},
                            {stdlib,"ERTS  CXC 138 10","1.17.5"},
                            {kernel,"ERTS  CXC 138 10","2.14.5"}]},
     {os,{unix,linux}},
     {erlang_version,"Erlang R14B04 (erts-5.8.5) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:30] [kernel-poll:true]\n"},
     {memory,[{total,25203680},
              {processes,10172152},
              {processes_used,10154320},
              {system,15031528},
              {atom,1124441},
              {atom_used,1120392},
              {binary,93688},
              {code,11134417},
              {ets,756536}]},
     {vm_memory_high_watermark,0.3999999999731915},
     {vm_memory_limit,2984129331}]
    ...done.



    sudo invoke-rc.d airtime-playout status /  sudo invoke-rc.d airtime-media-monitor  status are almost the same, except the last line(showing  airtime-playout status or airtime-media-monitor respectively):

    AIRTIME_STATUS_URL             = httpmydomainname:80/api/status/format/json/api_key/%%api_key%%
    AIRTIME_SERVER_RESPONDING      = OK
    KERNEL_VERSION                 = 3.13.0-62-generic
    MACHINE_ARCHITECTURE           = x86_64
    TOTAL_MEMORY_MBYTES            = 7285472
    TOTAL_SWAP_MBYTES              = 7905276
    AIRTIME_VERSION                = 2.5.1
    OS                             = Ubuntu 12.04.5 LTS x86_64
    CPU                            = AMD A8-5600K APU with Radeon(tm) HD Graphics
    PHP Warning:  get_headers(http://mydomainname:80): failed to open stream: Connection timed out in /usr/lib/airtime/utils/airtime-check-system.php on line 100
    WEB_SERVER                     = UNKNOWN
    PLAYOUT_ENGINE_PROCESS_ID      = FAILED
    PLAYOUT_ENGINE_RUNNING_SECONDS = 0
    PLAYOUT_ENGINE_MEM_PERC        = 0%
    PLAYOUT_ENGINE_CPU_PERC        = 0%
    -- Displaying log file /var/log/airtime/pypo/pypo.log
    -- 2015-08-28 11:22:00,230 DEBUG - [api_client.py : get_stream_parameters() : line 504] - {u'stream_params': {u's3': {u'admin_pass': u'', u'enable': u'false', u'description': u'', u'url': u'', u'bitrate': u'48', u'mount': u'', u'liquidsoap_error': u'waiting', u'channels': u'stereo', u'host': u'', u'admin_user': u'', u'user': u'', u'pass': u'', u'genre': u'', u'output': u'icecast', u'type': u'ogg', u'port': u'', u'name': u''}, u's2': {u'admin_pass': u'', u'enable': u'false', u'description': u'', u'url': u'
    ', u'bitrate': u'48', u'mount': u'', u'liquidsoap_error': u'waiting', u'channels': u'stereo', u'host': u'', u'admin_user': u'', u'user': u'', u'pass': u'', u'genre': u'', u'output': u'icecast', u'type': u'ogg', u'port': u'', u'name': u''}, u's1': {u'admin_pass': u'************', u'enable': u'true', u'name': u'***********, u'url': u'h************', u'type': u'mp3', u'mount': u'airtime_128', u'liquidsoap_error': u'OK', u'channels': u'stereo', u'host': u'*************', u'admin_user': u'admin', u'user': u'', u'pass': u'************', u'genre': u'gospel', u'output': u'icecast', u'bitrate': u'128', u'port': u'8000', u'description': u'**************'}}}
    -- 2015-08-28 11:22:00,495 DEBUG - [api_client.py : __call__() : line 134] - http://mydomainname:80/api/update-stream-setting-table/api_key/AQ76PSI5BXTW1PWG2WEE/format/json
    -- 2015-08-28 11:24:00,636 DEBUG - [api_client.py : __call__() : line 134] - http://mydomainname:80/api/get-stream-parameters/api_key/AQ76PSI5BXTW1PWG2WEE/format/json
    -- 2015-08-28 11:24:00,667 DEBUG - [api_client.py : get_stream_parameters() : line 504] - {u'stream_params': {u's3': {u'admin_pass': u'', u'enable': u'false', u'description': u'', u'url': u'', u'bitrate': u'48', u'mount': u'', u'liquidsoap_error': u'waiting', u'channels': u'stereo', u'host': u'', u'admin_user': u'', u'user': u'', u'pass': u'', u'genre': u'', u'output': u'icecast', u'type': u'ogg', u'port': u'', u'name': u''}, u's2': {u'admin_pass': u'', u'enable': u'false', u'description': u'', u'url': u'', u'bitrate': u'48', u'mount': u'', u'liquidsoap_error': u'waiting', u'channels': u'stereo', u'host': u'', u'admin_user': u'', u'user': u'', u'pass': u'', u'genre': u'', u'output': u'icecast', u'type': u'ogg', u'port': u'', u'name': u''}, u's1': {u'admin_pass': u'*********', u'enable': u'true', u'name': u'*******', u'url': u'********', u'type': u'mp3', u'mount': u'airtime_128', u'liquidsoap_error': u'OK', u'channels': u'stereo', u'host': u'**********', u'admin_user': u'admin', u'user': u'', u'pass': u'**********', u'genre': u'gospel', u'output': u'icecast', u'bitrate': u'128', u'port': u'8000', u'description': u'**********'}}}
    -- 2015-08-28 11:24:00,937 DEBUG - [api_client.py : __call__() : line 134] - http://mydomainname:80/api/update-stream-setting-table/api_key/AQ76PSI5BXTW1PWG2WEE/format/json
    -- 
    -- 
    LIQUIDSOAP_PROCESS_ID          = FAILED
    LIQUIDSOAP_RUNNING_SECONDS     = 0
    LIQUIDSOAP_MEM_PERC            = 0%
    LIQUIDSOAP_CPU_PERC            = 0%
    -- Displaying log file /var/log/airtime/pypo-liquidsoap/ls_script.log
    -- 2015/08/28 11:23:44 [server:3] Client localhost disconnected.
    -- 2015/08/28 11:23:54 [server:3] New client: localhost.
    -- 2015/08/28 11:23:54 [server:3] Client localhost disconnected.
    -- 2015/08/28 11:24:04 [server:3] New client: localhost.
    -- 2015/08/28 11:24:04 [server:3] Client localhost disconnected.
    -- 
    -- 
    MEDIA_MONITOR_PROCESS_ID       = FAILED
    MEDIA_MONITOR_RUNNING_SECONDS  = 0
    MEDIA_MONITOR_MEM_PERC         = 0%
    MEDIA_MONITOR_CPU_PERC         = 0%
    -- Displaying log file /var/log/airtime/media-monitor/media-monitor.log
    -- 2015-08-28 08:55:10,572 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://mydomainname:80/api/media-monitor-setup/format/json/api_key/AQ76PSI5BXTW1PWG2WEE
    -- 2015-08-28 08:55:10,603 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://mydomainname:80/api/list-all-watched-dirs/format/json/api_key/AQ76PSI5BXTW1PWG2WEE
    -- 2015-08-28 08:55:10,635 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://mydomainname:80/api/list-all-files/format/json/api_key/AQ76PSI5BXTW1PWG2WEE/dir_id/1/all/0
    -- 2015-08-28 08:55:10,663 INFO - [Thread-1] [bootstrap.py : flush_watch()] : LINE 63 - Flushed watch directory (/home/airtime/airtime_media/imported).                 (added, modified, deleted) = (0, 0, 0)
    -- 2015-08-28 08:55:10,664 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://mydomainname:80/api/register-component/format/json/api_key/AQ76PSI5BXTW1PWG2WEE/component/media-monitor
    -- 
    -- 
    -- There appears to be a problem with your Airtime installation.
    invoke-rc.d: initscript airtime-playout, action "status" failed.

    sudo airtime-log -t liquidsoap
    Tail liquidsoap log2015/08/28 11:34:15 [server:3] New client: localhost.
    2015/08/28 11:34:15 [server:3] Client localhost disconnected.
    2015/08/28 11:34:25 [server:3] New client: localhost.
    2015/08/28 11:34:25 [server:3] Client localhost disconnected.
    2015/08/28 11:34:35 [server:3] New client: localhost.
    2015/08/28 11:34:35 [server:3] Client localhost disconnected.
    2015/08/28 11:34:45 [server:3] New client: localhost.
    2015/08/28 11:34:45 [server:3] Client localhost disconnected.
    2015/08/28 11:34:55 [server:3] New client: localhost.
    2015/08/28 11:34:55 [server:3] Client localhost disconnected.
    2015/08/28 11:35:05 [server:3] New client: localhost.
    2015/08/28 11:35:05 [server:3] Client localhost disconnected.
    2015/08/28 11:35:15 [server:3] New client: localhost.
    2015/08/28 11:35:15 [server:3] Client localhost disconnected.
    2015/08/28 11:35:25 [server:3] New client: localhost.
    2015/08/28 11:35:25 [server:3] Client localhost disconnected.
    2015/08/28 11:35:35 [server:3] New client: localhost.
    2015/08/28 11:35:35 [server:3] Client localhost disconnected.

  • And the strangest:

    sudo monit status
    The Monit daemon 5.3.2 uptime: 2h 57m 

    Process 'airtime-playout'
      status                            Running
      monitoring status                 Monitored
      pid                               2236
      parent pid                        1
      uptime                            2h 57m 
      children                          0
      memory kilobytes                  18752
      memory kilobytes total            18752
      memory percent                    0.2%
      memory percent total              0.2%
      cpu percent                       0.2%
      cpu percent total                 0.2%
      data collected                    Fri, 28 Aug 2015 11:52:16

    Process 'airtime-media-monitor'
      status                            Running
      monitoring status                 Monitored
      pid                               2231
      parent pid                        1
      uptime                            2h 57m 
      children                          0
      memory kilobytes                  15164
      memory kilobytes total            15164
      memory percent                    0.2%
      memory percent total              0.2%
      cpu percent                       0.2%
      cpu percent total                 0.2%
      data collected                    Fri, 28 Aug 2015 11:52:16

    Process 'airtime-liquidsoap'
      status                            Running
      monitoring status                 Monitored
      pid                               4507
      parent pid                        1
      uptime                            2h 23m 
      children                          0
      memory kilobytes                  21492
      memory kilobytes total            21492
      memory percent                    0.2%
      memory percent total              0.2%
      cpu percent                       1.2%
      cpu percent total                 1.2%
      port response time                0.001s to localhost:1234 [generic via TCP]
      data collected                    Fri, 28 Aug 2015 11:52:16

    System 'system_server'
      status                            Running
      monitoring status                 Monitored
      load average                      [0.22] [0.34] [0.38]
      cpu                               3.8%us 0.2%sy 0.3%wa
      memory usage                      3118236 kB [42.8%]
      swap usage                        0 kB [0.0%]
      data collected                    Fri, 28 Aug 2015 11:52:16



  • I think you should follow the instructions from here http://sourcefabric.booktype.pro/airtime-25-for-broadcasters/automated-installation/

    The worked for me on Ubuntu 14.04

    Are you on remote server or local machine?
    Post edited by Kennedy Odife at 2015-08-31 15:54:36
  • Vote Up0Vote Down skrechskrech
    Posts: 6Member
    Hey, I know this is an old thread but I had the same issue. So If somebody has the same problem here is the solution:

    This probably happened to you because your are running the airtime server behind NAT. You should forward port 2812 (Monit is listening on it).
  • Vote Up0Vote Down Voisses TechVoisses Tech
    Posts: 1,419Member
    Basically you need to have matching information  for
    1. host
    2. ports

     located in
    • /etc/airtime/api_client.cfg
    • /etc/airtime/airtime.conf
    • /etc/apache2/sites-available/airtime-vhost.conf

    only change the general information not the services like rabbitmq

    References Here
    https://forum.sourcefabric.org/discussion/18320/unable-to-connect-to-the-airtime-server-http-error-404-not-found

    https://forum.sourcefabric.org/discussion/16216/101-virtual-hosting-for-dummies

    https://forum.sourcefabric.org/discussion/17109/what-problems-are-you-having-with-installing-on-trusty
    you should not have to forward monits port
    Post edited by Voisses Tech at 2017-05-10 18:27:05
    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.