Problems with LiquidSoap (1.1.1) when Manually Installing Airtime 2.4 from GitHub
  • Hello,
    I've tried several times to manually install 2.4 with the same problem. Basically, Media Monitor and the Dashboard all work but never the stream. The "Getting Information from the Server..." message is always displayed on the Stream Preferences page, and the "On Air" button is never lit.
    My install process is basically:
    1. create the server (Ubuntu 12.04 LTS) run apt-get update and apt-get dist-update
    3 ~/Airtime/install_full/airtime-full-install

    The install seems to run smoothly, configures Icecast passwords and host, and fails with the following airtime-check-system:
    AIRTIME_SERVER_RESPONDING      = OK
    KERNEL_VERSION                 = 3.2.0-40-virtual
    MACHINE_ARCHITECTURE           = x86_64
    TOTAL_MEMORY_MBYTES            = 1692576
    TOTAL_SWAP_MBYTES              = 917500
    AIRTIME_VERSION                = 2.4.0
    OS                             = Ubuntu 12.04.3 LTS x86_64
    CPU                            = Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz
    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
    -- 2013-08-29 20:36:50,433 ERROR - [LogWriter.py : write() : line 19] - ImportError
    -- 2013-08-29 20:36:50,433 ERROR - [LogWriter.py : write() : line 19] - :
    -- 2013-08-29 20:36:50,433 ERROR - [LogWriter.py : write() : line 19] - No module named pypofetch
    -- 2013-08-29 20:36:50,433 ERROR - [LogWriter.py : write() : line 19] -
    -- 
    -- 
    -- 
    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/08/29 20:36:29 [server:3] Client localhost disconnected.
    -- 2013/08/29 20:36:39 [server:3] New client: localhost.
    -- 2013/08/29 20:36:39 [server:3] Client localhost disconnected.
    -- 2013/08/29 20:36:50 [server:3] New client: localhost.
    -- 2013/08/29 20:36:50 [server:3] Client localhost disconnected.
    -- 
    -- 
    MEDIA_MONITOR_PROCESS_ID       = 17787
    MEDIA_MONITOR_RUNNING_SECONDS  = 5040
    MEDIA_MONITOR_MEM_PERC         = 0.9%
    MEDIA_MONITOR_CPU_PERC         = 0.0%
    -- There appears to be a problem with your Airtime installation.

    I've checked the host values in /etc/airtime/api_client.cfg and airtime.conf, and verified that liquidsoap.cfg is present (with the owner "pypo" and the proper permissions.)

    Although "sudo service airtime-playout start" seems to be okay, "sudo service airtime-playout restart" returns:
    Restarting Airtime Scheduler: start-stop-daemon: warning: failed to kill 19894: No such process
    Done.

    Any ideas? The above error "No module named pypofetch" seems odd.
    Post edited by Eric Pugh at 2013-09-04 14:17:13
  • 8 Comments sorted by
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    you need to use sourcefabric version of liquidsoap
  • Vote Up0Vote Down hoerichhoerich
    Posts: 627Member, Airtime Moderator
    Official Airtime Forum Manager
    --------------------------
    Most of the time an issue is located between keyboard and chair.
  • Hello, thank you for replying!
    I still don't completely understand how to get liquidsoap updated (without installing airtime from package... which works)

    How do I update? I get the following:
    ubuntu@machine:~$ dpkg -i liquidsoap_1.1.1~precise~sfo-1_amd64.deb

    Preparing to replace liquidsoap 1.1.1~precise~sfo-1 (using liquidsoap_1.1.1~precise~sfo-1_amd64.deb) ...
    Stopping liquidsoap channels: no script found in /etc/liquidsoap
    Unpacking replacement liquidsoap ...
    Setting up liquidsoap (1.1.1~precise~sfo-1) ...
    Starting liquidsoap channels: no script found in /etc/liquidsoap
    Processing triggers for ureadahead ...


  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Eric, you have the latest version of our Liquidsoap package, which looks OK. When using the scripts in install_full the default is to use localhost, e.g:

    AIRTIME_STATUS_URL             = http://localhost:80/api/status/format/json/api_key/%%api_key%%

    so that suggests to me you have files in /etc/airtime/ left over from a previous install which reference http://airtime.isourblock.org:80

    I would recommend that you back up or move these /etc/airtime files out of the way before running the install_minimal/airtime-uninstall script. Then try running the install from git again.

    By the way, if you want to install Airtime 2.4.1 you should checkout the 2.4.x branch on github. By default I think you will get the master branch, which is the place to work on features for the next development version.

    Cheers!

    Daniel
  • Hi Daniel,
    I think you're right that there were some left over files in the airtime directory, but I don't think this was causing the problem. I ran airtime-uninstall and remove the /etc/airtime and /srv/artime dirs and had the same issues. I've attached the terminal output of the installation and tails for the liquidsoap and playout logs on a completely clean Ubuntu server... kind of banging my head on this one.
  • Vote Up0Vote Down hoerichhoerich
    Posts: 627Member, Airtime Moderator
    I suggest to try automated installation http://en.flossmanuals.net/airtime-en-2-3/automated-installation/
    this is recommended for ubuntu
    let's see if this works
    Official Airtime Forum Manager
    --------------------------
    Most of the time an issue is located between keyboard and chair.
  • I think I got it working. What I did is edit line 2 in python_apps/pypo/timeout.py
    That seemed to clean up the "no module named pypofetch" error, and everything installed correctly. (the fix on my Airtime fork)

    Thanks!
  • Vote Up0Vote Down hoerichhoerich
    Posts: 627Member, Airtime Moderator
    that rocks! good to hear
    Official Airtime Forum Manager
    --------------------------
    Most of the time an issue is located between keyboard and chair.