Jail not starting after upgrade to 12.2

jinu

Dabbler
Joined
Feb 11, 2021
Messages
15
Hi Folks

I was TrueNAS 12.1. I had setup a plugin transmission. This created a jail and Transmission was installed in it. Then i manually created another jail called grafana to install grafana/influxdb. I configure the same it was working fine. I was able to setup a sample dashboard also

Then i upgraded to TrueNAS 12.2. The transmission jail works fine. But the garfana jail will not come up. If i click start in the GUI, for a fraction of a second the status changes to up and then becomes down.

I then tried to start the jail manually from the command line. First command i tried and the error i got is shown below:
prompt># service jail start garfana Cannot 'start' jail. Set jail_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'.
So then as per the error i tried this

prompt># service jail onestart garfana Starting jails:/etc/rc.d/jail: WARNING: Invalid configuration for garfana (no jail.conf, no hostname, or no path). Jail garfana was ignored. .
I looked at the config.json file in the jail directory and could find it there with hostname etc

So any ideas on what could be the issue. While i dont mind setting up the jail again since i am just starting out, but would like to know what the issue was and how to avoid it going forward.
 

jinu

Dabbler
Joined
Feb 11, 2021
Messages
15
Ok got the jail working... first mistake i made was running the wrong command. I had to use iocage instead of service. But then i got another set of errors.

prompt># iocage start grafana No default gateway found for ipv6. * Starting grafana + Started OK + Using devfs_ruleset: 1001 (iocage generated default) + Configuring VNET FAILED route: writing to routing socket: Network is unreachable add net default: gateway xx.xx.xx.x fib 0: Network is unreachable

So realized this was some issue related to VNET. So switched from VNET to Shared and now the jail has started working again.
 
Top