SOLVED Unable to update

nemisisak

Explorer
Joined
Jun 19, 2015
Messages
69
So this has happened before when i was running on 9.3 and now its happened again on 11.1-U6. I want to update to 11.2 but i can no longer connect to to the update server through the GUI. My server has no problem accessing anything else outside my network.

I also cant back-up my configuration and I can't do a manual update either.

Code:
Feb 21 19:47:56 freenas uwsgi: [freenasOS.Configuration:772] Unable to load http://update.ixsystems.com/FreeNAS/trains.txt: <urlopen error [Errno 8] hostname nor servname provided, or not known>
Feb 21 19:47:56 freenas uwsgi: [freenasOS.Configuration:772] Unable to load http://update-master.ixsystems.com/FreeNAS/trains.txt: <urlopen error [Errno 8] hostname nor servname provided, or not known>
Feb 21 19:47:56 freenas uwsgi: [freenasOS.Configuration:786] Unable to load ['http://update.ixsystems.com/FreeNAS/trains.txt', 'http://update-master.ixsystems.com/FreeNAS/trains.txt']: <urlopen error [Errno 8] hostname nor servname provided, or not known>
Feb 21 19:49:07 freenas /freenas-update: [freenasOS.Configuration:772] Unable to load http://update-master.ixsystems.com/FreeNAS/FreeNAS-11-STABLE/LATEST: <urlopen error [Errno 8] hostname nor servname provided, or not known>
Feb 21 19:49:07 freenas /freenas-update: [freenasOS.Configuration:786] Unable to load ['http://update-master.ixsystems.com/FreeNAS/FreeNAS-11-STABLE/LATEST']: <urlopen error [Errno 8] hostname nor servname provided, or not known>
Feb 21 19:49:07 freenas /freenas-update: [freenas-update:223] <urlopen error [Errno 8] hostname nor servname provided, or not known>
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/urllib/request.py", line 1318, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "/usr/local/lib/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/local/lib/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/local/lib/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/usr/local/lib/python3.6/http/client.py", line 936, in connect
    (self.host,self.po
Feb 21 19:49:07 freenas /freenas-update: rt), self.timeout, self.source_address)
  File "/usr/local/lib/python3.6/socket.py", line 704, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/local/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 8] hostname nor servname provided, or not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/freenas-update", line 192, in DoDownload
    pkg_type=pkg_type,
  File "/usr/local/lib/freenasOS/Update.py", line 924, in DownloadUpdate
    latest_mani = conf.FindLatestManifest(train, require_signature=True)
  File "/usr/local/lib/freenasOS/Configuration.py", line 1181, in FindLatestManifest
    reason="GetLatestManifest",
  File "/usr/local/lib/freenasOS/Configuration.py", line 787, in TryGetNetworkFile
    raise url_exc
  Fi
Feb 21 19:49:07 freenas /freenas-update: le "/usr/local/lib/freenasOS/Configuration.py", line 761, in TryGetNetworkFile
    furl = opener.open(req, timeout=30)
  File "/usr/local/lib/python3.6/urllib/request.py", line 526, in open
    response = self._open(req, data)
  File "/usr/local/lib/python3.6/urllib/request.py", line 544, in _open
    '_open', req)
  File "/usr/local/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/local/lib/python3.6/urllib/request.py", line 1346, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "/usr/local/lib/python3.6/urllib/request.py", line 1320, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 8] hostname nor servname provided, or not known>
Feb 21 19:49:09 freenas uwsgi: [freenasOS.Configuration:772] Unable to load http://update.ixsystems.com/FreeNAS/trains.txt: <urlopen error [Errno 8] hostname nor servname provided, or not known>
Feb 21 19:49:09 freenas uwsgi: [freenasOS.Configuration:772] Unable to load http://update-master.ixsystems.com/FreeNAS/trains.txt: <urlopen error [Errno 8] hostname nor servname provided, or not known>
Feb 21 19:49:09 freenas uwsgi: [freenasOS.Configuration:786] Unable to load ['http://update.ixsystems.com/FreeNAS/trains.txt', 'http://update-master.ixsystems.com/FreeNAS/trains.txt']: <urlopen error [Errno 8] hostname nor servname provided, or not known>


