jails Bastille: Unable to bootstrap etcupdate for 15.0-RELEASE (Failed to build tree.)

Hi all,

I have just upgraded from 13.5-RELEASE to 15.0-RELEASE on my arm64 machine, and am now trying to update my Bastille thin jails. I'm running Bastille 1.3.2.251225, and have followed the instructions for upgrading thin jails in the documentation.

All goes well until I get to the following part, where it fails:

Code:
# bastille etcupdate bootstrap 15.0-RELEASE

Attempting to bootstrap etcupdate release: 15.0-RELEASE...
bastille_bootstrap_archives: base -> src
/usr/local/bastille/cache/15.0-RELEASE/src.txz         238 MB   12 MBps    19s
bastille_bootstrap_archives: src -> base

Building tarball, please wait...
Failed to build tree.
[ERROR]: Failed to build etcupdate tarball "15.0-RELEASE.tbz2"

Does anyone know what is happening? I've tried completely removing the '15.0-RELEASE' subdirectories from the 'releases' and 'cache' directories, and repeating the process, but I just get the same error again.

Thanks in advance for any suggestions.
 
On the host it's:

Code:
15.0-RELEASE
15.0-RELEASE
15.0-RELEASE-p1

For the jails, I had to roll them back to 13.5 because they were complaining about missing libraries, for example when running pkg commands, and I couldn't even log into them with the console command. After rolling back I get:

Code:
freebsd-version: unable to locate kernel

The problem I seem to be having is that, when I do a bastille upgrade JAILNAME 15.0-RELEASE, it mounts the jails' filesystems to the correct releases folder, but I am unable to update the etc files due to the error I am getting with etcupdate.
 
Install in the jail 15.0 again.
Perform :
pkg-static install -f pkg
pkg update -f
pkg upgrade

Your jail should not be in half a state. Everything should work then
Try then etcupdate
 
Alain De Vos unfortunately I can't do this, because as soon as the jail is upgraded, it is not accessible using bastille console. For example, with one of my jails called media:

Code:
root@host:~ # bastille stop media

[media]:
media: removed
root@host:~ # bastille upgrade media 15.0-RELEASE

[media]:

Upgraded media: 13.5-RELEASE -> 15.0-RELEASE
See 'bastille etcupdate TARGET' to update /etc

root@host:~ # bastille start media

[media]:
media: created
root@host:~ # bastille console media

[media]:bastille console media

[media]:
root@host:~ #

So instead of bastille console media logging me into the media jail as root, it seems to quit, and I am still root on the host.
 
The reason you can't login is because of something that changed in the /etc folder from 13.x to any release above it.

You have two options.

1. We can try to resolve whats happening.

2. See below:

First, you must bootstrap src for the release. You can do this by adding "src" the the "bastille_bootstrap_archives" value inside "bastille.conf"
Second, run "bastille bootstrap 15.0-RELEASE" which will bootstrap src for you.
Third, run "bastille cmd myjailname etcupdate" which should do the etcupdate for you
 
The reason you can't login is because of something that changed in the /etc folder from 13.x to any release above it.
It's probably these two lines in various /etc/pam.d/ files.
Code:
auth            sufficient      pam_opie.so             no_warn no_fake_prompts
auth            requisite       pam_opieaccess.so       no_warn allow_local
Those two PAM modules have been deprecated. If you remove them from /etc/pam.d/system you will probably be able to bastille console .. again. There's a few more files but etcupdate will probably be able to clean those once you're able to login again.
 
Back
Top