Closed ihsaan-ullah closed 7 months ago
Works on codabench test
Logs
django_1 | Making new rabbitmq user for pavao
django_1 | Internal Server Error: /api/queues/
django_1 | Traceback (most recent call last):
django_1 | File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 34, in inner
django_1 | response = get_response(request)
django_1 | File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 115, in _get_response
django_1 | response = self.process_exception_by_middleware(e, request)
django_1 | File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 113, in _get_response
django_1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
django_1 | File "/usr/local/lib/python3.8/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
django_1 | return view_func(*args, **kwargs)
django_1 | File "/usr/local/lib/python3.8/site-packages/rest_framework/viewsets.py", line 116, in view
django_1 | return self.dispatch(request, *args, **kwargs)
django_1 | File "/usr/local/lib/python3.8/site-packages/rest_framework/views.py", line 495, in dispatch
django_1 | response = self.handle_exception(exc)
django_1 | File "/usr/local/lib/python3.8/site-packages/rest_framework/views.py", line 455, in handle_exception
django_1 | self.raise_uncaught_exception(exc)
django_1 | File "/usr/local/lib/python3.8/site-packages/rest_framework/views.py", line 492, in dispatch
django_1 | response = handler(request, *args, **kwargs)
django_1 | File "/app/src/apps/api/views/queues.py", line 41, in create
django_1 | self.perform_create(serializer)
django_1 | File "/usr/local/lib/python3.8/site-packages/rest_framework/mixins.py", line 26, in perform_create
django_1 | serializer.save()
django_1 | File "/usr/local/lib/python3.8/site-packages/rest_framework/serializers.py", line 214, in save
django_1 | self.instance = self.create(validated_data)
django_1 | File "/app/src/apps/api/mixins.py", line 18, in create
django_1 | return super().create(validated_data)
django_1 | File "/usr/local/lib/python3.8/site-packages/rest_framework/serializers.py", line 943, in create
django_1 | instance = ModelClass._default_manager.create(**validated_data)
django_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/manager.py", line 82, in manager_method
django_1 | return getattr(self.get_queryset(), name)(*args, **kwargs)
django_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 422, in create
django_1 | obj.save(force_insert=True, using=self.db)
django_1 | File "/app/src/apps/queues/models.py", line 47, in save
django_1 | self.vhost = rabbit.create_queue(self.owner)
django_1 | File "/app/src/apps/queues/rabbit.py", line 63, in create_queue
django_1 | initialize_user(user, conn)
django_1 | File "/app/src/apps/queues/rabbit.py", line 44, in initialize_user
django_1 | connection.create_user(str(user.rabbitmq_username), str(user.rabbitmq_password))
django_1 | File "/usr/local/lib/python3.8/site-packages/pyrabbit2/api.py", line 949, in create_user
django_1 | return self._call(path, 'PUT', body=body,
django_1 | File "/usr/local/lib/python3.8/site-packages/pyrabbit2/api.py", line 123, in _call
django_1 | resp = self.http.do_call(path, method, body, headers, params)
django_1 | File "/usr/local/lib/python3.8/site-packages/pyrabbit2/http.py", line 110, in do_call
django_1 | raise HTTPError(content, resp.status_code, resp.text, path, body)
django_1 | pyrabbit2.http.HTTPError: 502 - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
django_1 | <html><head>
django_1 | <meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
django_1 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
django_1 | <title>ERROR: The requested URL could not be retrieved</title>
django_1 | <style type="text/css"><!--
django_1 | /*
django_1 | * Copyright (C) 1996-2022 The Squid Software Foundation and contributors
django_1 | *
django_1 | * Squid software is distributed under GPLv2+ license and includes
django_1 | * contributions from numerous individuals and organizations.
django_1 | * Please see the COPYING and CONTRIBUTORS files for details.
django_1 | */
django_1 |
django_1 | /*
django_1 | Stylesheet for Squid Error pages
django_1 | Adapted from design by Free CSS Templates
django_1 | http://www.freecsstemplates.org
django_1 | Released for free under a Creative Commons Attribution 2.5 License
django_1 | */
django_1 |
django_1 | /* Page basics */
django_1 | * {
django_1 | font-family: verdana, sans-serif;
django_1 | }
django_1 |
django_1 | html body {
django_1 | margin: 0;
django_1 | padding: 0;
django_1 | background: #efefef;
django_1 | font-size: 12px;
django_1 | color: #1e1e1e;
django_1 | }
django_1 |
django_1 | /* Page displayed title area */
caddy_1 | 129.175.8.21 - - [19/Apr/2024:11:30:19 +0000] "POST /api/queues/ HTTP/1.1" 500 51
django_1 | #titles {
django_1 | margin-left: 15px;
django_1 | padding: 10px;
django_1 | padding-left: 100px;
django_1 | background: url('/squid-internal-static/icons/SN.png') no-repeat left;
django_1 | }
django_1 |
django_1 | /* initial title */
django_1 | #titles h1 {
django_1 | color: #000000;
django_1 | }
django_1 | #titles h2 {
django_1 | color: #000000;
django_1 | }
django_1 |
django_1 | /* special event: FTP success page titles */
django_1 | #titles ftpsuccess {
django_1 | background-color:#00ff00;
django_1 | width:100%;
django_1 | }
django_1 |
django_1 | /* Page displayed body content area */
django_1 | #content {
django_1 | padding: 10px;
django_1 | background: #ffffff;
django_1 | }
django_1 |
django_1 | /* General text */
django_1 | p {
django_1 | }
django_1 | #titles ftpsuccess {
django_1 | background-color:#00ff00;
django_1 | width:100%;
django_1 | }
django_1 |
django_1 | /* Page displayed body content area */
django_1 | #content {
django_1 | padding: 10px;
django_1 | background: #ffffff;
django_1 | }
django_1 |
django_1 | /* General text */
django_1 | p {
django_1 | }
django_1 |
django_1 | /* error brief description */
django_1 | #error p {
django_1 | }
django_1 |
django_1 | /* some data which may have caused the problem */
django_1 | #data {
django_1 | }
django_1 |
django_1 | /* the error message received from the system or other software */
django_1 | #sysmsg {
django_1 | }
django_1 |
django_1 | pre {
django_1 | }
django_1 |
django_1 | /* special event: FTP / Gopher directory listing */
django_1 | #dirmsg {
django_1 | font-family: courier, monospace;
django_1 | color: black;
django_1 | font-size: 10pt;
django_1 | }
django_1 | #dirlisting {
django_1 | margin-left: 2%;
django_1 | margin-right: 2%;
django_1 | }
django_1 | #dirlisting tr.entry td.icon,td.filename,td.size,td.date {
django_1 | border-bottom: groove;
django_1 | }
django_1 | #dirlisting td.size {
django_1 | width: 50px;
django_1 | text-align: right;
django_1 | padding-right: 5px;
django_1 | }
django_1 |
django_1 | /* horizontal lines */
django_1 | hr {
django_1 | margin: 0;
django_1 | }
django_1 |
django_1 | /* page displayed footer area */
django_1 | #footer {
django_1 | font-size: 9px;
django_1 | padding-left: 10px;
django_1 | }
django_1 |
django_1 |
django_1 | body
django_1 | :lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, sans-serif; float: right; }
django_1 | :lang(he) { direction: rtl; }
django_1 | --></style>
django_1 | </head><body id=ERR_READ_ERROR>
django_1 | <div id="titles">
django_1 | <h1>ERROR</h1>
django_1 | <h2>The requested URL could not be retrieved</h2>
django_1 | </div>
django_1 | <hr>
django_1 |
django_1 | <div id="content">
django_1 | <p>The following error was encountered while trying to retrieve the URL: <a href="http://rabbit:15672/api/users/26df2d3e-345e-472b-9d41-6e1ae58c4202">http://rabbit:15672/api/users/26df2d3e-345e-472b-9d41-6e1ae58c4202</a></p>
django_1 |
django_1 | <blockquote id="error">
django_1 | <p><b>Read Error</b></p>
django_1 | </blockquote>
django_1 |
django_1 | <p id="sysmsg">The system returned: <i>[No Error]</i></p>
django_1 |
django_1 | <p>An error condition occurred while reading data from the network. Please retry your request.</p>
django_1 |
django_1 | <p>Your cache administrator is <a href="mailto:webmaster?subject=CacheErrorInfo%20-%20ERR_READ_ERROR&body=CacheHost%3A%20proxy-web%0D%0AErrPage%3A%20ERR_READ_ERROR%0D%0AErr%3A%20%5Bnone%5D%0D%0ATimeStamp%3A%20Fri,%2019%20Apr%202024%2011%3A33%3A38%20GMT%0D%0A%0D%0AClientIP%3A%2010.152.50.23%0D%0A%0D%0AHTTP%20Request%3A%0D%0APUT%20%2Fapi%2Fusers%2F26df2d3e-345e-472b-9d41-6e1ae58c4202%20HTTP%2F1.1%0AUser-Agent%3A%20python-requests%2F2.31.0%0D%0AAccept-Encoding%3A%20gzip,%20deflate%0D%0AAccept%3A%20*%2F*%0D%0AConnection%3A%20keep-alive%0D%0AContent-Type%3A%20application%2Fjson%0D%0AContent-Length%3A%2064%0D%0AAuthorization%3A%20Basic%20cmFiYml0LWNvbXB2MjpyYWJiaXQ6ITIwMjE6YWM1NWJlM2E%3D%0D%0AHost%3A%20rabbit%3A15672%0D%0A%0D%0A%0D%0A">webmaster</a>.</p>
django_1 | <br>
django_1 | </div>
django_1 |
django_1 | <hr>
django_1 | <div id="footer">
django_1 | <p>Generated Fri, 19 Apr 2024 11:33:38 GMT by proxy-web (squid/5.7)</p>
django_1 | <!-- ERR_READ_ERROR -->
django_1 | </div>
django_1 | </body></html>
django_1 | (None) (users/26df2d3e-345e-472b-9d41-6e1ae58c4202) ('{"password": "6a7f18d6-85a0-455f-9069-9903297abd15", "tags": ""}')
Restarting the server solved the problem.
I close the issue but that would be interesting to investigate it. Some submissions were stuck in "Running" too.