Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Tandoor
  3. Tandoor after upgrade

Tandoor after upgrade

Scheduled Pinned Locked Moved Solved Tandoor
9 Posts 2 Posters 1.5k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    savity
    wrote on last edited by
    #1

    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

    8a4d2f00-7414-4aed-b1bd-f5f708ac52e8-image.png

    b5965029-4bcf-4f07-8590-0dbd70f7860a-image.png

    2433be99-1dc7-4736-9f84-224eec290674-image.png
    4396b0c7-5d70-49e6-bc98-f28647f34b40-image.png

    1 Reply Last reply
    0
    • girishG girish moved this topic from Support on
    • nebulonN Away
      nebulonN Away
      nebulon
      Staff
      wrote on last edited by
      #2

      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.

      S 1 Reply Last reply
      0
      • nebulonN nebulon

        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.

        S Offline
        S Offline
        savity
        wrote on last edited by
        #3

        @nebulon No sorry this is the only thing i see in the logs

        1b77f79b-de72-4dbc-bb4c-4bb097dcc836-image.png

        1 Reply Last reply
        0
        • nebulonN Away
          nebulonN Away
          nebulon
          Staff
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • nebulonN nebulon marked this topic as a question on
          • S Offline
            S Offline
            savity
            wrote on last edited by
            #5

            @nebulon Ok what i did find out is It hase to do something with the Space.
            When i log in with another account and creat a new Space there is no Issue.
            But if i logg in to the usere where i shared the space with another person the issues occure

            1 Reply Last reply
            0
            • S Offline
              S Offline
              savity
              wrote on last edited by savity
              #6

              @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

              8bc95a37-9b8e-482d-9579-d47454e2093d-image.png

              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
              

              94b3fd60-577e-44a8-b2a4-398a6d73c3e9-image.png

              1 Reply Last reply
              0
              • nebulonN Away
                nebulonN Away
                nebulon
                Staff
                wrote on last edited by
                #7

                Ah! thats a good hint, looks like db migrations are not done?

                Can you open a webterminal into the app and run those two lines:

                source ${VENV_PATH}/bin/activate
                python /app/code/tandoor/manage.py migrate
                
                1 Reply Last reply
                1
                • S Offline
                  S Offline
                  savity
                  wrote on last edited by
                  #8

                  @nebulon Awesome works again 🙂 Thank you

                  1 Reply Last reply
                  0
                  • S savity has marked this topic as solved on
                  • nebulonN Away
                    nebulonN Away
                    nebulon
                    Staff
                    wrote on last edited by
                    #9

                    good, I have to fix the package then, for some reason we only currently run migrations on fresh installations 😕

                    1 Reply Last reply
                    2
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Bookmarks
                    • Search