Migrate plugin into just jail

It’s an old installation, which is originally installed via plugin. It has 13.1-RELEASE in jail. Core is 13.3. I don’t use plugin upgrade long ago. Updating myself. And after updating to Nextcloud 31 it cannot update Nextcloud apps anymore due to:
ld-elf.so.1: /usr/local/lib/libidn2.so.0: Undefined symbol "strverscmp@FBSD_1.7"

Jail release won’t upgrade either. How to turn that plugin jail into just jail without spending weeks to rebuild anything from scratch? What to edit and delete?

Search brought few old threads with no soluitions

Will removing nextcloud.json (and other {pluginname},json) from jail root folder be enough to turn it into standard jail?

1 Like

Apparently removing nextcloud.json is not enough.

It’s sad to see still a few of these threads with no answers. Everyone has pretty much moved to SCALE for their apps.

What you could do is export your jail, then import it again. It should then show up as a regular jail and not in the plugin section.

iocage export jailname

This should save it to the iocage backup/export directory. Go ther with cd /mnt/iocage… and run iocage import jailname_*.zip to import it again.

I would make sure you have snapshots before trying.

EDIT: The jail is still a jail, and probably has a “plugin/template” value set in config.json. I think the problem your having is an outdated version of FreeBSD in your jail, which won’t allow package installation.

You should be able to iocage upgrade -r 13.5-RELEASE jailname to upgrade to a supported version.

Or migrate to SCALE. Or zVault.

2 Likes

Last version of TrueNAS Core is based on 13.3-RELEASE. You should never run a jail with a higher version of FreeBSD than the “base” operating system. There will be ABI calls that fail and things won’t run or crash 99% of the time (especially on something like Nextcloud with lots of packages)

@coth
Yea TrueNAS Core for running jails on it is dead. It would be a giant pain to get it running in an unsupported FreeBSD version. So your best path forward is either migrate to Scale, or create a virtual machine running a newer, supported version of FreeBSD (e.g. 13.5-RELEASE or 14.2-RELEASE) and install Nextcloud in a jail there. There is a Bastille template for it (another jail manager like iocage with some more active development). Or create a Linux VM and deploy it Docker, which will be way easier.

Can’t speak for Nextcloud, but of my 5 jails on TrueNAS Core 13.3-U1.2, they are all based on FreeBSD 13.5-p1, and I have no issues at all.

While it is true that you shouldn’t, it does happen that with 13.x it has worked all the way up to running a 13.5 jail on a 13.3 host.

With 14 however, what @Dopamin3 said stands fully true. Jails just don’t work if you try.

1 Like

Apparently i migrated to Scale. Shares working without any interference. But I faced several issues with apps and networking. But i’ll post into Scale forum for that.