Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create gbr - DoesNotExist: ServerCA matching query does not exist. #823

Open
sraustein opened this issue May 13, 2016 · 0 comments
Open
Labels

Comments

@sraustein
Copy link
Contributor

with no parent and no repo (yet) i tried to create a gbr and it blew. a kinder "don't do that" might be better

{{{
From: root@localhost
Subject: [Django] ERROR (EXTERNAL IP): Internal Server Error: /rpki/gbr/create
To: root@localhost
Date: Fri, 13 May 2016 14:41:06 -0000

Internal Server Error: /rpki/gbr/create
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 132, in get_response
response = wrapped_callback(request, _callback_args, *_callback_kwargs)
File "/usr/lib/python2.7/dist-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
return view_func(request, _args, *_kwargs)
File "/usr/lib/python2.7/dist-packages/rpki/gui/decorators.py", line 28, in _tls_required
return f(request, _args, *_kwargs)
File "/usr/lib/python2.7/dist-packages/rpki/gui/app/views.py", line 105, in wrapped_fn
return f(request, _args, *_kwargs)
File "/usr/lib/python2.7/dist-packages/rpki/gui/app/views.py", line 961, in ghostbuster_create
Zookeeper(handle=conf.handle, logstream=logstream, disable_signal_handlers=True).run_rpkid_now()
File "/usr/lib/python2.7/dist-packages/rpki/irdb/zookeeper.py", line 1117, in run_rpkid_now
return self._rpkid_tenant_control("run_now")
File "/usr/lib/python2.7/dist-packages/rpki/irdb/zookeeper.py", line 1105, in _rpkid_tenant_control
return self.call_rpkid(q_msg)
File "/usr/lib/python2.7/dist-packages/rpki/irdb/zookeeper.py", line 1081, in call_rpkid
rpkid = self.server_ca.ee_certificates.get(purpose = "rpkid")
File "/usr/lib/python2.7/dist-packages/rpki/irdb/zookeeper.py", line 282, in server_ca
return rpki.irdb.models.ServerCA.objects.get()
File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py", line 127, in manager_method
return getattr(self.get_queryset(), name)(_args, *_kwargs)
File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 334, in get
self.model._meta.object_name
DoesNotExist: ServerCA matching query does not exist.

Request repr():
<WSGIRequest
path:/rpki/gbr/create,
GET:<QueryDict: {}>,
POST:<QueryDict: {u'box': [u''], u'city': [u'Bainbridge Island'], u'extended': [u''], u'parent': [u''], u'code': [u'98110'], u'country': [u'United States'], u'region': [u'Washington'], u'telephone': [u'2063568341'], u'street': [u'5147 Crystal Springs Drive NE'], u'full_name': [u'Randy Bush'], u'organization': [u'RGnet, LLC'], u'csrfmiddlewaretoken': [u'Ople5QoJ2Vv6GyfPpCZdrjvMAl29Bna5'], u'email_address': [u'[email protected]'], u'issuer': [u'1']}>,
COOKIES:{'csrftoken': 'Ople5QoJ2Vv6GyfPpCZdrjvMAl29Bna5',
'sessionid': 'wz43p1kzgatyquss22e087tj063xq2pq'},
META:{'CONTENT_LENGTH': '1524',
'CONTENT_TYPE': 'multipart/form-data; boundary=----WebKitFormBoundaryxw0uCS4yzCA7ESt4',
'CONTEXT_DOCUMENT_ROOT': '/var/www/html',
'CONTEXT_PREFIX': '',
u'CSRF_COOKIE': u'Ople5QoJ2Vv6GyfPpCZdrjvMAl29Bna5',
'DOCUMENT_ROOT': '/var/www/html',
'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8',
'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
'HTTP_ACCEPT_LANGUAGE': 'en,en-US;q=0.8,ja;q=0.6',
'HTTP_CACHE_CONTROL': 'max-age=0',
'HTTP_CONNECTION': 'keep-alive',
'HTTP_COOKIE': 'sessionid=wz43p1kzgatyquss22e087tj063xq2pq; csrftoken=Ople5QoJ2Vv6GyfPpCZdrjvMAl29Bna5',
'HTTP_DNT': '1',
'HTTP_HOST': 'ca.rg.net',
'HTTP_ORIGIN': 'https://ca.rg.net',
'HTTP_REFERER': 'https://ca.rg.net/rpki/gbr/create',
'HTTP_UPGRADE_INSECURE_REQUESTS': '1',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36',
'PATH_INFO': u'/rpki/gbr/create',
'PATH_TRANSLATED': '/usr/share/rpki/wsgi/rpki.wsgi/rpki/gbr/create',
'QUERY_STRING': '',
'REMOTE_ADDR': '193.0.10.59',
'REMOTE_PORT': '60727',
'REQUEST_METHOD': 'POST',
'REQUEST_SCHEME': 'https',
'REQUEST_URI': '/rpki/gbr/create',
'SCRIPT_FILENAME': '/usr/share/rpki/wsgi/rpki.wsgi',
'SCRIPT_NAME': u'',
'SERVER_ADDR': '198.180.152.6',
'SERVER_ADMIN': '[no address given]',
'SERVER_NAME': 'ca.rg.net',
'SERVER_PORT': '443',
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SIGNATURE': '

Apache/2.4.18 (Ubuntu) Server at ca.rg.net Port 443\n',
'SERVER_SOFTWARE': 'Apache/2.4.18 (Ubuntu)',
'SSL_TLS_SNI': 'ca.rg.net',
'apache.version': (2, 4, 18),
'mod_wsgi.application_group': 'ca.rg.net|',
'mod_wsgi.callable_object': 'application',
'mod_wsgi.daemon_connects': '1',
'mod_wsgi.daemon_restarts': '0',
'mod_wsgi.daemon_start': '1463150466497812',
'mod_wsgi.enable_sendfile': '0',
'mod_wsgi.handler_script': '',
'mod_wsgi.input_chunked': '0',
'mod_wsgi.listener_host': '',
'mod_wsgi.listener_port': '443',
'mod_wsgi.process_group': 'rpkigui',
'mod_wsgi.queue_start': '1463150466497679',
'mod_wsgi.request_handler': 'wsgi-script',
'mod_wsgi.request_start': '1463150466497484',
'mod_wsgi.script_reloading': '1',
'mod_wsgi.script_start': '1463150466497842',
'mod_wsgi.version': (4, 3, 0),
'wsgi.errors': <mod_wsgi.Log object at 0x7fdc5ed388e8>,
'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>,
'wsgi.input': <mod_wsgi.Input object at 0x7fdc5ebd1e30>,
'wsgi.multiprocess': False,
'wsgi.multithread': True,
'wsgi.run_once': False,
'wsgi.url_scheme': 'https',
'wsgi.version': (1, 0)}>
}}}

Trac ticket #817 component gui priority minor, owner None, created by randy on 2016-05-13T14:43:59Z, last modified 2016-05-13T14:43:59Z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant