Today, I found that "Container station" could no longer pull images from docker. There were no real signs of problem; when I hit "pull", it started a background task. However, I noticed that no new image appeared. In the "more" list button, I could "download diagnostics log" and within I found:
Code: Select all
time="202X-XX-XXTXX:XX:XX.XXXXXXXX XX:XX" level=warning msg="Error getting v2 registry: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 127.0.1.1:53: read udp 127.0.0.1:48259->127.0.1.1:53: i/o timeout"
That might have worked: log in to the QNAP using SSH and manually override the DNS. However, messing with the system files of an appliance is not something I like to do on a "production" system; who knows what will happen, it might cause a future firmware upgrade to fail? I would like to use the QNAP GUI and the official, supported, tools to remediate this type of problem. Knowing what the 127.0.1.1 address is, I suspected the internal DNS resolver, its configuration must have been corrupted somehow. A few weeks ago, I had a problem with a firmware upgrade that required a soft reset (push reset 3 seconds to return network configs to default). After that, I had to reconfigure the network; perhaps that reset caused issues, or I somehow configured it incorrectly?
I checked the network configuration (Network & Virtual Switch): the address for "Primary DNS server" looked right, but I wanted to set it again, to force the dns resolver configuration files to be rewritten. I looked around and realized that, once Container Station is installed, it's not possible to change DNS server on the adapter anymore. I have to change the setting on a "Virtual Switch". So, I hit "Configure" on the virtual switch, the only thing I changed was secondary DNS. It was set to "0.0.0.0". I have only one DNS (my router) so I just removed it. After hitting "Apply" and waiting a bit, the QNAP still worked. The "secondary dns" was set, again, to "0.0.0.0" but whatever. I went to Container Station and... Great Success! I could now search for "unifi" in the "Docker Hub" repository. A "Pull" also worked right away.
Long explanation; I hope it will be of use to someone, perhaps DuckDuckGo will list this post for the next person who encounters this problem
TL;DR: If you get timeout to "127.0.1.1:53", or if your internet fails to work for your Containers or Container Station, reconfigure your network settings, even if the settings looks good. It might rewrite a corrupt configuration file.