Liquidsoap fails to start after 2.4 upgrade
  • Vote Up0Vote Down RobbtRobbt
    Posts: 80Member
    Hello,
      I've been having issues with Airtime after upgrading to 2.4 my liquid soap is failing to start with this error.
    Error: no %ifdef to end here!

    Seems there is an error in one of the liq scripts but I'm not sure how to troubleshoot it. Thanks for any help.
  • 14 Comments sorted by
  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    Did you upgrade your liquidsoap to 1.1.1?
    Cloud Radio -> http://airtime.pro
  • Vote Up0Vote Down RobbtRobbt
    Posts: 80Member
    I thought it would of upgraded, but it appears to only be Version 1.0.1. I saw it upgraded but it doesn't appear to have upgraded on my system.
  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    Please upgrade liquidsoap to 1.1.1
    Cloud Radio -> http://airtime.pro
  • Vote Up0Vote Down RobbtRobbt
    Posts: 80Member
    Ok, I upgraded to liquidsoap 1.1.1, the issue was I had set-up a development version of liquidsoap when originally installing the box and had linked the airtime-liquidsoap to my local version so the deb package upgrade didn't catch. But it's still not producing audio.

    All I see occuring in lsscript_log after the liquidsoap startup messages is every second I get another
    2013/07/11 12:30:13 [server:3] Client localhost disconnected.
    2013/07/11 12:30:14 [server:3] New client: localhost.

  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    The message is OK, what's the output of airtime-check-system now?
    Cloud Radio -> http://airtime.pro
  • Vote Up0Vote Down RobbtRobbt
    Posts: 80Member
    That seems to check out.

    AIRTIME_STATUS_URL             = http://transmitter.wcrsfm.org:80/api/status/format/json/api_key/%%api_key%%
    AIRTIME_SERVER_RESPONDING      = OK
    KERNEL_VERSION                 = 3.2.0-0.bpo.4-rt-amd64
    MACHINE_ARCHITECTURE           = x86_64
    TOTAL_MEMORY_MBYTES            = 4050716
    TOTAL_SWAP_MBYTES              = UNKNOWN
    AIRTIME_VERSION                = 2.4.0
    OS                             = Debian GNU/Linux 6.0.7 (squeeze) x86_64
    CPU                            = Intel(R) Atom(TM) CPU D525   @ 1.80GHz
    WEB_SERVER                     = Apache/2.2.16 (Debian)
    PLAYOUT_ENGINE_PROCESS_ID      = 1211
    PLAYOUT_ENGINE_RUNNING_SECONDS = 1459
    PLAYOUT_ENGINE_MEM_PERC        = 0.5%
    PLAYOUT_ENGINE_CPU_PERC        = 0.2%
    LIQUIDSOAP_PROCESS_ID          = 2100
    LIQUIDSOAP_RUNNING_SECONDS     = 1444
    LIQUIDSOAP_MEM_PERC            = 0.8%
    LIQUIDSOAP_CPU_PERC            = 10.7%
    MEDIA_MONITOR_PROCESS_ID       = 1464
    MEDIA_MONITOR_RUNNING_SECONDS  = 1458
    MEDIA_MONITOR_MEM_PERC         = 0.3%
    MEDIA_MONITOR_CPU_PERC         = 0.0%
    -- Your installation of Airtime looks OK!


    I rebooted the computer and it appeared that things were working but Airtime appears to have continued to play a local mp3 even though I have attempted to change it the web interface. I even went so far as to cancel the show but it continues to. We normally rebroadcast shoutcast streams but it kept playing the local mp3 vs. switching to the shoutcast stream.
  • Vote Up0Vote Down RobbtRobbt
    Posts: 80Member
    It appears to be failing to play the shoutcast stream as it gave this error in ls_script.lq 

    Source failed (no more tracks) stopping output...

  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    What's you mean "local mp3"? Can you explain your radio settings a little bit?
    Cloud Radio -> http://airtime.pro
  • Vote Up0Vote Down RobbtRobbt
    Posts: 80Member
    By local mp3 I meant one in the Airtime database (and on the automation machine). That was working but even now switching to one of the files on the server doesn't appear to be playing (it only played and kept playing the same mp3 after I rebooted it).

    I think that the Airtime web interface itself isn't properly interacting with some component.
    In the media-monitor.log I have
    2013-07-11 13:40:34,541 ERROR - [Thread-1] [airtime.py : init_rabbit_mq()] : LINE 51 - [Errno 111] Connection refused
    2013-07-11 13:40:34,542 ERROR - [Thread-1] [airtime.py : __init__()] : LINE 31 - Error connecting to RabbitMQ Server. Trying again in few seconds
    2013-07-11 13:40:39,545 INFO - [Thread-1] [airtime.py : init_rabbit_mq()] : LINE 36 - Initializing RabbitMQ message consumer...
    2013-07-11 13:40:39,550 INFO - [Thread-1] [airtime.py : init_rabbit_mq()] : LINE 50 - Failed to initialize RabbitMQ consumer
  • Vote Up0Vote Down RobbtRobbt
    Posts: 80Member
    Basically we have a USB soundcard hooked up to our transmitter at a remote location. We alternative between broadcasting separate webstreams based upon which timeshare partner is on. Testing the sound-card worked and created the mono tone. But airtime doesn't appear to be responding and scheduling.
  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    The problem looks like rabbitmq server connection failure.
    Please check /etc/airtime/airtime.conf, the section of rabbitmq settings
    Cloud Radio -> http://airtime.pro
  • Vote Up0Vote Down RobbtRobbt
    Posts: 80Member
    Ok rabbitmq wasn't running, so I started it via /etc/init.d/rabbitmq-server start and the conection error logs in media-monitor went away but I'm still not getting any playout from Airtime. I'll try restarting again, I figured rabbitmq-server would start automatically.
  • Vote Up0Vote Down RobbtRobbt
    Posts: 80Member
    Ok, so after another reboot and starting rabbitmq-server (it didn't startup automatically) it appears to be fully working. I also don't see rabbitmq in any of the /etc/rc.d startup scripts so I guess I need to figure out how to add it so that it starts when the machine boots up. Not sure why it would be missing from there, but it appears that things are working now. Thanks for all of the help.
  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    You are welcome :)
    Cloud Radio -> http://airtime.pro