Thanks for using the TrueNAS Community Edition issue tracker! TrueNAS Enterprise users receive direct support for their reports from our support portal.

update.freenas.org server seems to have broken configuration

Description

Just clicked the "Check For Updates" on the dashboard of my TrueNAS Scale box (a few months old), to see if there's a new alpha out.

Weirdly, it wasn't able to connect to the update server "update.freenas.org":

Cannot connect to host update.freenas.org:443 ssl:default [Network is unreachable]: Automatic update check failed. Please check system network settings.

Going to the update server directly with a browser just goes into an endless loop of bouncing to " http://update-stats.freenas.org ", which then redirects back to itself (" http://update-stats.freenas.org ") over, and over, and over again.

Using curl on the command line shows the problem:

$ curl -L https://update.freenas.org
<script language="javascript">
window.location.href = " http://update-stats.freenas.org/ "
</script>

So, it seems to be automatically bouncing people to a stats page. But that page, does the same thing too:

$ curl -L http://update-stats.freenas.org
<script language="javascript">
window.location.href = " http://update-stats.freenas.org/ "
</script>

Thus, an endless loop. Seems like it shouldn't be this way? slightly smiling face

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Justin Clift June 24, 2021 at 10:41 PM

Cool.  Hopefully it gets sorted out. slightly smiling face

Timothy Moore II June 24, 2021 at 4:21 PM

Hm, sorry you were having trouble! We're looking at update.freenas.org and discussing solutions with our IT department and I'm opening an internal ticket to check the search functionality on the Docs Hub.

Justin Clift June 24, 2021 at 2:00 PM

Seriously?  No-one can be bothered to load https://update.freenas.org in their browser, and notice that it goes into an endless loop? disappointed face

Justin Clift May 29, 2021 at 6:24 AM

With the date and time on the system fixed, the update was found and successfully applied.  So, all good there.

I guess the only question that remains, is "update.freenas.org" supposed to go into a redirect loop for people that go there (unlikely)?

Justin Clift May 29, 2021 at 5:11 AM
Edited

Oh hang on a second, that curl error for https sounds like a time problem:
scale1# curl -L https://update.freenas.orgcurl: (60) SSL certificate problem: certificate is not yet valid
Looking at my system, yep... it's date is out of whack:

scale1# date Tue Jan 19 00:19:46 AEDT 2021

That's the most likely cause.  Fixing now... winking face

Well, this is weird.  There doesn't seem to be any place in the webUI for setting the time.  I can set the localisation format, and I can set NTP servers.  For actually setting the time though... there's nothing?

Going to the Documentation Hub, using the "Search" box doesn't seem to do anything.  eg typing in "date" (or "time") and hitting enter... no response.

k, then, let's just do it from the shell prompt...

scale1# tmux # systemctl stop ntp # hwclock --set --date='2021-05-29 15:14:44' # hwclock --hctosys && reboot

Yep, that worked.  Took an extra reboot to come up ok, but come up it did, and it finds the available update on the updates server.

Cannot Reproduce
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Impact

High

Fix versions

Affects versions

Priority

More fields

Katalon Platform

Created May 23, 2021 at 3:21 PM
Updated July 6, 2022 at 9:02 PM
Resolved June 24, 2021 at 1:02 PM