403: Forbidden
  • Hi folks,

    I installed airtime 2.2.1 on debian squeeze. I downloaded the tar.gz, deflated and unpacked and then installed from the "airtime-2.2.1/install_full/debian/" directory. I compared to a working test system and all settings seem to be ok. On my production system i still have some issue and i don't seem to get it worked out. I get a blank screen where i expect the airtime gui. Here is what i see:

    root@jigrbox:~# monit status
    The Monit daemon 5.1.1 uptime: 20m 

    Process 'rabbitmq-server'
      status                            running
      monitoring status                 monitored
      pid                               1520
      parent pid                        1503
      uptime                            20m 
      children                          2
      memory kilobytes                  16496
      memory kilobytes total            17492
      memory percent                    0.4%
      memory percent total              0.4%
      cpu percent                       0.0%
      cpu percent total                 0.0%
      data collected                    Thu Dec 13 14:49:02 2012

    Process 'airtime-playout'
      status                            running
      monitoring status                 monitored
      pid                               1441
      parent pid                        1
      uptime                            20m 
      children                          0
      memory kilobytes                  8924
      memory kilobytes total            8924
      memory percent                    0.2%
      memory percent total              0.2%
      cpu percent                       0.0%
      cpu percent total                 0.0%
      data collected                    Thu Dec 13 14:49:02 2012

    Process 'airtime-media-monitor'
      status                            running
      monitoring status                 monitored
      pid                               1430
      parent pid                        1
      uptime                            20m 
      children                          0
      memory kilobytes                  9096
      memory kilobytes total            9096
      memory percent                    0.2%
      memory percent total              0.2%
      cpu percent                       0.0%
      cpu percent total                 0.0%
      data collected                    Thu Dec 13 14:49:02 2012

    Process 'airtime-liquidsoap'
      status                            running
      monitoring status                 monitored
      pid                               1423
      parent pid                        1
      uptime                            20m 
      children                          1
      memory kilobytes                  1192
      memory kilobytes total            6940
      memory percent                    0.0%
      memory percent total              0.1%
      cpu percent                       0.0%
      cpu percent total                 0.0%
      data collected                    Thu Dec 13 14:49:02 2012

    System 'jigrbox.jigr.net'
      status                            running
      monitoring status                 monitored
      load average                      [0.23] [0.48] [0.48]
      cpu                               0.3%us 0.1%sy 0.4%wa
      memory usage                      550384 kB [13.6%]
      data collected                    Thu Dec 13 14:49:02 2012


    root@jigrbox:/var/log/airtime/media-monitor# tail -f media-monitor.log 
    2012-12-13 14:36:25,560 ERROR - [Thread-2] [api_client.py : get_response_from_server()] : LINE 110 - Error connecting to server, waiting 5 seconds and trying again.
    2012-12-13 14:36:25,631 ERROR - [MainThread] [api_client.py : get_response_from_server()] : LINE 88 - Error Authenticating with remote server: HTTP Error 403: Forbidden
    2012-12-13 14:36:25,631 DEBUG - [MainThread] [api_client.py : get_response_from_server()] : LINE 92 - http://localhost:80/api/media-monitor-setup/format/json/api_key/EYWT9MZ9PWPNR8P0U6YZ
    2012-12-13 14:36:25,631 ERROR - [MainThread] [api_client.py : get_response_from_server()] : LINE 110 - Error connecting to server, waiting 5 seconds and trying again.
    2012-12-13 14:36:30,568 ERROR - [Thread-2] [api_client.py : get_response_from_server()] : LINE 88 - Error Authenticating with remote server: HTTP Error 403: Forbidden
    2012-12-13 14:36:30,569 DEBUG - [Thread-2] [api_client.py : get_response_from_server()] : LINE 92 - http://localhost:80/api/list-all-watched-dirs/format/json/api_key/EYWT9MZ9PWPNR8P0U6YZ
    2012-12-13 14:36:30,569 ERROR - [Thread-2] [api_client.py : get_response_from_server()] : LINE 110 - Error connecting to server, waiting 5 seconds and trying again.


    root@jigrbox:/var/log/airtime/pypo# tail -f pypo.log
    2012-12-13 14:50:35,211 ERROR - [api_client.py : get_response_from_server() : line 110] - Error connecting to server, waiting 5 seconds and trying again.
    2012-12-13 14:50:40,219 ERROR - [api_client.py : get_response_from_server() : line 88] - Error Authenticating with remote server: HTTP Error 403: Forbidden
    2012-12-13 14:50:40,220 DEBUG - [api_client.py : get_response_from_server() : line 92] - http://localhost:80/api/version/api_key/EYWT9MZ9PWPNR8P0U6YZ
    2012-12-13 14:50:40,220 ERROR - [api_client.py : get_response_from_server() : line 110] - Error connecting to server, waiting 5 seconds and trying again.

    root@jigrbox:/var/log/ispconfig/httpd/airtime.jigr.net# tail -f error.log 
    ...
    [Thu Dec 13 14:03:19 2012] [error] [client 119.63.193.132] PHP Fatal error:  main(): Failed opening required 'Zend/Application.php' (include_path='/usr/share/airtime/application/controllers/plugins:/usr/share/airtime/application/models:/usr/share/airtime/application/common:.:/usr/bin:/usr/share/airtime/library') in /usr/share/airtime/public/index.php on line 48


    Any ideas as to where i should look?

    Thanks in advance.
    Ed
  • 3 Comments sorted by
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    in a lot of case, it is a problem of host configuration

    give a real host to you machine

    for example :

    localhost would be remplaced by radio.example.org
  • Hi all,

    I finally fixed this. I had to do 2 things:
    1) using airtime together with ispconfig requires a somewhat different vhost file. So I changed that.
    2) the majority of errors are fixed by setting the rights on the /var/log/airtime/zendphp.log with chmod 777.

    So now I'm a happy chappy, using version 2.2.1.

    C ya.
    Ed
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    effectively if you have ispconfig, configuration is different
    don't forget the next time to give us all the informations :D