SOLVED Update error after upgrade

northernsky

Explorer
Joined
Nov 3, 2016
Messages
76
Hello,

I upgraded to the latest version and ever since then I get this error: I have my DNS set but I am not sure what happened because it was working before I upgraded. It's probably not a bug but a pebkac error. Any help would be awesome!

Update server could not be reached
<urlopen error [Errno 51] Network is unreachable>

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 724, in create_connection
raise err
File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
sock.connect(sa)
OSError: [Errno 51] Network is unreachable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./freenasUI/system/views.py", line 1686, in update_check
train=updateobj.get_train(),
File "./freenasUI/system/models.py", line 650, in get_train
trains = conf.AvailableTrains() or []
File "/usr/local/lib/freenasOS/Configuration.py", line 1065, in AvailableTrains
fileref = self.TryGetNetworkFile(file=TRAIN_FILE, reason="FetchTrains")
File "/usr/local/lib/freenasOS/Configuration.py", line 788, in TryGetNetworkFile
raise url_exc
File "/usr/local/lib/freenasOS/Configuration.py", line 762, 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 51] Network is unreachable>


thanks,

Scott
 

northernsky

Explorer
Joined
Nov 3, 2016
Messages
76
Ok so I have tried everything I know to fix this myself, but I'm really at a loss. I even completely reinstalled FreeNas and it's still a issue.... I would love some ideas from the vast community.

Thanks!
 

northernsky

Explorer
Joined
Nov 3, 2016
Messages
76
Did I post on the wrong place or maybe I did not explain my issue well enough for ppl to respond? I'm still not able to get this working.
 
D

dlavigne

Guest
Do you have a gateway and DNS set in Network -> Global Configuration. If not, does adding your default gateway and a DNS entry of 8.8.8.8 resolve the issue?
 

northernsky

Explorer
Joined
Nov 3, 2016
Messages
76
I tried that initially after searching this site for that error that I got and it did not fix it.
 

northernsky

Explorer
Joined
Nov 3, 2016
Messages
76
Not behind either.. as it stands nothing should be preventing the update to get out and I'm still not sure what to do as far as troubleshooting goes.
 
D

dlavigne

Guest
Something in your networking is preventing it from going outside the network. At this point, running a tcpdump or some other packet sniffer might help to figure out the issue.
 

northernsky

Explorer
Joined
Nov 3, 2016
Messages
76
Right I know it's something locally on the FreeNas server but I am not sure what and I have never run a packet sniffer on a nix server so i'll have to go figure that out. I wish I had never moved upgrade chains. Irritating.
 
D

dlavigne

Guest
You should be able to reboot into your previous boot env (before the upgrade). However, if there is an issue in your network that might not make a difference.
 

northernsky

Explorer
Joined
Nov 3, 2016
Messages
76
I know longer have that environment because after the upgrade and I started having this issue I decided to start over and I did a fresh install of Freenas using the latest 11.2 - the problem followed the install. So after the initial upgrade something might have changed in my nic card?
 
D

dlavigne

Guest
What is the full output of:
  1. ifconfig
  2. more /etc/resolv.conf
  3. netstat -rn
 

northernsky

Explorer
Joined
Nov 3, 2016
Messages
76
What is the full output of:
  1. ifconfig
  2. more /etc/resolv.conf
  3. netstat -rn

Sorry it took so long to reply but here are the results of the syntax - see attached.
 

Attachments

  • ifconfig.png
    ifconfig.png
    16.8 KB · Views: 586
  • netstat.png
    netstat.png
    10.9 KB · Views: 654
  • resolve.png
    resolve.png
    4.6 KB · Views: 625
D

dlavigne

Guest
Double-check your default gateway settings. The lack of a G flag in netstat -rn means there's no gateway.
 

northernsky

Explorer
Joined
Nov 3, 2016
Messages
76
Thanks dlavigne for all your help. For whatever reason it was missing the gateway but I am not sure why it never made it into the settings after install (and the initial upgrade for that matter).

Again, thanks!

Scott
 
Top