Solved Jails (using qjail) stopped working

Hi there,

I've been using qjail for years, and my jails been running nice since then. Till today. I was trying to update the packages inside one jail and got this error:


Code:
git_jail /root >pkg update && pkg upgrade    
Updating FreeBSD repository catalogue...  
[git_jail] Fetching packagesite.pkg: 100%    6 MiB   3.4MB/s    00:02      
pkg: Error opening the trusted directory /usr/share/keys/pkg/trusted  
pkg: Error loading trusted certificates  
Unable to update repository FreeBSD  
Error updating repositories!

FreeBSD inside the jail
Code:
git_jail /root >uname -a  
FreeBSD git_jail 13.0-RELEASE-p4 FreeBSD 13.0-RELEASE-p4 #0: Tue Aug 24 07:33:27 UTC 2021     root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

FreeBSD in the main machine
Code:
~ % uname -a
FreeBSD koined-inc-git 13.0-RELEASE-p4 FreeBSD 13.0-RELEASE-p4 #0: Tue Aug 24 07:33:27 UTC 2021     root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

and then I thought to see if an upgrade of the jail might help

Code:
From the main machine

~ % sudo qjail update -b  
Deletion of sharedfs binaries successful for bin.  
Deletion of sharedfs binaries successful for lib.  
Deletion of sharedfs binaries successful for libexec.  
Deletion of sharedfs binaries successful for sbin.  
Deletion of sharedfs binaries successful for usr/bin.  
Deletion of sharedfs binaries successful for usr/include.  
Deletion of sharedfs binaries successful for usr/lib.  
Deletion of sharedfs binaries successful for usr/libdata.  
Deletion of sharedfs binaries successful for usr/libexec.  
Deletion of sharedfs binaries successful for usr/sbin.  
Deletion of sharedfs binaries successful for usr/share.  
rm: usr/lib32: No such file or directory  
Error: Deletion of sharedfs binaries for usr/lib32 failed.


I copied manually the folder to the /usr/jails/sharedfs to undo the above, and tried to start the jails again

Code:
~ % sudo qjail start  
Bypassed norun status cert_jail.norun  
jls: jail "git_jail" not found  
Jail successfully started  git_jail  
jls: jail "irc_jail" not found  
Jail successfully started  irc_jai  


~ % jls 
JID  IP Address      Hostname                      Path  



~ % sudo qjail start git_jail  
mount_nullfs: /usr/jails/git_jail/sharedfs: Resource deadlock avoided  
jail: git_jail: /sbin/mount -t nullfs -o ro /usr/jails/sharedfs /usr/jails/git_jail/sharedfs: failed  
Error: /usr/sbin/jail failed to start jail git_jail  
because of errors in jail.conf file.


Any idea how I can solve this issue and restore my jails
 
Solved it, archived the existing jails, ran qjail install to fix sharedfs and restored them
 
Top