-
-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem when adding new exercise to routine #1780
Comments
I have the exact same issue. Additional information: Logswger-web-1 | ERROR 2024-10-15 00:23:08,578 log Internal Server Error: /api/v2/exercise/search/ wger-web-1 | Traceback (most recent call last): wger-web-1 | File "/home/wger/.local/lib/python3.12/site-packages/PIL/JpegImagePlugin.py", line 639, in _save wger-web-1 | rawmode = RAWMODE[im.mode] wger-web-1 | ~~~~~~~^^^^^^^^^ wger-web-1 | KeyError: 'P' wger-web-1 | wger-web-1 | The above exception was the direct cause of the following exception: wger-web-1 | wger-web-1 | Traceback (most recent call last): wger-web-1 | File "/home/wger/.local/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner wger-web-1 | response = get_response(request) wger-web-1 | ^^^^^^^^^^^^^^^^^^^^^ wger-web-1 | File "/home/wger/.local/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response wger-web-1 | response = wrapped_callback(request, *callback_args, **callback_kwargs) wger-web-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ wger-web-1 | File "/home/wger/.local/lib/python3.12/site-packages/django/views/decorators/csrf.py", line 56, in wrapper_view wger-web-1 | return view_func(*args, **kwargs) wger-web-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ wger-web-1 | File "/home/wger/.local/lib/python3.12/site-packages/django/views/generic/base.py", line 104, in view wger-web-1 | return self.dispatch(request, *args, **kwargs) wger-web-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ wger-web-1 | File "/home/wger/.local/lib/python3.12/site-packages/rest_framework/views.py", line 509, in dispatch wger-web-1 | response = self.handle_exception(exc) wger-web-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ wger-web-1 | File "/home/wger/.local/lib/python3.12/site-packages/rest_framework/views.py", line 469, in handle_exception wger-web-1 | self.raise_uncaught_exception(exc) wger-web-1 | File "/home/wger/.local/lib/python3.12/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception wger-web-1 | raise exc wger-web-1 | File "/home/wger/.local/lib/python3.12/site-packages/rest_framework/views.py", line 506, in dispatch wger-web-1 | response = handler(request, *args, **kwargs) wger-web-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ wger-web-1 | File "/home/wger/.local/lib/python3.12/site-packages/rest_framework/decorators.py", line 50, in handler wger-web-1 | return func(*args, **kwargs) wger-web-1 | ^^^^^^^^^^^^^^^^^^^^^ wger-web-1 | File "/home/wger/src/wger/exercises/api/views.py", line 378, in search wger-web-1 | thumbnail = t.get_thumbnail(aliases.get('micro_cropped')).url wger-web-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ wger-web-1 | File "/home/wger/.local/lib/python3.12/site-packages/easy_thumbnails/files.py", line 513, in get_thumbnail wger-web-1 | thumbnail = self.generate_thumbnail( wger-web-1 | ^^^^^^^^^^^^^^^^^^^^^^^^ wger-web-1 | File "/home/wger/.local/lib/python3.12/site-packages/easy_thumbnails/files.py", line 401, in generate_thumbnail wger-web-1 | img = engine.save_pil_image( wger-web-1 | ^^^^^^^^^^^^^^^^^^^^^^ wger-web-1 | File "/home/wger/.local/lib/python3.12/site-packages/easy_thumbnails/engine.py", line 77, in save_pil_image wger-web-1 | image.save(destination, format=format, **options) wger-web-1 | File "/home/wger/.local/lib/python3.12/site-packages/PIL/Image.py", line 2568, in save wger-web-1 | save_handler(self, fp, filename) wger-web-1 | File "/home/wger/.local/lib/python3.12/site-packages/PIL/JpegImagePlugin.py", line 642, in _save wger-web-1 | raise OSError(msg) from e wger-web-1 | OSError: cannot write mode P as JPEG |
+1 Please help. It's preventing user's from creating new workouts with excercises. "Leg", "Curls" search is broken aswell. |
This is a duplicate for wger-project/docker#102 The latest images should contain a workaround so that things should at least not break. I'm closing here, if there's still something else broken, please comment in the other issue |
Steps to Reproduce
Expected results:
Exercise can be added
Actual results:
An exception is thrown which after some exercises will bring the app to crash.
Important note: I'm running wger in Kubernetes. I'm using a slightly modified form of the wger helm chart with an external PostgreSQL instance. If it helps in debugging I will share my manifests.
Logs
The text was updated successfully, but these errors were encountered: