Uploaded image for project: 'openATTIC'
  1. openATTIC
  2. OP-1689

ALLOWED_HOSTS django setting is now required on Xenial

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.16
    • Fix Version/s: 2.0.16
    • Component/s: Backend
    • Labels:

      Description

      ALLOWED_HOSTS = '*' needs to be added now.

      [Thu Nov 03 11:45:39.993849 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672] mod_wsgi (pid=9337): Exception occurred processing WSGI script '/usr/share/openattic/openattic.wsgi'.
      [Thu Nov 03 11:45:39.993878 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672] Traceback (most recent call last):
      [Thu Nov 03 11:45:39.993893 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 189, in __call__
      [Thu Nov 03 11:45:39.993966 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]     response = self.get_response(request)
      [Thu Nov 03 11:45:39.993976 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 207, in get_response
      [Thu Nov 03 11:45:39.994048 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]     return debug.technical_500_response(request, *sys.exc_info(), status_code=400)
      [Thu Nov 03 11:45:39.994066 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]   File "/usr/lib/python2.7/dist-packages/django/views/debug.py", line 97, in technical_500_response
      [Thu Nov 03 11:45:39.994307 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]     html = reporter.get_traceback_html()
      [Thu Nov 03 11:45:39.994318 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]   File "/usr/lib/python2.7/dist-packages/django/views/debug.py", line 384, in get_traceback_html
      [Thu Nov 03 11:45:39.994331 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]     return t.render(c)
      [Thu Nov 03 11:45:39.994339 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 210, in render
      [Thu Nov 03 11:45:39.994568 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]     return self._render(context)
      [Thu Nov 03 11:45:39.994579 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 202, in _render
      [Thu Nov 03 11:45:39.994591 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]     return self.nodelist.render(context)
      [Thu Nov 03 11:45:39.994599 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 905, in render
      [Thu Nov 03 11:45:39.994609 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]     bit = self.render_node(node, context)
      [Thu Nov 03 11:45:39.994616 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]   File "/usr/lib/python2.7/dist-packages/django/template/debug.py", line 79, in render_node
      [Thu Nov 03 11:45:39.994659 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]     return node.render(context)
      [Thu Nov 03 11:45:39.994670 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]   File "/usr/lib/python2.7/dist-packages/django/template/defaulttags.py", line 329, in render
      [Thu Nov 03 11:45:39.994912 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]     return nodelist.render(context)
      [Thu Nov 03 11:45:39.994922 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 905, in render
      [Thu Nov 03 11:45:39.994935 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]     bit = self.render_node(node, context)
      [Thu Nov 03 11:45:39.994942 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]   File "/usr/lib/python2.7/dist-packages/django/template/debug.py", line 79, in render_node
      [Thu Nov 03 11:45:39.994952 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]     return node.render(context)
      [Thu Nov 03 11:45:39.994959 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]   File "/usr/lib/python2.7/dist-packages/django/template/debug.py", line 89, in render
      [Thu Nov 03 11:45:39.994971 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]     output = self.filter_expression.resolve(context)
      [Thu Nov 03 11:45:39.994979 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 648, in resolve
      [Thu Nov 03 11:45:39.994999 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]     obj = self.var.resolve(context)
      [Thu Nov 03 11:45:39.995007 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 789, in resolve
      [Thu Nov 03 11:45:39.995017 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]     value = self._resolve_lookup(context)
      [Thu Nov 03 11:45:39.995029 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 849, in _resolve_lookup
      [Thu Nov 03 11:45:39.995040 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]     current = current()
      [Thu Nov 03 11:45:39.995049 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]   File "/usr/lib/python2.7/dist-packages/django/http/request.py", line 152, in build_absolute_uri
      [Thu Nov 03 11:45:39.995157 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]     host=self.get_host(),
      [Thu Nov 03 11:45:39.995167 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]   File "/usr/lib/python2.7/dist-packages/django/http/request.py", line 102, in get_host
      [Thu Nov 03 11:45:39.995179 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672]     raise DisallowedHost(msg)
      [Thu Nov 03 11:45:39.995193 2016] [wsgi:error] [pid 9337:tid 140286427805440] [remote 10.212.134.17:60672] DisallowedHost: Invalid HTTP_HOST header: '172.16.18.42'. You may need to add u'172.16.18.42' to ALLOWED_HOSTS.
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              swagner Sebastian Wagner
              Reporter:
              swagner Sebastian Wagner
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: