Closed Battlestar963 closed 2 years ago
It looks like the DB server was restarting several times during the Tandoor startup. Can you try restarting the Tandoor container?
Unfortunately it's the same after a restart: https://pastebin.com/ELyv3w11 I only included the last 10 minutes. It was running all the time and started and stopped several workers.
Can confirm the problem. Had to reinstall tandoor and decided to use that method and had the same problem. After it failed, stopped being lazy and ssh'ed into synology and installed it using the command line.
interesting, are you seeing high CPU loads during the container start attempts. We just had a similar issue #1070 can you see if that soultion works for you as well. If yes we need to investigate why this appears to be happening on synology systems.
@koch17 Are you speaking of using docker run command for the three containers?
@vabene1111 Starting the containers one by one from the Synology UI results in no significant rise (CPU load peaks to 25% for a short time when starting web application). Starting the containers with docker compose leads to a short peak of 45%. And then it goes down to under 10%. Running docker compose with DISABLE_TREE_FIX_STARTUP=1 doesn't change the outcome. I'm still getting "is the server running on host and accepting connections". The CPU load seems unchanged.
can you post logs (if you want all containers combined) when DISABLE_TREE_FIX_STARTUP
is set ? Its very hard for me to understand whats going on as it seems to only affect synology devices and i dont have one but we will see what we can do to help you :)
Sure. I appreciate your time and effort:) Db log: https://pastebin.com/0eugPaWg Web app: https://pastebin.com/Nw2psnsw
I'm not bound to run it via docker compose. Its just less work than building docker run commands with all the environment variables.
I'll update the Documentation soon, i had equal problems and managed to fix my Tandoor installation on my Synology Nas
I had to look up my settings and the problem is, that the firewall blocks communication between the docker container. You have to enabled it in the firewall, see my pull request https://github.com/TandoorRecipes/recipes/pull/1104/commits/571a618818dbb3ebc234a58223a26f23f0618fa5
@Nailik Thank you very much. Following your updated guide the web app seems to connect to the db container.
Looks like it is sorted out. Now I need to find out why I'm not able to connect to the web interface. Neither by nginx nor by mapping a port directly on the web app. Log of web app: https://pastebin.com/1xx8qPyX Nginx log: https://pastebin.com/ZrvHMG2W
To rule out the firewall, I disabled it completely.
The website loads very long and gives an Address unreachable Error.
I'm very sure it's a port forwarding problem also i recommend you to not turn off the firewall. For me the logs don't show any sign that you tried to reach the website.
Could you show screenshots of all the settings i mentioned in the documentation?
Otherwise you can contact me and we can figure out your problem together.
@Nailik Thanks fo your offer. It's very appreciated.
Somehow it started working after what felt like the fifth restart of the Synology. I can now connect to the web server by opening the nginx port.
Thanks everyone for your help. I'll close this issue now.
Issue
Hello, looking at the logs it seems like the database Container is not reachable by the actual application container. I installed the containers by following the Synology Setup guide with the plain docker compose file. Following the PDF guide leads to the same error. So something must be misconfigured on my side.
Help would be greatly appreciated Thanks in advance
Setup Info
Version: latest stable one OS: Synology on latest stable Release 7.xx
.env
Please include your
.env
config file (make sure to remove/replace all secrets)docker-compose.yml
When running with docker compose please provide your
docker-compose.yml
Logs
If you feel like there is anything interesting please post the output of
docker-compose logs
at container startup and when the issue happens. Tandoor db log (paste in) Tandoor web app log Tandoor nginx log