WARNING! It looks like the Liquidsoap engine is continually restarting.

  • root@airtime:~# airtime-check-system
    CPU = Intel(R) Core(TM) i3-2100T CPU @ 2.50GHz
    Total RAM = 4002576 kB
    Free RAM = 3413572 kB
    OS = Ubuntu 10.04.3 LTS x86-64
    AIRTIME_CONFIG_FILES = OK
    POSTGRESQL_DATABASE = OK
    PYTHON_KOMBU_VERSION = 1.2.0
    PYTHON_POSTER_VERSION = 0.8.1
    PYTHON_MUTAGEN_VERSION = 1.20
    PYTHON_PYINOTIFY_VERSION = 0.9.2
    RABBITMQ_SERVER = OK
    AIRTIME_VERSION_URL = http://localhost:80/api/version/api_key/%%api_key%%
    APACHE_CONFIGURED = YES
    AIRTIME_VERSION = 1.9.5
    PLAYOUT_ENGINE_PROCESS_ID = 1651
    PLAYOUT_ENGINE_RUNNING_SECONDS = 925
    LIQUIDSOAP_PROCESS_ID =
    LIQUIDSOAP_RUNNING_SECONDS = 0
    -- WARNING! It looks like the Liquidsoap engine is continually restarting.
    -- 2011/12/11 23:09:43 [src_4723:3] Inserting missing metadata.
    -- 2011/12/11 23:09:43 [server:3] New client: localhost
    -- 2011/12/11 23:09:43 [server:3] New client: localhost
    -- 2011/12/11 23:19:17 [main:3] Shutdown started!
    -- 2011/12/11 23:19:17 [main:3] Waiting for threads to terminate...
    -- 2011/12/11 23:19:17 [airtime(dot)ogg:3] Closing connection...
    -- 2011/12/11 23:19:17 [clock.wallclock_main:3] Streaming loop stopped.
    -- 2011/12/11 23:19:17 [threads:3] Thread "wallclock_main" terminated (0 remaining).
    -- 2011/12/11 23:19:17 [main:3] Cleaning downloaded files...
    -- 2011/12/11 23:19:17 >>> LOG END
    MEDIA_MONITOR_PROCESS_ID = 884
    MEDIA_MONITOR_RUNNING_SECONDS = 1151
    SHOW_RECORDER_PROCESS_ID = 910
    SHOW_RECORDER_RUNNING_SECONDS = 1151
    ICECAST_PROCESS_ID = FAILED

    -- There appears to be problems with your setup. Please visit
    -- http://wiki.sourcefabric.org/x/HABQ for troubleshooting info.


    Tried everything on the forums and FAQ's
    Fresh installed Ubuntu / Debian server several times.
    Icecast is running on another server, if i connect trough e.g. sam it will air.

    No Luck :-(
  • 24 Comments sorted by
  • Liquidsoup Config File:

    output_sound_device = false
    output_icecast_vorbis = false
    output_icecast_mp3 = true
    output_shoutcast = false

    output_bitrate = 192
    output_samplerate = 44100
    output_stereo = true

    log_file = "/var/log/airtime/pypo-liquidsoap/<script>.log"

    icecast_host = "ip.of.icecast2.server"
    icecast_port = 8000
    icecast_pass = "password"

    mount_point_mp3 = "airtime.mp3"
    (i tried "/airtime.mp3" .... "/airtime" also)
    mount_point_vorbis = "airtime.ogg"
  • Airtime installed without errors, i can access it via URL insert.
    I can upload music, i can make playlists, i can let the playlist PLAY!

    But no On Air :(

    ***
    EDIT!
    ***

    Problem Fixed:

    sudo apt-get purge airtime
    sudo apt-get purge liquidsoap

    sudo apt-get install liquidsoap
    sudo apt-get install airtime

    @ SourceFabric, check the Automated Install page for updated Ubuntu LTS.

    Thanks, Gice

    P.S. Will post our station as a testimonial, if it works for some time ;-)

    ***

    EDIT!

    ***

    My joy was not for long... rebooted once my server, same error :(
    Post edited by Gice at 2011-12-11 20:33:20
  • What is the output of the following:

    /usr/lib/airtime/pypo/bin/liquidsoap_bin/liquidsoap /usr/lib/airtime/pypo/bin/liquidsoap_scripts/library/pervasives.liq 'ignore(output.icecast(%vorbis, host = "localhost", port = 8000, password = "hackme", mount = "basic-radio.ogg", sine()))'


    ?
    Airtime Pro Hosting: http://airtime.pro
  • init: security exit, root euid (user).
    root@airtime:~#

  • sorry I forgot to mention please switch to user pypo first (password: pypo)
    Post edited by Martin Konecny at 2011-12-11 22:37:28
    Airtime Pro Hosting: http://airtime.pro
  • pypo@airtime:~$ /usr/lib/airtime/pypo/bin/liquidsoap_bin/liquidsoap /usr/lib/airtime/pypo/bin/liquidsoap_scripts/library/pervasives.liq 'ignore(output.icecast(%vorbis, host = "localhost", port = 8000, password = "hackme", mount = "basic-radio.ogg", sine()))'
    2011/12/12 04:37:29 >>> LOG START
    2011/12/12 04:37:29 [protocols.external:3] Didn't find "ufetch".
    2011/12/12 04:37:29 [protocols.external:3] Found "/usr/bin/wget".
    2011/12/12 04:37:29 [main:3] Liquidsoap 1.0.0-beta2
    2011/12/12 04:37:29 [main:3] Using: pcre=6.0.1 dtools=0.2.2 duppy=0.4.0 duppy.syntax=0.4.0 cry=0.2.0 mm=0.1.0 xmlplaylist=0.1.2 ogg=0.4.2 vorbis=0.6.0 mad=0.4.2 flac=0.1.0 flac.ogg=0.1.0 lame=0.3.0 alsa=0.2.1 samplerate=0.1.1 taglib=0.1.4 camomile=0.7.1 portaudio=@VERSION ladspa=0.1.2
    2011/12/12 04:37:29 [dynamic.loader:2] Could not load plugins in directory /usr/local/lib/liquidsoap/1.0.0-beta2/plugins.
    2011/12/12 04:37:29 [lang:3] Lastfm/audioscrobbler support was not compiled.
    2011/12/12 04:37:29 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master.
    2011/12/12 04:37:29 [frame:3] Frame size must be a multiple of 1764 ticks = 1764 audio samples = 1 video samples.
    2011/12/12 04:37:29 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio samples = 1764 ticks.
    2011/12/12 04:37:29 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video samples = 1764 ticks.
    2011/12/12 04:37:29 [threads:3] Created thread "generic queue #1".
    2011/12/12 04:37:29 [basic-radio(dot)ogg:3] Connecting mount basic-radio.ogg for source@localhost...
    2011/12/12 04:37:29 [basic-radio(dot)ogg:2] Connection failed: could not connect to host: Connection refused in connect()!
    2011/12/12 04:37:29 [clock.wallclock_main:2] Error when starting output basic-radio(dot)ogg: Tutils.Exit!
    init: exception encountered during main phase:
      Tutils.Exit
    exception: Tutils.Exit
    Raised by primitive operation at file "list.ml", line 0, characters 0-0
    2011/12/12 04:37:29 [main:3] Shutdown started!
    2011/12/12 04:37:29 [main:3] Waiting for threads to terminate...
    2011/12/12 04:37:29 [main:3] Cleaning downloaded files...
    2011/12/12 04:37:29 >>> LOG END

  • Can you see a status page when you go to http://localhost:8000 ?
    Airtime Pro Hosting: http://airtime.pro
  • Well, mentioned in above post: 

    Airtime installed without errors, i can access it via URL insert.
    I can upload music, i can make playlists, i can let the playlist PLAY!

    So Yes, i can access it from localhost or internal ip, apache is running fine.

    Also outside my privnetwork though, NAT is configured correctly
    Post edited by Gice at 2011-12-11 22:47:57
  • The URL is not related to Airtime, it's related to Icecast.
    Airtime Pro Hosting: http://airtime.pro
  • Aye, i can acces 127.0.0.1/Schedule etc.
    As stated early in a post... i can add music and play without "On Air"
    I can add playlists etc. no problems, databases works like a charm i think :)
    Post edited by Gice at 2011-12-11 22:51:48
  • What I'm getting at is that Liquidsoap cannot connect to Icecast. If you go to that URL, then it will let me help you with your icecast problem.
    Airtime Pro Hosting: http://airtime.pro
  • Icecast is running fine, as mentioned before "Icecast is running on another server, if i connect trough e.g. sam it will air. "

    The server aired for 6 years now, don't think thats the problem :(

    I was looking for a Sam alternative (running on freebsd), when this works would be great :)
    Post edited by Gice at 2011-12-11 22:58:35
  • If icecast is running on another server, then you need to modify the command I gave you so that It connects to the correct address, and we can debug from there.
    Airtime Pro Hosting: http://airtime.pro
  • You mean this? This would be outet in config earlier right (install) ?:
    I answered icecast installation: NO HTTP

    I see afterwards that icecast2 is getting installed
    I needed to manually remove it...

    Now its connected :/    

    Only with this:
    audio_infobitrate=128;samplerate=44100;channels=2
    channels2

    I did my configs to 256/44.1/2

    /usr/lib/airtime/pypo/bin/liquidsoap_bin/liquidsoap /usr/lib/airtime/pypo/bin/liquidsoap_scripts/library/pervasives.liq 'ignore(output.icecast(%vorbis, host = "localhost", port = 8000, password = "hackme", mount = "basic-radio.ogg", sine()))'
    Post edited by Gice at 2011-12-11 23:19:54
  • The problem is that liquidsoap appears to be crashing when connecting to your icecast server. That's why I want you to modify that command (correct host + password)I gave you to connect to it, and then I can see why Liquidsoap is crashing.  I believe you that your icecast server it configured, but that is not helping me solve your issue.
    Airtime Pro Hosting: http://airtime.pro
  • 2011/12/12 21:02:31 >>> LOG START
    2011/12/12 21:02:31 [protocols.external:3] Didn't find "ufetch".
    2011/12/12 21:02:31 [protocols.external:3] Found "/usr/bin/wget".
    2011/12/12 21:02:31 [main:3] Liquidsoap 1.0.0-beta2
    2011/12/12 21:02:31 [main:3] Using: pcre=6.0.1 dtools=0.2.2 duppy=0.4.0 duppy.syntax=0.4.0 cry=0.2.0 mm=0.1.0 xmlplaylist=0.1.2 ogg=0.4.2 vorbis=0.6.0 mad=0.4.2 flac=0.1.0 flac.ogg=0.1.0 lame=0.3.0 alsa=0.2.1 samplerate=0.1.1 taglib=0.1.4 camomile=0.7.1 portaudio=@VERSION ladspa=0.1.2
    2011/12/12 21:02:31 [dynamic.loader:2] Could not load plugins in directory /usr/local/lib/liquidsoap/1.0.0-beta2/plugins.
    2011/12/12 21:02:31 [lang:3] Lastfm/audioscrobbler support was not compiled.
    2011/12/12 21:02:31 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master.
    2011/12/12 21:02:31 [frame:3] Frame size must be a multiple of 1764 ticks = 1764 audio samples = 1 video samples.
    2011/12/12 21:02:31 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio samples = 1764 ticks.
    2011/12/12 21:02:31 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video samples = 1764 ticks.
    2011/12/12 21:02:31 [threads:3] Created thread "generic queue #1".
    2011/12/12 21:02:31 [stream:3] Connecting mount stream for source@icecast.korrektunikorn.nl...
    2011/12/12 21:02:32 [stream:3] Connection setup was successful.
    2011/12/12 21:02:32 [threads:3] Created thread "wallclock_main" (1 total).
    2011/12/12 21:02:32 [clock.wallclock_main:3] Streaming loop starts, synchronized with wallclock.

  • I noticed something else with the setup file.

    If Options are commented out instead of set to true or false Airtime hangs on restarting liquidsoapd. It has to do with not having default settings for those options so if the config file is non valid in any way it doesn't know what to do.


  • I installed manually Airtime 2.0.0-beta2.
    Everything installed fine here:

    AIRTIME_SERVER_RESPONDING      = OK
    KERNEL_VERSION                 = 2.6.32-33-server
    MACHINE_ARCHITECTURE           = x86_64
    TOTAL_MEMORY_MBYTES            = 4002576
    TOTAL_SWAP_MBYTES              = UNKNOWN
    AIRTIME_VERSION                = 2.0.0-beta2
    OS                             = Ubuntu 10.04.3 LTS x86_64
    CPU                            = Intel(R) Core(TM) i3-2100T CPU @ 2.50GHz
    WEB_SERVER                     = Apache/2.2.14 (Ubuntu)
    PLAYOUT_ENGINE_PROCESS_ID      = 897
    PLAYOUT_ENGINE_RUNNING_SECONDS = 139
    PLAYOUT_ENGINE_MEM_PERC        = 0.3%
    PLAYOUT_ENGINE_CPU_PERC        = 0.0%
    LIQUIDSOAP_PROCESS_ID          = 901
    LIQUIDSOAP_RUNNING_SECONDS     = 139
    LIQUIDSOAP_MEM_PERC            = 0.6%
    LIQUIDSOAP_CPU_PERC            = 1.4%
    MEDIA_MONITOR_PROCESS_ID       = 888
    MEDIA_MONITOR_RUNNING_SECONDS  = 139
    MEDIA_MONITOR_MEM_PERC         = 0.4%
    MEDIA_MONITOR_CPU_PERC         = 0.0%
    SHOW_RECORDER_PROCESS_ID       = 912
    SHOW_RECORDER_RUNNING_SECONDS  = 139
    SHOW_RECORDER_MEM_PERC         = 0.3%
    SHOW_RECORDER_CPU_PERC         = 0.0%
    RABBITMQ_PROCESS_ID            = 985
    RABBITMQ_RUNNING_SECONDS       = 130
    RABBITMQ_MEM_PERC              = 0.5%
    RABBITMQ_CPU_PERC              = 0.0%

    But now, when i upload a file (mp3, cbr, 1 hour 30 minutes)
    It uploads fine, but when i wish to add it to a playlist it says the file is 2 minutes and 38 seconds long.

    When i air it, it indeed only plays the 2 minutes and 38 seconds.

    I tried with many other files above the 1 hour running time.
    All same issue, sometimes it gets 1 minute or 3 minute running time.

    But never the real time the files were.
  • Hi,

    You can upload the file somewhere and send me the link in private, I'll look into why this is happening.
    Airtime Pro Hosting: http://airtime.pro
  • Problem confirmed for Airtime 2.0. Bug ticket here:

    Airtime Pro Hosting: http://airtime.pro
  • Great work Martin!
    Is there a quick workout for me now, manually add music to dir or so?
    My station is down since friday for upgrade now :(


  • There is a simple workaround for now:

    Copy the file to /srv/airtime/stor/organize, and Airtime will automatically import it into its library.
    Airtime Pro Hosting: http://airtime.pro
  • This works indeed!
    Thanks for the workaround!

    Is there any ETA on v2.0.0-final ?
  • Early January most likely. We will have a few release candidates before then that will be production quality though.
    Airtime Pro Hosting: http://airtime.pro