<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Request failed with status code 500]]></title><description><![CDATA[<p dir="auto">Anyone having issues with latest Baserow upgrades ?</p>
<p dir="auto">I have Request failed with status code 500, right after login<br />
I have not changed anything specific from the default app environnement and the app was running fine just a few days ago</p>
<p dir="auto">Full trace log of this error 500 : <a href="https://paste.cloudron.io/okobusimap.yaml" target="_blank" rel="noopener noreferrer nofollow ugc">https://paste.cloudron.io/okobusimap.yaml</a><br />
<img src="/assets/uploads/files/1705513726521-90845348-53ff-4c0b-b3cc-0512eb73e7a0-image.png" alt="90845348-53ff-4c0b-b3cc-0512eb73e7a0-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Anyone else with this ?</p>
]]></description><link>https://forum.cloudron.io/topic/10886/request-failed-with-status-code-500</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 08:58:49 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/10886.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 17 Jan 2024 17:49:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Request failed with status code 500 on Sat, 17 Feb 2024 19:35:22 GMT]]></title><description><![CDATA[<p dir="auto">This can be closed, the fix seems to do the job, the baserows tables, even the biggest ones (500K) rows are displayed in a short time and the app is snappy overall, great job !</p>
]]></description><link>https://forum.cloudron.io/post/83457</link><guid isPermaLink="true">https://forum.cloudron.io/post/83457</guid><dc:creator><![CDATA[rmdes]]></dc:creator><pubDate>Sat, 17 Feb 2024 19:35:22 GMT</pubDate></item><item><title><![CDATA[Reply to Request failed with status code 500 on Mon, 12 Feb 2024 19:03:02 GMT]]></title><description><![CDATA[<p dir="auto">Thanks a lot everyone !! i'll test and see how it goes with the fix !</p>
]]></description><link>https://forum.cloudron.io/post/83191</link><guid isPermaLink="true">https://forum.cloudron.io/post/83191</guid><dc:creator><![CDATA[rmdes]]></dc:creator><pubDate>Mon, 12 Feb 2024 19:03:02 GMT</pubDate></item><item><title><![CDATA[Reply to Request failed with status code 500 on Wed, 07 Feb 2024 08:30:31 GMT]]></title><description><![CDATA[<p dir="auto">We've published a new package with the proposed fix now.</p>
]]></description><link>https://forum.cloudron.io/post/82852</link><guid isPermaLink="true">https://forum.cloudron.io/post/82852</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Wed, 07 Feb 2024 08:30:31 GMT</pubDate></item><item><title><![CDATA[Reply to Request failed with status code 500 on Wed, 07 Feb 2024 07:40:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/davide" aria-label="Profile: davide">@<bdi>davide</bdi></a> ah , thanks for the fix! We will make a new package with the fix.</p>
]]></description><link>https://forum.cloudron.io/post/82846</link><guid isPermaLink="true">https://forum.cloudron.io/post/82846</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 07 Feb 2024 07:40:04 GMT</pubDate></item><item><title><![CDATA[Reply to Request failed with status code 500 on Tue, 06 Feb 2024 15:18:33 GMT]]></title><description><![CDATA[<p dir="auto">Hey, Davide from Baserow here. Here the explanation of the bug, the work in progress to fix it for the long termand an immediate solution for now (taken from <a href="https://gitlab.com/baserow/baserow/-/issues/2290#note_1760709216" target="_blank" rel="noopener noreferrer nofollow ugc">https://gitlab.com/baserow/baserow/-/issues/2290#note_1760709216</a>) :</p>
<blockquote>
<p dir="auto">So, it turned out to be a pretty challenging bug. The main problem is that atm ASGI is not fully compatible with how we manage our dynamic models in Django, because every time we clear Django's global apps cache and, if another request tries to access some related field on a model at the same time, it might experience some weird error like the ones reported in this thread.<br />
While a proper fix is in development here: <a href="https://gitlab.com/baserow/baserow/-/merge_requests/2105" target="_blank" rel="noopener noreferrer nofollow ugc">!2105</a> I'd suggest changing the baserow-app in Cloudron applying the patch attached below. Basically, it uses WSGI to handle the API endpoints, leaving ASGI to handle WebSockets. In this way, every API request will have its process (and so its own Django apps registry), so that concurrent requests will have separate Django instances.</p>
</blockquote>
<p dir="auto">Patch:</p>
<pre><code>diff --git a/CloudronManifest.json b/CloudronManifest.json
index 1da2e64..c563208 100644
--- a/CloudronManifest.json
+++ b/CloudronManifest.json
@@ -1,6 +1,6 @@
 {
   "id": "io.baserow.cloudronapp",
-  "version": "1.17.0",
+  "version": "1.17.1",
   "upstreamVersion": "1.22.3",
   "title": "Baserow",
   "author": "Bram Wiepjes",
diff --git a/nginx.conf b/nginx.conf
index f080702..5ddf6ce 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -32,7 +32,7 @@ server {
         proxy_read_timeout 86400;
     }
 
-    location ~ ^/(api|ws)/ {
+    location ~ ^/(ws)/ {
         proxy_pass http://127.0.0.1:8000;
         proxy_pass_request_headers on;
         proxy_http_version 1.1;
@@ -42,6 +42,17 @@ server {
         proxy_set_header Connection "upgrade";
         proxy_read_timeout 86400;
     }
+    
+    location ~ ^/(api)/ {
+        proxy_pass http://127.0.0.1:8001;
+        proxy_pass_request_headers on;
+        proxy_http_version 1.1;
+        proxy_set_header Host $host;
+        proxy_set_header X-Real-IP $remote_addr;
+        proxy_set_header Upgrade $http_upgrade;
+        proxy_set_header Connection "upgrade";
+        proxy_read_timeout 86400;
+    }
 
     location /media/ {
         root /app/data;
diff --git a/supervisor.conf b/supervisor.conf
index 70d64c4..6fa5e8e 100644
--- a/supervisor.conf
+++ b/supervisor.conf
@@ -3,7 +3,7 @@ nodaemon = true
 logfile=/dev/null
 logfile_maxbytes=0
 
-[program:gunicorn]
+[program:backend-asgi]
 user=cloudron
 directory=/app/code
 command=/app/code/env/bin/gunicorn -w 3 -b 127.0.0.1:8000 -b [::1]:8000 -k uvicorn.workers.UvicornWorker baserow.config.asgi:application --log-level=debug
@@ -14,6 +14,17 @@ stderr_logfile_maxbytes=0
 autostart=true
 autorestart=true
 
+[program:backend-wsgi]
+user=cloudron
+directory=/app/code
+command=/app/code/env/bin/gunicorn -w 3 -b 127.0.0.1:8001 -b [::1]:8001 baserow.config.wsgi:application --log-level=debug
+stdout_logfile=/dev/stdout
+stdout_logfile_maxbytes=0
+stderr_logfile=/dev/stdout
+stderr_logfile_maxbytes=0
+autostart=true
+autorestart=true
+
 [program:worker]
 user=cloudron
 directory=/app/code

</code></pre>
]]></description><link>https://forum.cloudron.io/post/82776</link><guid isPermaLink="true">https://forum.cloudron.io/post/82776</guid><dc:creator><![CDATA[davide]]></dc:creator><pubDate>Tue, 06 Feb 2024 15:18:33 GMT</pubDate></item><item><title><![CDATA[Reply to Request failed with status code 500 on Sat, 27 Jan 2024 18:31:45 GMT]]></title><description><![CDATA[<p dir="auto">the same indeed but not entirely the same behavior, at least now I can see the dashboard and my two tables, but when I click on any of them or when I click on any parts of the admin settings I do get the same errors indeed.</p>
]]></description><link>https://forum.cloudron.io/post/81997</link><guid isPermaLink="true">https://forum.cloudron.io/post/81997</guid><dc:creator><![CDATA[rmdes]]></dc:creator><pubDate>Sat, 27 Jan 2024 18:31:45 GMT</pubDate></item><item><title><![CDATA[Reply to Request failed with status code 500 on Sat, 27 Jan 2024 15:47:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bram" aria-label="Profile: bram">@<bdi>bram</bdi></a> said in <a href="/post/81809">Request failed with status code 500</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rmdes" aria-label="Profile: rmdes">@<bdi>rmdes</bdi></a> we're analyzed your logs in more detail, and the only thing that's off, it the <code>Invalid field name(s) given in select_related: 'profile'</code> error. We're going to look into that. Meanwhile, it would also be great to receive which environment variables you've configured.</p>
</blockquote>
<p dir="auto">looks like this is still the same issue, the logs seem to bel the same.</p>
]]></description><link>https://forum.cloudron.io/post/81983</link><guid isPermaLink="true">https://forum.cloudron.io/post/81983</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Sat, 27 Jan 2024 15:47:57 GMT</pubDate></item><item><title><![CDATA[Reply to Request failed with status code 500 on Sat, 27 Jan 2024 13:57:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bram" aria-label="Profile: bram">@<bdi>bram</bdi></a> the only variables set in the <a href="http://env.sh" target="_blank" rel="noopener noreferrer nofollow ugc">env.sh</a> file are these two :</p>
<pre><code>export BASEROW_BACKEND_LOG_LEVEL=DEBUG
export BASEROW_AMOUNT_OF_GUNICORN_WORKERS=20
</code></pre>
]]></description><link>https://forum.cloudron.io/post/81972</link><guid isPermaLink="true">https://forum.cloudron.io/post/81972</guid><dc:creator><![CDATA[rmdes]]></dc:creator><pubDate>Sat, 27 Jan 2024 13:57:34 GMT</pubDate></item><item><title><![CDATA[Reply to Request failed with status code 500 on Sat, 27 Jan 2024 13:40:35 GMT]]></title><description><![CDATA[<p dir="auto">More logs :</p>
<p dir="auto">Apparently something is wrong with one of my tables ?<br />
it's odd because this table has been operating since 2 years and is being fed by a N8N process just fine until now<br />
this is the error I see now when I try to access any of my previously working tables</p>
<pre><code>Jan 27 14:34:00[2024-01-27 13:34:00,018: INFO/MainProcess] Scheduler: Sending due task baserow.core.notifications.tasks.beat_send_instant_notifications_summary_by_email() (baserow.core.notifications.tasks.beat_send_instant_notifications_summary_by_email)
Jan 27 14:34:00[2024-01-27 13:34:00,027: INFO/MainProcess] Task baserow.core.notifications.tasks.beat_send_instant_notifications_summary_by_email[fb70243d-a783-4e5d-870c-50b204885463] received
Jan 27 14:34:00[2024-01-27 13:34:00,033: INFO/ForkPoolWorker-14] Task baserow.core.notifications.tasks.beat_send_instant_notifications_summary_by_email[fb70243d-a783-4e5d-870c-50b204885463] succeeded in 0.0042537120170891285s: None
Jan 27 14:34:00[2024-01-27 13:34:00,039: INFO/MainProcess] Task baserow.core.notifications.tasks.singleton_send_instant_notifications_summary_by_email[2076bd97-f3b9-4a74-a552-c75ab3d5425e] received
Jan 27 14:34:00[2024-01-27 13:34:00,050: INFO/ForkPoolWorker-14] Task baserow.core.notifications.tasks.singleton_send_instant_notifications_summary_by_email[2076bd97-f3b9-4a74-a552-c75ab3d5425e] succeeded in 0.008335583959706128s: None
Jan 27 14:34:00172.18.0.1 - - [27/Jan/2024:13:34:00 +0000] "GET /_health HTTP/1.1" 200 156761 "-" "Mozilla (CloudronHealth)"
Jan 27 14:34:10172.18.0.1 - - [27/Jan/2024:13:34:10 +0000] "GET /_health HTTP/1.1" 200 156761 "-" "Mozilla (CloudronHealth)"
Jan 27 14:34:1760|2024-01-27 13:34:17.909|INFO|baserow.core.action.signals:log_action_receiver:28 - do: workspace= action_type=sign_in_user user=1
Jan 27 14:34:17172.18.0.1 - - [27/Jan/2024:13:34:17 +0000] "POST /api/user/token-auth/ HTTP/1.1" 200 1354 "-" "axios/1.6.2"
Jan 27 14:34:18172.18.0.1 - - [27/Jan/2024:13:34:18 +0000] "GET /api/database/fields/table/135/ HTTP/1.1" 200 2913 "-" "axios/1.6.2"
Jan 27 14:34:18ERROR 2024-01-27 13:34:18,594 django.request.log_response:241- Internal Server Error: /api/database/rows/table/135/
Jan 27 14:34:18Traceback (most recent call last):
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/asgiref/sync.py", line 486, in thread_handler
Jan 27 14:34:18raise exc_info[1]
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/core/handlers/exception.py", line 43, in inner
Jan 27 14:34:18response = await get_response(request)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/core/handlers/base.py", line 253, in _get_response_async
Jan 27 14:34:18response = await wrapped_callback(
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/asgiref/sync.py", line 448, in __call__
Jan 27 14:34:18ret = await asyncio.wait_for(future, timeout=None)
Jan 27 14:34:18File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
Jan 27 14:34:18return await fut
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/asgiref/current_thread_executor.py", line 22, in run
Jan 27 14:34:18result = self.fn(*self.args, **self.kwargs)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/asgiref/sync.py", line 490, in thread_handler
Jan 27 14:34:18return func(*args, **kwargs)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/views/decorators/csrf.py", line 55, in wrapped_view
Jan 27 14:34:18return view_func(*args, **kwargs)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/views/generic/base.py", line 84, in view
Jan 27 14:34:18return self.dispatch(request, *args, **kwargs)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 509, in dispatch
Jan 27 14:34:18response = self.handle_exception(exc)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 469, in handle_exception
Jan 27 14:34:18self.raise_uncaught_exception(exc)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
Jan 27 14:34:18raise exc
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 497, in dispatch
Jan 27 14:34:18self.initial(request, *args, **kwargs)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 414, in initial
Jan 27 14:34:18self.perform_authentication(request)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 324, in perform_authentication
Jan 27 14:34:18request.user
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework/request.py", line 227, in user
Jan 27 14:34:18self._authenticate()
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework/request.py", line 380, in _authenticate
Jan 27 14:34:18user_auth_tuple = authenticator.authenticate(self)
Jan 27 14:34:18File "/app/code/backend/src/baserow/api/authentication.py", line 48, in authenticate
Jan 27 14:34:18auth_response = super().authenticate(request)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework_simplejwt/authentication.py", line 40, in authenticate
Jan 27 14:34:18return self.get_user(validated_token), validated_token
Jan 27 14:34:18File "/app/code/backend/src/baserow/api/authentication.py", line 28, in get_user
Jan 27 14:34:18user = self.user_model.objects.select_related("profile").get(
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/query.py", line 492, in get
Jan 27 14:34:18num = len(clone)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/query.py", line 302, in __len__
Jan 27 14:34:18self._fetch_all()
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/query.py", line 1507, in _fetch_all
Jan 27 14:34:18self._result_cache = list(self._iterable_class(self))
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/query.py", line 57, in __iter__
Jan 27 14:34:18results = compiler.execute_sql(
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1348, in execute_sql
Jan 27 14:34:18sql, params = self.as_sql()
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 573, in as_sql
Jan 27 14:34:18extra_select, order_by, group_by = self.pre_sql_setup()
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 64, in pre_sql_setup
Jan 27 14:34:18self.setup_query()
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 55, in setup_query
Jan 27 14:34:18self.select, self.klass_info, self.annotation_col_map = self.get_select()
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 268, in get_select
Jan 27 14:34:18related_klass_infos = self.get_related_selections(select)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1158, in get_related_selections
Jan 27 14:34:18raise FieldError(
Jan 27 14:34:18django.core.exceptions.FieldError: Invalid field name(s) given in select_related: 'profile'. Choices are: (none)
Jan 27 14:34:18ERROR 2024-01-27 13:34:18,594 django.request.log_response:241- Internal Server Error: /api/database/rows/table/135/
Jan 27 14:34:18Traceback (most recent call last):
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/asgiref/sync.py", line 486, in thread_handler
Jan 27 14:34:18raise exc_info[1]
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/core/handlers/exception.py", line 43, in inner
Jan 27 14:34:18response = await get_response(request)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/core/handlers/base.py", line 253, in _get_response_async
Jan 27 14:34:18response = await wrapped_callback(
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/asgiref/sync.py", line 448, in __call__
Jan 27 14:34:18ret = await asyncio.wait_for(future, timeout=None)
Jan 27 14:34:18File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
Jan 27 14:34:18return await fut
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/asgiref/current_thread_executor.py", line 22, in run
Jan 27 14:34:18result = self.fn(*self.args, **self.kwargs)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/asgiref/sync.py", line 490, in thread_handler
Jan 27 14:34:18return func(*args, **kwargs)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/views/decorators/csrf.py", line 55, in wrapped_view
Jan 27 14:34:18return view_func(*args, **kwargs)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/views/generic/base.py", line 84, in view
Jan 27 14:34:18return self.dispatch(request, *args, **kwargs)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 509, in dispatch
Jan 27 14:34:18response = self.handle_exception(exc)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 469, in handle_exception
Jan 27 14:34:18self.raise_uncaught_exception(exc)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
Jan 27 14:34:18raise exc
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 497, in dispatch
Jan 27 14:34:18self.initial(request, *args, **kwargs)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 414, in initial
Jan 27 14:34:18self.perform_authentication(request)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 324, in perform_authentication
Jan 27 14:34:18request.user
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework/request.py", line 227, in user
Jan 27 14:34:18self._authenticate()
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework/request.py", line 380, in _authenticate
Jan 27 14:34:18user_auth_tuple = authenticator.authenticate(self)
Jan 27 14:34:18File "/app/code/backend/src/baserow/api/authentication.py", line 48, in authenticate
Jan 27 14:34:18auth_response = super().authenticate(request)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework_simplejwt/authentication.py", line 40, in authenticate
Jan 27 14:34:18return self.get_user(validated_token), validated_token
Jan 27 14:34:18File "/app/code/backend/src/baserow/api/authentication.py", line 28, in get_user
Jan 27 14:34:18user = self.user_model.objects.select_related("profile").get(
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/query.py", line 492, in get
Jan 27 14:34:18num = len(clone)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/query.py", line 302, in __len__
Jan 27 14:34:18self._fetch_all()
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/query.py", line 1507, in _fetch_all
Jan 27 14:34:18self._result_cache = list(self._iterable_class(self))
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/query.py", line 57, in __iter__
Jan 27 14:34:18results = compiler.execute_sql(
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1348, in execute_sql
Jan 27 14:34:18sql, params = self.as_sql()
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 573, in as_sql
Jan 27 14:34:18extra_select, order_by, group_by = self.pre_sql_setup()
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 64, in pre_sql_setup
Jan 27 14:34:18self.setup_query()
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 55, in setup_query
Jan 27 14:34:18self.select, self.klass_info, self.annotation_col_map = self.get_select()
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 268, in get_select
Jan 27 14:34:18related_klass_infos = self.get_related_selections(select)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1158, in get_related_selections
Jan 27 14:34:18raise FieldError(
Jan 27 14:34:18django.core.exceptions.FieldError: Invalid field name(s) given in select_related: 'profile'. Choices are: (none)
Jan 27 14:34:18ERROR 2024-01-27 13:34:18,594 django.request.log_response:241- Internal Server Error: /api/database/rows/table/135/
Jan 27 14:34:18Traceback (most recent call last):
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/asgiref/sync.py", line 486, in thread_handler
Jan 27 14:34:18raise exc_info[1]
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/core/handlers/exception.py", line 43, in inner
Jan 27 14:34:18response = await get_response(request)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/core/handlers/base.py", line 253, in _get_response_async
Jan 27 14:34:18response = await wrapped_callback(
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/asgiref/sync.py", line 448, in __call__
Jan 27 14:34:18ret = await asyncio.wait_for(future, timeout=None)
Jan 27 14:34:18File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
Jan 27 14:34:18return await fut
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/asgiref/current_thread_executor.py", line 22, in run
Jan 27 14:34:18result = self.fn(*self.args, **self.kwargs)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/asgiref/sync.py", line 490, in thread_handler
Jan 27 14:34:18return func(*args, **kwargs)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/views/decorators/csrf.py", line 55, in wrapped_view
Jan 27 14:34:18return view_func(*args, **kwargs)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/views/generic/base.py", line 84, in view
Jan 27 14:34:18return self.dispatch(request, *args, **kwargs)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 509, in dispatch
Jan 27 14:34:18response = self.handle_exception(exc)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 469, in handle_exception
Jan 27 14:34:18self.raise_uncaught_exception(exc)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
Jan 27 14:34:18raise exc
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 497, in dispatch
Jan 27 14:34:18self.initial(request, *args, **kwargs)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 414, in initial
Jan 27 14:34:18self.perform_authentication(request)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 324, in perform_authentication
Jan 27 14:34:18request.user
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework/request.py", line 227, in user
Jan 27 14:34:18self._authenticate()
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework/request.py", line 380, in _authenticate
Jan 27 14:34:18user_auth_tuple = authenticator.authenticate(self)
Jan 27 14:34:18File "/app/code/backend/src/baserow/api/authentication.py", line 48, in authenticate
Jan 27 14:34:18auth_response = super().authenticate(request)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/rest_framework_simplejwt/authentication.py", line 40, in authenticate
Jan 27 14:34:18return self.get_user(validated_token), validated_token
Jan 27 14:34:18File "/app/code/backend/src/baserow/api/authentication.py", line 28, in get_user
Jan 27 14:34:18user = self.user_model.objects.select_related("profile").get(
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/query.py", line 492, in get
Jan 27 14:34:18num = len(clone)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/query.py", line 302, in __len__
Jan 27 14:34:18self._fetch_all()
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/query.py", line 1507, in _fetch_all
Jan 27 14:34:18self._result_cache = list(self._iterable_class(self))
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/query.py", line 57, in __iter__
Jan 27 14:34:18results = compiler.execute_sql(
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1348, in execute_sql
Jan 27 14:34:18sql, params = self.as_sql()
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 573, in as_sql
Jan 27 14:34:18extra_select, order_by, group_by = self.pre_sql_setup()
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 64, in pre_sql_setup
Jan 27 14:34:18self.setup_query()
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 55, in setup_query
Jan 27 14:34:18self.select, self.klass_info, self.annotation_col_map = self.get_select()
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 268, in get_select
Jan 27 14:34:18related_klass_infos = self.get_related_selections(select)
Jan 27 14:34:18File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1158, in get_related_selections
Jan 27 14:34:18raise FieldError(
Jan 27 14:34:18django.core.exceptions.FieldError: Invalid field name(s) given in select_related: 'profile'. Choices are: (none)
Jan 27 14:34:18172.18.0.1 - - [27/Jan/2024:13:34:18 +0000] "POST /api/database/rows/table/135/ HTTP/1.1" 500 145 "-" "axios/1.6.2"
Jan 27 14:34:20172.18.0.1 - - [27/Jan/2024:13:34:20 +0000] "GET /_health HTTP/1.1" 200 156761 "-" "Mozilla (CloudronHealth)"
Jan 27 14:34:30172.18.0.1 - - [27/Jan/2024:13:34:30 +0000] "GET /_health HTTP/1.1" 200 156761 "-" "Mozilla (CloudronHealth)"
Jan 27 14:34:40172.18.0.1 - - [27/Jan/2024:13:34:40 +0000] "GET /_health HTTP/1.1" 200 156761 "-" "Mozilla (CloudronHealth)"
Jan 27 14:34:4459|2024-01-27 13:34:44.705|INFO|baserow.core.action.signals:log_action_receiver:28 - do: workspace= action_type=sign_in_user user=1
Jan 27 14:34:44172.18.0.1 - - [27/Jan/2024:13:34:44 +0000] "POST /api/user/token-auth/ HTTP/1.1" 200 1354 "-" "axios/1.6.2"
Jan 27 14:34:45172.18.0.1 - - [27/Jan/2024:13:34:45 +0000] "GET /api/database/fields/table/135/ HTTP/1.1" 200 2913 "-" "axios/1.6.2"
</code></pre>
]]></description><link>https://forum.cloudron.io/post/81967</link><guid isPermaLink="true">https://forum.cloudron.io/post/81967</guid><dc:creator><![CDATA[rmdes]]></dc:creator><pubDate>Sat, 27 Jan 2024 13:40:35 GMT</pubDate></item><item><title><![CDATA[Reply to Request failed with status code 500 on Sat, 27 Jan 2024 13:36:07 GMT]]></title><description><![CDATA[<p dir="auto">This is really odd, I tried to login again and this time, I managed to load the dashboard, but when I try to visit any part of the app I get this for /settings/ for example<br />
ERROR Request failed with status code 500</p>
<pre><code>Jan 27 14:33:24172.18.0.1 - - [27/Jan/2024:13:33:24 +0000] "GET /dashboard HTTP/1.1" 500 931 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0"
Jan 27 14:33:24ERROR Request failed with status code 500
Jan 27 14:33:24ERROR 2024-01-27 13:33:24,402 django.request.log_response:241- Internal Server Error: /api/settings/
Jan 27 14:33:24File "/app/code/backend/src/baserow/api/authentication.py", line 28, in get_user
Jan 27 14:33:24File "/app/code/backend/src/baserow/api/authentication.py", line 28, in get_user
Jan 27 14:33:24File "/app/code/backend/src/baserow/api/authentication.py", line 48, in authenticate
Jan 27 14:33:24File "/app/code/backend/src/baserow/api/authentication.py", line 48, in authenticate
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/asgiref/current_thread_executor.py", line 22, in run
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/asgiref/sync.py", line 448, in __call__
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/asgiref/sync.py", line 486, in thread_handler
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/asgiref/sync.py", line 490, in thread_handler
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/django/core/handlers/base.py", line 253, in _get_response_async
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/django/core/handlers/exception.py", line 43, in inner
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/django/db/models/query.py", line 1507, in _fetch_all
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/django/db/models/query.py", line 302, in __len__
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/django/db/models/query.py", line 492, in get
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/django/db/models/query.py", line 57, in __iter__
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1158, in get_related_selections
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1348, in execute_sql
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 268, in get_select
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 55, in setup_query
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 573, in as_sql
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 64, in pre_sql_setup
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/django/views/decorators/csrf.py", line 55, in wrapped_view
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/django/views/generic/base.py", line 84, in view
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/django/views/generic/base.py", line 84, in view
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/rest_framework/request.py", line 227, in user
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/rest_framework/request.py", line 227, in user
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/rest_framework/request.py", line 380, in _authenticate
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/rest_framework/request.py", line 380, in _authenticate
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 324, in perform_authentication
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 324, in perform_authentication
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 414, in initial
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 414, in initial
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 469, in handle_exception
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 469, in handle_exception
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 497, in dispatch
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 497, in dispatch
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 509, in dispatch
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 509, in dispatch
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/rest_framework_simplejwt/authentication.py", line 40, in authenticate
Jan 27 14:33:24File "/app/code/env/lib/python3.10/site-packages/rest_framework_simplejwt/authentication.py", line 40, in authenticate
Jan 27 14:33:24File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
Jan 27 14:33:24Traceback (most recent call last):
Jan 27 14:33:24at IncomingMessage.emit (node:domain:489:12)
Jan 27 14:33:24at IncomingMessage.emit (node:events:525:35)
Jan 27 14:33:24at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:545:0)
Jan 27 14:33:24at endReadableNT (node:internal/streams/readable:1359:12)
Jan 27 14:33:24at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Jan 27 14:33:24at settle (node_modules/axios/lib/core/settle.js:13:0)
Jan 27 14:33:24auth_response = super().authenticate(request)
Jan 27 14:33:24auth_response = super().authenticate(request)
Jan 27 14:33:24django.core.exceptions.FieldError: Invalid field name(s) given in select_related: 'profile'. Choices are: (none)
Jan 27 14:33:24extra_select, order_by, group_by = self.pre_sql_setup()
Jan 27 14:33:24num = len(clone)
Jan 27 14:33:24raise FieldError(
Jan 27 14:33:24raise exc
Jan 27 14:33:24raise exc
Jan 27 14:33:24raise exc_info[1]
Jan 27 14:33:24related_klass_infos = self.get_related_selections(select)
Jan 27 14:33:24request.user
Jan 27 14:33:24request.user
Jan 27 14:33:24response = await get_response(request)
Jan 27 14:33:24response = await wrapped_callback(
Jan 27 14:33:24response = self.handle_exception(exc)
Jan 27 14:33:24response = self.handle_exception(exc)
Jan 27 14:33:24result = self.fn(*self.args, **self.kwargs)
Jan 27 14:33:24results = compiler.execute_sql(
Jan 27 14:33:24ret = await asyncio.wait_for(future, timeout=None)
Jan 27 14:33:24return await fut
Jan 27 14:33:24return func(*args, **kwargs)
Jan 27 14:33:24return self.dispatch(request, *args, **kwargs)
Jan 27 14:33:24return self.dispatch(request, *args, **kwargs)
Jan 27 14:33:24return self.get_user(validated_token), validated_token
Jan 27 14:33:24return self.get_user(validated_token), validated_token
Jan 27 14:33:24return view_func(*args, **kwargs)
Jan 27 14:33:24self._authenticate()
Jan 27 14:33:24self._authenticate()
Jan 27 14:33:24self._fetch_all()
Jan 27 14:33:24self._result_cache = list(self._iterable_class(self))
Jan 27 14:33:24self.initial(request, *args, **kwargs)
Jan 27 14:33:24self.initial(request, *args, **kwargs)
Jan 27 14:33:24self.perform_authentication(request)
Jan 27 14:33:24self.perform_authentication(request)
Jan 27 14:33:24self.raise_uncaught_exception(exc)
Jan 27 14:33:24self.raise_uncaught_exception(exc)
Jan 27 14:33:24self.select, self.klass_info, self.annotation_col_map = self.get_select()
Jan 27 14:33:24self.setup_query()
Jan 27 14:33:24sql, params = self.as_sql()
Jan 27 14:33:24user = self.user_model.objects.select_related("profile").get(
Jan 27 14:33:24user = self.user_model.objects.select_related("profile").get(
Jan 27 14:33:24user_auth_tuple = authenticator.authenticate(self)
Jan 27 14:33:24user_auth_tuple = authenticator.authenticate(self)

Jan 27 14:33:30172.18.0.1 - - [27/Jan/2024:13:33:30 +0000] "GET /_health HTTP/1.1" 200 156761 "-" "Mozilla (CloudronHealth)"
Jan 27 14:33:40172.18.0.1 - - [27/Jan/2024:13:33:40 +0000] "GET /_health HTTP/1.1" 200 156761 "-" "Mozilla (CloudronHealth)"
Jan 27 14:33:50172.18.0.1 - - [27/Jan/2024:13:33:50 +0000] "GET /_health HTTP/1.1" 200 156762 "-" "Mozilla (CloudronHealth)"
</code></pre>
]]></description><link>https://forum.cloudron.io/post/81966</link><guid isPermaLink="true">https://forum.cloudron.io/post/81966</guid><dc:creator><![CDATA[rmdes]]></dc:creator><pubDate>Sat, 27 Jan 2024 13:36:07 GMT</pubDate></item><item><title><![CDATA[Reply to Request failed with status code 500 on Sat, 27 Jan 2024 13:30:03 GMT]]></title><description><![CDATA[<p dir="auto">I'm not sure if it's related, but just now I tried to login again, this time on the latest version, I have allowed the upgrade to enfold, once the container started I tried to login</p>
<p dir="auto">and I'm getting this :</p>
<pre><code>Jan 27 14:23:06179:M 27 Jan 2024 13:23:06.193 * Background saving terminated with success
Jan 27 14:23:063133:C 27 Jan 2024 13:23:06.099 * DB saved on disk
Jan 27 14:23:063133:C 27 Jan 2024 13:23:06.100 * Fork CoW for RDB: current 1 MB, peak 1 MB, average 0 MB
Jan 27 14:23:47172.18.0.1 - - [27/Jan/2024:13:23:47 +0000] "GET /dashboard HTTP/1.1" 400 158553 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0"
Jan 27 14:23:47ERROR 2024-01-27 13:23:47,137 django.request.log_response:241- Internal Server Error: /api/user/dashboard/
Jan 27 14:23:47File "/app/code/backend/src/baserow/api/authentication.py", line 28, in get_user
Jan 27 14:23:47File "/app/code/backend/src/baserow/api/authentication.py", line 28, in get_user
Jan 27 14:23:47File "/app/code/backend/src/baserow/api/authentication.py", line 48, in authenticate
Jan 27 14:23:47File "/app/code/backend/src/baserow/api/authentication.py", line 48, in authenticate
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/asgiref/current_thread_executor.py", line 22, in run
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/asgiref/sync.py", line 448, in __call__
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/asgiref/sync.py", line 486, in thread_handler
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/asgiref/sync.py", line 490, in thread_handler
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/django/core/handlers/base.py", line 253, in _get_response_async
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/django/core/handlers/exception.py", line 43, in inner
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/django/db/models/query.py", line 1507, in _fetch_all
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/django/db/models/query.py", line 1507, in _fetch_all
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/django/db/models/query.py", line 302, in __len__
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/django/db/models/query.py", line 302, in __len__
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/django/db/models/query.py", line 492, in get
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/django/db/models/query.py", line 492, in get
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/django/db/models/query.py", line 57, in __iter__
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/django/db/models/query.py", line 57, in __iter__
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1158, in get_related_selections
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1158, in get_related_selections
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1348, in execute_sql
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1348, in execute_sql
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 268, in get_select
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 268, in get_select
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 55, in setup_query
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 55, in setup_query
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 573, in as_sql
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 573, in as_sql
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 64, in pre_sql_setup
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 64, in pre_sql_setup
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/django/views/decorators/csrf.py", line 55, in wrapped_view
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/django/views/generic/base.py", line 84, in view
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/rest_framework/request.py", line 227, in user
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/rest_framework/request.py", line 227, in user
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/rest_framework/request.py", line 380, in _authenticate
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/rest_framework/request.py", line 380, in _authenticate
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 324, in perform_authentication
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 324, in perform_authentication
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 414, in initial
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 414, in initial
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 469, in handle_exception
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 497, in dispatch
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 509, in dispatch
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/rest_framework_simplejwt/authentication.py", line 40, in authenticate
Jan 27 14:23:47File "/app/code/env/lib/python3.10/site-packages/rest_framework_simplejwt/authentication.py", line 40, in authenticate
Jan 27 14:23:47File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
Jan 27 14:23:47Traceback (most recent call last):
Jan 27 14:23:47auth_response = super().authenticate(request)
Jan 27 14:23:47auth_response = super().authenticate(request)
Jan 27 14:23:47django.core.exceptions.FieldError: Invalid field name(s) given in select_related: 'profile'. Choices are: (none)
Jan 27 14:23:47django.core.exceptions.FieldError: Invalid field name(s) given in select_related: 'profile'. Choices are: (none)
Jan 27 14:23:47extra_select, order_by, group_by = self.pre_sql_setup()
Jan 27 14:23:47extra_select, order_by, group_by = self.pre_sql_setup()
Jan 27 14:23:47num = len(clone)
Jan 27 14:23:47num = len(clone)
Jan 27 14:23:47raise FieldError(
Jan 27 14:23:47raise FieldError(
Jan 27 14:23:47raise exc
Jan 27 14:23:47raise exc_info[1]
Jan 27 14:23:47related_klass_infos = self.get_related_selections(select)
Jan 27 14:23:47related_klass_infos = self.get_related_selections(select)
Jan 27 14:23:47request.user
Jan 27 14:23:47request.user
Jan 27 14:23:47response = await get_response(request)
Jan 27 14:23:47response = await wrapped_callback(
Jan 27 14:23:47response = self.handle_exception(exc)
Jan 27 14:23:47result = self.fn(*self.args, **self.kwargs)
Jan 27 14:23:47results = compiler.execute_sql(
Jan 27 14:23:47results = compiler.execute_sql(
Jan 27 14:23:47ret = await asyncio.wait_for(future, timeout=None)
Jan 27 14:23:47return await fut
Jan 27 14:23:47return func(*args, **kwargs)
Jan 27 14:23:47return self.dispatch(request, *args, **kwargs)
Jan 27 14:23:47return self.get_user(validated_token), validated_token
Jan 27 14:23:47return self.get_user(validated_token), validated_token
Jan 27 14:23:47return view_func(*args, **kwargs)
Jan 27 14:23:47self._authenticate()
Jan 27 14:23:47self._authenticate()
Jan 27 14:23:47self._fetch_all()
Jan 27 14:23:47self._fetch_all()
Jan 27 14:23:47self._result_cache = list(self._iterable_class(self))
Jan 27 14:23:47self._result_cache = list(self._iterable_class(self))
Jan 27 14:23:47self.initial(request, *args, **kwargs)
Jan 27 14:23:47self.perform_authentication(request)
Jan 27 14:23:47self.perform_authentication(request)
Jan 27 14:23:47self.raise_uncaught_exception(exc)
Jan 27 14:23:47self.select, self.klass_info, self.annotation_col_map = self.get_select()
Jan 27 14:23:47self.select, self.klass_info, self.annotation_col_map = self.get_select()
Jan 27 14:23:47self.setup_query()
Jan 27 14:23:47self.setup_query()
Jan 27 14:23:47sql, params = self.as_sql()
Jan 27 14:23:47sql, params = self.as_sql()
Jan 27 14:23:47user = self.user_model.objects.select_related("profile").get(
Jan 27 14:23:47user = self.user_model.objects.select_related("profile").get(
Jan 27 14:23:47user_auth_tuple = authenticator.authenticate(self)
Jan 27 14:23:47user_auth_tuple = authenticator.authenticate(self)
Jan 27 14:23:50172.18.0.1 - - [27/Jan/2024:13:23:50 +0000] "GET /_health HTTP/1.1" 200 156761 "-" "Mozilla (CloudronHealth)"
Jan 27 14:24:00[2024-01-27 13:24:00,017: INFO/MainProcess] Scheduler: Sending due task baserow.core.notifications.tasks.beat_send_instant_notifications_summary_by_email() (baserow.core.notifications.tasks.beat_send_instant_notifications_summary_by_email)
Jan 27 14:24:00[2024-01-27 13:24:00,023: INFO/MainProcess] Task baserow.core.notifications.tasks.beat_send_instant_notifications_summary_by_email[faf13556-2ce3-4cd4-a7bf-4a2e0766b63e] received
Jan 27 14:24:00[2024-01-27 13:24:00,027: INFO/ForkPoolWorker-14] Task baserow.core.notifications.tasks.beat_send_instant_notifications_summary_by_email[faf13556-2ce3-4cd4-a7bf-4a2e0766b63e] succeeded in 0.002572456025518477s: None
Jan 27 14:24:00[2024-01-27 13:24:00,028: INFO/MainProcess] Task baserow.core.notifications.tasks.singleton_send_instant_notifications_summary_by_email[54dfa545-32d6-45a1-9c24-503d6aaf8e86] received
Jan 27 14:24:00[2024-01-27 13:24:00,061: INFO/ForkPoolWorker-14] Task baserow.core.notifications.tasks.singleton_send_instant_notifications_summary_by_email[54dfa545-32d6-45a1-9c24-503d6aaf8e86] succeeded in 0.00927996402606368s: None
Jan 27 14:24:00172.18.0.1 - - [27/Jan/2024:13:24:00 +0000] "GET /_health HTTP/1.1" 200 156762 "-" "Mozilla (CloudronHealth)"
</code></pre>
<p dir="auto"><img src="/assets/uploads/files/1706362084867-1e6f2d30-fce1-42b9-9167-29809cf34efe-image.png" alt="image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">All I see is this on the frontend :</p>
<p dir="auto"><img src="/assets/uploads/files/1706362201407-5439c11f-5446-4862-96e9-117752184148-image.png" alt="5439c11f-5446-4862-96e9-117752184148-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.cloudron.io/post/81965</link><guid isPermaLink="true">https://forum.cloudron.io/post/81965</guid><dc:creator><![CDATA[rmdes]]></dc:creator><pubDate>Sat, 27 Jan 2024 13:30:03 GMT</pubDate></item><item><title><![CDATA[Reply to Request failed with status code 500 on Sat, 27 Jan 2024 13:25:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> I will try that</p>
]]></description><link>https://forum.cloudron.io/post/81964</link><guid isPermaLink="true">https://forum.cloudron.io/post/81964</guid><dc:creator><![CDATA[rmdes]]></dc:creator><pubDate>Sat, 27 Jan 2024 13:25:38 GMT</pubDate></item><item><title><![CDATA[Reply to Request failed with status code 500 on Thu, 25 Jan 2024 09:58:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rmdes" aria-label="Profile: rmdes">@<bdi>rmdes</bdi></a> we're analyzed your logs in more detail, and the only thing that's off, it the <code>Invalid field name(s) given in select_related: 'profile'</code> error. We're going to look into that. Meanwhile, it would also be great to receive which environment variables you've configured.</p>
]]></description><link>https://forum.cloudron.io/post/81809</link><guid isPermaLink="true">https://forum.cloudron.io/post/81809</guid><dc:creator><![CDATA[bram]]></dc:creator><pubDate>Thu, 25 Jan 2024 09:58:04 GMT</pubDate></item><item><title><![CDATA[Reply to Request failed with status code 500 on Wed, 24 Jan 2024 11:58:14 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for trying <a class="plugin-mentions-user plugin-mentions-a" href="/user/bram" aria-label="Profile: bram">@<bdi>bram</bdi></a> . I did the same and I could not figure out the problem.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rmdes" aria-label="Profile: rmdes">@<bdi>rmdes</bdi></a> What you can do is:</p>
<ul>
<li>Clone the app</li>
<li>Place the cloned app  in recovery mode</li>
<li>Run <code>/app/pkg/start.sh</code> . Then, try to get the logs when we hit 500</li>
</ul>
]]></description><link>https://forum.cloudron.io/post/81743</link><guid isPermaLink="true">https://forum.cloudron.io/post/81743</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 24 Jan 2024 11:58:14 GMT</pubDate></item><item><title><![CDATA[Reply to Request failed with status code 500 on Wed, 24 Jan 2024 11:39:59 GMT]]></title><description><![CDATA[<p dir="auto">I've tried to reproduce it by doing the following:</p>
<ul>
<li>Manually install 1.16.1 (Baserow 1.22.1) using <code>cloudron install -l upgrade-test-2 --image cloudron/io.baserow.cloudronapp:20231221-163612-6274e3e65</code></li>
<li>Wait for all the templates to install</li>
<li>Upgrade to 1.16.2 (Baserow 1.22.2) using <code>cloudron update --app 30d540a1-9fb8-4d69-b572-5c481df18a7a --image cloudron/io.baserow.cloudronapp:20240115-111341-0207e58dd</code></li>
</ul>
<p dir="auto">But it all works as expected.</p>
]]></description><link>https://forum.cloudron.io/post/81739</link><guid isPermaLink="true">https://forum.cloudron.io/post/81739</guid><dc:creator><![CDATA[bram]]></dc:creator><pubDate>Wed, 24 Jan 2024 11:39:59 GMT</pubDate></item><item><title><![CDATA[Reply to Request failed with status code 500 on Wed, 24 Jan 2024 11:18:34 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/rmdes" aria-label="Profile: rmdes">@<bdi>rmdes</bdi></a>, we're currently looking into this problem. We want to reproduce your scenario as close as possible. Do you have any environment variables set?</p>
]]></description><link>https://forum.cloudron.io/post/81736</link><guid isPermaLink="true">https://forum.cloudron.io/post/81736</guid><dc:creator><![CDATA[bram]]></dc:creator><pubDate>Wed, 24 Jan 2024 11:18:34 GMT</pubDate></item><item><title><![CDATA[Reply to Request failed with status code 500 on Wed, 17 Jan 2024 21:12:06 GMT]]></title><description><![CDATA[<p dir="auto">Done ! <a href="https://gitlab.com/baserow/baserow/-/issues/2290" target="_blank" rel="noopener noreferrer nofollow ugc">link</a></p>
]]></description><link>https://forum.cloudron.io/post/81306</link><guid isPermaLink="true">https://forum.cloudron.io/post/81306</guid><dc:creator><![CDATA[rmdes]]></dc:creator><pubDate>Wed, 17 Jan 2024 21:12:06 GMT</pubDate></item><item><title><![CDATA[Reply to Request failed with status code 500 on Wed, 17 Jan 2024 20:53:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rmdes" aria-label="Profile: rmdes">@<bdi>rmdes</bdi></a> thanks, I think we need to report it upstream at <a href="https://gitlab.com/baserow/baserow/-/issues" target="_blank" rel="noopener noreferrer nofollow ugc">https://gitlab.com/baserow/baserow/-/issues</a> (with the backtrace in <a href="https://paste.cloudron.io/okobusimap.yaml" target="_blank" rel="noopener noreferrer nofollow ugc">https://paste.cloudron.io/okobusimap.yaml</a>)</p>
]]></description><link>https://forum.cloudron.io/post/81302</link><guid isPermaLink="true">https://forum.cloudron.io/post/81302</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 17 Jan 2024 20:53:18 GMT</pubDate></item><item><title><![CDATA[Reply to Request failed with status code 500 on Wed, 17 Jan 2024 20:43:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> Server has been upgraded to 120GB of memory recently and each Baserow app have been set from default 3GB to 4GB and some with bigger tables with even more (one baserow with 6 and another with 8GB )<br />
I only managed to get them back up and running after indeed giving more memory, saving the location tab (they were loosing their associated app for some reason, with cloudron showing the view when the app is shutdown)<br />
now all Baserow are back on 1.16.1 with updates turned off</p>
<p dir="auto"><img src="/assets/uploads/files/1705524155492-63630422-b7c0-4d8e-9f66-217bb772a0c1-image-resized.png" alt="63630422-b7c0-4d8e-9f66-217bb772a0c1-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.cloudron.io/post/81301</link><guid isPermaLink="true">https://forum.cloudron.io/post/81301</guid><dc:creator><![CDATA[rmdes]]></dc:creator><pubDate>Wed, 17 Jan 2024 20:43:50 GMT</pubDate></item><item><title><![CDATA[Reply to Request failed with status code 500 on Wed, 17 Jan 2024 20:29:27 GMT]]></title><description><![CDATA[<p dir="auto">It seems it running out of memory (terminated by SIGKILL in the logs). Have you tried giving it more memory? How low is the server on memory?</p>
]]></description><link>https://forum.cloudron.io/post/81297</link><guid isPermaLink="true">https://forum.cloudron.io/post/81297</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 17 Jan 2024 20:29:27 GMT</pubDate></item><item><title><![CDATA[Reply to Request failed with status code 500 on Wed, 17 Jan 2024 20:18:52 GMT]]></title><description><![CDATA[<p dir="auto">I managed to downgrade one of the baserows to 1.16.1 (from 1.16.2)<br />
I had to save the location tab to reassociate the subdomain to the nginx location<br />
then I managed to login and check one table and suddenly : <a href="https://paste.cloudron.io/himapojade.yaml" target="_blank" rel="noopener noreferrer nofollow ugc">https://paste.cloudron.io/himapojade.yaml</a></p>
]]></description><link>https://forum.cloudron.io/post/81294</link><guid isPermaLink="true">https://forum.cloudron.io/post/81294</guid><dc:creator><![CDATA[rmdes]]></dc:creator><pubDate>Wed, 17 Jan 2024 20:18:52 GMT</pubDate></item><item><title><![CDATA[Reply to Request failed with status code 500 on Wed, 17 Jan 2024 19:20:34 GMT]]></title><description><![CDATA[<p dir="auto">This is making no sense at all,</p>
<p dir="auto">Even when I restore a backup from before the last package upgrade so :<br />
App was restored from version 1.16.2 to version 1.16.1</p>
<p dir="auto">I still get this in loop :<br />
<a href="https://paste.cloudron.io/xeyumenivu.apache" target="_blank" rel="noopener noreferrer nofollow ugc">https://paste.cloudron.io/xeyumenivu.apache</a></p>
<p dir="auto">Meanwhile I have checked on another cloudron and I have a very small Baserow on 1.16.2 operating just <a href="https://base.skyfleet.blue/public/grid/coacO_mwgwoqlQHZZg7NOGJMFxxKVGbGcda3Cc3sfP0" target="_blank" rel="noopener noreferrer nofollow ugc">fine</a></p>
]]></description><link>https://forum.cloudron.io/post/81288</link><guid isPermaLink="true">https://forum.cloudron.io/post/81288</guid><dc:creator><![CDATA[rmdes]]></dc:creator><pubDate>Wed, 17 Jan 2024 19:20:34 GMT</pubDate></item></channel></rss>