Liquidsoap Won't Start - and other 2.5 Problems
  • Hi there.

    I administrate my school's web radio station.  We recently upgraded to Airtime 2.5 and have been having problems since.

    Essentially, we use a program (edcast) on a studio computer to send soundboard output to the master source mount on our Ubuntu server, which hosts icecast and airtime.  

    Since the update, edcast will not connect to the server.  No passwords have been changed.  

    However, if I run "sudo dpkg-reconfigure airtime", edcast will connect just fine.  I must then change my apache vhosts files to move the actual airtime UI to a different port, since our blog runs on :80.
    When I do so, we can no longer connect to the master mount.  

    Below are some terminal outputs.

    "airtime-check-system":
    AIRTIME_SERVER_RESPONDING      = OK
    KERNEL_VERSION                 = 3.8.0-33-generic
    MACHINE_ARCHITECTURE           = x86_64
    TOTAL_MEMORY_MBYTES            = 16433332
    TOTAL_SWAP_MBYTES              = 16774140
    AIRTIME_VERSION                = 2.5.0
    OS                             = Ubuntu 13.04 x86_64
    CPU                            = Intel(R) Xeon(R) CPU           E5345  @ 2.33GHz
    WEB_SERVER                     = Apache/2.2.22 (Ubuntu)
    PLAYOUT_ENGINE_PROCESS_ID      = 20822
    PLAYOUT_ENGINE_RUNNING_SECONDS = 1130
    PLAYOUT_ENGINE_MEM_PERC        = 0.0%
    PLAYOUT_ENGINE_CPU_PERC        = 0.0%
    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
    -- 2013/11/19 15:35:55 [threads:3] Thread "wallclock_main" terminated (1 remaining).
    -- 2013/11/19 15:35:55 [threads:3] Thread "http polling" terminated (0 remaining).
    -- 2013/11/19 15:35:55 [main:3] Cleaning downloaded files...
    -- 2013/11/19 15:35:55 [main:3] Freeing memory...
    -- 2013/11/19 15:35:55 >>> LOG END
    --
    --
    MEDIA_MONITOR_PROCESS_ID       = 8257
    MEDIA_MONITOR_RUNNING_SECONDS  = 3764
    MEDIA_MONITOR_MEM_PERC         = 0.0%
    MEDIA_MONITOR_CPU_PERC         = 0.0%
    -- There appears to be a problem with your Airtime installation.


    "airtime-liquidsoap start-with-monit"
    Starting Liquidsoap Playout Engine: Unable to connect to the Airtime server.
    HTTP Error 404: Not Found
    traceback: Traceback (most recent call last):
      File "generate_liquidsoap_cfg.py", line 37, in <module>
        ss = ac.get_stream_setting()
      File "/usr/lib/airtime/api_clients/api_client.py", line 414, in get_stream_setting
        return self.services.get_stream_setting()
      File "/usr/lib/airtime/api_clients/api_client.py", line 137, in __call__
        f = urllib2.urlopen(req)
      File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
        return _opener.open(url, data, timeout)
      File "/usr/lib/python2.7/urllib2.py", line 410, in open
        response = meth(req, response)
      File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
        'http', request, response, code, msg, hdrs)
      File "/usr/lib/python2.7/urllib2.py", line 448, in error
        return self._call_chain(*args)
      File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
        result = func(*args)
      File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
        raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
    HTTPError: HTTP Error 404: Not Found

    My icecast.xml passwords match those in my liquidsoap.cfg, which are both the passwords set with the -reconfigure airtime.
    My vhosts sets airtime to port 5080.  I also edited my airtime.conf to reflect the port change.

    Any idea what's wrong? Thanks for any help.

  • 2 Comments sorted by
  • SOLVED

    I ended up figuring it out myself after reading about 20 pages of old support threads.  

    I was correctly editing my vhosts and airtime.conf files, but I forgot to edit /etc/airtime/api_client.cfg to reflect the port change as well. 

    Altogether, when changing the port airtime operates on you must check the passwords and/or ports in:
    /etc/airtime/airtime.conf
    /etc/airtime/api_client.cfg
    /etc/apache2/sites-enabled/airtime-vhost.conf
    /etc/icecast2/icecast.xml

    Then I restarted liquidsoap and everything worked again.

    Hopefully this will help someone googling this problem in the future.
    Post edited by Sam Friedman at 2013-11-20 19:46:58
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    thanks to you
    please mark thread as [SOLVED]