Sometimes server doesn't broadcast. Why?
  • hi friends,
    for me "Airtime" is running on Linux Ubuntu server ver.11.10.
    Sometimes If I set playlist, Airtime to run that playlist (on right time), but "ON AIR" is not lighting.
    Check to "System - Stream settings" but message:
    Connected to the streaming server
    is a green, it seems that all right. But it is not. No sound is broadcasting, although program is running in Airtime.

    What may be wrong? What I have to check on server (which services, processes, ...)?
  • 13 Comments sorted by
  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    Hi, Fred,

    You can execute:
    telnet localhost 1234
    then:
    queue.queue

    to see if there is anything in the queue when it's ON AIR.

    If there is something like:
    queue.queue
    0 1 2
    then it means your contents are playing now, if not, then we need check pypo.log to see what happens.
    Cloud Radio -> http://airtime.pro
  • Hi Fred,

    What version of airtime are you using? We had a bug in 2.1 that will cause playout to be interrupted. If you are not on 2.1.1, please try that version.

    Thank you.
  • hi Cliff,
    in "Terminal" for command:
    telnet localhost 1234
    [Enter]
    result is:
    Trying 127.0.0.1...
    Connected to localhost.
    and then I type:
    queue.queue
    [Enter]
    and result is nothing:

    END

    hi James,
    I have 2.0.2 version of Airtime.

    Some any idea?
    Which services/processes must be run?
  • I tried restart RabbitMQ server too:

    me@server:~$ sudo /etc/init.d/rabbitmq-server restart
    [Enter]
    Restarting rabbitmq-server: SUCCESS
    rabbitmq-server

    it seems OK, but result is the same - "ON AIR" (in Airtime) is not red although radio program is running.

  • Hi Fred,

    Are you able to listen to the actual stream when the "ON AIR" light is off?
    I know that there was a bug in 2.0.2 which could interrupt the streaming in some cases and we fixed this issue on the latest version of airtime.
    Is upgrading to 2.1.1 a possible option for you?

    Thank you.
  • hi James,
    no, it's not able to listen actual stream when "ON AIR" light is off. No sound.
    If not exist any other solution I must upgrade to 2.1.1 version.

    PS: how is upgrading process? Is it a complicated?
  • Hi Fred,

    Upgrade process is just same as installing new airtime. It will detect if there is previous version of airtime or not. If there is, it will perform upgrade. I highly recommend you to upgrade to 2.1.1 as it contains our fixes as well.

    Thank you.
  • Hi James,
    I upgraded Airtime to (latest) version 2.1.2, today. But it is earthquake.
    Page with Airtime is totaly empty (white, without some HTML code). I don't know if Airtime is running or not.
    There is "ïnstall_log.txt" file:

    ----------------------------------------------------
     1. Install Packages
    ----------------------------------------------------
    Ign http://webmin.mirror.somersettechsolutions.co.uk sarge InRelease
    Ign http://extras.ubuntu.com oneiric InRelease
    Ign http://security.ubuntu.com oneiric-security InRelease
    Ign http://archive.canonical.com oneiric InRelease
    Get:1 http://webmin.mirror.somersettechsolutions.co.uk sarge Release.gpg [189 B]
    Hit http://extras.ubuntu.com oneiric Release.gpg
    Hit http://archive.canonical.com oneiric Release.gpg
    Hit http://webmin.mirror.somersettechsolutions.co.uk sarge Release
    Ign http://us.archive.ubuntu.com oneiric InRelease
    ...
    Hit http://us.archive.ubuntu.com oneiric-updates/multiverse Translation-en
    Hit http://us.archive.ubuntu.com oneiric-updates/restricted Translation-en
    Hit http://us.archive.ubuntu.com oneiric-updates/universe Translation-en
    Hit http://us.archive.ubuntu.com oneiric-backports/main Translation-en
    Hit http://us.archive.ubuntu.com oneiric-backports/multiverse Translation-en
    Hit http://us.archive.ubuntu.com oneiric-backports/restricted Translation-en
    Hit http://us.archive.ubuntu.com oneiric-backports/universe Translation-en
    Fetched 12.8 MB in 40s (313 kB/s)
    Reading package lists...
    W: GPG error: http://webmin.mirror.somersettechsolutions.co.uk sarge Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D97A3AE911F63C51
    W: GPG error: http://packages.medibuntu.org oneiric InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2EBC26B60C5A2783
    W: GPG error: http://download.webmin.com sarge Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D97A3AE911F63C51
    Reading package lists...
    Building dependency tree...
    Reading state information...
    libesd0 is already the newest version.
    libportaudio2 is already the newest version.
    libsamplerate0 is already the newest version.
    lsb-release is already the newest version.
    lsof is already the newest version.
    patch is already the newest version.
    python is already the newest version.
    rabbitmq-server is already the newest version.
    tar is already the newest version.
    vorbis-tools is already the newest version.
    ecasound is already the newest version.
    libao-ocaml is already the newest version.
    libcamomile-ocaml-data is already the newest version.
    libmad-ocaml is already the newest version.
    libsoundtouch-ocaml is already the newest version.
    libtaglib-ocaml is already the newest version.
    monit is already the newest version.
    mpg123 is already the newest version.
    multitail is already the newest version.
    odbc-postgresql is already the newest version.
    python-virtualenv is already the newest version.
    apache2 is already the newest version.
    curl is already the newest version.
    gzip is already the newest version.
    libapache2-mod-php5 is already the newest version.
    libpulse0 is already the newest version.
    php-pear is already the newest version.
    php5-curl is already the newest version.
    php5-gd is already the newest version.
    php5-pgsql is already the newest version.
    postgresql is already the newest version.
    sudo is already the newest version.
    The following packages were automatically installed and are no longer required:
      libstlport4.6ldbl libcolamd2.7.1 lp-solve libraptor2-0 librdf0 libhyphen0
      libwpg-0.2-2 librasqal3 uno-libs3 libmythes-1.2-0 ttf-opensymbol libtextcat0
      libwps-0.2-2 ure libtextcat-data libyajl1 libmhash2 xfonts-mathml
      libwpd-0.9-9 libneon27-gnutls
    Use 'apt-get autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
    Reading package lists...
    Building dependency tree...
    Reading state information...
    icecast2 is already the newest version.
    lame is already the newest version.
    libmp3lame-dev is already the newest version.
    The following packages were automatically installed and are no longer required:
      libstlport4.6ldbl libcolamd2.7.1 lp-solve libraptor2-0 librdf0 libhyphen0
      libwpg-0.2-2 librasqal3 uno-libs3 libmythes-1.2-0 ttf-opensymbol libtextcat0
      libwps-0.2-2 ure libtextcat-data libyajl1 libmhash2 xfonts-mathml
      libwpd-0.9-9 libneon27-gnutls
    Use 'apt-get autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
    Reading package lists...
    Building dependency tree...
    Reading state information...
    libzend-framework-php is already the newest version.
    The following packages were automatically installed and are no longer required:
      libstlport4.6ldbl libcolamd2.7.1 lp-solve libraptor2-0 librdf0 libhyphen0
      libwpg-0.2-2 librasqal3 uno-libs3 libmythes-1.2-0 ttf-opensymbol libtextcat0
      libwps-0.2-2 ure libtextcat-data libyajl1 libmhash2 xfonts-mathml
      libwpd-0.9-9 libneon27-gnutls
    Use 'apt-get autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
    ----------------------------------------------------
    2. Apache Config File
    ----------------------------------------------------
    Apache config for Airtime already exists...
    ----------------------------------------------------
    3. Enable Icecast
    ----------------------------------------------------
    Starting icecast2:
    ----------------------------------------------------
    4. Enable Monit
    ----------------------------------------------------
    ----------------------------------------------------
    5. Run Airtime Install
    ----------------------------------------------------
    * Making sure /etc/default/locale is set properly
    LANG="en_US.UTF-8"
    * Checking for existing Airtime installation...
     * Previous version of Airtime already installed..will perform upgrade
    * Temporarily stopping any previous running services

    ******************************** Install Begin *********************************
    Ensuring python-virtualenv version > 1.4.8...Success!

    *** Creating Virtualenv for Airtime ***
    Already using interpreter /usr/bin/python
    New python executable in /usr/lib/airtime/airtime_virtualenv/bin/python
    Installing distribute....................................................................................................................................................................................done.
    Installing pip...............done.

    *** Installing Python Libraries ***
    Unpacking /home/chovan/Downloads/airtime-2.1.2/python_apps/python-virtualenv/airtime_virtual_env.pybundle
    Downloading/unpacking anyjson
      Running setup.py egg_info for package anyjson
       
    Downloading/unpacking pyinotify
      Running setup.py egg_info for package pyinotify
       
    Downloading/unpacking amqplib
      Running setup.py egg_info for package amqplib
       
    Downloading/unpacking poster
      Running setup.py egg_info for package poster
       
    Downloading/unpacking kombu
      Running setup.py egg_info for package kombu
       
    Downloading/unpacking mutagen
      Running setup.py egg_info for package mutagen
       
    Downloading/unpacking configobj
      Running setup.py egg_info for package configobj
       
    Downloading/unpacking pytz
      Running setup.py egg_info for package pytz
       
        warning: no files found matching '*.pot' under directory 'pytz'
        warning: no previously-included files found matching 'test_zdump.py'
    Installing collected packages: anyjson, pyinotify, amqplib, poster, kombu, mutagen, configobj, pytz
      Running setup.py install for anyjson
       
      Running setup.py install for pyinotify
       
      Running setup.py install for amqplib
       
      Running setup.py install for poster
       
      Running setup.py install for kombu
       
      Running setup.py install for mutagen
        changing mode of build/scripts-2.7/mid3v2 from 644 to 755
        changing mode of build/scripts-2.7/mutagen-inspect from 644 to 755
        changing mode of build/scripts-2.7/mid3iconv from 644 to 755
        changing mode of build/scripts-2.7/mutagen-pony from 644 to 755
        changing mode of build/scripts-2.7/moggsplit from 644 to 755
       
        changing mode of /usr/lib/airtime/airtime_virtualenv/bin/mid3v2 to 755
        changing mode of /usr/lib/airtime/airtime_virtualenv/bin/mutagen-inspect to 755
        changing mode of /usr/lib/airtime/airtime_virtualenv/bin/mid3iconv to 755
        changing mode of /usr/lib/airtime/airtime_virtualenv/bin/mutagen-pony to 755
        changing mode of /usr/lib/airtime/airtime_virtualenv/bin/moggsplit to 755
      Running setup.py install for configobj
       
      Running setup.py install for pytz
       
        warning: no files found matching '*.pot' under directory 'pytz'
        warning: no previously-included files found matching 'test_zdump.py'
    Successfully installed anyjson pyinotify amqplib poster kombu mutagen configobj pytz
    Cleaning up...

    *** Patching Python Libraries ***
     * Patching virtualenv libraries in /usr/lib/airtime/airtime_virtualenv/lib/python2.7

       ---Applying Patches for mutagen---
    patching file site-packages/mutagen/mp3.py
    Hunk #1 succeeded at 205 (offset -4 lines).
    patching file site-packages/mutagen/mp3.py
    Hunk #2 succeeded at 169 (offset -4 lines).
    * Checking for user pypo
    User already exists.
    ******************************** Upgrade Begin *********************************
    * Backing up current database to /home/chovan/airtime_2.1.2.sql
     * Success
    * Modifying User Pypo
    * Generating Monit password
    * Updating Monit Conf Files
    * Updating configFiles
    Backing up /etc/airtime/airtime.conf to /etc/airtime/airtime.conf20120618060703-2.1.0.bak
    Backing up /etc/airtime/pypo.cfg to /etc/airtime/pypo.cfg20120618060703-2.1.0.bak
    Backing up /etc/airtime/liquidsoap.cfg to /etc/airtime/liquidsoap.cfg20120618060703-2.1.0.bak
    Backing up /etc/airtime/media-monitor.cfg to /etc/airtime/media-monitor.cfg20120618060703-2.1.0.bak
    Backing up /etc/airtime/api_client.cfg to /etc/airtime/api_client.cfg20120618060703-2.1.0.bak
    * Updating Database
     * Complete
     * Updating /srv/airtime owner to root:www-data
     * Updating /srv/airtime permissions to 02755
    * Updating Database
    psql: could not connect to server: Connection refused
        Is the server running on host "217.75.69.128" and accepting
        TCP/IP connections on port 5432?
     * Complete
    * Updating Database
    psql: could not connect to server: Connection refused
        Is the server running on host "217.75.69.128" and accepting
        TCP/IP connections on port 5432?
     * Complete
    ******************************* Upgrade Complete *******************************
    * Creating /etc/airtime
    * Creating /etc/monit/conf.d/monit-airtime-generic.cfg
    * Creating /etc/cron.d/airtime-crons
    * Creating /usr/lib/airtime
    * Creating symbolic links in /usr/bin
    * Creating /var/log/airtime
    * Creating /usr/share/airtime
    * Creating /var/log/airtime
    * Creating /var/tmp/airtime
    Starting Airtime Media Monitor: Done.
    * Waiting for media-monitor processes to start...
    * Detecting OS: ...  Found Ubuntu 11.10 (oneiric) on i386 architecture
     * Installing Liquidsoap binary
    * Clearing previous pypo cache
    * Waiting for pypo processes to start...
     * Stopping daemon monitor monit
       ...done.
     * Starting daemon monitor monit
       ...done.

    *** Verifying your system environment, running airtime-check-system ***
    AIRTIME_STATUS_URL             = http://localhost:80/api/status/format/json/api_key/%%api_key%%
    AIRTIME_SERVER_RESPONDING      = OK
    KERNEL_VERSION                 = UNKNOWN
    MACHINE_ARCHITECTURE           = UNKNOWN
    TOTAL_MEMORY_MBYTES            = UNKNOWN
    TOTAL_SWAP_MBYTES              = UNKNOWN
    AIRTIME_VERSION                = UNKNOWN
    OS                             = Ubuntu 11.10 i686
    CPU                            = Intel(R) Xeon(TM) CPU 3.20GHz
    WEB_SERVER                     = A
    PLAYOUT_ENGINE_PROCESS_ID      = FAILED
    PLAYOUT_ENGINE_RUNNING_SECONDS = 0
    PLAYOUT_ENGINE_MEM_PERC        = 0%
    PLAYOUT_ENGINE_CPU_PERC        = 0%
    LIQUIDSOAP_PROCESS_ID          = FAILED
    LIQUIDSOAP_RUNNING_SECONDS     = 0
    LIQUIDSOAP_MEM_PERC            = 0%
    LIQUIDSOAP_CPU_PERC            = 0%
    MEDIA_MONITOR_PROCESS_ID       = FAILED
    MEDIA_MONITOR_RUNNING_SECONDS  = 0
    MEDIA_MONITOR_MEM_PERC         = 0%
    MEDIA_MONITOR_CPU_PERC         = 0%
    RABBITMQ_PROCESS_ID            = FAILED
    RABBITMQ_RUNNING_SECONDS       = 0
    RABBITMQ_MEM_PERC              = 0%
    RABBITMQ_CPU_PERC              = 0%

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

    -- Please visit http://wiki.sourcefabric.org/x/HABQ

    please some help
  • Hi Fred,

    It looks like your apache vhost file is reset after upgrade. Can you please look into that?
    Thank you.
  • James,
    Apache vhost file (/etc/apache2/sites-available/airtime) is the same like before:

    <VirtualHost *:80>
       ServerAdmin foo@bar.org
       DocumentRoot /usr/share/airtime/public
       ServerName Airtime.Ganymedes
       php_admin_value upload_tmp_dir /tmp

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


    and file /etc/apache2/sites-available/deafult is without changes also:

    <VirtualHost *:80>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www
        <Directory />
            Options FollowSymLinks
            AllowOverride None
        </Directory>
        <Directory /var/www/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride None
            Order allow,deny
            allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
            AllowOverride None
            Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
            Order allow,deny
            Allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/access.log combined

        Alias /doc/ "/usr/share/doc/"
        <Directory "/usr/share/doc/">
            Options Indexes MultiViews FollowSymLinks
            AllowOverride None
            Order deny,allow
            Deny from all
            Allow from 127.0.0.0/255.0.0.0 ::1/128
        </Directory>

    </VirtualHost>


    some other tips?
  • Hi Fred,

    Are they both enabled? What's under /etc/apache2/site-enabled?
  • under /etc/apache2/site-enabled is only "airtime":
    <VirtualHost *:80>

       ServerAdmin foo@bar.org

       DocumentRoot /usr/share/airtime/public

       ServerName Airtime.Ganymedes

       php_admin_value upload_tmp_dir /tmp



      <Directory /usr/share/airtime/public>

          DirectoryIndex index.php

          AllowOverride all

          Order allow,deny

          Allow from all

      </Directory>

    </VirtualHost>