Error building URL for mail address management #7

Closed
opened 2020-04-13 13:10:12 +02:00 by jan · 0 comments
Owner

The following issue occurred when loading the information screen for a customer hosting package (actual user name and settings have been redacted).

Internal Server Error: /hosting/<username>/2/

NoReverseMatch at /hosting/<username>/2/
Reverse for 'add_mailaddress' with keyword arguments '{'package': 2, 'domai=
n': ''}' not found. 1 pattern(s) tried: ['mail/(?P<package>\\d+)/mailaddres=
s/(?P<domain>[\\w0-9-.]+)/create$']

Request Method: GET
Request URL: https://service.gnuviech-server.de/hosting/<username>/2/
Django Version: 2.2.12
Python Executable: /usr/bin/uwsgi-core
Python Version: 3.7.3
Python Path: ['/srv/gva/gnuviechadmin', '.', '', '/home/gva/gva-venv/lib/py=
thon37.zip', '/home/gva/gva-venv/lib/python3.7', '/home/gva/gva-venv/lib/py=
thon3.7/lib-dynload', '/usr/lib/python3.7', '/home/gva/gva-venv/local/lib/p=
ython3.7/site-packages', '/home/gva/gva-venv/lib/python3.7/site-packages']
Server time: Mo, 13 Apr 2020 12:37:16 +0200
Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.humanize',
 'django.contrib.admin',
 'django.contrib.flatpages',
 'crispy_forms',
 'allauth',
 'allauth.account',
 'allauth.socialaccount',
 'allauth.socialaccount.providers.google',
 'allauth.socialaccount.providers.linkedin_oauth2',
 'allauth.socialaccount.providers.twitter',
 'dashboard',
 'taskresults',
 'ldaptasks',
 'mysqltasks',
 'pgsqltasks',
 'fileservertasks',
 'webtasks',
 'domains',
 'osusers',
 'managemails',
 'userdbs',
 'hostingpackages',
 'websites',
 'contact_form')
Installed Middleware:
['django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']


Traceback:

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/core/hand=
lers/exception.py" in inner
  34.             response =3D get_response(request)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/core/hand=
lers/base.py" in _get_response
  145.                 response =3D self.process_exception_by_middleware(e,=
 request)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/core/hand=
lers/base.py" in _get_response
  143.                 response =3D response.render()

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
response.py" in render
  106.             self.content =3D self.rendered_content

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
response.py" in rendered_content
  83.         content =3D template.render(context, self._request)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
backends/django.py" in render
  61.             return self.template.render(context)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
base.py" in render
  171.                     return self._render(context)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
base.py" in _render
  163.         return self.nodelist.render(context)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
base.py" in render
  937.                 bit =3D node.render_annotated(context)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
base.py" in render_annotated
  904.             return self.render(context)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
loader_tags.py" in render
  150.             return compiled_parent._render(context)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
base.py" in _render
  163.         return self.nodelist.render(context)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
base.py" in render
  937.                 bit =3D node.render_annotated(context)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
base.py" in render_annotated
  904.             return self.render(context)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
loader_tags.py" in render
  150.             return compiled_parent._render(context)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
base.py" in _render
  163.         return self.nodelist.render(context)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
base.py" in render
  937.                 bit =3D node.render_annotated(context)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
base.py" in render_annotated
  904.             return self.render(context)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
loader_tags.py" in render
  62.                 result =3D block.nodelist.render(context)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
base.py" in render
  937.                 bit =3D node.render_annotated(context)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
base.py" in render_annotated
  904.             return self.render(context)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
defaulttags.py" in render
  309.                 return nodelist.render(context)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
base.py" in render
  937.                 bit =3D node.render_annotated(context)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
base.py" in render_annotated
  904.             return self.render(context)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
defaulttags.py" in render
  209.                     nodelist.append(node.render_annotated(context))

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
base.py" in render_annotated
  904.             return self.render(context)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
defaulttags.py" in render
  513.             return self.nodelist.render(context)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
base.py" in render
  937.                 bit =3D node.render_annotated(context)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
base.py" in render_annotated
  904.             return self.render(context)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/=
defaulttags.py" in render
  443.             url =3D reverse(view_name, args=3Dargs, kwargs=3Dkwargs,=
 current_app=3Dcurrent_app)

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/urls/base=
.py" in reverse
  90.     return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *ar=
gs, **kwargs))

File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/urls/reso=
lvers.py" in _reverse_with_prefix
  673.         raise NoReverseMatch(msg)

Exception Type: NoReverseMatch at /hosting/<username>/2/
Exception Value: Reverse for 'add_mailaddress' with keyword arguments '{'pa=
ckage': 2, 'domain': ''}' not found. 1 pattern(s) tried: ['mail/(?P<package=
>\\d+)/mailaddress/(?P<domain>[\\w0-9-.]+)/create$']
Request information:
USER: jan

GET: No GET data

POST: No POST data

FILES: No FILES data

META:
CONTENT_LENGTH =3D ''
CONTENT_TYPE =3D ''
pTYYNT'
DOCUMENT_ROOT =3D '/usr/share/nginx/html'
HTTPS =3D 'on'
HTTP_ACCEPT =3D 'text/html,application/xhtml+xml,application/xml;q=3D0.9,im=
age/webp,*/*;q=3D0.8'
HTTP_ACCEPT_ENCODING =3D 'gzip, deflate, br'
HTTP_ACCEPT_LANGUAGE =3D 'de,en-US;q=3D0.7,en;q=3D0.3'
HTTP_CONNECTION =3D 'keep-alive'
HTTP_DNT =3D '1'
HTTP_HOST =3D 'service.gnuviech-server.de'
HTTP_REFERER =3D 'https://service.gnuviech-server.de/hosting/allpackages/'
HTTP_UPGRADE_INSECURE_REQUESTS =3D '1'
HTTP_USER_AGENT =3D 'Mozilla/5.0 (X11; Linux x86_64; rv:74.0) Gecko/2010010=
1 Firefox/74.0'
PATH_INFO =3D '/hosting/<username>/2/'
QUERY_STRING =3D ''
REQUEST_METHOD =3D 'GET'
REQUEST_SCHEME =3D 'https'
REQUEST_URI =3D '/hosting/<username>/2/'
SCRIPT_NAME =3D ''
SERVER_NAME =3D 'service.gnuviech-server.de'
SERVER_PORT =3D '443'
SERVER_PROTOCOL =3D 'HTTP/1.1'
uwsgi.core =3D 0
uwsgi.node =3D b'service'
uwsgi.version =3D b'2.0.18-debian'
wsgi.errors =3D <_io.TextIOWrapper name=3D2 mode=3D'w' encoding=3D'UTF-8'>
wsgi.file_wrapper =3D ''
wsgi.input =3D <uwsgi._Input object at 0x7f66c5a97fc0>
wsgi.multiprocess =3D True
wsgi.multithread =3D True
wsgi.run_once =3D False
wsgi.url_scheme =3D 'https'
wsgi.version =3D '(1, 0)'
The following issue occurred when loading the information screen for a customer hosting package (actual user name and settings have been redacted). ``` Internal Server Error: /hosting/<username>/2/ NoReverseMatch at /hosting/<username>/2/ Reverse for 'add_mailaddress' with keyword arguments '{'package': 2, 'domai= n': ''}' not found. 1 pattern(s) tried: ['mail/(?P<package>\\d+)/mailaddres= s/(?P<domain>[\\w0-9-.]+)/create$'] Request Method: GET Request URL: https://service.gnuviech-server.de/hosting/<username>/2/ Django Version: 2.2.12 Python Executable: /usr/bin/uwsgi-core Python Version: 3.7.3 Python Path: ['/srv/gva/gnuviechadmin', '.', '', '/home/gva/gva-venv/lib/py= thon37.zip', '/home/gva/gva-venv/lib/python3.7', '/home/gva/gva-venv/lib/py= thon3.7/lib-dynload', '/usr/lib/python3.7', '/home/gva/gva-venv/local/lib/p= ython3.7/site-packages', '/home/gva/gva-venv/lib/python3.7/site-packages'] Server time: Mo, 13 Apr 2020 12:37:16 +0200 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.humanize', 'django.contrib.admin', 'django.contrib.flatpages', 'crispy_forms', 'allauth', 'allauth.account', 'allauth.socialaccount', 'allauth.socialaccount.providers.google', 'allauth.socialaccount.providers.linkedin_oauth2', 'allauth.socialaccount.providers.twitter', 'dashboard', 'taskresults', 'ldaptasks', 'mysqltasks', 'pgsqltasks', 'fileservertasks', 'webtasks', 'domains', 'osusers', 'managemails', 'userdbs', 'hostingpackages', 'websites', 'contact_form') Installed Middleware: ['django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] Traceback: File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/core/hand= lers/exception.py" in inner 34. response =3D get_response(request) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/core/hand= lers/base.py" in _get_response 145. response =3D self.process_exception_by_middleware(e,= request) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/core/hand= lers/base.py" in _get_response 143. response =3D response.render() File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= response.py" in render 106. self.content =3D self.rendered_content File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= response.py" in rendered_content 83. content =3D template.render(context, self._request) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= backends/django.py" in render 61. return self.template.render(context) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= base.py" in render 171. return self._render(context) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= base.py" in _render 163. return self.nodelist.render(context) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= base.py" in render 937. bit =3D node.render_annotated(context) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= base.py" in render_annotated 904. return self.render(context) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= loader_tags.py" in render 150. return compiled_parent._render(context) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= base.py" in _render 163. return self.nodelist.render(context) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= base.py" in render 937. bit =3D node.render_annotated(context) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= base.py" in render_annotated 904. return self.render(context) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= loader_tags.py" in render 150. return compiled_parent._render(context) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= base.py" in _render 163. return self.nodelist.render(context) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= base.py" in render 937. bit =3D node.render_annotated(context) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= base.py" in render_annotated 904. return self.render(context) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= loader_tags.py" in render 62. result =3D block.nodelist.render(context) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= base.py" in render 937. bit =3D node.render_annotated(context) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= base.py" in render_annotated 904. return self.render(context) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= defaulttags.py" in render 309. return nodelist.render(context) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= base.py" in render 937. bit =3D node.render_annotated(context) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= base.py" in render_annotated 904. return self.render(context) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= defaulttags.py" in render 209. nodelist.append(node.render_annotated(context)) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= base.py" in render_annotated 904. return self.render(context) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= defaulttags.py" in render 513. return self.nodelist.render(context) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= base.py" in render 937. bit =3D node.render_annotated(context) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= base.py" in render_annotated 904. return self.render(context) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/template/= defaulttags.py" in render 443. url =3D reverse(view_name, args=3Dargs, kwargs=3Dkwargs,= current_app=3Dcurrent_app) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/urls/base= .py" in reverse 90. return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *ar= gs, **kwargs)) File "/home/gva/gva-venv/local/lib/python3.7/site-packages/django/urls/reso= lvers.py" in _reverse_with_prefix 673. raise NoReverseMatch(msg) Exception Type: NoReverseMatch at /hosting/<username>/2/ Exception Value: Reverse for 'add_mailaddress' with keyword arguments '{'pa= ckage': 2, 'domain': ''}' not found. 1 pattern(s) tried: ['mail/(?P<package= >\\d+)/mailaddress/(?P<domain>[\\w0-9-.]+)/create$'] Request information: USER: jan GET: No GET data POST: No POST data FILES: No FILES data META: CONTENT_LENGTH =3D '' CONTENT_TYPE =3D '' pTYYNT' DOCUMENT_ROOT =3D '/usr/share/nginx/html' HTTPS =3D 'on' HTTP_ACCEPT =3D 'text/html,application/xhtml+xml,application/xml;q=3D0.9,im= age/webp,*/*;q=3D0.8' HTTP_ACCEPT_ENCODING =3D 'gzip, deflate, br' HTTP_ACCEPT_LANGUAGE =3D 'de,en-US;q=3D0.7,en;q=3D0.3' HTTP_CONNECTION =3D 'keep-alive' HTTP_DNT =3D '1' HTTP_HOST =3D 'service.gnuviech-server.de' HTTP_REFERER =3D 'https://service.gnuviech-server.de/hosting/allpackages/' HTTP_UPGRADE_INSECURE_REQUESTS =3D '1' HTTP_USER_AGENT =3D 'Mozilla/5.0 (X11; Linux x86_64; rv:74.0) Gecko/2010010= 1 Firefox/74.0' PATH_INFO =3D '/hosting/<username>/2/' QUERY_STRING =3D '' REQUEST_METHOD =3D 'GET' REQUEST_SCHEME =3D 'https' REQUEST_URI =3D '/hosting/<username>/2/' SCRIPT_NAME =3D '' SERVER_NAME =3D 'service.gnuviech-server.de' SERVER_PORT =3D '443' SERVER_PROTOCOL =3D 'HTTP/1.1' uwsgi.core =3D 0 uwsgi.node =3D b'service' uwsgi.version =3D b'2.0.18-debian' wsgi.errors =3D <_io.TextIOWrapper name=3D2 mode=3D'w' encoding=3D'UTF-8'> wsgi.file_wrapper =3D '' wsgi.input =3D <uwsgi._Input object at 0x7f66c5a97fc0> wsgi.multiprocess =3D True wsgi.multithread =3D True wsgi.run_once =3D False wsgi.url_scheme =3D 'https' wsgi.version =3D '(1, 0)' ```
jan added the
bug
label 2020-04-13 13:10:12 +02:00
jan self-assigned this 2020-04-13 13:10:12 +02:00
jan closed this issue 2020-04-13 15:04:48 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: gnuviech/gva#7
No description provided.