Error when trying to create a jail in truenascore

I was following this tutorial to be able to have a postgresql server on my truenas core, but when trying to create a jail, it gives me this error, I don’t know what to do, my version of truenas is TrueNAS-13.0-U6.4

tutorial: postgresql-misc/install_postgres_on_truenas.md at main · stualden/postgresql-misc · GitHub

errors:


image
image

Error: Traceback (most recent call last):
File “/usr/local/lib/python3.9/site-packages/iocage_lib/ioc_create.py”, line 170, in _create_jail
iocage_lib.ioc_common.get_jail_freebsd_version(
File “/usr/local/lib/python3.9/site-packages/iocage_lib/ioc_common.py”, line 934, in get_jail_freebsd_version
with open(
FileNotFoundError: [Errno 2] No such file or directory: ‘/mnt/OKINAWASERVIDOR/iocage/releases/13.4-RELEASE/root/bin/freebsd-version’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/lib/python3.9/site-packages/middlewared/job.py”, line 355, in run
await self.future
File “/usr/local/lib/python3.9/site-packages/middlewared/job.py”, line 393, in __run_body
rv = await self.middleware.run_in_thread(self.method, *([self] + args))
File “/usr/local/lib/python3.9/site-packages/middlewared/main.py”, line 1161, in run_in_thread
return await self.run_in_executor(self.thread_pool_executor, method, *args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/middlewared/main.py”, line 1158, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
File “/usr/local/lib/python3.9/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.9/site-packages/middlewared/schema.py”, line 985, in nf
return f(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/middlewared/plugins/jail_freebsd.py”, line 915, in do_create
err, msg = iocage.create(
File “/usr/local/lib/python3.9/site-packages/iocage_lib/iocage.py”, line 603, in create
ioc_create.IOCCreate(
File “/usr/local/lib/python3.9/site-packages/iocage_lib/ioc_create.py”, line 101, in create_jail
return self._create_jail(jail_uuid, location)
File “/usr/local/lib/python3.9/site-packages/iocage_lib/ioc_create.py”, line 202, in _create_jail
iocage_lib.ioc_common.logit({
File “/usr/local/lib/python3.9/site-packages/iocage_lib/ioc_common.py”, line 107, in logit
callback(content, exception)
File “/usr/local/lib/python3.9/site-packages/iocage_lib/ioc_common.py”, line 80, in callback
raise callback_exception(message)
RuntimeError: RELEASE: 13.4-RELEASE not found!

If you wanna use jails, you should upgrade to the 13.3 train of Core (or evaluate the Scale sidegrade, and using docker instead of jails)

What do you recommend? I only use truenas for a couple of smb shares and a cloud sync task to backup to the cloud

IMHO, depending on how fast you need your db up and running :upside_down_face:
The 13.3 upgrade, Is just download file >> upload >> restart >> fetch iocage… But Core will receive only security fix, no more bugfixes or new features. Sad to say, but Is near to his endlife.
Despite sidegrade to Scale require to follow a migration path, but if you don’t have geli encription or particular SMB share settings should be quite easy (but require more time and checks)