SOLVED Can't access updates or repositories

Status
Not open for further replies.

Alex98234

Dabbler
Joined
Aug 18, 2015
Messages
23
Hello,

I have been using FreeNAS for a few months now and I am really happy with it. I was using Windows Server 2012 R2 with a LSI hardware RAID controller. I changed the HW RAID controller for a IBM M1115 and cross flashed the firmware to LSI 9211-8i in IT mode.

Unfortunately my updates have stopped working. I cannot update the system or query the plugin repository. I am using FreeNAS-9.3-STABLE-201602031011.

My server hardware is:
- Supermicro X10SAE
- Intel Xeon E3-1226 v3
- Kingston 32 GB (4x8) 1600 DDR3
- 8x WD Red 4 TB
- 2x Intel S3500 120 GB SSD for L2ARC
- IBM M1115 cross flashed to IT mode
- Kingston 16 GB flash drive for OS

When I query/refresh the available plugin list I get the following error in the console:
Code:
Mar 20 10:34:36 freenas manage.py: [freenasOS.Configuration:629] Unable to load ['http://update.freenas.org/FreeNAS/trains.txt', 'http://update-master.freenas.org/FreeNAS/trains.txt']: <urlopen error [Errno 8] hostname nor servname provided, or not known


When I try to perform a system update I get a pop dialog box with the following traceback information:
Code:
Environment:

Software Version: FreeNAS-9.3-STABLE-201602031011
Request Method: GET
Request URL: http://192.168.0.50/system/update/check/


Traceback:
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  105.                     response = middleware_method(request, callback, callback_args, callback_kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/middleware.py" in process_view
  156.         return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
  22.                 return view_func(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/system/views.py" in update_check
  1410.                 train=updateobj.get_train(),
File "/usr/local/www/freenasUI/../freenasUI/system/models.py" in get_train
  552.         trains = conf.AvailableTrains() or []
File "/usr/local/lib/freenasOS/Configuration.py" in AvailableTrains
  850.         fileref = self.TryGetNetworkFile(file = TRAIN_FILE, reason = "FetchTrains")
File "/usr/local/lib/freenasOS/Configuration.py" in TryGetNetworkFile
  630.             raise url_exc

Exception Type: URLError at /system/update/check/
Exception Value: <urlopen error [Errno 8] hostname nor servname provided, or not known>


I can access the below URL manually in my web browser fine and I am on the same network. I don't recall doing anything specific on my server before my updates broke.
http://update.freenas.org/FreeNAS/trains.txt

Any help would be much appreciated!

Cheers, Alex
 

Rand

Guru
Joined
Dec 30, 2013
Messages
906
Can you resolve it on the shell of your box as well?
Also update-master.freenas.org ?

Can you resolve & ping other internet addresses (google.com) ?
 

Alex98234

Dabbler
Joined
Aug 18, 2015
Messages
23
Hello, thank you for your response.

I resolved the issue by adding nameservers to my network global configuration.
 

Rand

Guru
Joined
Dec 30, 2013
Messages
906
Yes that would be beneficial for resolving names;)
Glad you solved it - makes me wonder why it worked before though
 

Alex98234

Dabbler
Joined
Aug 18, 2015
Messages
23
Yes that would be beneficial for resolving names;)
Glad you solved it - makes me wonder why it worked before though
I may have removed the hostnames inadvertently when I changed router and had to change my network config :p
 
Status
Not open for further replies.
Top