Automatic update failed

My system is currently on TrueNAS-12.0-U2. From the dashboard I click “check for updates”. Current train is blank, so I click refresh. Current train still blank, but now there are two buttons, “apply pending update” and “install manual update file”, plus this error message: Unable to connect to url https://update-master.ixsystems.com/TrueNAS/trains.txt: Automatic update check failed. Please check system network settings.
I did read another thread, but didn’t see a solution. I believe gateway is set to my router IP, and nameservers are 8.8.8.8 and 8.8.4.4. Someone mentioned about the “:” on the end of the URL in the error message, I think, but if that’s the problem, I don’t know where that is stored, if I need to change it.
Further note: I can access that URL from a web browser, as long as I remove that character from the end.

Can you ping update-master.ixsystems.com from a shell on the server?
If you can do so my guess is that the time is incorrect.

Your time in the BIOS should be set to the current time in the UTC timezone. Anything else is incorrect and will disrupt secure connections, like the one that the update is trying to achieve.

I must not be configured correctly. Can’t ping anything. Host name lookup failure.

Please verify this.

Next is to run ping 8.8.8.8 to see if you have basic network connectivity and it’s just DNS causing issues or if there is something else going on.

Also, can you please post the output of ifconfig?
It should show the current network config.

I appreciate all the assistance! If I type “ping 8.8.8.8” at the prompt, I get back:
ping: sendto: Invalid argument.


Hmm.
That suggests an invalid network configuration.
I see you have two NICs each with its own IP on the same network, that’s known to cause issues.

But I wonder if there something else going on as well.

Can you please post the screenshots of how the “Interface settings” for both em0 and em1?
Also, have you set up any static routes? (if yes, why?)

1 Like

There is one entry under static routes. Destination and gateway are both 192.168.1.1. I don’t know why it’s there or whether it should be. Are these the screenshots you wanted to see? I don’t know why I have two NICs connected. I don’t know enough to have set them up for a particular reason. I don’t think I need any interface binding with my current setup.


Interesting. I tried unplugging one NIC and then the other. With em0 down, I still had my NAS accessible from other hosts on the LAN, and I still had my web admin page accessible. With em0 up and em1 down, the NAS was inaccessible, and no web page, even if I pointed browser to the em0 IP address. Either way, no pinging from shell, but with one of those, I think the ping returned something like “no network”. But now, with both NICS plugged back in, for the first time, I’m able to ping the nameserver, gateway, google.com, and the update-master URL at ixsystems. Now, when I check for updates it populates with base-os, freebsd, and freenas updates. I can go ahead and update, but probably still need to fix my configuration.

OK, I deleted the configuration for the second NIC, unplugged, and rebooted. When it came back up I was back to no pinging, no updates. I deleted the static route and that fixed it. I don’t know why that was there. I think I can go ahead and update now. Thanks for all your help.

1 Like

Excellent!
Good that the issue was pinpointed and that you have removed the errant static route.

I recommend you refrain from connecting and configuring the second NIC port unless you have a specialist need that requires both. Care will need to be taken to ensure it’s set up properly, unfortunately it’s not as easy as giving it an IP on the same network as the first one.

I will leave the second NIC disabled. I went ahead with the update and now seem to be stable and functional on TrueNAS-13.0-U6.7. Now I’m going to update my list of specs and put it in my sig. I first built this box in 2015 and haven’t changed any hardware, so might be due for some upgrades. Is it customary on this forum to put details in sig the way you do? (Not sure how to do that.) I was on this forum for a while, starting ten years ago, but my login disappeared so I re-joined a couple of days ago.

I haven’t kept tabs on how common it is… Some do?
However, if you ask for help it is expected that you give any hardware details from the get-go, it just saves a lot of time.

You can add things inside a foldout like so:

[details=Your chosen description]
Your hidden text here.
[/details]

This will then appear as follows:

Your chosen description

Your hidden text here.

They retired their old forums just over a year ago, no accounts were transferred so everyone had to make new ones.

The old forums are still available at TrueNAS Community and you can still login, but they are read only, so not much use in that I suppose.