Error: 'AirtimeDB' object has no attribute 'base_storage'
  • I'm debugging my Airtime (v2.5.1) install... When I run '/usr/lib/airtime/medis-monotor/airtime-media-monitor', I see in media-monitor.log:

    syncdb.py: reload_directories() LINE 49 - HTTP Error 500: Internal Server Error

    and in py-interpreter.log:

    syncdb.py, line 60, in storage_path def storage_path(self) : return self.base_storage

    AttributeError: 'AirtimeDB' object has no attribute 'base_storage'

    What is wrong there? How to fix? Thanks.

    Post edited by Alex Gainulin at 2014-03-07 16:24:55
    www.actionsch.com - Bringing talents in life!
    + Action Radio School +
  • 6 Comments sorted by
  • Is nobody aware what it does? is it prostgrep DB mentioned by error? if so how to reinstall just DB?

    Any clue?

    www.actionsch.com - Bringing talents in life!
    + Action Radio School +
  • Vote Up0Vote Down hoerichhoerich
    Posts: 627Member, Airtime Moderator
    just purge postgresql and reinstall
    Official Airtime Forum Manager
    --------------------------
    Most of the time an issue is located between keyboard and chair.
  • I am sorry, hoerich, but I would need to check this:

    Is purge postgresql will be correct if I will just do:

    sudo -u postgres dropdb airtime

    sudo -u postgres dropuser airtime

    Do I need to delete /var/lib/pgsql/data as well?

     

    Post edited by Alex Gainulin at 2014-03-14 10:57:26
    www.actionsch.com - Bringing talents in life!
    + Action Radio School +
  • I am back to this post. b/c I faced it again. Here is what I do:
    I run /etc/init.d/airtime-media-monitor start
    it failed with below error in media-monitor.log:
    2014-04-17 23:06:52,056 INFO - [Thread-1] [syncdb.py : reload_directories()] : LINE 49 - HTTP Error 500: Internal Server Error
    Any idea what it tries to do? Can I set some debug in syncdb.py?
    below is the whole log:
    2014-04-17 23:06:51,860 INFO - [MainThread] [launcher.py : setup_global()] : LINE 110 - Attempting to set the locale...
    2014-04-17 23:06:51,982 INFO - [Thread-1] [watchersyncer.py : __init__()] : LINE 19 - Created timeout thread...
    2014-04-17 23:06:51,983 INFO - [Thread-1] [airtime.py : init_rabbit_mq()] : LINE 36 - Initializing RabbitMQ message consumer...
    2014-04-17 23:06:51,999 INFO - [Thread-1] [airtime.py : init_rabbit_mq()] : LINE 48 - Initialized RabbitMQ consumer.
    2014-04-17 23:06:52,000 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://localhost:8088/api/media-monitor-setup/format/json/api_key/7NPTXYDZWJ7OK4TK3IKT
    2014-04-17 23:06:52,056 INFO - [Thread-1] [syncdb.py : reload_directories()] : LINE 49 - HTTP Error 500: Internal Server Error

    Apache access.log shows:
    127.0.0.1 - - [17/Apr/2014:23:06:52 -0500] "GET /api/media-monitor-setup/format/json/api_key/7NPTXYDZWJ7OK4TK3IKT HTTP/1.1" 500 - "-" "Python-urllib/2.6"

    P.S. I am using port 8088 b/c 80 is taken by other service..
    Post edited by Alex Gainulin at 2014-04-18 00:27:31
    www.actionsch.com - Bringing talents in life!
    + Action Radio School +
  • During the error debugging I got latest error:
     PHP Fatal error:  Call to undefined function apc_fetch() in /var/www/html/airtime/application/models/Cache.php on line 30
    anybody is aware why it might be?
    www.actionsch.com - Bringing talents in life!
    + Action Radio School +
  • Got updates here: above error is fixed. That caused by missing php-apc module, but as far as I am doing this for RHEL it actually has a different name, so in order to fix you need to install php-pecl-apc
    Thus, I am able to get Airtime login page! Another success in adapting Airtime for CentOS/RHEL ;) 
    Will dig further in this direction. 
    www.actionsch.com - Bringing talents in life!
    + Action Radio School +