You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just tried to import a new recipe for the first time in a while. I've pulled new docker images and changed the configuration of other containers in the meantime, though I haven't changed Tandoor. Now I cannot import or create new recipes. To try and troubleshoot, I did a clean install following the instructions here: https://docs.tandoor.dev/install/swag/. I can create new recipes in the fresh installation. However, after replacing the database with my recipes from the previous installation, I get errors again. I even got errors when trying to go to the system page to get the version number. I've posted the Traceback from the error page in the relevant logs section below. Please let me know what other logs might be needed. Thank you.
Relevant logs
Environment:
Request Method: POST
Request URL: https://recipes.trzcloud.com/new/recipe/
Django Version: 4.2.11
Python Version: 3.12.2
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.sites',
'django.contrib.staticfiles',
'django.contrib.postgres',
'oauth2_provider',
'django_prometheus',
'django_tables2',
'corsheaders',
'crispy_forms',
'crispy_bootstrap4',
'rest_framework',
'rest_framework.authtoken',
'django_cleanup.apps.CleanupConfig',
'webpack_loader',
'django_js_reverse',
'hcaptcha',
'allauth',
'allauth.account',
'allauth.socialaccount',
'cookbook.apps.CookbookConfig',
'treebeard',
'debug_toolbar']
Installed Middleware:
['corsheaders.middleware.CorsMiddleware',
'django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'cookbook.helper.scope_middleware.ScopeMiddleware',
'allauth.account.middleware.AccountMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware']
Traceback (most recent call last):
File "/opt/recipes/venv/lib/python3.12/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The above exception (function unaccent(character varying) does not exist
LINE 1: ...weight(to_tsvector('english'::regconfig, COALESCE(UNACCENT("... ^HINT: No function matches the given name and argument types. You might need to add explicit type casts.) was the direct cause of the following exception: File "/opt/recipes/venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner response = get_response(request) ^^^^^^^^^^^^^^^^^^^^^ File "/opt/recipes/venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/recipes/venv/lib/python3.12/site-packages/django/views/generic/base.py", line 104, in view return self.dispatch(request, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/recipes/cookbook/helper/permission_helper.py", line 179, in dispatch return super(GroupRequiredMixin, self).dispatch(request, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/recipes/venv/lib/python3.12/site-packages/django/views/generic/base.py", line 143, in dispatch return handler(request, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/recipes/venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 184, in post return super().post(request, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/recipes/venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 153, in post return self.form_valid(form) ^^^^^^^^^^^^^^^^^^^^^ File "/opt/recipes/cookbook/views/new.py", line 30, in form_valid obj.save() ^^^^^^^^^^ File "/opt/recipes/venv/lib/python3.12/site-packages/django/db/models/base.py", line 814, in save self.save_base( ^ File "/opt/recipes/venv/lib/python3.12/site-packages/django/db/models/base.py", line 892, in save_base post_save.send( ^ File "/opt/recipes/venv/lib/python3.12/site-packages/django/dispatch/dispatcher.py", line 177, in send (receiver, receiver(signal=self, sender=sender, **named)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/recipes/cookbook/signals.py", line 31, in _decorator return signal_func(sender, instance, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/recipes/cookbook/signals.py", line 63, in update_recipe_search_vector instance.save() ^^^^^^^^^^^^^^^ File "/opt/recipes/venv/lib/python3.12/site-packages/django/db/models/base.py", line 814, in save self.save_base( ^ File "/opt/recipes/venv/lib/python3.12/site-packages/django/db/models/base.py", line 877, in save_base updated = self._save_table( File "/opt/recipes/venv/lib/python3.12/site-packages/django/db/models/base.py", line 990, in _save_table updated = self._do_update( File "/opt/recipes/venv/lib/python3.12/site-packages/django_prometheus/models.py", line 47, in _do_update return super()._do_update(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/recipes/venv/lib/python3.12/site-packages/django/db/models/base.py", line 1054, in _do_update return filtered._update(values) > 0 ^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/recipes/venv/lib/python3.12/site-packages/django/db/models/query.py", line 1231, in _update return query.get_compiler(self.db).execute_sql(CURSOR) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/recipes/venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 1984, in execute_sql cursor = super().execute_sql(result_type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/recipes/venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 1562, in execute_sql cursor.execute(sql, params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/recipes/venv/lib/python3.12/site-packages/django/db/backends/utils.py", line 102, in execute return super().execute(sql, params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/recipes/venv/lib/python3.12/site-packages/django/db/backends/utils.py", line 67, in execute return self._execute_with_wrappers( File "/opt/recipes/venv/lib/python3.12/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers return executor(sql, params, many, context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/recipes/venv/lib/python3.12/site-packages/django/db/backends/utils.py", line 84, in _execute with self.db.wrap_database_errors: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/recipes/venv/lib/python3.12/site-packages/django/db/utils.py", line 91, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/recipes/venv/lib/python3.12/site-packages/django/db/backends/utils.py", line 89, in _execute return self.cursor.execute(sql, params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Exception Type: ProgrammingError at /new/recipe/Exception Value: function unaccent(character varying) does not existLINE 1: ...weight(to_tsvector('english'::regconfig, COALESCE(UNACCENT("...
^
HINT: No functionmatches the given name and argument types. You might need to add explicit type casts.
The text was updated successfully, but these errors were encountered:
Ok, I just followed the instructions at https://docs.tandoor.dev/system/updating/ to install extensions and I'm getting the same errors. Is there more to it? Is there a way to just export my recipe data and import that into a fresh installation?
Tandoor Version
1.5.15
Setup
Docker / Docker-Compose
Reverse Proxy
SWAG
Other
No response
Bug description
I've just tried to import a new recipe for the first time in a while. I've pulled new docker images and changed the configuration of other containers in the meantime, though I haven't changed Tandoor. Now I cannot import or create new recipes. To try and troubleshoot, I did a clean install following the instructions here: https://docs.tandoor.dev/install/swag/. I can create new recipes in the fresh installation. However, after replacing the database with my recipes from the previous installation, I get errors again. I even got errors when trying to go to the system page to get the version number. I've posted the Traceback from the error page in the relevant logs section below. Please let me know what other logs might be needed. Thank you.
Relevant logs
The text was updated successfully, but these errors were encountered: