-
Hi,
After Upgrade to the newest version of Tandoor.
The Food Menu and Shooping list entry is not working. So overall you cant really use the App since it is a Cooking management Software.Following errors if you open Foods and storages over the Admin and normal user interface




-
G girish moved this topic from Support on
-
Do you see any errors on the server side of the app? I tried to reproduce this but either I am not creating the correct entries in the app or it is working here. But this is a new installation for testing so could be a migration issue.
-
Those can be safely ignored and the output of those is fixed with next version.
Strange that the app does not print anything more on 500. I guess we would need to increase log level verbosity, however that is fixed in the current app package at https://git.cloudron.io/cloudron/tandoor-app/-/blob/main/config/supervisor/gunicorn.conf#L4 to INFO
It would help to exactly describe the steps on how to reproduce this. Maybe then I can reproduce this also in a debuggable instance.
If this doesn't work, then if you want, you could enable remote ssh support for us and send a mail to support@cloudron.io with your dashboard domain/public ip.
-
N nebulon marked this topic as a question on
-
@nebulon So i tried the Export function from the Space to see if it triggers more errors. The Export is not working here is the error

Aug 16 13:29:34 172.18.0.1 - - [16/Aug/2023:11:29:34 +0000] "POST /export/ HTTP/1.1" 200 16 "https://subdomain.url.url/export/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36" Aug 16 13:29:34 Exception in thread Thread-2 (do_export): Aug 16 13:29:34 Traceback (most recent call last): Aug 16 13:29:34 File "/app/code/.venv/lib/python3.10/site-packages/django/db/models/fields/related_descriptors.py", line 189, in __get__ Aug 16 13:29:34 rel_obj = self.field.get_cached_value(instance) Aug 16 13:29:34 File "/app/code/.venv/lib/python3.10/site-packages/django/db/models/fields/mixins.py", line 15, in get_cached_value Aug 16 13:29:34 return instance._state.fields_cache[cache_name] Aug 16 13:29:34 KeyError: 'food' Aug 16 13:29:34 Aug 16 13:29:34 During handling of the above exception, another exception occurred: Aug 16 13:29:34 Aug 16 13:29:34 Traceback (most recent call last): Aug 16 13:29:34 File "/app/code/.venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute Aug 16 13:29:34 return self.cursor.execute(sql, params) Aug 16 13:29:34 psycopg2.errors.UndefinedColumn: column cookbook_food.url does not exist Aug 16 13:29:34 LINE 1: ...food"."plural_name", "cookbook_food"."recipe_id", "cookbook_... Aug 16 13:29:34 ^ Aug 16 13:29:34 Aug 16 13:29:34 Aug 16 13:29:34 The above exception was the direct cause of the following exception: Aug 16 13:29:34 Aug 16 13:29:34 Traceback (most recent call last): Aug 16 13:29:34 File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner Aug 16 13:29:34 self.run() Aug 16 13:29:34 File "/usr/lib/python3.10/threading.py", line 953, in run Aug 16 13:29:34 self._target(*self._args, **self._kwargs) Aug 16 13:29:34 File "/app/code/tandoor/cookbook/integration/integration.py", line 75, in do_export Aug 16 13:29:34 files = self.get_files_from_recipes(recipes, el, self.request.COOKIES) Aug 16 13:29:34 File "/app/code/tandoor/cookbook/integration/default.py", line 54, in get_files_from_recipes Aug 16 13:29:34 filename, data = self.get_file_from_recipe(r) Aug 16 13:29:34 File "/app/code/tandoor/cookbook/integration/default.py", line 40, in get_file_from_recipe Aug 16 13:29:34 export = RecipeExportSerializer(recipe).data Aug 16 13:29:34 File "/app/code/.venv/lib/python3.10/site-packages/rest_framework/serializers.py", line 555, in data Aug 16 13:29:34 ret = super().data Aug 16 13:29:34 File "/app/code/.venv/lib/python3.10/site-packages/rest_framework/serializers.py", line 253, in data Aug 16 13:29:34 self._data = self.to_representation(self.instance) Aug 16 13:29:34 File "/app/code/.venv/lib/python3.10/site-packages/rest_framework/serializers.py", line 522, in to_representation Aug 16 13:29:34 ret[field.field_name] = field.to_representation(attribute) Aug 16 13:29:34 File "/app/code/.venv/lib/python3.10/site-packages/rest_framework/serializers.py", line 686, in to_representation Aug 16 13:29:34 return [ Aug 16 13:29:34 File "/app/code/.venv/lib/python3.10/site-packages/rest_framework/serializers.py", line 687, in <listcomp> Aug 16 13:29:34 self.child.to_representation(item) for item in iterable Aug 16 13:29:34 File "/app/code/.venv/lib/python3.10/site-packages/rest_framework/serializers.py", line 522, in to_representation Aug 16 13:29:34 ret[field.field_name] = field.to_representation(attribute) Aug 16 13:29:34 File "/app/code/.venv/lib/python3.10/site-packages/rest_framework/serializers.py", line 686, in to_representation Aug 16 13:29:34 return [ Aug 16 13:29:34 File "/app/code/.venv/lib/python3.10/site-packages/rest_framework/serializers.py", line 687, in <listcomp> Aug 16 13:29:34 self.child.to_representation(item) for item in iterable Aug 16 13:29:34 File "/app/code/.venv/lib/python3.10/site-packages/rest_framework/serializers.py", line 509, in to_representation Aug 16 13:29:34 attribute = field.get_attribute(instance) Aug 16 13:29:34 File "/app/code/.venv/lib/python3.10/site-packages/rest_framework/fields.py", line 446, in get_attribute Aug 16 13:29:34 return get_attribute(instance, self.source_attrs) Aug 16 13:29:34 File "/app/code/.venv/lib/python3.10/site-packages/rest_framework/fields.py", line 96, in get_attribute Aug 16 13:29:34 instance = getattr(instance, attr) Aug 16 13:29:34 File "/app/code/.venv/lib/python3.10/site-packages/django/db/models/fields/related_descriptors.py", line 207, in __get__ Aug 16 13:29:34 rel_obj = self.get_object(instance) Aug 16 13:29:34 File "/app/code/.venv/lib/python3.10/site-packages/django/db/models/fields/related_descriptors.py", line 170, in get_object Aug 16 13:29:34 return qs.get(self.field.get_reverse_related_filter(instance)) Aug 16 13:29:34 File "/app/code/.venv/lib/python3.10/site-packages/django/db/models/query.py", line 646, in get Aug 16 13:29:34 num = len(clone) Aug 16 13:29:34 File "/app/code/.venv/lib/python3.10/site-packages/django/db/models/query.py", line 376, in __len__ Aug 16 13:29:34 self._fetch_all() Aug 16 13:29:34 File "/app/code/.venv/lib/python3.10/site-packages/django/db/models/query.py", line 1867, in _fetch_all Aug 16 13:29:34 self._result_cache = list(self._iterable_class(self)) Aug 16 13:29:34 File "/app/code/.venv/lib/python3.10/site-packages/django/db/models/query.py", line 87, in __iter__ Aug 16 13:29:34 results = compiler.execute_sql( Aug 16 13:29:34 File "/app/code/.venv/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1398, in execute_sql Aug 16 13:29:34 cursor.execute(sql, params) Aug 16 13:29:34 File "/app/code/.venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 67, in execute Aug 16 13:29:34 return self._execute_with_wrappers( Aug 16 13:29:34 File "/app/code/.venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers Aug 16 13:29:34 return executor(sql, params, many, context) Aug 16 13:29:34 File "/app/code/.venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 84, in _execute Aug 16 13:29:34 with self.db.wrap_database_errors: Aug 16 13:29:34 File "/app/code/.venv/lib/python3.10/site-packages/django/db/utils.py", line 91, in __exit__ Aug 16 13:29:34 raise dj_exc_value.with_traceback(traceback) from exc_value Aug 16 13:29:34 File "/app/code/.venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute Aug 16 13:29:34 return self.cursor.execute(sql, params) Aug 16 13:29:34 django.db.utils.ProgrammingError: column cookbook_food.url does not exist Aug 16 13:29:34 LINE 1: ...food"."plural_name", "cookbook_food"."recipe_id", "cookbook_... Aug 16 13:29:34 ^ Aug 16 13:29:34
-
S savity has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login

Thank you