Closed MrNonoss closed 1 year ago
Thank for your report! Your setup looks fine, except the STORAGE_PATH. I think that it should end with a slash, but that isn't the cause of the problem. The error tells us that the Api-Container can't communicate with the redis-container. I'll do a quick local test. You could run "docker compose ps" in the meantime and check if the redis-container is "up and healthy".
Many thanks for your fast lookup. I can confirm all the containers are up and healthy.
That's strange. How familiar are you with docker and Linux?
Quite familiar. I usually am able to troubleshoot myself. However not so comfortable with redis and web development. I will try the same setup on a linux device instead of this Mac.
You could try that. You could also go into the api-container bz entering sth like "docker compose exec api /bin/bash" and try pinging a host called "redis". If that doesn't work, try pinging "frontend".
Pinging the host redis or frontend is working fine from the api container
Another day, another look at the error. You forgot to set the redis uri. Add the following to the environment section:
REDIS: "redis://redis:6379/0?decode_responses=True"
Sorry for being kinda stupid and not seeing that.
Wooo many thanks. It is working fine. Now I need to understand how to create quiz and select correct answer :)
Is that difficult?
Which component is affected?
Redis
Did the issue occur at ClassQuiz.de, or on a self-hosted instance?
On a self-hosted instance
How can the issue be reproduced?
Hi all,
I'm trying to create a self hosting instance to provide some local quizzes, for some "no internet" training rooms. Every containers are starting normally, but I cannot log or create a new account. Each time I try I get an error in the api container:
Since the docker-compose file seems to be different from the doc as it does no longer input "STORAGE_BACKEND" options, I added them manually, but not sure it is the right way to do so.
Also, since it is intended to be played locally only, I tried to remove the GitHub and google authentification mechanism from the environment statements, but for back to defaults as it is not working.
Except for the local storage, everything looks as it should be in the docs, and other containers do not show errors in their logs, even redis.
The full api container logs are:
docker-compose environment part are:
frontend/Dockerfile top part is:
If something attract your eyes, I'm willing for inputs. Many thanks for your help.
Describe the bug (with screenshots if possible)
Cannot log in to create account
Device
Desktop
Operating System
iOS
Browser
Safari