[GH-ISSUE #258] crash peerbadkey #216

Closed
opened 2026-02-26 09:36:36 +03:00 by kerem · 0 comments
Owner

Originally created by @ThomasWaldmann on GitHub (Feb 11, 2016).
Original GitHub issue: https://github.com/nsupdate-info/nsupdate.info/issues/258

another one from inbox:

Internal Server Error: /domain/503/
Traceback (most recent call last):
  File "/srv/nsupdate.info/env/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/srv/nsupdate.info/env/local/lib/python2.7/site-packages/django/views/generic/base.py", line 71, in view
    return self.dispatch(request, *args, **kwargs)
  File "/srv/nsupdate.info/env/local/lib/python2.7/site-packages/django/utils/decorators.py", line 34, in _wrapper
    return bound_func(*args, **kwargs)
  File "/srv/nsupdate.info/env/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/srv/nsupdate.info/env/local/lib/python2.7/site-packages/django/utils/decorators.py", line 30, in bound_func
    return func.__get__(self, type(self))(*args2, **kwargs2)
  File "/srv/nsupdate.info/repo/nsupdate/main/views.py", line 465, in dispatch
    return super(DomainView, self).dispatch(*args, **kwargs)
  File "/srv/nsupdate.info/env/local/lib/python2.7/site-packages/django/views/generic/base.py", line 89, in dispatch
    return handler(request, *args, **kwargs)
  File "/srv/nsupdate.info/env/local/lib/python2.7/site-packages/django/views/generic/edit.py", line 272, in post
    return super(BaseUpdateView, self).post(request, *args, **kwargs)
  File "/srv/nsupdate.info/env/local/lib/python2.7/site-packages/django/views/generic/edit.py", line 214, in post
    if form.is_valid():
  File "/srv/nsupdate.info/env/local/lib/python2.7/site-packages/django/forms/forms.py", line 184, in is_valid
    return self.is_bound and not self.errors
  File "/srv/nsupdate.info/env/local/lib/python2.7/site-packages/django/forms/forms.py", line 176, in errors
    self.full_clean()
  File "/srv/nsupdate.info/env/local/lib/python2.7/site-packages/django/forms/forms.py", line 393, in full_clean
    self._clean_form()
  File "/srv/nsupdate.info/env/local/lib/python2.7/site-packages/django/forms/forms.py", line 417, in _clean_form
    cleaned_data = self.clean()
  File "/srv/nsupdate.info/repo/nsupdate/main/forms.py", line 71, in clean
    check_domain(self.instance.name)
  File "/srv/nsupdate.info/repo/nsupdate/main/dnstools.py", line 114, in check_domain
    add(fqdn, "8.8.8.8")
  File "/srv/nsupdate.info/repo/nsupdate/main/dnstools.py", line 154, in add
    update_ns(fqdn, rdtype, ipaddr, action=action, ttl=ttl)
  File "/srv/nsupdate.info/repo/nsupdate/main/dnstools.py", line 376, in update_ns
    raise DnsUpdateError("PeerBadKey")
DnsUpdateError: PeerBadKey

Request repr(): 
<WSGIRequest
path:/domain/503/,
GET:<QueryDict: {}>,
POST:<QueryDict: {u'nameserver2_ip': [u'87.65.94.42'], u'nameserver_update_algorithm': [u'HMAC_SHA512'], u'comment': [u''], u'nameserver_ip': [u'87.65.xx.xx'], u'nameserver_update_secret': [u'xxx'], u'available': [u'on'], u'csrfmiddlewaretoken': [u'xxx']}>,
COOKIES:{'csrftoken': 'xxx',
 'sessionid': 'xxx'},
META:{'CONTENT_LENGTH': '285',
 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
 u'CSRF_COOKIE': u'xxx',
 'DOCUMENT_ROOT': '/srv/nsupdate.info/htdocs',
 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, br',
 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5',
 'HTTP_CONNECTION': 'close',
 'HTTP_CONTENT_LENGTH': '285',
 'HTTP_CONTENT_TYPE': 'application/x-www-form-urlencoded',
 'HTTP_COOKIE': 'sessionid=xxx; csrftoken=xxx',
 'HTTP_DNT': '1',
 'HTTP_HOST': 'www.nsupdate.info',
 'HTTP_REFERER': 'https://www.nsupdate.info/domain/503/',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0',
 'HTTP_X_FORWARDED_FOR': 'xxx v6',
 'HTTP_X_FORWARDED_PROTO': 'https',
 'HTTP_X_REAL_IP': 'xxx v6',
 'PATH_INFO': u'/domain/503/',
 'QUERY_STRING': '',
 'REMOTE_ADDR': 'xxx v6',
 'REMOTE_PORT': '',
 'REQUEST_METHOD': 'POST',
 'REQUEST_URI': '/domain/503/',
 u'SCRIPT_NAME': u'',
 'SERVER_NAME': 'www.nsupdate.info',
 'SERVER_PORT': '80',
 'SERVER_PROTOCOL': 'HTTP/1.0',
 'UWSGI_APPID': 'nsupdate',
 'UWSGI_SCHEME': 'https',
 'uwsgi.core': 0,
 'uwsgi.node': 'web.thinkmo.de',
 'uwsgi.version': '2.0.7-debian',
 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f4abaf0c270>,
 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,
 'wsgi.input': <uwsgi._Input object at 0x7f4ab5aeee58>,
 'wsgi.multiprocess': False,
 'wsgi.multithread': True,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'https',
 'wsgi.version': (1, 0)}>
Originally created by @ThomasWaldmann on GitHub (Feb 11, 2016). Original GitHub issue: https://github.com/nsupdate-info/nsupdate.info/issues/258 another one from inbox: ``` Internal Server Error: /domain/503/ Traceback (most recent call last): File "/srv/nsupdate.info/env/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/srv/nsupdate.info/env/local/lib/python2.7/site-packages/django/views/generic/base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "/srv/nsupdate.info/env/local/lib/python2.7/site-packages/django/utils/decorators.py", line 34, in _wrapper return bound_func(*args, **kwargs) File "/srv/nsupdate.info/env/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view return view_func(request, *args, **kwargs) File "/srv/nsupdate.info/env/local/lib/python2.7/site-packages/django/utils/decorators.py", line 30, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/srv/nsupdate.info/repo/nsupdate/main/views.py", line 465, in dispatch return super(DomainView, self).dispatch(*args, **kwargs) File "/srv/nsupdate.info/env/local/lib/python2.7/site-packages/django/views/generic/base.py", line 89, in dispatch return handler(request, *args, **kwargs) File "/srv/nsupdate.info/env/local/lib/python2.7/site-packages/django/views/generic/edit.py", line 272, in post return super(BaseUpdateView, self).post(request, *args, **kwargs) File "/srv/nsupdate.info/env/local/lib/python2.7/site-packages/django/views/generic/edit.py", line 214, in post if form.is_valid(): File "/srv/nsupdate.info/env/local/lib/python2.7/site-packages/django/forms/forms.py", line 184, in is_valid return self.is_bound and not self.errors File "/srv/nsupdate.info/env/local/lib/python2.7/site-packages/django/forms/forms.py", line 176, in errors self.full_clean() File "/srv/nsupdate.info/env/local/lib/python2.7/site-packages/django/forms/forms.py", line 393, in full_clean self._clean_form() File "/srv/nsupdate.info/env/local/lib/python2.7/site-packages/django/forms/forms.py", line 417, in _clean_form cleaned_data = self.clean() File "/srv/nsupdate.info/repo/nsupdate/main/forms.py", line 71, in clean check_domain(self.instance.name) File "/srv/nsupdate.info/repo/nsupdate/main/dnstools.py", line 114, in check_domain add(fqdn, "8.8.8.8") File "/srv/nsupdate.info/repo/nsupdate/main/dnstools.py", line 154, in add update_ns(fqdn, rdtype, ipaddr, action=action, ttl=ttl) File "/srv/nsupdate.info/repo/nsupdate/main/dnstools.py", line 376, in update_ns raise DnsUpdateError("PeerBadKey") DnsUpdateError: PeerBadKey Request repr(): <WSGIRequest path:/domain/503/, GET:<QueryDict: {}>, POST:<QueryDict: {u'nameserver2_ip': [u'87.65.94.42'], u'nameserver_update_algorithm': [u'HMAC_SHA512'], u'comment': [u''], u'nameserver_ip': [u'87.65.xx.xx'], u'nameserver_update_secret': [u'xxx'], u'available': [u'on'], u'csrfmiddlewaretoken': [u'xxx']}>, COOKIES:{'csrftoken': 'xxx', 'sessionid': 'xxx'}, META:{'CONTENT_LENGTH': '285', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', u'CSRF_COOKIE': u'xxx', 'DOCUMENT_ROOT': '/srv/nsupdate.info/htdocs', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, br', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CONNECTION': 'close', 'HTTP_CONTENT_LENGTH': '285', 'HTTP_CONTENT_TYPE': 'application/x-www-form-urlencoded', 'HTTP_COOKIE': 'sessionid=xxx; csrftoken=xxx', 'HTTP_DNT': '1', 'HTTP_HOST': 'www.nsupdate.info', 'HTTP_REFERER': 'https://www.nsupdate.info/domain/503/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0', 'HTTP_X_FORWARDED_FOR': 'xxx v6', 'HTTP_X_FORWARDED_PROTO': 'https', 'HTTP_X_REAL_IP': 'xxx v6', 'PATH_INFO': u'/domain/503/', 'QUERY_STRING': '', 'REMOTE_ADDR': 'xxx v6', 'REMOTE_PORT': '', 'REQUEST_METHOD': 'POST', 'REQUEST_URI': '/domain/503/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.nsupdate.info', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'UWSGI_APPID': 'nsupdate', 'UWSGI_SCHEME': 'https', 'uwsgi.core': 0, 'uwsgi.node': 'web.thinkmo.de', 'uwsgi.version': '2.0.7-debian', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f4abaf0c270>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f4ab5aeee58>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}> ```
kerem closed this issue 2026-02-26 09:36:36 +03: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
starred/nsupdate.info-nsupdate-info#216
No description provided.