I finally had a couple of seconds to rub together to try out the mixed-environment Synology backup workflow that I’ve been meaning to get around to, but needed to do some quick updates to some boxes that I have not used in a while. Little did I know that I’d have to postpone it, yet again.
When you log into the DSM Control Panel, you’ll see a familiar flag connected to the icon, letting you know that there is an update to be made:
When you click on the update, the control panel will open up and you can see the little flag bounce at you:
When you click on the Update and Restore icon, what you should see is this:
Instead, sometimes you can get this:
(Eagle-eyed readers will notice that these last two screenshots are from two different machines. Fear not: it happened with both of them).
Ah, yes. The evil, “Connection failed. Please check your Internet Connection” error. This problem has confounded many a poor soul. Rumor has it that the only people to have successfully beaten this devilish problem are the Ancient Mayans, who also were able to count to 2012 and start over without panicking about the end of the world.
Now before you run screaming to the streets or try to wipe your Synology clean, here are a couple of things you can try.
First, navigate to the control panel if it’s not already showing (that’s the icon I showed up above). Then you want to find the icon labeled “Network.” It looks like a little house sitting on top of a sewer line (and if you know anything about networking, you’ll realize just how appropriate that is):
The screen that pops up will tell you what your network settings are. Most of these should be filled in for you. There is, however, two lines that you need to look at: The Default Gateway and the IPv6 Default Gateway.
You’ll notice a couple of things. First, there is no Default Gateway listed. This is bad. We’ll get to what these things mean in just a moment. For now, let’s fix this.
Click on the “Edit” button next to the Default Gateway. It should look something like this:
Once the LAN configuration is populated (i.e., it shows up), you can click on OK. The Network control panel should now have this value next to it:
But what happens if it’s not there? Everybody panic!!
Wait, wait. No, that’s not right. Let’s try this instead. Click on the next tab over, the “Network Interface” tab. You’ll see at least one connection listed.
Go ahead and click on “Edit” with the interface highlighted, as it is in the picture above. Here is where your mileage may vary. If you have your Synology Diskstation set up to get its network configuration from your router, it will have “Get network configuration automatically (DHCP) chosen for you. Personally, I like to have my devices on static IP addresses, so I use the manual configuration option:
If you didn’t see the default gateway in the previous step, you may want to check to make sure that the checkbox is selected to “set as default gateway.”
One word of caution: Do not put in arbitrary numbers here. These numbers mean something, so if this is all Greek to you then simply keep the “Get network configuration automatically (DHCP)” checked and don’t worry about this stuff.
While we’re on this screen, however, we need to make some changes to the IPv6 settings as well. Fortunately, it’s just one tab over. There’s only one change you have to make here, and it’s an easy one:
Yup. Just turn IPv6 off.
So what does this stuff mean? The Synology needs to know where to find its way out of the network to see the world (fly! Be free, little Synology!). The Default Gateway is just that – it’s the gateway to the world (online, at least), and the “default” part of it means that this is where the Synology should look if it wants to communicate with the outside world. Since we want to know if Synology has an update that we need, and Synology is in the outside world, this Synology does not know where to go.
The second thing you’ll see is that the IPv6 default gateway does have an address listed. Yes, it’s the fe80::5a6d:8fff:fef6:a226 gibberish that’s next to the words “IPv6 default gateway.” Nifty how that works, eh?
When you turn it off, this default gateway should disappear, and it should look something like this:
So, we figured out how to tell the Synology to find devices outside of our home network. This is the “if you don’t know where to go, go here” setting. But once the Synology goes there, then what?
The DNS Server is the place to do that. It’s a server that keeps track of what all these strange numbers mean. They’re the devices that you can ask to find out how to turn google.com into an address that the computers understand, and vice versa.
Speaking of Google, Synology recommends using their DNS server address as the “Preferred DNS Server,” so you should make your system look like this:
Now, in this case, you want to make sure that the numbers match exactly. The periods (full stops) and all. No spaces. You do not have to have an alternative DNS Server, but I put my default gateway as my alternative if, for whatever reason, Google’s DNS server doesn’t respond.
Here Goes Nothing
When I updated my two boxes, I had very different reactions from them. They both gave me the “Could not connect” error. What was even stranger was that on one of the boxes, I did not have to remove the IPv6 setting for it to work – a simple restart after fixing the default gateway and DNS server gave me complete connectivity. The other one, though, was a true PITA.
I tried using Synology’s QuickConnect, and it didn’t work either. Then, I had a bit of a minor success. I was able to turn on the NTP server (that’s the service that lets the Synology know what time it is, according to the US Government’s NIST time servers). Then, miraculously, QuickConnect worked. However, the DSM update continued to give me that error.
Then, about 5 minutes later, the DSM update was giving me what I needed to see:
My best guess is that the time it took for the routing tables to be updated took far longer than either the DSM user interface or my patience expected. I had restarted the box a couple of times in the interim, hoping that it would take, but I think I might have disrupted the population of the tables, and the DiskStation simply restarted the process again. I think that patience is far more useful a tool in this instance than I first thought.
I contacted Synology’s tech support to find out why this might be happening, since there were no reports in the logs about what had happened during the update process. Here’s what I got, verbatim:
Upon further investigation I see there were some bugs in the past with a disappearing gateway, primarily if the connections were bonded during the upgrade. It was a bug that should be resolved now and should not typically happen.
Now, it is true that one of the Synology DiskStations I was updating had bonded network interfaces, but that was also the one that fixed itself faster. True, I was updating to DSM 6.0 so perhaps the fix was already being applied at that point too. The device that I have been using as an example, however, only had one network interface so there was no link aggregation (or “bonding”) going on.
Even so, after I run the backup tests in a mixed DSM 5.2/6.0 environment, I’ll be needing to update this box to 6.0, so I’m fully expecting to need to refer back to this blog again if/when I lose network connectivity!
I did read some additional messages in the user forums that permissions problems could be to blame for this issue, but it was not so in my case. My gut tells me that is a different issue – the problem here is connecting to the Synology servers in order to determine whether there is an update, and if so which one. Permissions issues would likely only result once it has been determined that an update exists and then issues would arise when trying to save it to a local directory on the Synology. That’s my gut take on it, however, and certainly not something I’d defend to the death.
In any case, I hope that this is somewhat helpful to people (including myself).