1.8.2 not streaming to Icecast
  • I just upgraded Airtime to the latest 1.8.2 release and I still can't stream to Icecast (I had this problem in 1.8.2-RC5). I've checked the source password and restarted Icecast and Liquidsoap but I still don't see any mount points on the Icecast server.

    Any ideas?

    thanks

    James

    james@james-desktop:~$ sudo airtime-check-system 
    CPU                            = AMD Athlon(tm) XP 2400+
    Total RAM                      = 1544088 kB
    Free RAM                       = 797672 kB
    OS                             = Ubuntu 10.04.2 LTS Intel 80386
    AIRTIME_CONFIG_FILES           = OK
    POSTGRESQL_DATABASE            = OK
    PYTHON_KOMBU_VERSION           = 1.1.3
    PYTHON_POSTER_VERSION          = 0.8.1
    RABBITMQ_SERVER                = OK
    AIRTIME_VERSION_URL            = http://localhost:80/api/version/api_key/%%api_key%%
    APACHE_CONFIGURED              = YES
    AIRTIME_VERSION                = 1.8.2
    PLAYOUT_ENGINE_PROCESS_ID      = 2422
    PLAYOUT_ENGINE_RUNNING_SECONDS = 400
    LIQUIDSOAP_PROCESS_ID          = 2428
    LIQUIDSOAP_RUNNING_SECONDS     = 400
    ICECAST_PROCESS_ID             = 1149
    
      -- System setup looks OK!
  • 10 Comments sorted by
  • Hi James,

    Lets first verify Icecast works for you:

    cd /usr/lib/airtime/pypo/bin/liquidsoap/
    ./liquidsoap 'output.icecast(%vorbis, mount="test.ogg", sine())'
    


    You should see Liquidsoap start. Now go to http://localhost:8000 and verify you have a mountpoint named "test.ogg" there.
    Airtime Pro Hosting: http://airtime.pro
  • Ok thanks I tried that command and this is what I got:

    james@james-desktop:/usr/lib/airtime/pypo/bin/liquidsoap$ ./liquidsoap 'output.icecast(%vorbis, mount="test.ogg", sine())'
    2011/06/15 16:28:29 >>> LOG START
    2011/06/15 16:28:29 [protocols.external:3] Didn't find "ufetch".
    2011/06/15 16:28:29 [protocols.external:3] Found "/usr/bin/wget".
    2011/06/15 16:28:29 [main:3] Liquidsoap 1.0.0-beta+svn (default@e712df4d96c0:20110502:175204)
    2011/06/15 16:28: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.1 vorbis=0.5.1 mad=0.4.0 flac=0.1.0 flac.ogg=0.1.0 lame=0.2.4 alsa=0.2.1 samplerate=0.1.1 taglib=0.1.4 camomile=0.7.1 portaudio=@VERSION ladspa=0.1.2
    2011/06/15 16:28:29 [main:2] 
    2011/06/15 16:28:29 [main:2] DISCLAIMER: This version of Liquidsoap has been
    2011/06/15 16:28:29 [main:2] compiled from a snapshot of the development code.
    2011/06/15 16:28:29 [main:2] As such, it should not be used in production
    2011/06/15 16:28:29 [main:2] unless you know what you are doing!
    2011/06/15 16:28:29 [main:2] 
    2011/06/15 16:28:29 [main:2] We are, however, very interested in any feedback
    2011/06/15 16:28:29 [main:2] about our development code and committed to fix
    2011/06/15 16:28:29 [main:2] issues as soon as possible.
    2011/06/15 16:28:29 [main:2] 
    2011/06/15 16:28:29 [main:2] If you are interested in collaborating to
    2011/06/15 16:28:29 [main:2] the development of Liquidsoap, feel free to
    2011/06/15 16:28:29 [main:2] drop us a mail at <savonet-devl@lists.sf.net>
    2011/06/15 16:28:29 [main:2] or to join the #savonet IRC channel on Freenode.
    2011/06/15 16:28:29 [main:2] 
    2011/06/15 16:28:29 [main:2] Please send any bug report or feature request
    2011/06/15 16:28:29 [main:2] using our trac <http://savonet.rastageeks.org>.
    2011/06/15 16:28:29 [main:2] 
    2011/06/15 16:28:29 [main:2] We hope you enjoy this snapshot build of Liquidsoap!
    2011/06/15 16:28:29 [main:2] 
    2011/06/15 16:28:29 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master.
    2011/06/15 16:28:29 [frame:3] Frame size must be a multiple of 1764 ticks = 1764 audio samples = 1 video samples.
    2011/06/15 16:28:29 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio samples = 1764 ticks.
    2011/06/15 16:28:29 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video samples = 1764 ticks.
    2011/06/15 16:28:29 [threads:3] Created thread "generic queue #1".
    2011/06/15 16:28:29 [test(dot)ogg:3] Connecting mount test.ogg for source@localhost...
    2011/06/15 16:28:29 [test(dot)ogg:2] Connection failed: 401, Authentication Required (HTTP/1.0)!
    2011/06/15 16:28:29 [clock.wallclock_main:2] Error when starting output test(dot)ogg: Tutils.Exit!
    init: exception encountered during main phase:
      Tutils.Exit
    exception: Tutils.Exit
    Raised at file "scanf.ml", line 220, characters 28-39
    Called from file "scanf.ml", line 135, characters 12-31
    2011/06/15 16:28:29 [main:3] Shutdown started!
    2011/06/15 16:28:29 [main:3] Waiting for threads to terminate...
    2011/06/15 16:28:29 [main:3] Cleaning downloaded files...
    2011/06/15 16:28:29 >>> LOG END
    
  • This line

    2011/06/15 16:28:29 [test(dot)ogg:2] Connection failed: 401, Authentication Required (HTTP/1.0)!


    indicates that icecast passwords are not the default ones. Did you change these by any chance?
    Airtime Pro Hosting: http://airtime.pro
  • When I first installed airtime and icecast I changed the default passwords to my own and things worked fine. Since upgrading to 1.8.2-RC5 and later I haven't been able to connect to Icecast. I have also imported a database backup from the production server, would this affect anything? I tried changing passwords to the production server password and I get the same error.

    Do I need to do a complete reinstall of airtime/icecast or is there something else I can try?

    thanks

    James
  • Make sure that the passwords in

    /etc/icecast2/icecast.xml

    and

    /etc/airtime/liquidsoap.cfg match up.

    As for the test I gave you before try modifying it like so:

    ./liquidsoap 'output.icecast(%vorbis, mount="test.ogg", password = YOUR_PASS_HERE, sine())'


    until it works.
    Airtime Pro Hosting: http://airtime.pro
  • Ok I ran the test but got this error:

    At line 1, char 60: the variable hackme is used
    but was not previously defined.


    EDIT: password needs to be in "quotations"

    I'll check this fully when I get home

    James
  • Try putting enclosing the password in double-quotes

    ./liquidsoap 'output.icecast(%vorbis, mount="test.ogg", password = "hackme", sine())'

    Airtime Pro Hosting: http://airtime.pro
  • I'm having a mountpoint issue as well. Airtime shows running content, but not seeing a mountpoint or the [On Air] indicator in Airtime.

    IceCast Server
    http://72.22.90.131:8000/

    Airtime:
    http://72.22.90.131



    root@grantpotter:/home/grantpotter# sudo airtime-check-system
    PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on line 0
    PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
    CPU = Intel(R) Xeon(R) CPU E5520 @ 2.27GHz
    Total RAM = 1048576 kB
    Free RAM = 175816 kB
    OS = Ubuntu 10.04 LTS Intel 80386
    AIRTIME_CONFIG_FILES = OK
    POSTGRESQL_DATABASE = OK
    PYTHON_KOMBU_VERSION = 1.1.6
    PYTHON_POSTER_VERSION = 0.8.1
    RABBITMQ_SERVER = OK
    AIRTIME_VERSION_URL = http://localhost:80/api/version/api_key/%%api_key%%
    APACHE_CONFIGURED = YES
    AIRTIME_VERSION = 1.8.2
    PLAYOUT_ENGINE_PROCESS_ID = 14207
    PLAYOUT_ENGINE_RUNNING_SECONDS = 610
    LIQUIDSOAP_PROCESS_ID = 14208
    LIQUIDSOAP_RUNNING_SECONDS = 610
    ICECAST_PROCESS_ID = 13813

    -- System setup looks OK!
  • Ok, so the test command works. I can see the mount point at the Icecast server and get the following output from the command:

    james@james-desktop:/usr/lib/airtime/pypo/bin/liquidsoap$ ./liquidsoap 'output.icecast(%vorbis, mount="test.ogg", password ="hackme", sine())'
    2011/06/16 00:38:07 >>> LOG START
    2011/06/16 00:38:05 [protocols.external:3] Didn't find "ufetch".
    2011/06/16 00:38:05 [protocols.external:3] Found "/usr/bin/wget".
    2011/06/16 00:38:07 [main:3] Liquidsoap 1.0.0-beta+svn (default@e712df4d96c0:20110502:175204)
    2011/06/16 00:38:07 [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.1 vorbis=0.5.1 mad=0.4.0 flac=0.1.0 flac.ogg=0.1.0 lame=0.2.4 alsa=0.2.1 samplerate=0.1.1 taglib=0.1.4 camomile=0.7.1 portaudio=@VERSION ladspa=0.1.2
    2011/06/16 00:38:07 [main:2] 
    2011/06/16 00:38:07 [main:2] DISCLAIMER: This version of Liquidsoap has been
    2011/06/16 00:38:07 [main:2] compiled from a snapshot of the development code.
    2011/06/16 00:38:07 [main:2] As such, it should not be used in production
    2011/06/16 00:38:07 [main:2] unless you know what you are doing!
    2011/06/16 00:38:07 [main:2] 
    2011/06/16 00:38:07 [main:2] We are, however, very interested in any feedback
    2011/06/16 00:38:07 [main:2] about our development code and committed to fix
    2011/06/16 00:38:07 [main:2] issues as soon as possible.
    2011/06/16 00:38:07 [main:2] 
    2011/06/16 00:38:07 [main:2] If you are interested in collaborating to
    2011/06/16 00:38:07 [main:2] the development of Liquidsoap, feel free to
    2011/06/16 00:38:07 [main:2] drop us a mail at <savonet-devl@lists.sf.net>
    2011/06/16 00:38:07 [main:2] or to join the #savonet IRC channel on Freenode.
    2011/06/16 00:38:07 [main:2] 
    2011/06/16 00:38:07 [main:2] Please send any bug report or feature request
    2011/06/16 00:38:07 [main:2] using our trac <http://savonet.rastageeks.org>.
    2011/06/16 00:38:07 [main:2] 
    2011/06/16 00:38:07 [main:2] We hope you enjoy this snapshot build of Liquidsoap!
    2011/06/16 00:38:07 [main:2] 
    2011/06/16 00:38:07 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master.
    2011/06/16 00:38:07 [frame:3] Frame size must be a multiple of 1764 ticks = 1764 audio samples = 1 video samples.
    2011/06/16 00:38:07 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio samples = 1764 ticks.
    2011/06/16 00:38:07 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video samples = 1764 ticks.
    2011/06/16 00:38:07 [threads:3] Created thread "generic queue #1".
    2011/06/16 00:38:07 [test(dot)ogg:3] Connecting mount test.ogg for source@localhost...
    2011/06/16 00:38:07 [test(dot)ogg:3] Connection setup was successful.
    2011/06/16 00:38:07 [threads:3] Created thread "wallclock_main" (1 total).
    2011/06/16 00:38:07 [clock.wallclock_main:3] Streaming loop starts, synchronized with wallclock.


    I just scheduled a new show which plays back ok through the soundcard, but still doesn't show up in Icecast.

    I also found another liquidsoap.cfg file in /usr/bin/airtime/pypo/bin/scripts so I edited that to have the same password too, but nothing's happening...
  • Ok it seems my issue was just a space in the mount point name. Changing that to an underscore means I get a stream in Icecast!