[SOLVED] Cookie Monster song plays OK but Auth not working for 2.2.0
  • hi, i just installed latest Airtime 2.2.0 under Squeeze:

    i'm having a problem i hope you could help me fix, is somehow common but I can't seem to find the correct files to sync on password settings.

    Can not connect to the streaming server
    401, Authentication Required (HTTP 1.0)

    i can run liquidsoap with a direct command and authenticate correctly, the cookie song is streamed and available through icecast:

    liquidsoap /usr/lib/airtime/pypo/bin/liquidsoap_scripts/library/pervasives.liq 'output.icecast(%vorbis, host = "localhost", port = 8000, password ="xxxxx", mount ="liq.ogg", mksafe(single("/var/lib/airtime/tmp/airtime_mvc/application/models/tests/test10003.mp3")))'

    i dont see a:
    /etc/airtime/liquidsoap.cfg

    and through the webinterface, on the "Output Stream Settings" there are no entry boxes for password or mountpoint.

    Please excuse me, but i'm a bit confused as on how to sync them so any tip is apprecitated.
    Post edited by alejo at 2012-11-05 04:08:47
  • 9 Comments sorted by
  • Hi Alejo,

    You could try running liquidsoap manually and see why it's refusing to run:

    sudo -u pypo /usr/lib/airtime/pypo/bin/airtime-liquidsoap
    Airtime Pro Hosting: http://airtime.pro
  • Hola Martin,
    Thanks for getting back.. see when I run:

    liquidsoap
    /usr/lib/airtime/pypo/bin/liquidsoap_scripts/library/pervasives.liq
    'output.icecast(%vorbis, host = "localhost", port = 8000, password
    ="xxxxx", mount ="liq.ogg",
    mksafe(single("/var/lib/airtime/tmp/airtime_mvc/application/models/tests/test10003.mp3")))'


    all goes well, it authenticates and streams correctly.

    but when i try your suggestion i can't find 'pypo' (?)

    /usr/lib/airtime/pypo/bin # pwd
    /usr/lib/airtime/pypo/bin
    /usr/lib/airtime/pypo/bin # pypo airtime-liquidsoap
    -bash: pypo: command not found
    /usr/lib/airtime/pypo/bin # airtime-liquidsoap
    No output defined, nothing to do.

    i have tried:
    /usr/lib/airtime/pypo/bin # airtime-liquidsoap -c -v --version --list-plugins
    Liquidsoap 1.0.1+scm
    Copyright (c) 2003-2012 Savonet team
    Liquidsoap is open-source software, released under GNU General Public License.
    See <http://savonet.sf.net&gt; for more information.

    It's a puzzle i can't figure out since both Icecast and Airtime are running well.

    here my status window:
    http://puu.sh/1mhqC

    here my streams window:
    (where i don't see a way to put user/pass for icecast but the rest)
    http://puu.sh/1mhpq

    any hints appreciated..
    Post edited by alejo at 2012-11-04 10:51:41
  • Make sure you put the "sudo -u" in front. 

    sudo -u pypo x 

    Means run "x" as user pypo.
    Airtime Pro Hosting: http://airtime.pro
  • oke, this is what i get:

    /usr/lib/airtime/pypo/bin # sudo -u pypo /usr/lib/airtime/pypo/bin/airtime-liquidsoap
    sudo: unable to resolve host suservidor
    2012/11/04 20:40:49 >>> LOG START
    2012/11/04 20:40:49 [protocols.external:3] Didn't find "ufetch".
    2012/11/04 20:40:49 [protocols.external:3] Found "/usr/bin/wget".
    2012/11/04 20:40:49 [main:3] Liquidsoap 1.0.1+scm
    2012/11/04 20:40:49 [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 faad=0.3.0 portaudio=0.2.0 pulseaudio=0.1.2
    2012/11/04 20:40:49 [main:2]
    2012/11/04 20:40:49 [main:2] DISCLAIMER: This version of Liquidsoap has been
    2012/11/04 20:40:49 [main:2] compiled from a snapshot of the development code.
    2012/11/04 20:40:49 [main:2] As such, it should not be used in production
    2012/11/04 20:40:49 [main:2] unless you know what you are doing!
    2012/11/04 20:40:49 [main:2]
    2012/11/04 20:40:49 [main:2] We are, however, very interested in any feedback
    2012/11/04 20:40:49 [main:2] about our development code and committed to fix
    2012/11/04 20:40:49 [main:2] issues as soon as possible.
    2012/11/04 20:40:49 [main:2]
    2012/11/04 20:40:49 [main:2] If you are interested in collaborating to
    2012/11/04 20:40:49 [main:2] the development of Liquidsoap, feel free to
    2012/11/04 20:40:49 [main:2] drop us a mail at <savonet-devl@lists.sf.net>
    2012/11/04 20:40:49 [main:2] or to join the #savonet IRC channel on Freenode.
    2012/11/04 20:40:49 [main:2]
    2012/11/04 20:40:49 [main:2] Please send any bug report or feature request
    2012/11/04 20:40:49 [main:2] at <http://dev.sourcefabric.org/browse/LS>.
    2012/11/04 20:40:49 [main:2]
    2012/11/04 20:40:49 [main:2] We hope you enjoy this snapshot build of Liquidsoap!
    2012/11/04 20:40:49 [main:2]
    2012/11/04 20:40:49 [dynamic.loader:2] Could not load plugins in directory /usr/local/lib/liquidsoap/scm/plugins.
    2012/11/04 20:40:49 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master.
    2012/11/04 20:40:49 [frame:3] Frame size must be a multiple of 1764 ticks = 1764 audio samples = 1 video samples.
    2012/11/04 20:40:49 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio samples = 1764 ticks.
    2012/11/04 20:40:49 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video samples = 1764 ticks.
    2012/11/04 20:40:49 [lang:3] /usr/lib/airtime/pypo/bin/liquidsoap_scripts/notify.sh --liquidsoap-started &
    init: exception encountered during start phase:
      Failure("port 1234 already taken")

    #########################################
    #           *** pypo  ***               #
    #     pypo notification gateway         #
    #########################################

  • Is something on your system already using port 1234? Maybe another Liquidsoap script?

    This is why Liquidsoap fails to start.
    Airtime Pro Hosting: http://airtime.pro
  • this:

    pypo     27368  5.2  0.9 182016 20104 ?        Sl   Nov04  74:27 /usr/bin/airtime-liquidsoap --verbose -f /usr/lib/airtime/pypo/bin/liquidsoap_scripts/ls_script.liq

    started by Airtime since i didnt had a previous liquidsoap, the only thing i had was icecast running on the default port 8000.. as the status window tells:

    http://puu.sh/1mhqC


    if can kill the process, but it is reopened automatically after a couple of seconds.

    Post edited by alejo at 2012-11-04 19:07:51
  • so, the file where password and username should coincide (with icecast.xml) is:

    /etc/airtime/liquidsoap.cfg

    but there's a message that says:

    ################################################
    # THIS FILE IS AUTO GENERATED. DO NOT CHANGE!! #
    ################################################

    how can i then make sure i have the same settings on both my icecast and the liquidsoap config file if i can't touch that file or via the webinterface i have no options for user/pass on the 'Output Stream Settings' ?



    Post edited by alejo at 2012-11-05 03:56:45
  • This is insane... after a weekend trying to figure out how to add my icecast 'source' password to liquidsoap via Airtime i finally noticed that, what looks like an already expanded GUI aid labeled as: 'Additional Options' where one can read the stream URL.. well, it's not expanded.. one has to click on it to see more options .... after adding the password it all works now.

  • Sometimes it's the simple things that get overlooked. Glad you got it working :)
    Airtime Pro Hosting: http://airtime.pro