SOLVED Issue getting jail releases

joncy92

Explorer
Joined
Dec 5, 2019
Messages
69
Hi All,

I'm brand new to both FreeBSD and FreeNAS and most of the concepts are pretty alien to me. With that said I'm fairly tech savvy and I'm picking stuff up well.
I just have a couple of questions as I want to ensure I've understood things correctly and I'm facing an issue creating jails.

I have repurposed a Dell T130 server to run freenas. The build is:
Intel(R) Pentium(R) CPU G4500 @ 3.50GHz (2 cores)
16GiB RAM
2xGb LOM controllers (I believe it's a broadcom chipset)
Dell H730 RAID controller
32GiB internal USB stick with FreeNAS installation
2x WD Red 6TB
2x 2TB (i don't know what disks they are)

I have successfully installed FreeNAS and created 1 zpool with a dataset.
Currently the zpool has 1 vdev which contains 1 WD Red. The other disk is currenly sitting in my very old Synology NAS in degraded RAID so I can migrate my data accross.
Once I've migrated the data, can I add the remaining disk into the current vdev and create a mirror?
Can I then extend the pool to have another vdev which will contain the 2x2TB disks in mirror? (I've seen this questions asked and answered a lot on the forum and I keep finding conflicting answers).


Onto the jails:
I'm trying to create a jail in the current zpool, but I am getting the following error message:

[SIZE=7][B] Error: Fetching remote release choices failed.[/B][/SIZE] ('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))

Code:
Error: concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 387, in _make_request
    six.raise_from(e, None)
  File "<string>", line 2, in raise_from
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 383, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/local/lib/python3.6/http/client.py", line 1331, in getresponse
    response.begin()
  File "/usr/local/lib/python3.6/http/client.py", line 297, in begin
    version, status, reason = self._read_status()
  File "/usr/local/lib/python3.6/http/client.py", line 258, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/local/lib/python3.6/socket.py", line 586, in readinto
    return self._sock.recv_into(b)
ConnectionResetError: [Errno 54] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 440, in send
    timeout=timeout
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 357, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/usr/local/lib/python3.6/site-packages/urllib3/packages/six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 387, in _make_request
    six.raise_from(e, None)
  File "<string>", line 2, in raise_from
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 383, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/local/lib/python3.6/http/client.py", line 1331, in getresponse
    response.begin()
  File "/usr/local/lib/python3.6/http/client.py", line 297, in begin
    version, status, reason = self._read_status()
  File "/usr/local/lib/python3.6/http/client.py", line 258, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/local/lib/python3.6/socket.py", line 586, in readinto
    return self._sock.recv_into(b)
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/concurrent/futures/process.py", line 175, in _process_worker
    r = call_item.fn(*call_item.args, **call_item.kwargs)
  File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 133, in main_worker
    res = loop.run_until_complete(coro)
  File "/usr/local/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 93, in _run
    return await self._call(name, serviceobj, methodobj, params=args, job=job)
  File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 85, in _call
    return methodobj(*params)
  File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 85, in _call
    return methodobj(*params)
  File "/usr/local/lib/python3.6/site-packages/middlewared/schema.py", line 668, in nf
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/jail.py", line 592, in list_resource
    resource_list = iocage.fetch(list=True, remote=remote, http=True)
  File "/usr/local/lib/python3.6/site-packages/iocage_lib/iocage.py", line 961, in fetch
    _list=True)
  File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_fetch.py", line 232, in fetch_release
    rel = self.fetch_http_release(eol, _list=_list)
  File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_fetch.py", line 428, in fetch_http_release
    req = requests.get(f"{self.server}/{self.root_dir}")
  File "/usr/local/lib/python3.6/site-packages/requests/api.py", line 72, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 490, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 165, in call_method
    result = await self.middleware.call_method(self, message)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1107, in call_method
    return await self._call(message['method'], serviceobj, methodobj, params, app=app, io_thread=False)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1052, in _call
    return await self._call_worker(name, *args)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1072, in _call_worker
    return await self.run_in_proc(main_worker, name, args, job)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 995, in run_in_proc
    return await self.run_in_executor(self.__procpool, method, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 971, in run_in_executor
    return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))


I am able to ping download.freenas.org from the shell.

Any help is greatly appreciated. Thanks!
 
Joined
Jul 2, 2019
Messages
648
Seems like a connectivity issue. I had the same thing happen with a couple of plugins on the repository side.

That said, when you ssh into your FreeNAS server can you ping the download.freenas.org? What about Google's DNS (8.8.8.8 or 8.8.4.4)?
 

joncy92

Explorer
Joined
Dec 5, 2019
Messages
69
Seems like a connectivity issue. I had the same thing happen with a couple of plugins on the repository side.

That said, when you ssh into your FreeNAS server can you ping the download.freenas.org? What about Google's DNS (8.8.8.8 or 8.8.4.4)?

Hi mate thanks for the reply.
Aye I've already tried pinging google and download.freenas.org (I mentioned in the bottom of my original post).
I've tried setting the name servers to both google and my router and I have the same issue =[
 

Andy C

Explorer
Joined
Feb 18, 2015
Messages
67
I had this problem (creating jails from the GUI) this morning which has since disappeared. I was able to manually create jails from the command-line using iocage.

Are you able to browse...?

 

joncy92

Explorer
Joined
Dec 5, 2019
Messages
69
I had this problem (creating jails from the GUI) this morning which has since disappeared. I was able to manually create jails from the command-line using iocage.

Are you able to browse...?


Hi Andy...I never actually thought to try browsing to it from another machine.
I can ping the site but I cannot browse to it.
Chrome shows ERR_CONNECTION_RESET or ERR_CONNECTION_CLOSED.

I get this from my home internet or mobile internet.
 

joncy92

Explorer
Joined
Dec 5, 2019
Messages
69
^ Sorry for double post...I can't see how to edit a post.

I am able to browse and ping download.freenas.org
I am able to ping but not browse download.freebsd.org

Anyone can advise how to get the jail up?

Thanks
 
Joined
Jul 2, 2019
Messages
648

Thadah

Cadet
Joined
Dec 5, 2019
Messages
3
I'm having the same issue when trying to install plugins or creating a new jail.
Trying to access download.freebsd.org will return PR_CONNECT_RESET_ERROR in Firefox. This happens when I'm using my home network and mobile data as well.

Like @joncy92 I'm able to browse and ping download.freenas.org but I can only ping download.freebsd.org
 

MarvinWright

Cadet
Joined
Jan 6, 2015
Messages
5
Same problem here. Looks like its a problem with my ISP though, If I connect to my works VPN I can then access download.FreeBSD.org.
Is there a way to configure the OS to go to a mirror server ?
 

joncy92

Explorer
Joined
Dec 5, 2019
Messages
69
Here is what I get when trying to connect to download.freebsd.org:

FreeBSD.org download server
This is download.FreeBSD.org - an east coast US regional mirror for FreeBSD downloads.

It is generously hosted by NYI - New York Internet in New Jersey, USA.

This server's contents:

FreeBSD.org home

You might be able to use a mirror...

Hi. I've been able to browse using a mirror. I'm not sure why I can't connect to the primary URL from here (London)
I've tried overriding DNS at the router level but because the mirrors have a different folder structure, the FreeNAS GUI connects to the mirror but then cannot find the releases folder.

I have a VPN that I can use - is it possible to configure FreeNAS to use a VPN system-wide so that the jail releases can be updated/loaded. The VPN can then be disabled. I've googled around for an answer but all posts just mention that VPN should be configured inside a Jail....which I cannot create lol.

Also just a side note, if I run
Code:
pkg update
in putty SSH, I get this error:

Code:
Updating local repository catalogue...
pkg: Repository local load error: access repo file(/var/db/pkg/repo-local.sqlite) failed: No such file or directory
pkg: file:///usr/ports/packages/meta.txz: No such file or directory
repository local has no meta file, using default settings
pkg: file:///usr/ports/packages/packagesite.txz: No such file or directory
Unable to update repository local
Error updating repositories!
 

joncy92

Explorer
Joined
Dec 5, 2019
Messages
69
Here is what I get when trying to connect to download.freebsd.org:

FreeBSD.org download server
This is download.FreeBSD.org - an east coast US regional mirror for FreeBSD downloads.

It is generously hosted by NYI - New York Internet in New Jersey, USA.

This server's contents:

FreeBSD.org home

You might be able to use a mirror...


Hi. I've been able to browse using a mirror. I'm not sure why I can't connect to the primary URL from here (London)
I've tried overriding DNS at the router level but because the mirrors have a different folder structure, the FreeNAS GUI connects to the mirror but then cannot find the releases folder.

I have a VPN that I can use - is it possible to configure FreeNAS to use a VPN system-wide so that the jail releases can be updated/loaded. The VPN can then be disabled. I've googled around for an answer but all posts just mention that VPN should be configured inside a Jail....which I cannot create lol.

Also just a side note, if I run
Code:
pkg update
in putty SSH, I get this error:

Code:
Updating local repository catalogue...
pkg: Repository local load error: access repo file(/var/db/pkg/repo-local.sqlite) failed: No such file or directory
pkg: file:///usr/ports/packages/meta.txz: No such file or directory
repository local has no meta file, using default settings
pkg: file:///usr/ports/packages/packagesite.txz: No such file or directory
Unable to update repository local
Error updating repositories!
 

joncy92

Explorer
Joined
Dec 5, 2019
Messages
69
Okay I've made a little progress... judging by the other posts, it seems UK ISPs will not connect to the freebsd download site.

I registered to SecurityKISS VPN for a free account and configured my DD-WRT router to use the service. I was then able to browse to download.freebsd.org

I fired up the FreeNAS and tried to create jail, when I looked for releases I was able to pick between 11.2 and 11.3.

When I tried 11.3 it saod fetching 50% and didn't move.
I got impatient, refreshed and tried 11.2.
Then I just sat on creating jail and did nothing more.

I've given up now and will try more over the weekend.

Is there anyway to view logs for jail creation? Anyone have any ideas to why it kept getting stuck?
 

Hazimil

Contributor
Joined
May 26, 2014
Messages
172
Hi All, I'm also getting this issue. Using v11.2-U7 and UK based, using Sky as my ISP. I am unable to connect to https://download.freebsd.org/ via my PC (as a test), but if I use a VPN (NordVPN) to connect to USA I can connect to the site.

I have tried using my VPN to connect to UK (so different path) and still no connection, the same with using Norway but France and Spain connect! Weird.

From my FreeNAS box, I'm getting the following error with iocage fetch:

Code:
root@fruitbowl:~ # iocage fetch
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 387, in _make_request
    six.raise_from(e, None)
  File "<string>", line 2, in raise_from
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 383, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/local/lib/python3.6/http/client.py", line 1331, in getresponse
    response.begin()
  File "/usr/local/lib/python3.6/http/client.py", line 297, in begin
    version, status, reason = self._read_status()
  File "/usr/local/lib/python3.6/http/client.py", line 258, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/local/lib/python3.6/socket.py", line 586, in readinto
    return self._sock.recv_into(b)
ConnectionResetError: [Errno 54] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 440, in send
    timeout=timeout
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 357, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/usr/local/lib/python3.6/site-packages/urllib3/packages/six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 387, in _make_request
    six.raise_from(e, None)
  File "<string>", line 2, in raise_from
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 383, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/local/lib/python3.6/http/client.py", line 1331, in getresponse
    response.begin()
  File "/usr/local/lib/python3.6/http/client.py", line 297, in begin
    version, status, reason = self._read_status()
  File "/usr/local/lib/python3.6/http/client.py", line 258, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/local/lib/python3.6/socket.py", line 586, in readinto
    return self._sock.recv_into(b)
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/iocage", line 10, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/iocage_cli/fetch.py", line 127, in cli
    ioc.IOCage().fetch(**kwargs)
  File "/usr/local/lib/python3.6/site-packages/iocage_lib/iocage.py", line 970, in fetch
    **kwargs).fetch_release()
  File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_fetch.py", line 232, in fetch_release
    rel = self.fetch_http_release(eol, _list=_list)
  File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_fetch.py", line 428, in fetch_http_release
    req = requests.get(f"{self.server}/{self.root_dir}")
  File "/usr/local/lib/python3.6/site-packages/requests/api.py", line 72, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 490, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))


