jail loses connection but TrueNas still accessible

ruzifan

Dabbler
Joined
Dec 10, 2019
Messages
40
hey guys,

recently i been havbing this issue where after like a week or so, i lose connection to all my Jails.. and when i go to Jails menu, it says Http:dhcp://8080

i don't know why that's h appening.
However, access to my Truenas sitll works. my SMB still works, because i can accesss my Share drives from Windows etc.. but jails just stops working.

I have to restart truenas and it works again.
 

ruzifan

Dabbler
Joined
Dec 10, 2019
Messages
40
bump, i desperately need help solving this plz. I'm having continuous disconnection every 6 day. it's the exact same behavior. I changed the jail from DHCP to Static IP, and still after 6th day, i can't access those jails using the IP. However, my SMB remains working as i can access them from my pc, mac, nvidia sheild, literally anywhere. I can also root into truenas.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
You're not really providing a lot to work with in order to help... I guess that's why nobody is responding.

Are the services in the jails actually running when you lose access? Are the jails still started?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
VNET or NAT? If VNET: bridge interface statically created in advance? IP address on the bridge interface and not on the physical interface? Hardware offloading disabled for the physical interface?
 

ruzifan

Dabbler
Joined
Dec 10, 2019
Messages
40
You're not really providing a lot to work with in order to help... I guess that's why nobody is responding.

Are the services in the jails actually running when you lose access? Are the jails still started?

no, i can't access any services. Yes Jail still shows as started.
Lets say i have Sonarr running upon restart of truenas. It will work fine. after the 6th day, the jail will show "starter" however, i won't be able to access sonarr. i have to restart truenass again before i can start it.
 

ruzifan

Dabbler
Joined
Dec 10, 2019
Messages
40
VNET or NAT? If VNET: bridge interface statically created in advance? IP address on the bridge interface and not on the physical interface? Hardware offloading disabled for the physical interface?
it's VNET.

Basically i had an intel NIC. https://www.amazon.ca/gp/product/B06XHBCSF4/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1

I never had any issues when connected to that.

Then i just recently swapped to Chelsio 10Gbe Dual SPF+ N320E T320 card.

At first i wasn't getting IP because my intel NIC was still active. Then i used TUNABLES to disable all my other NICs. then my Chelsio card started getting IP and working.

It's odd that my SMB, access to freenas all works excep the jails just doesnt after 6 days.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
You did not answer any of my questions but the first one.

Did you statically create the bridge interface?
Did you assign the IP address to your bridge interface and not to the Chelsio card?
Did you disable hardware offloading for the Chelsio card?

You MUST do all of these if you want to run jails reliably.
 

ruzifan

Dabbler
Joined
Dec 10, 2019
Messages
40
You did not answer any of my questions but the first one.

Did you statically create the bridge interface?
Did you assign the IP address to your bridge interface and not to the Chelsio card?
Did you disable hardware offloading for the Chelsio card?

You MUST do all of these if you want to run jails reliably.
sorry im not an expert with networking so having hard time answering those questions.

what do you mean by the bridge interface? where can i check this. When i click on Interface, then i click on "CXGB1" which is my SPF+ port that i use.. i don't see the "Type". It only has Name, Description and DHCP

I can confirm hardware offloading is NOT disabled.
 

Attachments

  • 6C5A8746-B259-4A7C-B924-0B7C91B776C3.png
    6C5A8746-B259-4A7C-B924-0B7C91B776C3.png
    257.1 KB · Views: 148
  • 974D9AD6-035A-4E70-9B57-451412A0F528.png
    974D9AD6-035A-4E70-9B57-451412A0F528.png
    259.8 KB · Views: 160
Last edited:

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Reboot your NAS with all jails disabled.
Go to the Network > Interfaces UI. Click Add, select type Bridge, name it bridge0, add CXGB1 as a member interface, Test and Save.
Remove the DHCP setting from CXGB1, add a static IP address to bridge0. Test and Save. Don't forget to statically set Gateway and DNS in Network > Global Settings.
Edit CXGB1, check the box "Disable Hardware Offloading". Test and Save.

Edit all your jails, set the vnet_default_interface to "none".
Down in the Network section set the interfaces to "vnet0:bridge0".
Re-enable your jails.

HTH,
Patrick
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
no, i can't access any services. Yes Jail still shows as started.
Lets say i have Sonarr running upon restart of truenas. It will work fine. after the 6th day, the jail will show "starter" however, i won't be able to access sonarr. i have to restart truenass again before i can start it.
Are the services in the jails actually running when you lose access?
... Still not answered.
 

ruzifan

Dabbler
Joined
Dec 10, 2019
Messages
40
Reboot your NAS with all jails disabled.
Go to the Network > Interfaces UI. Click Add, select type Bridge, name it bridge0, add CXGB1 as a member interface, Test and Save.
Remove the DHCP setting from CXGB1, add a static IP address to bridge0. Test and Save. Don't forget to statically set Gateway and DNS in Network > Global Settings.
Edit CXGB1, check the box "Disable Hardware Offloading". Test and Save.

Edit all your jails, set the vnet_default_interface to "none".
Down in the Network section set the interfaces to "vnet0:bridge0".
Re-enable your jails.

HTH,
Patrick
thanks, will try this and report back!
 

ruzifan

Dabbler
Joined
Dec 10, 2019
Messages
40
Reboot your NAS with all jails disabled.
Go to the Network > Interfaces UI. Click Add, select type Bridge, name it bridge0, add CXGB1 as a member interface, Test and Save.
Remove the DHCP setting from CXGB1, add a static IP address to bridge0. Test and Save. Don't forget to statically set Gateway and DNS in Network > Global Settings.
Edit CXGB1, check the box "Disable Hardware Offloading". Test and Save.

Edit all your jails, set the vnet_default_interface to "none".
Down in the Network section set the interfaces to "vnet0:bridge0".
Re-enable your jails.

HTH,
Patrick
Also, in general, what should be the Gateway and DNS in network? Should i get this info from my router or something?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Gateway and DNS should be what you are handed via DHCP. In most cases your router for both, yes.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
not sure how to answer that. The jail shows as "started" however, i can't access the services. Sonarr won't load.. the jail does not work. so is the services running? i guess not
in the jail (iocage console sonarr) check the status of the service (service sonarr status)
 

ruzifan

Dabbler
Joined
Dec 10, 2019
Messages
40
Gateway and DNS should be what you are handed via DHCP. In most cases your router for both, yes.
Hello,

It’s been exactly 6 days and back to the same issue.

I’ve setup the interface exactly how you’ve described and after 6 days my jails stopped working.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Hardware offloading disabled?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Yes, I went to interface-CXGB1 and then unchecked hardware offloading
You need to check "Disable Hardware Offloading":
Bildschirmfoto 2022-12-07 um 16.38.39.png
 
Top