[SOLVED] 2.5 install on Ubuntu 12.04, built server, everything installed fine, but any UI freezes
  • Installed 2.5 on Ubuntu 12.04

    Having problem with UI,  when i try to add a show, or drag a song into a show, the browser freezes (firefox/chrome) and page greys.  The action is completed. but i think rabbitmq never responds back and db corrupt.

    2013-10-31 08:21:11,255 ERROR - [pypomessagehandler.py : main() : line 99] - Error connecting to RabbitMQ Server. Trying again in few seconds
    repeats in log every 10 seconds.

    Questions:
    1) Not sure how to clear the rabbit db? and restart.

    2) airtime-check is fine?  Does'nt this check rabbitmq?

    thanks for your help.
    stephen

    root@master:/var/log/airtime# airtime-check-system
    AIRTIME_STATUS_URL             = http://localhost:80/api/status/format/json/api_key/%%api_key%%
    AIRTIME_SERVER_RESPONDING      = OK
    KERNEL_VERSION                 = 3.4.4-guest
    MACHINE_ARCHITECTURE           = x86_64
    TOTAL_MEMORY_MBYTES            = 2048164
    TOTAL_SWAP_MBYTES              = 4194300
    AIRTIME_VERSION                = 2.5.0
    OS                             = Ubuntu 12.04.3 LTS x86_64
    CPU                            = AMD Opteron 62xx (Gen 4 Class Opteron)
    WEB_SERVER                     = Apache/2.2.22 (Ubuntu)
    PLAYOUT_ENGINE_PROCESS_ID      = 2006
    PLAYOUT_ENGINE_RUNNING_SECONDS = 3365
    PLAYOUT_ENGINE_MEM_PERC        = 1.0%
    PLAYOUT_ENGINE_CPU_PERC        = 0.0%
    LIQUIDSOAP_PROCESS_ID          = 2127
    LIQUIDSOAP_RUNNING_SECONDS     = 3334
    LIQUIDSOAP_MEM_PERC            = 1.6%
    LIQUIDSOAP_CPU_PERC            = 1.4%
    MEDIA_MONITOR_PROCESS_ID       = 2066
    MEDIA_MONITOR_RUNNING_SECONDS  = 3353
    MEDIA_MONITOR_MEM_PERC         = 0.7%
    MEDIA_MONITOR_CPU_PERC         = 0.0%
    -- Your installation of Airtime looks OK!

    The Zendlog shows.
    013-10-31T07:53:51-07:00 INFO (6): [index.php : () : line 71] - Error reading data. Recevived 0 instead of expected 1 bytes#0 /us
    r/share/airtime/library/php-amqplib/amqp_wire.inc(348): AMQPReader->rawread(1)
    #1 /usr/share/airtime/library/php-amqplib/amqp.inc(548): AMQPReader->read_octet()
    #2 /usr/share/airtime/library/php-amqplib/amqp.inc(568): AMQPConnection->wait_frame()
    #3 /usr/share/airtime/library/php-amqplib/amqp.inc(178): AMQPConnection->wait_channel(0)
    #4 /usr/share/airtime/library/php-amqplib/amqp.inc(282): AbstractChannel->next_frame()
    #5 /usr/share/airtime/library/php-amqplib/amqp.inc(395): AbstractChannel->wait(Array)
    #6 /usr/share/airtime/application/models/RabbitMq.php(24): AMQPConnection->__construct('127.0.0.1', '5672', 'airtime', 'K7QC28NRGP
    EUU1N...', '/airtime')
    #7 /usr/share/airtime/application/models/RabbitMq.php(49): Application_Model_RabbitMq::sendMessage('airtime-pypo', '{"schedule":{"
    m...')
    #8 /usr/share/airtime/application/controllers/plugins/RabbitMqPlugin.php(9): Application_Model_RabbitMq::SendMessageToPypo('update
    _schedule', Array)
    #9 /usr/share/php/libzend-framework-php/Zend/Controller/Plugin/Broker.php(355): RabbitMqPlugin->dispatchLoopShutdown()
    #10 /usr/share/php/libzend-framework-php/Zend/Controller/Front.php(979): Zend_Controller_Plugin_Broker->dispatchLoopShutdown()
    #11 /usr/share/php/libzend-framework-php/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
    #12 /usr/share/php/libzend-framework-php/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
    #13 /usr/share/airtime/public/index.php(64): Zend_Application->run()
    #14 {main}
    2013-10-31T07:53:51-07:00 INFO (6): [index.php : () : line 73] - #0 /usr/share/php/libzend-framework-php/Zend/Controller/Front.php
    (979): Zend_Controller_Plugin_Broker->dispatchLoopShutdown()
    #1 /usr/share/php/libzend-framework-php/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
    #2 /usr/share/php/libzend-framework-php/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
    #3 /usr/share/airtime/public/index.php(64): Zend_Application->run()



    Post edited by Stephen at 2013-10-31 13:45:52
  • 8 Comments sorted by
  • I was able to fix.  delete the files in mnesia.
    reboot rabbitmq.

    then i issued the following shell commands to grant permissions

    rabbitmqctl add_vhost /airtime
    rabbitmqctl add_user airtime K7Q<this is key in airtime conf>ENB
    rabbitmqctl set_permissions -p /airtime airtime "airtime-pypo|pypo-fetch|airtime-media-monitor|media-monitor" "airtime-pypo|pypo-fetch|airtime-media-monitor|media-monitor" "airtime-pypo|pypo-fetch|airtime-media-monitor|media-monitor"

    Everything works fine now.

    Hope this helps someone in future that doesnt set hostname first.

    regards,
    Stephen
  • Getting closer to solving.    I changed the hostname after install and see this messes with the database names in rabbitmw mnesia directory.  I removed and restart server.

    New db files are built. but

    =ERROR REPORT==== 31-Oct-2013::09:00:05 ===
    exception on TCP connection <0.665.0> from 127.0.0.1:41334
    {channel0_error,starting,
                    {amqp_error,access_refused,
                                "AMQPLAIN login refused: user 'airtime' - invalid credentials",
                                'connection.start_ok'}}

    So how does the credentials work.    it must be tied to original hostname some how?

    Stephen
  • Stephen - thank you so much - after extensive mucking about, this was exactly my issue. Solved for me too.
  • Hello, 

    after hours of troubleshooting I found the post by "Stephen". It has helped me and I am very happy. For 3 days was my airtime "broken", now everything is running again! THANK YOU THANK YOU THANK YOU! 

    (* Translated with Google Translator *) 

    Greetings 
    Jürgen
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Stephen, thanks for the tip, I have added this to http://sourcefabric.booktype.pro/airtime-25-for-broadcasters/troubleshooting/

    Cheers!

    Daniel
  • Same problem, solution worked perfectly, many thanks !
  • I wish I had read this thread yesterday! Today I spent hours figuring it out for myself :(
    I was changing hostnames on the fly so that I could have multiple airtimes behind a NAT.
    It caused havoc with Rabbit. Now I use a fake hostname system I dreamed up - and that now works behind NAT.
    Post edited by John Chewter at 2015-03-06 22:19:32
    No longer using Airtime or Libretime.
  • thank you so much Dude! my initial install with Airtime and this was the last hurdle! Kudos.
    Radio Nova Lujon / Music is Love x
    http://radio.novalujon.com
    Arriving soon....
    http://supersalonsounds.uk