Fatal error: Uncaught exception on initial login
  • I have installed airtime here and get the following error after restarting the machine:
    Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Zend_Session::start() - /var/lib/airtime/library/Zend/Session.php(Line:480): Error #2 session_start(): Function spl_autoload_call() hasn't defined the class it was called for Array' in /var/lib/airtime/library/Zend/Session.php:493 Stack trace: #0 /var/lib/airtime/library/Zend/Session/Namespace.php(143): Zend_Session::start(true) #1 /var/lib/airtime/application/models/Preference.php(68): Zend_Session_Namespace->__construct('title_name') #2 /var/lib/airtime/application/Bootstrap.php(89): Application_Model_Preference::GetHeadTitle() #3 /var/lib/airtime/library/Zend/Application/Bootstrap/BootstrapAbstract.php(665): Bootstrap->_initTitle() #4 /var/lib/airtime/library/Zend/Application/Bootstrap/BootstrapAbstract.php(618): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource('title') #5 /var/lib/airtime/library/Zend/Application/Bootstrap/BootstrapAbstract.php(582): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap(NULL) #6 /var/lib/airtime/li in /var/lib/airtime/library/Zend/Session.php on line 493 


    Check System also gives an error:
    $ sudo airtime-check-system
    CPU                            = Intel(R) Pentium(R) Dual  CPU  E2180  @ 2.00GHz
    Total RAM                      = 2052024 kB
    Free RAM                       = 952488 kB
    OS                             = Ubuntu 10.04.1 LTS Intel 80386
    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://localhost:80/api/version/api_key/%%api_key%%
    APACHE_CONFIGURED              = YES
    AIRTIME_VERSION                = 1.8.2
    PLAYOUT_ENGINE_PROCESS_ID      = 13472
    PLAYOUT_ENGINE_RUNNING_SECONDS = 1
      -- WARNING! It looks like the playout engine is continually restarting.
      -- /etc/service/pypo: up (pid 13472) 1 seconds
      -- @400000004dfe61301fa2ea44 Traceback (most recent call last):
      -- @400000004dfe61301fa33c4c   File "/usr/lib/airtime/pypo/bin/pypo-cli.py", line 118, in <module>
      -- @400000004dfe61301fa3c8ec     if not g.selfcheck():
      -- @400000004dfe61301fa40f3c   File "/usr/lib/airtime/pypo/bin/pypo-cli.py", line 62, in selfcheck
      -- @400000004dfe61301fa47c9c     return self.api_client.is_server_compatible()
      -- @400000004dfe61301fa4b34c   File "/usr/lib/airtime/pypo/api_clients/api_client.py", line 193, in is_server_compatible
      -- @400000004dfe61301fa5a194     version = self.__get_airtime_version(verbose)
      -- @400000004dfe61301fa5cc8c   File "/usr/lib/airtime/pypo/api_clients/api_client.py", line 156, in __get_airtime_version
      -- @400000004dfe61301fa6c68c     if e[1] == 401:
      -- @400000004dfe61301fa72064 IndexError: tuple index out of range
    LIQUIDSOAP_PROCESS_ID          = 999
    LIQUIDSOAP_RUNNING_SECONDS     = 1644
    ICECAST_PROCESS_ID             = FAILED
    
    What did I do wrong?
  • 4 Comments sorted by
  • Hi!

    Please post all logs from /var/log/airtime as a zip file. Did you install via a .deb package or via a .tar ball?
    Airtime Pro Hosting: http://airtime.pro
  • I installed from the .deb after adding the sourcefabric respository.

    There was one error during the install:
    Discovering channel pear.phing.info over http:// failed with message: channel-add: Cannot open "http://pear.phing.info/channel.xml" (File http://pear.phing.info:80/channel.xml not valid (received: HTTP/1.0 505 DNS lookup error
    ))
    Trying to discover channel pear.phing.info over https:// instead
    Discovery of channel "pear.phing.info" failed (channel-add: Cannot open "https://pear.phing.info/channel.xml" (Connection to `pear.phing.info:443' failed: Connection refused))
    Attempting to discover channel "phing"...
    Attempting fallback to https instead of http on channel "phing"...
    unknown channel "phing" in "phing/phing-2.4.2"
    invalid package name/package file "phing/phing-2.4.2"
    install failed
    So I ran: sudo pear install phing/phing-2.4.2 and then: sudo apt-get --reinstall install airtime

    File uploads are failing for me here, so here is the pypo/main/current log:
    @400000004dfe73762a6e8e74 *** Daemontools: starting daemon
    @400000004dfe737636952adc ###########################################
    @400000004dfe737636964bec #             *** pypo  ***               #
    @400000004dfe73763696b17c #   Liquidsoap Scheduled Playout System   #
    @400000004dfe737636971324 ###########################################
    @400000004dfe7376369ecf9c 2011-06-19 16:08:44,916 DEBUG - [cue_file.py : __init__() : line 20] - init
    @400000004dfe737636a44ddc 2011-06-19 16:08:44,916 DEBUG - [api_client.py : __get_airtime_version() : line 143] - Trying to contact http://localhost:80/api/version/api_key/%%api_key%%
    @400000004dfe73770571da2c 2011-06-19 16:08:45,090 DEBUG - [api_client.py : __get_airtime_version() : line 151] - Data: 
    @400000004dfe73770571e1fc Notice: Object of class DB_Error could not be converted to int in /var/lib/airtime/application/models/Preference.php on line 54
    @400000004dfe73770571e9cc {"version":"1.8.2"}
    @400000004dfe737705731a7c Traceback (most recent call last):
    @400000004dfe73770573418c   File "/usr/lib/airtime/pypo/bin/pypo-cli.py", line 118, in <module>
    @400000004dfe7377057437a4     if not g.selfcheck():
    @400000004dfe7377057481dc   File "/usr/lib/airtime/pypo/bin/pypo-cli.py", line 62, in selfcheck
    @400000004dfe73770574f324     return self.api_client.is_server_compatible()
    @400000004dfe7377057525ec   File "/usr/lib/airtime/pypo/api_clients/api_client.py", line 193, in is_server_compatible
    @400000004dfe737705760c64     version = self.__get_airtime_version(verbose)
    @400000004dfe737705763f2c   File "/usr/lib/airtime/pypo/api_clients/api_client.py", line 156, in __get_airtime_version
    @400000004dfe73770576faac     if e[1] == 401:
    @400000004dfe73770577509c IndexError: tuple index out of range
  • airtime/show-recorder/main log:
    @400000004dfe6a6d18d10124 *** Daemontools: starting daemon
    @400000004dfe6a6d247e75ec 2011-06-19 15:30:11,612 DEBUG - [api_client.py : get_shows_to_record() : line 313] - http://localhost:80/api/recorded-shows/format/json/api_key/%%api_key%%
    @400000004dfe6a6e04531bec 2011-06-19 15:30:12,072 ERROR - [api_client.py : get_shows_to_record() : line 321] - Exception: No JSON object could be decoded
    @400000004dfe6a6e045f54d4 Traceback (most recent call last):
    @400000004dfe6a6e045f5ca4   File "/usr/lib/airtime/show-recorder/recorder.py", line 189, in <module>
    @400000004dfe6a6e045f608c     recorder.get_shows()
    @400000004dfe6a6e045f6474   File "/usr/lib/airtime/show-recorder/recorder.py", line 175, in get_shows
    @400000004dfe6a6e045fca04     shows = shows[u'shows']
    @400000004dfe6a6e04633504 AttributeError: addinfourl instance has no attribute '__getitem__'
  • Fixed by purging and installing airtime over again using the commands:

    $ sudo apt-get purge airtime
    
    $ sudo apt-get install airtime


    I suspect the error during the initial install messed something up.