airtime-playout PID changed
  • Hi Folks, I just did some updates on my Ubuntu 10.4 server I've broken Airtime 2.1.3.
    This is a production box so serious help needed please.
    I've looked at the logs but can't spot the problem.

    Monit says   - airtime-playout PID changed

    Pypo and Liquidsoap logs attached.

    Thanks
    J
  • 8 Comments sorted by


  • sudo airtime-check-system returns -


    AIRTIME_STATUS_URL             = http://localhost:80/api/status/format/json/api_key/%%api_key%%
    AIRTIME_SERVER_RESPONDING      = OK
    KERNEL_VERSION                 = 2.6.32-42-generic-pae
    MACHINE_ARCHITECTURE           = i686
    TOTAL_MEMORY_MBYTES            = 4120700
    TOTAL_SWAP_MBYTES              = UNKNOWN
    AIRTIME_VERSION                = 2.1.3
    OS                             = Ubuntu 10.04.4 LTS i686
    CPU                            = AMD Athlon(tm) 64 X2 Dual Core Processor 4000+
    WEB_SERVER                     = Apache/2.2.14 (Ubuntu)
    PLAYOUT_ENGINE_PROCESS_ID      = 14151
    PLAYOUT_ENGINE_RUNNING_SECONDS = 15
    PLAYOUT_ENGINE_MEM_PERC        = 0.2%
    PLAYOUT_ENGINE_CPU_PERC        = 0.0%
    LIQUIDSOAP_PROCESS_ID          = FAILED
    LIQUIDSOAP_RUNNING_SECONDS     = -1
    LIQUIDSOAP_MEM_PERC            = 0%
    LIQUIDSOAP_CPU_PERC            = 0%
    MEDIA_MONITOR_PROCESS_ID       = 1502
    MEDIA_MONITOR_RUNNING_SECONDS  = 2579
    MEDIA_MONITOR_MEM_PERC         = 0.2%
    MEDIA_MONITOR_CPU_PERC         = 0.3%
    RABBITMQ_PROCESS_ID            = 1609
    RABBITMQ_RUNNING_SECONDS       = 2577
    RABBITMQ_MEM_PERC              = 0.3%
    RABBITMQ_CPU_PERC              = 0.0%

    -- There appears to be a problem with your Airtime installation.

  • Looks like Liquidsoap doesn't want to start.

    First try

    sudo service airtime-playout restart.

    Then wait a few seconds and run airtime-check-system again.

    If that doesn't fix it, please run

    sudo -u pypo /usr/lib/airtime/pypo/bin/airtime-liquidsoap

    and post the output.
    Airtime Pro Hosting: http://airtime.pro
  • Hey Martin, first option didn't work heres the output of second -

    2012/09/05 16:50:47 >>> LOG START
    2012/09/05 16:50:46 [protocols.external:3] Didn't find "ufetch".
    2012/09/05 16:50:46 [protocols.external:3] Found "/usr/bin/wget".
    2012/09/05 16:50:46 [main:3] Liquidsoap 1.0.1
    2012/09/05 16:50:46 [main:3] Using: graphics=[distributed with Ocaml] pcre=6.0.1 dtools=0.3.0 duppy=0.4.2 duppy.syntax=0.4.2 cry=0.2.2 mm=0.2.0 ogg=0.4.3 vorbis=0.6.1 mad=0.4.4 flac=0.1.1 flac.ogg=0.1.1 dynlink=[distributed with Ocaml] lame=0.3.1 alsa=0.2.1 ao=0.2.0 taglib=0.2.0 camomile=0.7.1 portaudio=0.2.0 pulseaudio=0.1.2
    2012/09/05 16:50:46 [dynamic.loader:2] Could not load plugins in directory /usr/local/lib/liquidsoap/1.0.1/plugins.
    2012/09/05 16:50:46 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master.
    2012/09/05 16:50:46 [frame:3] Frame size must be a multiple of 1764 ticks = 1764 audio samples = 1 video samples.
    2012/09/05 16:50:46 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio samples = 1764 ticks.
    2012/09/05 16:50:46 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video samples = 1764 ticks.
    2012/09/05 16:50:47 [threads:3] Created thread "generic queue #1".
    2012/09/05 16:50:47 [threads:3] Created thread "generic queue #2".
    2012/09/05 16:50:47 [threads:3] Created thread "non-blocking queue #1".
    2012/09/05 16:50:47 [clock.wallclock_main:2] Error when starting dummy: Failure("port 9500 already taken")!
    2012/09/05 16:50:47 [clock.wallclock_main:3] Raised at file "pervasives.ml", line 22, characters 22-33
    2012/09/05 16:50:47 [dummy:1] Got ill-balanced activations (from dummy)!
    2012/09/05 16:50:47 [clock:2] Error when leaving output dummy: File "source.ml", line 396, characters 10-16: Assertion failed!
    2012/09/05 16:50:47 [clock.wallclock_main:2] Error when starting curiousbroadcast(dot)mp3: Failure("port 9500 already taken")!
    2012/09/05 16:50:47 [clock.wallclock_main:3] Raised at file "pervasives.ml", line 22, characters 22-33
    2012/09/05 16:50:47 [curiousbroadcast(dot)mp3:1] Got ill-balanced activations (from curiousbroadcast(dot)mp3)!
    2012/09/05 16:50:47 [clock:2] Error when leaving output curiousbroadcast(dot)mp3: File "source.ml", line 396, characters 10-16: Assertion failed!
    2012/09/05 16:50:47 [clock.wallclock_main:2] Error when starting CuriousBroadcast(dot)mp3: Failure("port 9500 already taken")!
    2012/09/05 16:50:47 [clock.wallclock_main:3] Raised at file "pervasives.ml", line 22, characters 22-33
    2012/09/05 16:50:47 [CuriousBroadcast(dot)mp3:1] Got ill-balanced activations (from CuriousBroadcast(dot)mp3)!
    2012/09/05 16:50:47 [clock:2] Error when leaving output CuriousBroadcast(dot)mp3: File "source.ml", line 396, characters 10-16: Assertion failed!
    2012/09/05 16:50:47 [threads:3] Created thread "wallclock_main" (1 total).
    2012/09/05 16:50:47 [main:3] Shutdown started!
    2012/09/05 16:50:47 [main:3] Waiting for threads to terminate...
    2012/09/05 16:50:47 [clock.wallclock_main:3] Streaming loop starts, synchronized with wallclock.
    2012/09/05 16:50:47 [clock.wallclock_main:3] Streaming loop stopped.
    2012/09/05 16:50:47 [threads:3] Thread "wallclock_main" terminated (0 remaining).
    2012/09/05 16:50:47 [main:3] Cleaning downloaded files...
    2012/09/05 16:50:47 >>> LOG END

  • What's the output of

    ps aux | grep liquidsoap
    Airtime Pro Hosting: http://airtime.pro
  • 1000     20560  0.0  0.0   3320   804 pts/0    R+   22:32   0:00 grep --color=auto liquidsoap

  • Any other thoughts on this Martin or anyone else? Sorry for pestering but I really need to get this going again. I'm contemplating a fresh install but afraid that might make things worse.

    Thanks in advance
    J
  • The thing that confuses me is the following line:

    "2012/09/05 16:50:47 [clock.wallclock_main:2] Error when starting dummy: Failure("port 9500 already taken")! "


    Liquidsoap refuses to start because of this. It appears something else (I had assumed another instance of Liquidsoap) is taking that port. Are you running any custom changes to ls_script.liq?

    Also, can you post the output of

    sudo netstat -tlnp

    Also, this could just be an OS bug, and a system restart could free up that port (but don't do this until last resort :)



    Airtime Pro Hosting: http://airtime.pro
  • Solved.

    Port 9500 is our master source port. Having this set worked fine up until I updated some package s on our system so I didn't think to reset it. I removed 9500 from our stream settings and - boom, all's working again.

    I had also opened some port on our firewall and updated the router firmware, but that surely doesn't affect liquidsoap. The other thing I did was to updated our icecast config to listen to for remote connections on various ports including - 9500, but perhaps I'm misunderstanding the icecast config somewhere.

    Thanks for the help Martin.
    best
    john