Unable to connect to the Airtime server. HTTP Error 404: Not Found
  • This is for  version 2.5.1.6
    try running this at a prompt

     #  sudo /usr/lib/airtime/pypo/bin/airtime-liquidsoap  /usr/lib/airtime/pypo/bin/liquidsoap_scripts/ls_script.liq

    You should receive this error

    Unable to connect to the Airtime server.
    HTTP Error 404: Not Found
    traceback: Traceback (most recent call last):
      File "generate_liquidsoap_cfg.py", line 37, in <module>
        ss = ac.get_stream_setting()
      File "/usr/lib/airtime/api_clients/api_client.py", line 414, in get_stream_setting
        return self.services.get_stream_setting()
      File "/usr/lib/airtime/api_clients/api_client.py", line 137, in __call__
        f = urllib2.urlopen(req)
      File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
        return _opener.open(url, data, timeout)
      File "/usr/lib/python2.7/urllib2.py", line 410, in open
        response = meth(req, response)
      File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
        'http', request, response, code, msg, hdrs)
      File "/usr/lib/python2.7/urllib2.py", line 448, in error
        return self._call_chain(*args)
      File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
        result = func(*args)
      File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
        raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
    HTTPError: HTTP Error 404: Not Found
    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.
  • 1 Comment sorted by
  • Solution:
    The first part of the problem (Unable to connect to the Airtime server.HTTP Error 404: Not Found) indicates the issue

    at the prompt

    # sudo touch /var/log/airtime/pypo-liquidsoap/ls_script.log
    # sudo chmod 777 /var/log/airtime/pypo-liquidsoap/ls_script.log

    Interface

    change your stream type in the interface to mp3

    Other Things
    if you are running another server on port 80

    either
    change the  virtual host( /etc/apache2/sites-available/airtime-vhost.conf), api-client(/etc/airtime/api_client.cfg ) and  the airtime.conf(/etc/airtime/airtime.conf )  to a different port

    or change the server port

    like this
    Change the corresponding in both

    sudo nano /etc/airtime/airtime.conf

    [general]
    base_url = <change this if your domain change>
    base_port = <change  if you are running on a different port>


    sudo nano /etc/airtime/api_client.cfg

    host = <change this if your domain change>
    base_port = <change  if you are running on a different port>

     
     
     restarting apache  and  ls_script maybe necessay
    Post edited by Voisses Tech at 2017-03-16 02:48:54
    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.