Cannot upgrade / send emails / fetch themes… Docker problem?
The discussion revolves around Paracelsus experiencing issues with sending emails, upgrading, and fetching themes on their Discourse platform, suspecting a Docker problem. Ed_S suggests checking DNS on the host and in the Docker container, which Paracelsus does, revealing a DNS resolution issue within the Docker container.
Further investigation, including checking the Docker version and running a hello-world container, is suggested by Ed_S. Paracelsus discovers that the issue is related to Docker’s Bridge network configuration and considers resetting Docker networking, but is unsure about its safety in a production environment.
Ultimately, Paracelsus resolves the issue with help from ChatGPT, identifying a permissions or security policy problem and fixing it by checking iptables rules and manually adding Docker-related rules, followed by a Docker restart. The solution involves running a container with the --privileged flag and updating iptables rules to allow Docker forwarding, as shown in post 9.
In the last days we started suddenly having an issue with sending emails… then we’ve tried to upgrade/update without success (the update page hangs and every component - docker, discourse, plugins - get stuck at “Checking for new version…”) and then we tried to update everything via root but the rebuild fails giving the following message (among other things):
fatal: unable to access 'https://github.com/discourse/discourse.git/': Could not resolve host: github.com`
Our host has confirmed that there are no problems with the server connectivity, SSL, firewall or any other thing.
#docker exec -it app bash -c "cat /etc/resolv.conf"
# Generated by Docker Engine.
# This file can be edited; Docker Engine will not make further changes once it
# has been modified.
nameserver 8.8.8.8
nameserver 8.8.4.4
# Based on host file: '/etc/resolv.conf' (legacy)
# Overrides: [nameservers]
Thanks… I have no idea how this might happen, but I’m not a docker expert.
What’s your host OS, and how did you install Discourse? Did you use a package supplied by the hosting company, or is it a standard install? (Or a dev install??) How did you install Docker?
But this all used to work, and then stopped working, so possibly it is docker related. Perhaps you can update your docker installation??
It’s a standard install that have been working very well so far in AlmaLinux in the past few months (and before that well too in CentOS).
How can I update the docker installation (without the usual rebuild instruction with launcher or the through the website as none of these methods seem to be working)?