This is the error I get when i try to download my config file. blank window with this text in a text box.

Code:
{"error": false, "message": "Config download is starting...", "events": ["window.location=\"/system/config/download/?secret=0\""]}


This is very annoying and I don't particuarly want to setup my server from scratch again. No idea why this keeps happening and no one was able to help last time.

Holding out hope for a solution. Thanks.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
So this has happened before when i was running on 9.3 and now its happened again on 11.1-U6. I want to update to 11.2 but i can no longer connect to to the update server through the GUI. My server has no problem accessing anything else outside my network.

I also can't back-up my configuration and I can't do a manual update either.

Code:
Feb 21 19:47:56 freenas uwsgi: [freenasOS.Configuration:772] Unable to load http://update.ixsystems.com/FreeNAS/trains.txt: <urlopen error [Errno 8] hostname nor servname provided, or not known>
Feb 21 19:47:56 freenas uwsgi: [freenasOS.Configuration:772] Unable to load http://update-master.ixsystems.com/FreeNAS/trains.txt: <urlopen error [Errno 8] hostname nor servname provided, or not known>
Feb 21 19:47:56 freenas uwsgi: [freenasOS.Configuration:786] Unable to load ['http://update.ixsystems.com/FreeNAS/trains.txt', 'http://update-master.ixsystems.com/FreeNAS/trains.txt']: <urlopen error [Errno 8] hostname nor servname provided, or not known>
Feb 21 19:49:07 freenas /freenas-update: [freenasOS.Configuration:772] Unable to load http://update-master.ixsystems.com/FreeNAS/FreeNAS-11-STABLE/LATEST: <urlopen error [Errno 8] hostname nor servname provided, or not known>
Feb 21 19:49:07 freenas /freenas-update: [freenasOS.Configuration:786] Unable to load ['http://update-master.ixsystems.com/FreeNAS/FreeNAS-11-STABLE/LATEST']: <urlopen error [Errno 8] hostname nor servname provided, or not known>
Feb 21 19:49:07 freenas /freenas-update: [freenas-update:223] <urlopen error [Errno 8] hostname nor servname provided, or not known>
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/urllib/request.py", line 1318, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "/usr/local/lib/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/local/lib/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/local/lib/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/usr/local/lib/python3.6/http/client.py", line 936, in connect
    (self.host,self.po
Feb 21 19:49:07 freenas /freenas-update: rt), self.timeout, self.source_address)
  File "/usr/local/lib/python3.6/socket.py", line 704, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/local/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 8] hostname nor servname provided, or not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/freenas-update", line 192, in DoDownload
    pkg_type=pkg_type,
  File "/usr/local/lib/freenasOS/Update.py", line 924, in DownloadUpdate
    latest_mani = conf.FindLatestManifest(train, require_signature=True)
  File "/usr/local/lib/freenasOS/Configuration.py", line 1181, in FindLatestManifest
    reason="GetLatestManifest",
  File "/usr/local/lib/freenasOS/Configuration.py", line 787, in TryGetNetworkFile
    raise url_exc
  Fi
Feb 21 19:49:07 freenas /freenas-update: le "/usr/local/lib/freenasOS/Configuration.py", line 761, in TryGetNetworkFile
    furl = opener.open(req, timeout=30)
  File "/usr/local/lib/python3.6/urllib/request.py", line 526, in open
    response = self._open(req, data)
  File "/usr/local/lib/python3.6/urllib/request.py", line 544, in _open
    '_open', req)
  File "/usr/local/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/local/lib/python3.6/urllib/request.py", line 1346, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "/usr/local/lib/python3.6/urllib/request.py", line 1320, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 8] hostname nor servname provided, or not known>