I have logged this as a bug so see if IX can help.

Jonathan
 
Last edited:

Andy C

Explorer
Joined
Feb 18, 2015
Messages
67
Hi. I've been able to browse using a mirror. I'm not sure why I can't connect to the primary URL from here (London)
I've tried overriding DNS at the router level but because the mirrors have a different folder structure, the FreeNAS GUI connects to the mirror but then cannot find the releases folder.

I have a VPN that I can use - is it possible to configure FreeNAS to use a VPN system-wide so that the jail releases can be updated/loaded. The VPN can then be disabled. I've googled around for an answer but all posts just mention that VPN should be configured inside a Jail....which I cannot create lol.

Also just a side note, if I run
Code:
pkg update
in putty SSH, I get this error:

Code:
Updating local repository catalogue...
pkg: Repository local load error: access repo file(/var/db/pkg/repo-local.sqlite) failed: No such file or directory
pkg: file:///usr/ports/packages/meta.txz: No such file or directory
repository local has no meta file, using default settings
pkg: file:///usr/ports/packages/packagesite.txz: No such file or directory
Unable to update repository local
Error updating repositories!

Joncy

You can still download releases and create jails from the FreeNAS command-line by specifying use a FreeBSD mirror. For example

# iocage fetch -s ftp5.fr.FreeBSD.org -d mirrors/ftp.freebsd.org/releases/amd64 -r 11.2-RELEASE

Adrian wrote a great tutorial about using iocage to create a LimeSurvey jail.


Then whenever this network issue is resolved, the jails will appear and may be managed using the GUI.

HTH - Andy

PS. I am following this thread with interest as I am also in London (VirginMedia ISP) and the site is accessible for me today.
 

Hazimil

Contributor
Joined
May 26, 2014
Messages
172
OK, its working for me now with no errors. Must have been a routing issue, which is now resolved. Have left the bug open, as there might be way to manage the error better.

Have managed to do an iocage fetch and downloaded v11.3.

Jonathan
 

Andy C

Explorer
Joined
Feb 18, 2015
Messages
67
Have left the bug open, as there might be way to manage the error better.
I presume this is a very rare occurrence but I think iocage falls back to known FreeBSD mirrors if the first attempt fails.
 

sstruke

Dabbler
Joined
Feb 2, 2017
Messages
37
I have the same problems and it still doesn't work. Release is empty
 

Attachments

  • 2.jpg
    2.jpg
    43.3 KB · Views: 449
  • 1.jpg
    1.jpg
    70 KB · Views: 437

Thadah

Cadet
Joined
Dec 5, 2019
Messages
3
Using a VPN indeed allows me to connect to download.freeenas.org, seems my spanish ISP (MásMóvil) is blocking my access to the server.
 
Top