1.9.4 Clear installation - login problem
  • Hi,

    I've just installed Airtime on my Debian Squeeze machine using your repository.

    The only difference is that I use LiteSpeed web server instead of Apache. But the vhost is configured correctly. PHP version: 5.3.8

    The problem is that I cannot login, even with the default admin/admin. All requests are redirected to /login page. After submitting login, without any error I'm redirected to login page again.

    Cookies are created ok, sessions are handled by PHP ok too. Every session file contains just: title_name|a:1:{s:5:"title";s:0:"";}

    I've checked database credentials using psql - it works ok.

    /var/log/airtime/* looks ok, just media-monitor repeats message:

    Quote:
    2011-10-20 02:10:39,623 ERROR - [MainThread] [api_client.py : setup_media_monitor()] : LINE 398 - Exception: No JSON object could be decoded


    I've checked that deeper and this error appears because /api/media-monitor-setup/format/json/api_key/blablabla ... are redirected to /login too... (of course with valid API key). No Zend/PHP error log, it's completely clear. Just access.log's size increases.

    In summary: everything looks fine, no error message (excluding the one above, but the source is known), all requests are redirected to /login.

    Check it out by yourself: http://airtime.dom.browarski.com/

    I work with PHP frameworks, but I didn't work with Zend framework before, so I don't have any idea how to debug this app. I've seen some test controllers, but I don't know if they are helpful and how to use them. Problem appears to be in PHP/WWW/WWW<->SQL/WWW<->other servies/something_else_WWW_related

    Can I check anything else? Do you have any idea what could be wrong?

    It's my first time with Airtime.

    Thank you for all your help!

    Edit:

    Quote:
    # airtime-check-system
    CPU = Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz
    Total RAM = 3113168 kB
    Free RAM = 314848 kB
    OS = 6.0.3 Intel 80386
    AIRTIME_CONFIG_FILES = OK
    POSTGRESQL_DATABASE = OK
    PYTHON_KOMBU_VERSION = 1.2.0
    PYTHON_POSTER_VERSION = 0.8.1
    PYTHON_MUTAGEN_VERSION = 1.20
    PYTHON_PYINOTIFY_VERSION = 0.9.2
    RABBITMQ_SERVER = OK
    AIRTIME_VERSION_URL = http://airtime.dom.browarski.com:80/api/version/api_key/%%ap i_k ey%%
    APACHE_CONFIGURED = YES
    AIRTIME_VERSION = 1.9.4
    PLAYOUT_ENGINE_PROCESS_ID = 6567
    PLAYOUT_ENGINE_RUNNING_SECONDS = 3550
    LIQUIDSOAP_PROCESS_ID = 6570
    LIQUIDSOAP_RUNNING_SECONDS = 3550
    MEDIA_MONITOR_PROCESS_ID = 8491
    MEDIA_MONITOR_RUNNING_SECONDS = 1228
    SHOW_RECORDER_PROCESS_ID = 6606
    SHOW_RECORDER_RUNNING_SECONDS = 3547
    ICECAST_PROCESS_ID = FAILED

    -- There appears to be problems with your setup. Please visit
    -- http://wiki.sourcefabric.org/x/HABQ for troubleshooting info.

    The last error may be ignored - I didn't install icecast and I don't use it - I've changed liquidsoap config to use external Shoutcast server. However, it didn't change anything.


    EDIT2: I've noticed in access.log that request like that are processed correctly, without redirection:
    127.0.0.1 - - [20/Oct/2011:04:24:23 +0200] "GET /api/schedule/api_key/<api_key_hidden> HTTP/1.0" 200 197 "-" "Python-urllib/1.17" "airtime.dom.browarski.com:80"

    But every /api/media-monitor-setup/format/json/api_key/<api_key_hidden > is being redirected to /login with 302 code.

    Thanks for all your help. I hope to find any solution.

    Best regards,
    Michal Browarski
  • 3 Comments sorted by
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    hi,

    could you run apache on your server instead of litespeed? Just wondering is litespeed a reason of your problem.
  • Damn, it works under Apache! But I don't want to use this monster Sad

    Maybe could you give me any short hints how to debug your PHP frontend to find the problem? I could play by myself then and try to find an error, because logs don't show anything.

    Thanks for your reply and suggestion!
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    first off, try to enable Development environment for Zend framework

    It could be possible via .htaccess: SetEnv APPLICATION_ENV "development"