42 | | |
43 | | **Logs** |
44 | | {{{ |
45 | | [13/Aug/2024 00:50:41] "POST /api/instances/2/actions/move/ HTTP/1.1" 200 91 |
46 | | couldn't get a connection after 30.00 sec |
47 | | Traceback (most recent call last): |
48 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\backends\base\base.py", line 279, in ensure_connection |
49 | | self.connect() |
50 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\utils\asyncio.py", line 26, in inner |
51 | | return func(*args, **kwargs) |
52 | | ^^^^^^^^^^^^^^^^^^^^^ |
53 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\backends\base\base.py", line 256, in connect |
54 | | self.connection = self.get_new_connection(conn_params) |
55 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
56 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\utils\asyncio.py", line 26, in inner |
57 | | return func(*args, **kwargs) |
58 | | ^^^^^^^^^^^^^^^^^^^^^ |
59 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\backends\postgresql\base.py", line 348, in get_new_connection |
60 | | connection = self.pool.getconn() |
61 | | ^^^^^^^^^^^^^^^^^^^ |
62 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\psycopg_pool\pool.py", line 202, in getconn |
63 | | raise PoolTimeout( |
64 | | psycopg_pool.PoolTimeout: couldn't get a connection after 30.00 sec |
65 | | |
66 | | The above exception was the direct cause of the following exception: |
67 | | |
68 | | Traceback (most recent call last): |
69 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\ninja\operation.py", line 192, in _run_authentication |
70 | | result = callback(request) |
71 | | ^^^^^^^^^^^^^^^^^ |
72 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\ninja\security\apikey.py", line 23, in __call__ |
73 | | return self.authenticate(request, key) |
74 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
75 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\ninja\security\session.py", line 17, in authenticate |
76 | | if request.user.is_authenticated: |
77 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
78 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\utils\functional.py", line 251, in inner |
79 | | self._setup() |
80 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\utils\functional.py", line 404, in _setup |
81 | | self._wrapped = self._setupfunc() |
82 | | ^^^^^^^^^^^^^^^^^ |
83 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\contrib\auth\middleware.py", line 37, in <lambda> |
84 | | request.user = SimpleLazyObject(lambda: get_user(request)) |
85 | | ^^^^^^^^^^^^^^^^^ |
86 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\contrib\auth\middleware.py", line 17, in get_user |
87 | | request._cached_user = auth.get_user(request) |
88 | | ^^^^^^^^^^^^^^^^^^^^^^ |
89 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\contrib\auth\__init__.py", line 209, in get_user |
90 | | user_id = _get_user_session_key(request) |
91 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
92 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\contrib\auth\__init__.py", line 62, in _get_user_session_key |
93 | | return get_user_model()._meta.pk.to_python(request.session[SESSION_KEY]) |
94 | | ~~~~~~~~~~~~~~~^^^^^^^^^^^^^ |
95 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\contrib\sessions\backends\base.py", line 55, in __getitem__ |
96 | | return self._session[key] |
97 | | ^^^^^^^^^^^^^ |
98 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\contrib\sessions\backends\base.py", line 249, in _get_session |
99 | | self._session_cache = self.load() |
100 | | ^^^^^^^^^^^ |
101 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\contrib\sessions\backends\db.py", line 55, in load |
102 | | s = self._get_session_from_db() |
103 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
104 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\contrib\sessions\backends\db.py", line 34, in _get_session_from_db |
105 | | return self.model.objects.get( |
106 | | ^^^^^^^^^^^^^^^^^^^^^^^ |
107 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\models\manager.py", line 87, in manager_method |
108 | | return getattr(self.get_queryset(), name)(*args, **kwargs) |
109 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
110 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\models\query.py", line 645, in get |
111 | | num = len(clone) |
112 | | ^^^^^^^^^^ |
113 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\models\query.py", line 382, in __len__ |
114 | | self._fetch_all() |
115 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\models\query.py", line 1928, in _fetch_all |
116 | | self._result_cache = list(self._iterable_class(self)) |
117 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
118 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\models\query.py", line 91, in __iter__ |
119 | | results = compiler.execute_sql( |
120 | | ^^^^^^^^^^^^^^^^^^^^^ |
121 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\cachalot\monkey_patch.py", line 37, in inner |
122 | | return original(compiler, *args, **kwargs) |
123 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
124 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\cachalot\monkey_patch.py", line 94, in inner |
125 | | return execute_query_func() |
126 | | ^^^^^^^^^^^^^^^^^^^^ |
127 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\cachalot\monkey_patch.py", line 80, in <lambda> |
128 | | execute_query_func = lambda: original(compiler, *args, **kwargs) |
129 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
130 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\models\sql\compiler.py", line 1572, in execute_sql |
131 | | cursor = self.connection.cursor() |
132 | | ^^^^^^^^^^^^^^^^^^^^^^^^ |
133 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\utils\asyncio.py", line 26, in inner |
134 | | return func(*args, **kwargs) |
135 | | ^^^^^^^^^^^^^^^^^^^^^ |
136 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\backends\base\base.py", line 320, in cursor |
137 | | return self._cursor() |
138 | | ^^^^^^^^^^^^^^ |
139 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\backends\base\base.py", line 296, in _cursor |
140 | | self.ensure_connection() |
141 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\utils\asyncio.py", line 26, in inner |
142 | | return func(*args, **kwargs) |
143 | | ^^^^^^^^^^^^^^^^^^^^^ |
144 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\backends\base\base.py", line 278, in ensure_connection |
145 | | with self.wrap_database_errors: |
146 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\utils.py", line 91, in __exit__ |
147 | | raise dj_exc_value.with_traceback(traceback) from exc_value |
148 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\backends\base\base.py", line 279, in ensure_connection |
149 | | self.connect() |
150 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\utils\asyncio.py", line 26, in inner |
151 | | return func(*args, **kwargs) |
152 | | ^^^^^^^^^^^^^^^^^^^^^ |
153 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\backends\base\base.py", line 256, in connect |
154 | | self.connection = self.get_new_connection(conn_params) |
155 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
156 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\utils\asyncio.py", line 26, in inner |
157 | | return func(*args, **kwargs) |
158 | | ^^^^^^^^^^^^^^^^^^^^^ |
159 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\backends\postgresql\base.py", line 348, in get_new_connection |
160 | | connection = self.pool.getconn() |
161 | | ^^^^^^^^^^^^^^^^^^^ |
162 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\psycopg_pool\pool.py", line 202, in getconn |
163 | | raise PoolTimeout( |
164 | | django.db.utils.OperationalError: couldn't get a connection after 30.00 sec |
165 | | Internal Server Error: /api/instances/2/actions/move/ |
166 | | Traceback (most recent call last): |
167 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\backends\base\base.py", line 279, in ensure_connection |
168 | | self.connect() |
169 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\utils\asyncio.py", line 26, in inner |
170 | | return func(*args, **kwargs) |
171 | | ^^^^^^^^^^^^^^^^^^^^^ |
172 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\backends\base\base.py", line 256, in connect |
173 | | self.connection = self.get_new_connection(conn_params) |
174 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
175 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\utils\asyncio.py", line 26, in inner |
176 | | return func(*args, **kwargs) |
177 | | ^^^^^^^^^^^^^^^^^^^^^ |
178 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\backends\postgresql\base.py", line 348, in get_new_connection |
179 | | connection = self.pool.getconn() |
180 | | ^^^^^^^^^^^^^^^^^^^ |
181 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\psycopg_pool\pool.py", line 202, in getconn |
182 | | raise PoolTimeout( |
183 | | psycopg_pool.PoolTimeout: couldn't get a connection after 30.00 sec |
184 | | |
185 | | The above exception was the direct cause of the following exception: |
186 | | |
187 | | Traceback (most recent call last): |
188 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner |
189 | | response = get_response(request) |
190 | | ^^^^^^^^^^^^^^^^^^^^^ |
191 | | File "C:\Repos\untitledgame\backend\monitor\middleware.py", line 35, in __call__ |
192 | | user_id=user_id_or_none(request.user), |
193 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
194 | | File "C:\Repos\untitledgame\backend\game\api\utils.py", line 9, in user_id_or_none |
195 | | if isinstance(user, AnonymousUser): |
196 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
197 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\utils\functional.py", line 280, in __getattribute__ |
198 | | value = super().__getattribute__(name) |
199 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
200 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\utils\functional.py", line 251, in inner |
201 | | self._setup() |
202 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\utils\functional.py", line 404, in _setup |
203 | | self._wrapped = self._setupfunc() |
204 | | ^^^^^^^^^^^^^^^^^ |
205 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\contrib\auth\middleware.py", line 37, in <lambda> |
206 | | request.user = SimpleLazyObject(lambda: get_user(request)) |
207 | | ^^^^^^^^^^^^^^^^^ |
208 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\contrib\auth\middleware.py", line 17, in get_user |
209 | | request._cached_user = auth.get_user(request) |
210 | | ^^^^^^^^^^^^^^^^^^^^^^ |
211 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\contrib\auth\__init__.py", line 209, in get_user |
212 | | user_id = _get_user_session_key(request) |
213 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
214 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\contrib\auth\__init__.py", line 62, in _get_user_session_key |
215 | | return get_user_model()._meta.pk.to_python(request.session[SESSION_KEY]) |
216 | | ~~~~~~~~~~~~~~~^^^^^^^^^^^^^ |
217 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\contrib\sessions\backends\base.py", line 55, in __getitem__ |
218 | | return self._session[key] |
219 | | ^^^^^^^^^^^^^ |
220 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\contrib\sessions\backends\base.py", line 249, in _get_session |
221 | | self._session_cache = self.load() |
222 | | ^^^^^^^^^^^ |
223 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\contrib\sessions\backends\db.py", line 55, in load |
224 | | s = self._get_session_from_db() |
225 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
226 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\contrib\sessions\backends\db.py", line 34, in _get_session_from_db |
227 | | return self.model.objects.get( |
228 | | ^^^^^^^^^^^^^^^^^^^^^^^ |
229 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\models\manager.py", line 87, in manager_method |
230 | | return getattr(self.get_queryset(), name)(*args, **kwargs) |
231 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
232 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\models\query.py", line 645, in get |
233 | | num = len(clone) |
234 | | ^^^^^^^^^^ |
235 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\models\query.py", line 382, in __len__ |
236 | | self._fetch_all() |
237 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\models\query.py", line 1928, in _fetch_all |
238 | | self._result_cache = list(self._iterable_class(self)) |
239 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
240 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\models\query.py", line 91, in __iter__ |
241 | | results = compiler.execute_sql( |
242 | | ^^^^^^^^^^^^^^^^^^^^^ |
243 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\cachalot\monkey_patch.py", line 37, in inner |
244 | | return original(compiler, *args, **kwargs) |
245 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
246 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\cachalot\monkey_patch.py", line 94, in inner |
247 | | return execute_query_func() |
248 | | ^^^^^^^^^^^^^^^^^^^^ |
249 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\cachalot\monkey_patch.py", line 80, in <lambda> |
250 | | execute_query_func = lambda: original(compiler, *args, **kwargs) |
251 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
252 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\models\sql\compiler.py", line 1572, in execute_sql |
253 | | cursor = self.connection.cursor() |
254 | | ^^^^^^^^^^^^^^^^^^^^^^^^ |
255 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\utils\asyncio.py", line 26, in inner |
256 | | return func(*args, **kwargs) |
257 | | ^^^^^^^^^^^^^^^^^^^^^ |
258 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\backends\base\base.py", line 320, in cursor |
259 | | return self._cursor() |
260 | | ^^^^^^^^^^^^^^ |
261 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\backends\base\base.py", line 296, in _cursor |
262 | | self.ensure_connection() |
263 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\utils\asyncio.py", line 26, in inner |
264 | | return func(*args, **kwargs) |
265 | | ^^^^^^^^^^^^^^^^^^^^^ |
266 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\backends\base\base.py", line 278, in ensure_connection |
267 | | with self.wrap_database_errors: |
268 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\utils.py", line 91, in __exit__ |
269 | | raise dj_exc_value.with_traceback(traceback) from exc_value |
270 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\backends\base\base.py", line 279, in ensure_connection |
271 | | self.connect() |
272 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\utils\asyncio.py", line 26, in inner |
273 | | return func(*args, **kwargs) |
274 | | ^^^^^^^^^^^^^^^^^^^^^ |
275 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\backends\base\base.py", line 256, in connect |
276 | | self.connection = self.get_new_connection(conn_params) |
277 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
278 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\utils\asyncio.py", line 26, in inner |
279 | | return func(*args, **kwargs) |
280 | | ^^^^^^^^^^^^^^^^^^^^^ |
281 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\django\db\backends\postgresql\base.py", line 348, in get_new_connection |
282 | | connection = self.pool.getconn() |
283 | | ^^^^^^^^^^^^^^^^^^^ |
284 | | File "C:\Users\andre\.virtualenvs\backend-jnn8gBG-\Lib\site-packages\psycopg_pool\pool.py", line 202, in getconn |
285 | | raise PoolTimeout( |
286 | | django.db.utils.OperationalError: couldn't get a connection after 30.00 sec |
287 | | [13/Aug/2024 00:56:42] "POST /api/instances/2/actions/move/ HTTP/1.1" 500 235606 |
288 | | }}} |