SOLVED Cannot fetch portsnap. Connection reset by peer

dnilgreb

Contributor
Joined
Mar 29, 2016
Messages
168
I just upgraded (a friends) FreeNAS 11.1 to 12.0-U1, and went through a few updates to get there. I also updated all jail (iocage) to 11.4 before upgrading FreeNAS itself.
Now, from a jail, any jail, I cannot run portsnap fetch extract.

I get this error:

Code:
root@Test:~ # portsnap fetch extract
Looking up portsnap.FreeBSD.org mirrors... 4 mirrors found.
Fetching public key from ipv4.aws.portsnap.freebsd.org... done.
Fetching snapshot tag from ipv4.aws.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Fetching snapshot generated at Sun Jan 10 01:18:30 CET 2021:
9fe269c4d784cf8264d2bf849219a6baba8452b4c808b8  0% of   87 MB  339 kBps    00s
fetch: http://ipv4.aws.portsnap.freebsd.org/s/9fe269c4d784cf8264d2bf849219a6baba8452b4c808b84f33896e679da085df.tgz: Connection reset by peer
root@Test:~ #


I even created a fresh jail, on 12.2 (called it Test) and tried from there. Same thing. Creating the jail went fine.

Does anyone have any idea why this is happening? Looked in /var/log/messages, but found no clues.

As always, any help much appreciated.
 

dnilgreb

Contributor
Joined
Mar 29, 2016
Messages
168
I see. How do i work around that? I read I could use git or svn. How would I go about setting that up? Is there a guide for that somewhere? I was kind of hoping for pkg install svn to work, but maybe that was a bit optimistic.....
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,974
Not sure, I haven't figured it out yet myself. Luckily everything I use is available as a package so I'll cross the port bridge when I come to it.
 

dnilgreb

Contributor
Joined
Mar 29, 2016
Messages
168
Just at thought: If I run portsnap fetch from another server, located in a different network, it works. Is it possible this is because of something else?Both servers run the same version of TrueNAS Core, 12.0-U1, and the iocage jails are the same version too. Tried both 11.4 and 12.2.
Would copying the ports folder to the problemateic server help? And then install ports from there?
 

dnilgreb

Contributor
Joined
Mar 29, 2016
Messages
168
I figured out a workaround: Subversion. SubVersioN. how about that.

I found there are both a subversion and a subversion-lts package in pkg.
pkg install subversion didn´t take. But pkg install subversion-lts wotked.

Then:
Code:
svn checkout https://svn.FreeBSD.org/ports/head /usr/ports


After that you can install the ports you need.

So, another case of RTFM. Found this, solving it, in TFM:

Guess I should have just R´d it to begin with.

@Jailer, as always, thanks for your help and input.
 
Top