Cannot iocage fetch on TrueNAS shell returns exceptions

Datashuttle

Dabbler
Joined
Aug 23, 2015
Messages
10
I understand this problem stems from incorrect DNS configurations on the main network adapter. However, I have tried many DNS servers, and can ping anywhere from the shell, but iocage fetch cannot create the connection.

My DNS network configuration first points to my router, then 8.8.8.8, then 8.8.4.4 for the remaining DNS servers.

All ideas appreciated.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
If you post the exact command you try and the exact error output, someone might be able to help you.
My crystal ball is at the shop at the moment, sorry. :wink:
 

Datashuttle

Dabbler
Joined
Aug 23, 2015
Messages
10
Sure, it's iocage fetch.

At this point, the command seems somewhat irrelevant due to the fact that the UI jail add wizard returns the same problem.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Can you quote the exact error message?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
@Datashuttle Commonly everything one needs to know to diagnose a problem is in the error message. You cannot interpret it - no problem. There are quite a few folks out here to help you. But without every letter of that message verbatim as it appears on your screen all of us don't have any clue what your problem might be about. Hence my joke about the crystal ball.

It's not that "iocage fetch fails --> oh yes, that must be the foo setting". No. It can be any of a hundred different things that makes your iocage fetch fail.
 

Datashuttle

Dabbler
Joined
Aug 23, 2015
Messages
10
Can you quote the exact error message?
Sure:
HTTPConnectionPool(host='www.freebsd.org', port=80): Max retries exceeded with url: /security/unsupported/ (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 65] No route to host'))

I can ping freebsd.org. So I'm missing something here and it doesn't make sense.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
No route to host: does your system have a default gateway configured?
 

Datashuttle

Dabbler
Joined
Aug 23, 2015
Messages
10
Hi Samuel, and yes, it does. If I didn't have a default gateway configured, I wouldn't be able to successfully ping.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Could you try a fetch -o - http://www.freebsd.org/, please?
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Okay, so that's your problem. But you can ping www.freebsd.org? What IP address is it pinging?

Also, why does this feel like some sort of IPv6 issue.... mm
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Top