No "on air" light and no streaming
  • Vote Up0Vote Down Claudia CruzClaudia Cruz
    Posts: 67Member, Sourcefabric Team
    I have a question from the forum in Spanish, the user says:

    "I have Airtime installed on my dedicated server, everything looks good, the scheduled show is running but I can't see any light on the sign "on air" and I also have no streaming.

    could anyone explain what is going on"

    thank you!

    -Claudia
    Claudia L. Cruz
    @ccruz
  • 14 Comments sorted by
  • Hola Claudia

    I think the standard answer is to ask the user to post their pypo & pypo-liquidsoap logs.

    Alan
  • Vote Up0Vote Down Paul BaranowskiPaul Baranowski
    Posts: 389Member, Administrator, Sourcefabric Team
    The FAQ for those kinds of problems is here:
    http://wiki.sourcefabric.org/x/HABQ
  • same here on 1.8.2.

    the logs shows:
    @400000004e49d7511d4d8894 2011-08-15 22:34:47,489 ERROR - [pypofetch.py : check_matching_timezones() : line 87] - ERROR: Airtime server and pypo timezone offsets do not match. Audio playback will not start when expected!!!
    @400000004e49d7511d4d9c1c 2011-08-15 22:34:47,489 ERROR - [pypofetch.py : check_matching_timezones() : line 88] -   * Server timezone offset: +0200
    @400000004e49d7511d4da004 2011-08-15 22:34:47,489 ERROR - [pypofetch.py : check_matching_timezones() : line 89] -   * Pypo timezone offset: -0400
    @400000004e49d7511d4da7d4 2011-08-15 22:34:47,489 ERROR - [pypofetch.py : check_matching_timezones() : line 90] -   * To fix this, you need to set the 'date.timezone' value in your php.ini file and restart apache.
    @400000004e49d7511d4dabbc 2011-08-15 22:34:47,489 ERROR - [pypofetch.py : check_matching_timezones() : line 91] -   * See this page for more info (v1.7): http://wiki.sourcefabric.org/x/BQBF
    @400000004e49d7511d4db38c 2011-08-15 22:34:47,489 ERROR - [pypofetch.py : check_matching_timezones() : line 92] -   * and also the 'FAQ and Support' page underneath it.
    


    but the timezone is Europe/Rome in php.ini (note that the vps is in usa, but the radio means to be in italy)
    it seems i have to change pypo timezone, that is currently "-4" instead of "+2".

    how can i do that?
  • by the way.. even changing in php.ini the server zone to the pypo zone, still no ON AIR light and still NO SOUND.

    i really don't know what to do.

    ********
    lephio@lephio:/usr/lib/airtime/pypo/bin$ sudo airtime-check-system
    CPU = Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz
    Total RAM = 1048576 kB
    Free RAM = 418640 kB
    OS = Ubuntu 10.04.3 LTS x86-64
    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://radio.lephio.org:80/api/version/api_key/%%api_key%%
    APACHE_CONFIGURED = YES
    AIRTIME_VERSION = 1.8.2
    PLAYOUT_ENGINE_PROCESS_ID = 28200
    PLAYOUT_ENGINE_RUNNING_SECONDS = 71
    LIQUIDSOAP_PROCESS_ID = 28245
    LIQUIDSOAP_RUNNING_SECONDS = 71
    ICECAST_PROCESS_ID = 7884

    -- There appears to be problems with your setup. Please visit
    -- http://wiki.sourcefabric.org/x/HABQ for troubleshooting info.
    ********
  • rebooted, now it works!!! the ON AIR LIGHT is red! Very Happy

    with the wrong timezone, but it works!

    so now.. how can i change the timezone for both system&pypo?
  • In airtime 1.9.0 you need to change /var/www/airtime/public/.htaccess

    /etc/php5/apache2/php.ini is no longer used.

    James
  • now i'm using 1.8.2 because manual installation of 1.9.0 got too many issues. (i'll wait to update from the repos)

    the point is that if i change the php.ini i change the "system" timezone. but i have to change the "pypo" timezone, as we can see in the logs i posted.

    i had to put the "america/toronto" timezone to let it work!

    ps. i "feel" like if i upgrade to 1.9 the problem will still be here! ;D
  • found the point:

    the /usr/lib/airtime/pypo/bin/pypofetch.py script checks if "system date" matches the "configured date".

    system date -> taken from a "date" command (like the shell's command)
    configured date -> taken from the php.ini (or .htaccess on 1.9.0)

    so the issue is that my server is in the USA, but my radio station needs to have an Italian timezone!
    and it seems that the two timezones need to be the same.

    how do we solve this?
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    you can change the timezone of your server with tzdata (man tzdata)

    and don't forget to change the .htaccess for airtime 1.9 or php.ini for 1.8.x and <

    and use ntp to stay on the right time Smile
  • do you think i will have any issues changing the timezone to ITALY on a server (a VPS) in the USA?

    :mumble:
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    no, why ?
    I have servers in France who have Greec, moroco or spanish timezones
  • i'm always afraid of time zone settings!! Very Happy

    by the way.. solved with this

    sudo dpkg-reconfigure tzdata
    


    now it works great!!!
  • Great you managed to get the configuration to work for you.

    We will release a patch in Airtime 2.0 that fix the timezone issue and makes it non-dependent on server time.
  • you're doing a great job guys. i loved airtime since i read an article on the web.

    i'll hope i can contribute just using it, and sharing problem solving. that's the power of open source!