Skip to content
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

Upload Images doesnt work #411

Open
mboeder-2306 opened this issue Oct 30, 2024 · 0 comments
Open

Upload Images doesnt work #411

mboeder-2306 opened this issue Oct 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mboeder-2306
Copy link

Which component is affected?

classquiz-api-1

Did the issue occur at ClassQuiz.de, or on a self-hosted instance?

On a self-hosted instance

How can the issue be reproduced?

  1. checkout repo
  2. edit docker-compose.yml to your needs
  3. build docker-container with docker-compose up -d
  4. Everything works fine except uploading images.

Describe the bug (with screenshots if possible)

You can fix that issue by manually docker exec -it classquiz-api-1 /bin/bash and mkdir data and chmod -R 775 ./data .

So the Issue is, that the initial "data"-folder seems not to initialize itself. You can see that error also in docker-compose logs:

classquiz-api-1          |   File "/app/classquiz/storage/local_storage.py", line 39, in upload
classquiz-api-1          |     with open(file=os.path.join(self.base_path, file_name), mode="wb") as f:
classquiz-api-1          |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
classquiz-api-1          | FileNotFoundError: [Errno 2] No such file or directory: '/app/data/9ff4a273508041929a16e8ad158639bb'

Device

Laptop/Notebook

Operating System

Manjaro Linux

Browser

Firefox

@mboeder-2306 mboeder-2306 added the bug Something isn't working label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant