1.7-Alpha sneek peek
  • Hi there Airtime guru's,

    i did a quick install of 1.7-alpha in my test-environment, that is a virtual debian machine on my laptop. I noted a number of things:
    1) i got the login screen on my test url, but i cannot login. Any suggestions? installation seems to be ok, because
    2) i found the pypo-liquidsoap log. it seems there's a lot of changes, like logging (no pypo-fetch and pypo-push logs?)
    3) what made the change from 1.6.1 to 1.7-alpha really notable, was the level of noise Smile. The fan of my laptop started blowing like a maniac, because there was a visible increase in CPU usage. Do you have an explanation for that?

    thanks already.

    best regards
    Ed
  • 19 Comments sorted by
  • Hmm, the install of 1.7-alpha didn't go as smooth as i initially thought. I do see the login screen, but on the tab it says: DB Error: no such table. I did an uninstall and a re-install.
    Here's the output of the install:


    root@jigrtest:/var/www/clients/client1/web2/web/airtime# php install/airtime-install.php
    ******************************** Install Begin *********************************
    PHP Warning: file(../build/build.properties): failed to open stream: No such file or directory in /var/www/clients/client1/web2/web/airtime/install/installIni t.php on line 97
    PHP Warning: fopen(../build/build.properties): failed to open stream: No such file or directory in /var/www/clients/client1/web2/web/airtime/install/installIni t.php on line 106
    PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/clients/client1/web2/web/airtime/install/installIni t.php on line 108
    PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/clients/client1/web2/web/airtime/install/installIni t.php on line 110

    *** Database Installation ***
    * Creating Airtime Database User
    * Could not create user airtime: Array
    * Creating Airtime Database
    * Could not create database 'airtime': Array
    * Connected to database
    * Install Postgresql Scripting Language
    * Postgres scripting language already installed
    * Creating Database Tables
    * Storage Directory Setup

    *** Directory Setup ***
    * Skipping directory already exists: /var/www/clients/client1/web2/web/airtime/files
    * Directory /var/www/clients/client1/web2/web/airtime/files/stor created
    * Setting Dir Permissions
    * Creating /usr/bin symlinks
    * Importing Sample Audio Clips
    * Python eggs Setup

    *** Pypo Installation ***
    Starting daemontool script pypo
    Starting daemontool script pypo-liquidsoap
    /var/www/clients/client1/web2/web/airtime/python_apps/pypo/i nstall
    Checking and removing any existing pypo processes
    Checking for user pypo
    Creating user pypo
    Creating log directories
    Creating directory /var/log/pypo
    Creating directory /opt/pypo/
    Creating directory /opt/pypo/bin
    Creating directory /opt/pypo/cache
    Creating directory /opt/pypo/files
    Creating directory /opt/pypo/tmp
    Creating directory /opt/pypo/archive
    Installing 32-bit liquidsoap binary
    Removing old directory /opt/pypo/bin/
    Copying directory /var/www/clients/client1/web2/web/airtime/python_apps/pypo/i nstall/.. to /opt/pypo/bin/
    Copying directory /var/www/clients/client1/web2/web/airtime/python_apps/pypo/i nstall/../../api_clients to /opt/pypo/api_clients/
    Setting permissions
    Installing pypo daemon
    Creating directory /etc/service/pypo
    Creating directory /etc/service/pypo/log
    Installing liquidsoap daemon
    Creating directory /etc/service/pypo-liquidsoap
    Creating directory /etc/service/pypo-liquidsoap/log
    Waiting for processes to start...
    /var/www/clients/client1/web2/web/airtime/python_apps/pypo/i nstall
    /etc/service/pypo: up (pid 21000) 1 seconds

    /etc/service/pypo-liquidsoap: up (pid 20934) 6 seconds


    *** Recorder Installation ***
    Starting daemontool script recorder
    /var/www/clients/client1/web2/web/airtime/python_apps/show-r ecorder/install
    Checking and removing any existing recorder processes
    Checking for user pypo
    User already exists.
    Creating home directory
    Creating directory /home/pypo
    Creating home directory
    Creating directory /home/pypo/Music
    Creating log directories
    Creating directory /var/log/recorder
    Creating directory /opt/recorder/
    Creating directory /opt/recorder/bin
    Creating directory /opt/recorder/cache
    Creating directory /opt/recorder/files
    Creating directory /opt/recorder/tmp
    Creating directory /opt/recorder/archive
    Removing old directory /opt/recorder/bin/
    Copying directory /var/www/clients/client1/web2/web/airtime/python_apps/show-r ecorder/install/.. to /opt/recorder/bin/
    Setting permissions
    Installing recorder daemon
    Creating directory /etc/service/recorder
    Creating directory /etc/service/recorder/log
    Waiting for processes to start...
    /var/www/clients/client1/web2/web/airtime/python_apps/show-r ecorder/install
    /etc/service/recorder: up (pid 21266) 1 seconds

    ******************************* Install Complete *******************************

    see you later,
    Ed
  • Hi Ed,
    The installation has to be run from the install directory and not from an outside directory.
    Can you please do
    cd install
    sudo php airtime-install.php
  • Ed Boon wrote on Tue, 29 March 2011 17:44
    Hi there Airtime guru's,

    i did a quick install of 1.7-alpha in my test-environment, that is a virtual debian machine on my laptop. I noted a number of things:
    1) i got the login screen on my test url, but i cannot login. Any suggestions? installation seems to be ok, because
    2) i found the pypo-liquidsoap log. it seems there's a lot of changes, like logging (no pypo-fetch and pypo-push logs?)
    3) what made the change from 1.6.1 to 1.7-alpha really notable, was the level of noise Smile. The fan of my laptop started blowing like a maniac, because there was a visible increase in CPU usage. Do you have an explanation for that?

    thanks already.

    best regards
    Ed


    The log for pypo-fetch and pypo-push have been merged into pypo.

    You can find the location of the log at
    /etc/service/pypo/log/main/current


    We have begun testing to see if the liquidsoap bundled with Airtime 1.7.0 really does use more CPU. Will get back to you on this.
    Airtime Pro Hosting: http://airtime.pro
  • Ed,

    We've checked 1.6.1 vs. 1.7.0 in terms of CPU usage for liquidsoap, and they are very similar (around 7% on my machine). Could you post what percentages are being used for you in both Airtime versions. (You can use the "top" command in the terminal for this).
    Airtime Pro Hosting: http://airtime.pro
  • Thanks, that helped. I should have tried that myself Very Happy
    installing from inside the install directory gave me access to the menu.
  • Hi,

    i got 1.7-alpha to work. The cpu does seem to be slightly increases, but certainly not dramatically. I didn't properly measure the difference, but it is comparable to 1.6.1.
    I do get an error in the pypo log:

    @400000004d949ae32b5792cc ###########################################
    @400000004d949ae32b5ac334 # *** pypo *** #
    @400000004d949ae32b5c076c # Liquidsoap Scheduled Playout System #
    @400000004d949ae32b5d43d4 ###########################################
    @400000004d949ae32b63bc14 2011-03-31 17:16:41,727 DEBUG - [cue_file.py : __init__() : line 20] - init
    @400000004d949ae32b674654 2011-03-31 17:16:41,728 DEBUG - [api_client.py : __get_airtime_version() : line 121] - Trying to contact http://airtime.localdomain.jig/api/version/api_key/%%api_key %%
    @400000004d949ae336ba71d4 2011-03-31 17:16:41,918 DEBUG - [api_client.py : __get_airtime_version() : line 127] - Data: {"version":"1.7.0-alpha"}
    @400000004d949ae336c0f5cc 2011-03-31 17:16:41,918 DEBUG - [api_client.py : __get_airtime_version() : line 130] - Airtime Version 1.7.0-alpha detected
    @400000004d949ae336c343a4 Airtime version: 1.7.0-alpha
    @400000004d949ae336c504dc pypo is compatible with this version of Airtime.
    @400000004d949ae336c64144
    @400000004d949ae336d73904 2011-03-31 17:16:41,919 DEBUG - [cue_file.py : __init__() : line 20] - init
    @400000004d949ae336e9d2bc 2011-03-31 17:16:41,921 INFO - [pypopush.py : run() : line 222] - heartbeat
    @400000004d949ae336f74bf4 2011-03-31 17:16:41,921 DEBUG - [cue_file.py : __init__() : line 20] - init
    @400000004d949ae336fa12e4 2011-03-31 17:16:41,922 INFO - [pypofetch.py : __init__() : line 64] - Initializing RabbitMQ stuff
    @400000004d949ae33800a98c Traceback (most recent call last):
    @400000004d949ae338021ca4 File "/opt/pypo/bin/pypo-cli.py", line 147, in <module>
    @400000004d949ae33803d224 pf = PypoFetch(q)
    @400000004d949ae338054154 File "/opt/pypo/bin/pypofetch.py", line 68, in __init__
    @400000004d949ae338069cfc channel = self.connection.channel()
    @400000004d949ae338080844 File "/usr/local/lib/python2.6/dist-packages/kombu/connection.py", line 105, in channel
    @400000004d949ae33809832c chan = self.transport.create_channel(self.connection)
    @400000004d949ae3380b3c94 File "/usr/local/lib/python2.6/dist-packages/kombu/connection.py", line 410, in connection
    @400000004d949ae3380e8084 self._connection = self._establish_connection()
    @400000004d949ae3380ff39c File "/usr/local/lib/python2.6/dist-packages/kombu/connection.py", line 378, in _establish_connection
    @400000004d949ae33812649c return self.transport.establish_connection()
    @400000004d949ae33813cfe4 File " /usr/local/lib/python2.6/dist-packages/kombu/transport/pyamq plib.py ", line 219, in establish_connection
    @400000004d949ae3382def64 connect_timeout=conninfo.connect_timeout)
    @400000004d949ae3382f79ec File " /usr/local/lib/python2.6/dist-packages/kombu/transport/pyamq plib.py ", line 45, in __init__
    @400000004d949ae33830d1ac super(Connection, self).__init__(*args, **kwargs)
    @400000004d949ae3383240dc File " /usr/local/lib/python2.6/dist-packages/amqplib/client_0_8/co nnection.py ", line 125, in __init__
    @400000004d949ae3383409e4 self.transport = create_transport(host, connect_timeout, ssl)
    @400000004d949ae33835a7f4 File " /usr/local/lib/python2.6/dist-packages/amqplib/client_0_8/tr ansport.py ", line 220, in create_transport
    @400000004d949ae338376d14 return TCPTransport(host, connect_timeout)
    @400000004d949ae3383e0c64 File " /usr/local/lib/python2.6/dist-packages/amqplib/client_0_8/tr ansport.py ", line 58, in __init__
    @400000004d949ae3383f96ec self.sock.connect((host, port))
    @400000004d949ae3384115bc File "<string>", line 1, in connect
    @400000004d949ae338432514 socket.error: [Errno 111] Connection refused
    @400000004d949ae422eb338c *** Daemontools: starting daemon

    I cannot seem to figure out where he socket error comes from. Any ideas?

    tbc
    Ed
  • Ed,

    Have you looked at the new install page for Airtime 1.7.0?

    http://wiki.sourcefabric.org/display/CC/Installing+Airtime+D ev+Version+%28v1.7alpha%29

    There are some new packages that are required for install.
    Airtime Pro Hosting: http://airtime.pro
  • Hi,

    in addition to what i wrote before i can see an error at the top of my firefox window when i submit changes to the preferences:
    Warning: fsockopen(): unable to connect to 127.0.0.1:5672 (Connection refused) in /var/www/clients/client1/web2/web/airtime/library/php-amqpli b/amqp.inc on line 376

    when i tested mp3's to stream the 'on air' sign was not lit and the stream was silent. It could be because of the socket error?

    Anyway, thanks for thinking with me.

    Ed
  • Martin Konecny wrote on Thu, 31 March 2011 15:27
    Ed,

    Have you looked at the new install page for Airtime 1.7.0?

    http://wiki.sourcefabric.org/display/CC/Installing+Airtime+D ev+Version+%28v1.7alpha%29

    There are some new packages that are required for install.



    Yes i did. the additional packages are present. For debian the zend framework packages are called zendframework and zendframework-bin btw.

    Thanks,
    Ed
  • Vote Up0Vote Down Paul BaranowskiPaul Baranowski
    Posts: 389Member, Administrator, Sourcefabric Team
    It looks like rabbitmq is not installed on your machine?


    Sent from beyond space and time

    On Mar 31, 2011, at 3:32 PM, Ed Boon <airtime-support@lists.sourcefabric.org> wrote:

    >
    > Hi,
    >
    > in addition to what i wrote before i can see an error at the top of my firefox window when i submit changes to the preferences:
    > Warning: fsockopen(): unable to connect to 127.0.0.1:5672 (Connection refused) in /var/www/clients/client1/web2/web/airtime/library/php-amqpli b/amqp.inc on line 376
    >
    > when i tested mp3's to stream the 'on air' sign was not lit and the stream was silent. It could be because of the socket error?
    >
    > Anyway, thanks for thinking with me.
    >
    > Ed
    >

  • Hmmm, i just checked:

    rabbitmq-server is already the newest version.
  • Hmm, i just saw the propel-error.log:

    BUILD FAILED
    /var/www/clients/client1/web2/web/airtime/library/propel/gen erator/build.xml:75:15: No project directory specified.

    what's that?

    Ed
  • OK. I'm getting closer. Another close look at rabbitmq did the following. Although it was installed, an additional command was necessary: apt-get dist-upgrade
    Then i rebooted again (just to be sure).

    This solved the socket.error: [Errno 111] Connection refused
    Smile

    There's more to explore, but i'll post my findings later.

    Kind regards
    Ed

    Paul Baranowski wrote on Thu, 31 March 2011 17:13
    It looks like rabbitmq is not installed on your machine?

    Sent from beyond space and time

  • Debian instructions...

    So, to sum up the instructions for Debian:
    1) remember the zend packages are called 'zenframework' and 'zenframework-bin'
    2) for rabbitmq do the following:

    Add the following line to your /etc/apt/sources.list:
    deb http://www.rabbitmq.com/debian/ testing main

    (testing is referring to rabbitmq status)
    Optionally add the rabbitmq public key. the commands for this are:
    wget http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
    sudo apt-key add rabbitmq-signing-key-public.asc

    then run:
    sudo apt-get update
    sudo apt-get install rabbitmq-server

    and finally:
    sudo apt-get dist-upgrade

    For those of you using Debian (squeeze)

    Kind regards
    Ed
  • zendframework and zendframework-bin
    Very Happy
  • BTW I had the same error "This solved the socket.error: [Errno 111] Connection refused"

    on Ubuntu 10.04. After some research online I've found that I needed to create /etc/rabbitmq/rabbitmq.conf containing only these 2 lines:

    NODENAME=rabbit@localhost
    NODE_IP_ADDRESS=127.0.0.1

    Yesterday this fixed the issue for me with Airtime alpha 1.7.


    Unfortunatelly I found that later one it stoped pushing to liquidsoap without any note in any of the logs. So Airtime 1.7 si pushing from time to time to liquidsoap. I hope the playout will be working without issues when we have stable GA release for 1.7

    BTW,

    Ed I just read you 2nd/3rd post while I'm writing here... I did aptitude search zend -> on my airtime box this is what I got installed so far:

    libzend-framework-php

    zend-framework-bin


    The other 2 you mentioned ( zendframework & zendframework-bin) are available in aptitude but are NOT installed and I'm wondering If I have to use them since there are no error messages anymore in pypo's logs etc.

    What do you think?

  • Vote Up0Vote Down VerheekVerheek
    Posts: 158Member
    I also added this rabbitmq.conf file but still had the password issue when installing rabbitmq-server on Ubuntu Lucid. It seems to be critical for the /etc/hosts file to be setup correctly or this rabbitmq.conf file to be added for rabbitmq to work.

    I had to change the password for the rabbitmq user and the repair the install with apt-get -f install, enter the password and then it worked by itself after that.

    I have libzend-framework-php and zend-framework-bin installed.

    Jeremy
  • Hi,

    The zendframework and zendframework-bin packages are the Debian versions and not specifically for Ubuntu. Since you mention you have libzend-framework-php and zend-framework-bin installed, i'd say you don't need them.

    With the things i mentioned in my latest posts i got it all to work. No errors to be found and i'm in fact at the moment listening to the first test transmissions with 1.7-alpha.

    Ed


    Zdravko wrote on Fri, 01 April 2011 14:17
    BTW I had the same error "This solved the socket.error: [Errno 111] Connection refused"

    on Ubuntu 10.04. After some research online I've found that I needed to create /etc/rabbitmq/rabbitmq.conf containing only these 2 lines:

    NODENAME=rabbit@localhost[/email]
    NODE_IP_ADDRESS=127.0.0.1

    Yesterday this fixed the issue for me with Airtime alpha 1.7.


    Unfortunatelly I found that later one it stoped pushing to liquidsoap without any note in any of the logs. So Airtime 1.7 si pushing from time to time to liquidsoap. I hope the playout will be working without issues when we have stable GA release for 1.7

    BTW,

    Ed I just read you 2nd/3rd post while I'm writing here... I did aptitude search zend -> on my airtime box this is what I got installed so far:

    libzend-framework-php

    zend-framework-bin


    The other 2 you mentioned ( zendframework & zendframework-bin) are available in aptitude but are NOT installed and I'm wondering If I have to use them since there are no error messages anymore in pypo's logs etc.

    What do you think?


  • Vote Up0Vote Down VerheekVerheek
    Posts: 158Member
    Good call on the rabbitmq.conf file. Thought I had done that but it must have gotten deleted in one of the install/purge cycles. Now I have

    @400000004d962c06226a1cac 2011-04-01 15:48:12,577 INFO - [pypopush.py : run() : line 222] - heartbeat

    in my pypo log.

    Jeremy