Airtime not properly installed
  • Hi,
    I tried to install Airtime dont know if every this went all right, but when i checked it at command line it showed this

    rakesh@rakesh-Lenovo-G550:~$ sudo airtime-check-system
    CPU = Pentium(R) Dual-Core CPU T4400 @ 2.20GHz
    Total RAM = 3056212 kB
    Free RAM = 569020 kB
    OS = Ubuntu 11.04 Intel 80386
    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 = NO
    AIRTIME_VERSION = Could not contact server
    PLAYOUT_ENGINE_PROCESS_ID = 11127
    PLAYOUT_ENGINE_RUNNING_SECONDS = 1559
    LIQUIDSOAP_PROCESS_ID =
    LIQUIDSOAP_RUNNING_SECONDS = 0
    -- WARNING! It looks like the Liquidsoap engine is continually restarting.
    -- 2011/10/15 02:32:09 [clock.wallclock_main:3] Streaming loop starts, synchronized with wallclock.
    -- 2011/10/15 02:32:09 [fallback_4796:3] Switch to src_4794.
    -- 2011/10/15 02:32:09 [src_4794:3] Inserting missing metadata.
    -- 2011/10/15 02:58:02 [main:3] Shutdown started!
    -- 2011/10/15 02:58:02 [main:3] Waiting for threads to terminate...
    -- 2011/10/15 02:58:02 [airtime(dot)ogg:3] Closing connection...
    -- 2011/10/15 02:58:02 [clock.wallclock_main:3] Streaming loop stopped.
    -- 2011/10/15 02:58:02 [threads:3] Thread "wallclock_main" terminated (0 remaining).
    -- 2011/10/15 02:58:02 [main:3] Cleaning downloaded files...
    -- 2011/10/15 02:58:02 >>> LOG END
    MEDIA_MONITOR_PROCESS_ID = 10806
    MEDIA_MONITOR_RUNNING_SECONDS = 3113
    SHOW_RECORDER_PROCESS_ID = 10774
    SHOW_RECORDER_RUNNING_SECONDS = 3113
    ICECAST_PROCESS_ID = 10510

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


    Can you please advise
  • 25 Comments sorted by
  • Hi Rakesh,

    What do you see when you goto http://localhost
    Airtime Pro Hosting: http://airtime.pro
  • Hi,
    I see welcome to Xampp for linux 1.7.7
  • It looks like you don't have apache configured properly. Please do

    ls -l /etc/apache2/sites-available


    and for every file you see in there (other than airtime) type

    sudo a2dissite <filename>


    Then restart apache by typing

    sudo service apache2 restart


    Airtime Pro Hosting: http://airtime.pro
  • Ok i shall try this but i must tell you that i am on desktop and it is just xampp for linux that i have installed for local testing environment for developing. so still you would like me to do what you suggested or i am at a wrong platform all together
  • anyways i did what you suggested and this is the message that i got
    rakesh@rakesh-Lenovo-G550[/email]:~$ ls -l /etc/apache2/sites-available
    total 16
    -rw-r--r-- 1 root root 297 2011-10-15 02:31 airtime
    -rw-r--r-- 1 root root 950 2011-09-01 14:55 default
    -rw-r--r-- 1 root root 7469 2011-09-01 14:55 default-ssl
    rakesh@rakesh-Lenovo-G550[/email]:~$ sudo a2dissite <default>
    bash: syntax error near unexpected token `newline'
    rakesh@rakesh-Lenovo-G550[/email]:~$ sudo a2dissite <default-ssl>
    bash: syntax error near unexpected token `newline'

    As i asked could it that my machine is not a server but a desktop with local server installed could that be the problem. or it is just that i have not installed it correctly?
  • Make sure you remove the < and >
    Airtime Pro Hosting: http://airtime.pro
  • ok i did that and now i recieve this
    akesh@rakesh-Lenovo-G550:~$ sudo a2dissite default
    [sudo] password for rakesh:
    Site default already disabled
    rakesh@rakesh-Lenovo-G550:~$ sudo a2dissite default-ssl
    Site default-ssl already disabled
    rakesh@rakesh-Lenovo-G550:~$
  • rakesh@rakesh-Lenovo-G550:~$ sudo service apache2 restart
    [sudo] password for rakesh:
    * Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
    apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
    (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
    no listening sockets available, shutting down
    Unable to open logs
    Action 'start' failed.
    The Apache error log may have more information.
    [fail]
  • do u think it will be a good idea to unistall everything and start fresh?
  • Hi,
    Thanks for your guidance, i restarted the machine and now if i type localhost i see airtime login. I added media and schedule the calendar and the media started playing at the scheduled time but, first the sound is not coming, i can see the song playing but no soundand secondly ON AIR button is still greyed out.
    settings are
    ###########################################
    # Liquidsoap config file #
    ###########################################

    ###########################################
    # Output settings #
    ###########################################
    output_sound_device = True
    output_icecast_vorbis = true
    output_icecast_mp3 = True
    output_shoutcast = True

    #output_bitrate = 128
    #output_samplerate = 44100
    #output_stereo = true

    ###########################################
    # Logging settings #
    ###########################################
    log_file = "/var/log/airtime/pypo-liquidsoap/<script>.log"
    #log_level = 3

    ###########################################
    # Icecast Stream settings #
    ###########################################
    icecast_host = "127.0.0.1"
    icecast_port = 8000
    icecast_pass = "hackme"

    # Icecast mountpoint names
    mount_point_mp3 = "airtime.mp3"
    mount_point_vorbis = "airtime.ogg"

    # Webstream metadata settings
    icecast_url = "http://localhost"
    icecast_description = "Airtime Radio!"
    icecast_genre = "genre"


  • What is the status of

    sudo airtime-check-system


    now?
    Airtime Pro Hosting: http://airtime.pro
  • Now the status is
    rakesh@rakesh-Lenovo-G550:~$ sudo airtime-check-system
    [sudo] password for rakesh:
    CPU = Pentium(R) Dual-Core CPU T4400 @ 2.20GHz
    Total RAM = 3056212 kB
    Free RAM = 1243900 kB
    OS = Ubuntu 11.04 Intel 80386
    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.4
    PLAYOUT_ENGINE_PROCESS_ID = 1284
    PLAYOUT_ENGINE_RUNNING_SECONDS = 11425
    LIQUIDSOAP_PROCESS_ID =
    LIQUIDSOAP_RUNNING_SECONDS = 0
    -- WARNING! It looks like the Liquidsoap engine is continually restarting.
    -- 2011/10/15 02:32:09 [clock.wallclock_main:3] Streaming loop starts, synchronized with wallclock.
    -- 2011/10/15 02:32:09 [fallback_4796:3] Switch to src_4794.
    -- 2011/10/15 02:32:09 [src_4794:3] Inserting missing metadata.
    -- 2011/10/15 02:58:02 [main:3] Shutdown started!
    -- 2011/10/15 02:58:02 [main:3] Waiting for threads to terminate...
    -- 2011/10/15 02:58:02 [airtime(dot)ogg:3] Closing connection...
    -- 2011/10/15 02:58:02 [clock.wallclock_main:3] Streaming loop stopped.
    -- 2011/10/15 02:58:02 [threads:3] Thread "wallclock_main" terminated (0 remaining).
    -- 2011/10/15 02:58:02 [main:3] Cleaning downloaded files...
    -- 2011/10/15 02:58:02 >>> LOG END
    MEDIA_MONITOR_PROCESS_ID = 1270
    MEDIA_MONITOR_RUNNING_SECONDS = 11425
    SHOW_RECORDER_PROCESS_ID = 1295
    SHOW_RECORDER_RUNNING_SECONDS = 11424
    ICECAST_PROCESS_ID = 1352

    -- There appears to be problems with your setup. Please visit
    -- http://wiki.sourcefabric.org/x/HABQ for troubleshooting info.
  • What happens when you type

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



    from the terminal
    Airtime Pro Hosting: http://airtime.pro
  • status message is
    rakesh@rakesh-Lenovo-G550:~$ /usr/lib/airtime/pypo/bin/liquidsoap_bin/liquidsoap 'output.icecast(%vorbis, mount="test.ogg", sine())'
    2011/10/15 14:25:50 >>> LOG START
    2011/10/15 14:25:50 [protocols.external:3] Didn't find "ufetch".
    2011/10/15 14:25:50 [protocols.external:3] Found "/usr/bin/wget".
    2011/10/15 14:25:50 [main:3] Liquidsoap 1.0.0-beta2
    2011/10/15 14:25:50 [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 ao=0.2.0 samplerate=0.1.1 taglib=0.1.4 camomile=0.7.1 portaudio=@VERSION ladspa=0.1.2
    2011/10/15 14:25:50 [dynamic.loader:2] Could not load plugins in directory /usr/local/lib/liquidsoap/1.0.0-beta2/plugins.
    2011/10/15 14:25:50 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master.
    2011/10/15 14:25:50 [frame:3] Frame size must be a multiple of 1764 ticks = 1764 audio samples = 1 video samples.
    2011/10/15 14:25:50 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio samples = 1764 ticks.
    2011/10/15 14:25:50 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video samples = 1764 ticks.
    2011/10/15 14:25:50 [threads:3] Created thread "generic queue #1".
    2011/10/15 14:25:50 [test(dot)ogg:3] Connecting mount test.ogg for source@localhost...
    2011/10/15 14:25:50 [test(dot)ogg:3] Connection setup was successful.
    2011/10/15 14:25:50 [threads:3] Created thread "wallclock_main" (1 total).
    2011/10/15 14:25:50 [clock.wallclock_main:3] Streaming loop starts, synchronized with wallclock.


  • same status song is playing but no sound and also ON AIR button greyed out
  • Martin, I thought the process of /usr/lib/airtime/pypo/bin/liquidsoap_bin/liquidsoap 'output.icecast(%vorbis, mount="test.ogg", sine())' is over but if i try to close the terminal window now, it says process is on, how long does it take for this process to complete?
  • Its very strange because it seems to start ok when you run it from the command-line, but not when your system runs it in the background. Is your Ubuntu OS the desktop, server or netbook edition?

    Try running this command from the terminal

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


    Try leaving it running as long as possible. I'm curious what the error messages are when it shutsdown.

    Airtime Pro Hosting: http://airtime.pro
  • My Ubuntu is OS the Desktop, and i ran the command that you suggested and the result is
    rakesh@rakesh-Lenovo-G550:~$ sudo -u pypo /usr/lib/airtime/pypo/bin/airtime-liquidsoap
    [sudo] password for rakesh:
    At /etc/airtime/liquidsoap.cfg, line 8 char 27 - line 9 char 0:
    the variable True used here has not been previously defined.

    I had to forcibly cancel the previous operation to run this command
  • Hi Martin,

    I finally got us to upgrade 1.8.2 to 1.9.4 and I'm running into the same problem as above. Here's the system status:

    Quote:
    ep@tower2[/email]:~$ airtime-check-system
    CPU = AMD Athlon(tm) 64 Processor 3000+
    Total RAM = 1996996 kB
    Free RAM = 74312 kB
    OS = Ubuntu 10.04.3 LTS Intel 80386
    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.4
    PLAYOUT_ENGINE_PROCESS_ID = 3809
    PLAYOUT_ENGINE_RUNNING_SECONDS = 12010
    LIQUIDSOAP_PROCESS_ID =
    LIQUIDSOAP_RUNNING_SECONDS = 0
    -- WARNING! It looks like the Liquidsoap engine is continually restarting.
    -- 2011/10/16 20:56:39 [alsa_out(default):3] Samplefreq=44100Hz, Bufsize=15360B, Frame=4B, Periods=17
    -- 2011/10/16 20:56:39 [threads:1] Thread "alsa_out(default)" aborts with exception Alsa error: Invalid argument!
    -- 2011/10/16 20:56:39 [threads:3] Raised by primitive operation at file "", line 0, characters 0-0
    -- 2011/10/16 20:56:39 [main:3] Shutdown started!
    -- 2011/10/16 20:56:39 [main:3] Waiting for threads to terminate...
    -- 2011/10/16 20:56:39 [stream:3] Closing connection...
    -- 2011/10/16 20:56:39 [clock.wallclock_alsa:3] Streaming loop stopped.
    -- 2011/10/16 20:56:39 [threads:3] Thread "wallclock_alsa" terminated (0 remaining).
    -- 2011/10/16 20:56:39 [main:3] Cleaning downloaded files...
    -- 2011/10/16 20:56:39 >>> LOG END
    MEDIA_MONITOR_PROCESS_ID = 1210
    MEDIA_MONITOR_RUNNING_SECONDS = 12818
    SHOW_RECORDER_PROCESS_ID = 1237
    SHOW_RECORDER_RUNNING_SECONDS = 12818
    ICECAST_PROCESS_ID = 1246

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


    We actually access Airtime using port 100 (http://tower.wgot.org:1000/). Our virtual host is configured for both :80 and :1000:

    Quote:
    <VirtualHost *:1000>
    ServerAdmin technical@wgot.org[/email]
    ServerName tower.wgot.org
    DocumentRoot /usr/share/airtime/public

    Alias /airtime /usr/share/airtime/public

    SetEnv APPLICATION_ENV "development"

    <Directory /usr/share/airtime/public>
    DirectoryIndex index.php FollowSymLinks
    AllowOverride all
    Order allow,deny
    Allow from all
    </Directory>
    </VirtualHost>

    <VirtualHost *:80>
    ServerAdmin technical@wgot.org[/email]
    ServerName tower.wgot.org
    DocumentRoot /usr/share/airtime/public

    Alias /airtime /usr/share/airtime/public

    SetEnv APPLICATION_ENV "development"

    <Directory /usr/share/airtime/public>
    DirectoryIndex index.php FollowSymLinks
    AllowOverride all
    Order allow,deny
    Allow from all
    </Directory>
    </VirtualHost>


    And, in fact, we can log in without issues; we are just not getting any audio and the "On Air" is not lighting up. As indicated by the error message, liquidsoap is not running. If I try the manual command you gave above, I get:

    Quote:
    ep@tower2[/email]:~$ /usr/lib/airtime/pypo/bin/liquidsoap_bin/liquidsoap-i386 'output.icecast(%vorbis, mount="test.ogg", sine())'
    2011/10/16 21:09:56 >>> LOG START
    2011/10/16 21:09:56 [protocols.external:3] Didn't find "ufetch".
    2011/10/16 21:09:56 [protocols.external:3] Found "/usr/bin/wget".
    2011/10/16 21:09:56 [main:3] Liquidsoap 1.0.0-beta2
    2011/10/16 21:09:56 [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/10/16 21:09:56 [dynamic.loader:2] Could not load plugins in directory /usr/local/lib/liquidsoap/1.0.0-beta2/plugins.
    2011/10/16 21:09:56 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master.
    2011/10/16 21:09:56 [frame:3] Frame size must be a multiple of 1764 ticks = 1764 audio samples = 1 video samples.
    2011/10/16 21:09:56 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio samples = 1764 ticks.
    2011/10/16 21:09:56 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video samples = 1764 ticks.
    2011/10/16 21:09:56 [threads:3] Created thread "generic queue #1".
    2011/10/16 21:09:56 [test(dot)ogg:3] Connecting mount test.ogg for source@localhost...[/email]
    2011/10/16 21:09:56 [test(dot)ogg:2] Connection failed: could not connect to host: Connection refused in connect()!
    2011/10/16 21:09:56 [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 by primitive operation at file "", line 0, characters 0-0
    2011/10/16 21:09:56 [main:3] Shutdown started!
    2011/10/16 21:09:56 [main:3] Waiting for threads to terminate...
    2011/10/16 21:09:56 [main:3] Cleaning downloaded files...
    2011/10/16 21:09:56 >>> LOG END


    If I run the other command, this is the output:

    Quote:
    ep@tower2[/email]:~$ sudo -u pypo /usr/lib/airtime/pypo/bin/airtime-liquidsoap
    2011/10/16 21:13:06 >>> LOG START
    2011/10/16 21:13:06 [protocols.external:3] Didn't find "ufetch".
    2011/10/16 21:13:06 [protocols.external:3] Found "/usr/bin/wget".
    2011/10/16 21:13:06 [main:3] Liquidsoap 1.0.0-beta2
    2011/10/16 21:13:06 [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/10/16 21:13:06 [dynamic.loader:2] Could not load plugins in directory /usr/local/lib/liquidsoap/1.0.0-beta2/plugins.
    2011/10/16 21:13:06 [lang:3] Lastfm/audioscrobbler support was not compiled.
    2011/10/16 21:13:06 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master.
    2011/10/16 21:13:06 [frame:3] Frame size must be a multiple of 1764 ticks = 1764 audio samples = 1 video samples.
    2011/10/16 21:13:06 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio samples = 1764 ticks.
    2011/10/16 21:13:06 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video samples = 1764 ticks.
    2011/10/16 21:13:06 [threads:3] Created thread "generic queue #1".
    2011/10/16 21:13:06 [threads:3] Created thread "non-blocking queue #1".
    2011/10/16 21:13:06 [threads:3] Created thread "alsa_out(default)" (1 total).
    2011/10/16 21:13:06 [stream:3] Connecting mount stream for source@localhost...[/email]
    2011/10/16 21:13:06 [stream:3] Connection setup was successful.
    2011/10/16 21:13:06 [threads:3] Created thread "wallclock_alsa" (2 total).
    2011/10/16 21:13:06 [clock.wallclock_alsa:3] Streaming loop starts, synchronized by active sources.
    2011/10/16 21:13:06 [fallback_4842:3] Switch to src_4840.
    2011/10/16 21:13:06 [src_4840:3] Inserting missing metadata.
    /usr/lib/airtime/pypo/bin/liquidsoap_scripts/notify.sh --data='0' --media-id=

    #########################################
    # *** pypo *** #
    # pypo notification gateway #
    #########################################
    NOTICE: 'media_id' command-line argument not given.
    2011/10/16 21:13:06 [alsa_out(default):3] Using ALSA 1.0.22.
    2011/10/16 21:13:06 [alsa_out(default):3] Samplefreq=44100Hz, Bufsize=15360B, Frame=4B, Periods=17
    2011/10/16 21:13:06 [threads:1] Thread "alsa_out(default)" aborts with exception Alsa error: Invalid argument!
    2011/10/16 21:13:06 [threads:3] Raised by primitive operation at file "", line 0, characters 0-0
    Thread 4 killed on uncaught exception Alsa.Invalid_argument
    2011/10/16 21:13:06 [main:3] Shutdown started!
    2011/10/16 21:13:06 [main:3] Waiting for threads to terminate...
    2011/10/16 21:13:07 [stream:3] Closing connection...
    2011/10/16 21:13:07 [clock.wallclock_alsa:3] Streaming loop stopped.
    2011/10/16 21:13:07 [threads:3] Thread "wallclock_alsa" terminated (0 remaining).
    2011/10/16 21:13:07 [main:3] Cleaning downloaded files...
    2011/10/16 21:13:07 >>> LOG END


    Other notes:

    - I installed / upgraded using apt.

    Here's the output from install logs:

    Quote:
    ep@tower2[/email]:/var/log/airtime$ sudo cat installation-errors.log
    liquidsoap: no process found
    [Sun Oct 16 17:05:56 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
    [Sun Oct 16 17:05:58 2011] [warn] NameVirtualHost *:80 has no VirtualHosts


    (I corrected the NameVirtualHost error by adding the second entry for :80 in sites-available/airtime)

    - I could never get the initial airtime install (1.6.x) nor the one we went into production with (1.8.2) to ever work with the bundled liquidsoap. I always copied over the binaries compiled from an svn branch that was suggested on another thread. In this case, I've tried both with the bundled LS and with the ones I manually built but neither has worked. Right now I'm back running with the bundled ones.

    Please let me know what else I could try. We're off-air now and are supposed to go back on tomorrow afternoon.

    Thank you.
  • Quick note, in case you're wondering, /etc/timezone is:

    Quote:
    ep@tower2:~$ cat /etc/timezone
    America/New_York


    and here's /usr/share/airtime/public/.htaccess

    Quote:
    ep@tower2:~$ cat /usr/share/airtime/public/.htaccess
    php_value post_max_size 500M
    php_value upload_max_filesize 500M
    php_value request_order "GPC"
    php_value session.gc_probability 0
    php_value date.timezone "America/New_York"
    php_value phar.readonly Off

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
    RewriteBase /

    SetEnv APPLICATION_ENV production


  • Hi,

    (sorry if this is a duplicate - my first reply this morning seems to have been lost).

    I've done a pg_dump of the database and have tarred our stor directory. Would it be safe to uninstall Airtime and try to reinstall again? Do you think I'll run into any problems re-copying stor and restoring the database?

    Thank you.
  • Hi Rakesh,

    It looks like you are using "True" instead of "true" in your /etc/airtime/liquidsoap.cfg script.

    Changing this should fix the problem.
    Airtime Pro Hosting: http://airtime.pro
  • Ed, Im looking at your problem, and will get back to you asap.
    Airtime Pro Hosting: http://airtime.pro
  • Ed,

    It looks like the problem is Liquidsoap shuts itself down when trying to output audio to your soundcard. If you need web-streaming only then disable output to the soundcard. If you need output to the soundcard, and have pulseaudio installed remove it.

    Also just out of curiousity, does the following command give you monotonous sound via your soundcard?
    /usr/lib/airtime/pypo/bin/liquidsoap_bin/liquidsoap /usr/lib/airtime/pypo/bin/liquidsoap_scripts/library/pervasives.liq 'ignore(out(sine()))'
    Airtime Pro Hosting: http://airtime.pro
  • Hi Martin,

    We need both but soundcard output is our priority at the moment. We're a Low-Power station and are working on providing streaming in the next few weeks.

    Pulseaudio is removed as are the ubuntu default sounds.

    I get an error when I run the command:

    Quote:
    ep@tower2:~$ /usr/lib/airtime/pypo/bin/liquidsoap_bin/liquidsoap /usr/lib/airtime/pypo/bin/liquidsoap_scripts/library/pervasi ves.liq 'ignore(out(sine()))'
    bt_audio_service_open: connect() failed: Connection refused (111)
    bt_audio_service_open: connect() failed: Connection refused (111)
    bt_audio_service_open: connect() failed: Connection refused (111)
    bt_audio_service_open: connect() failed: Connection refused (111)
    2011/10/18 09:34:49 >>> LOG START
    2011/10/18 09:34:49 [protocols.external:3] Didn't find "ufetch".
    2011/10/18 09:34:49 [protocols.external:3] Found "/usr/bin/wget".
    2011/10/18 09:34:49 [main:3] Liquidsoap 1.0.0-beta2
    2011/10/18 09:34:49 [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/10/18 09:34:49 [lang:3] Lastfm/audioscrobbler support was not compiled.
    2011/10/18 09:34:49 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master.
    2011/10/18 09:34:49 [frame:3] Frame size must be a multiple of 1764 ticks = 1764 audio samples = 1 video samples.
    2011/10/18 09:34:49 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio samples = 1764 ticks.
    2011/10/18 09:34:49 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video samples = 1764 ticks.
    2011/10/18 09:34:49 [threads:3] Created thread "generic queue #1".
    Expression 'snd_pcm_hw_params_set_period_size_near( self->pcm, hwParams, &framesPerHostBuffer, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1621
    Expression 'PaAlsaStreamComponent_DetermineFramesPerBuffer( &self->playback, outputParameters, framesPerUserBuffer, sampleRate, hwParamsPlayback, &accurate )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1833
    Expression 'PaAlsaStream_DetermineFramesPerBuffer( self, realSr, inParams, outParams, framesPerUserBuffer, hwParamsCapture, hwParamsPlayback, hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1876
    Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1994
    2011/10/18 09:34:49 [output(dot)portaudio:3] Unanticipated host error in open_default_stream. (ignoring)
    2011/10/18 09:34:49 [clock.wallclock_pa:2] Error when starting output output(dot)portaudio: File "tools/utils.ml", line 23, characters 46-52: Assertion failed!
    init: exception encountered during main phase:
    File "tools/utils.ml", line 23, characters 46-52: Assertion failed
    exception: File "tools/utils.ml", line 23, characters 46-52: Assertion failed
    2011/10/18 09:34:49 [main:3] Shutdown started!
    2011/10/18 09:34:49 [main:3] Waiting for threads to terminate...
    2011/10/18 09:34:49 [main:3] Cleaning downloaded files...
    2011/10/18 09:34:49 >>> LOG END