Feb 21 19:49:09 freenas uwsgi: [freenasOS.Configuration:772] Unable to load http://update.ixsystems.com/FreeNAS/trains.txt: <urlopen error [Errno 8] hostname nor servname provided, or not known>
Feb 21 19:49:09 freenas uwsgi: [freenasOS.Configuration:772] Unable to load http://update-master.ixsystems.com/FreeNAS/trains.txt: <urlopen error [Errno 8] hostname nor servname provided, or not known>
Feb 21 19:49:09 freenas uwsgi: [freenasOS.Configuration:786] Unable to load ['http://update.ixsystems.com/FreeNAS/trains.txt', 'http://update-master.ixsystems.com/FreeNAS/trains.txt']: <urlopen error [Errno 8] hostname nor servname provided, or not known>


This is the error I get when i try to download my config file. blank window with this text in a text box.

Code:
{"error": false, "message": "Config download is starting...", "events": ["window.location=\"/system/config/download/?secret=0\""]}


This is very annoying and I don't particuarly want to setup my server from scratch again. No idea why this keeps happening and no one was able to help last time.

Holding out hope for a solution. Thanks.
looks like the config download said error=false to no error their. And the other error looks like you don't have any dns servers configured. Go setup the nameserver in the freenas system config.
 

nemisisak

Explorer
Joined
Jun 19, 2015
Messages
69
looks like the config download said error=false to no error their. And the other error looks like you don't have any dns servers configured. Go setup the nameserver in the freenas system config.
Hi Sweet,

I updated the global config for name server 1 with my default dns. tried to check for updates which took a few minutes and errored out
Code:
Update server could not be reached

<urlopen error [Errno 8] hostname nor servname provided, or not known>

Traceback

Traceback (most recent call last):
File "/usr/local/lib/python3.6/urllib/request.py", line 1318, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "/usr/local/lib/python3.6/http/client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.6/http/client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.6/http/client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.6/http/client.py", line 1026, in _send_output
self.send(msg)
File "/usr/local/lib/python3.6/http/client.py", line 964, in send
self.connect()
File "/usr/local/lib/python3.6/http/client.py", line 936, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/usr/local/lib/python3.6/socket.py", line 704, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/local/lib/python3.6/socket.py", line 745, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 8] hostname nor servname provided, or not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./freenasUI/system/views.py", line 1698, in update_check
train=updateobj.get_train(),
File "./freenasUI/system/models.py", line 629, in get_train
trains = conf.AvailableTrains() or []
File "/usr/local/lib/freenasOS/Configuration.py", line 1064, in AvailableTrains
fileref = self.TryGetNetworkFile(file=TRAIN_FILE, reason="FetchTrains")
File "/usr/local/lib/freenasOS/Configuration.py", line 787, in TryGetNetworkFile
raise url_exc
File "/usr/local/lib/freenasOS/Configuration.py", line 761, in TryGetNetworkFile
furl = opener.open(req, timeout=30)
File "/usr/local/lib/python3.6/urllib/request.py", line 526, in open
response = self._open(req, data)
File "/usr/local/lib/python3.6/urllib/request.py", line 544, in _open
'_open', req)
File "/usr/local/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/usr/local/lib/python3.6/urllib/request.py", line 1346, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/local/lib/python3.6/urllib/request.py", line 1320, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 8] hostname nor servname provided, 
 

nemisisak

Explorer
Joined
Jun 19, 2015
Messages
69
Hmmmm i enabled dhcp and that seemed to resolve the issue. Is the name server meant to have the default gateway IP as opposed to the DNS address? Anyway I managed to update without issue. Now to update warden to iocage though I may leave that potential headache for another day.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
fyi iocage on 11.2-U2 using vnet is broken. if you are using a static ip you need to also setup the gateway IP and dns. Your freenas box will not work with the outside world without that setup.
 

themachine

Cadet
Joined
Feb 21, 2020
Messages
2
I had a similiar issue but the proxy was set in my case. Just unset proxy under network settings.
 
Top