msimerson / Mail-Toaster-6

Mail Toaster 6
https://github.com/msimerson/Mail-Toaster-6/wiki
BSD 3-Clause "New" or "Revised" License
46 stars 16 forks source link

Provision base fails #561

Closed rricker1 closed 7 months ago

rricker1 commented 8 months ago

Describe the bug Provision base fails

To Reproduce . mail-toaster.sh && provision base

Expected behavior Success! A new 'base' jail is provisioned

Server (please complete the following information):

Additional context

 . mail-toaster.sh && provision base
v: 20231004
loading mail-toaster.conf
toaster host: XXXXXXXXXXX.com
email domain: XXXXXXXXXXX.com
IPv6 jail network: fd7a:e5cd:1fc1:af5b:dead:beef:cafe
shell: /bin/csh
safe name: stage
172.16.15.2
provision/base.sh                                     9089  B   17 MBps    00s
v: 20231004
loading mail-toaster.conf
toaster host: XXXXXXXXXXX.com
email domain: XXXXXXXXXXX.com
IPv6 jail network: fd7a:e5cd:1fc1:af5b:dead:beef:cafe
shell: /bin/csh
safe name: stage
include/shell.sh                                      2905  B   18 MBps    00s
unmounting /jails/base-13.2-RELEASE/dev
umount: /jails/base-13.2-RELEASE/dev: not a file system root directory
msimerson commented 8 months ago

I'm surprised it's working at all with csh. What's the output of df look like?

msimerson commented 8 months ago

I just tried to replicate on a fresh install:

# provision base
172.16.15.2
provision/base.sh                                     9089  B   26 MBps    00s
v: 20231004
loading mail-toaster.conf
mysql enabled
toaster host: mbp.simerson.net
email domain: mbp.simerson.net
IPv6 jail network: fd7a:e5cd:1fc1:f2f0:dead:beef:cafe
shell: /usr/local/bin/bash
safe name: stage
include/shell.sh                                      2905  B 7255 kBps    00s
zroot/jails/base-13.2-RELEASE
<snip>
   ***   installing /jails/base-13.2-RELEASE/etc/periodic.conf   ***

   ***   installing a jail-wide vimrc   ***

/jails/base-13.2-RELEASE/usr/local/etc/vim/vim        8211  B   18 MBps    00s

   ***   updating packages in base jail   ***

jexec stage pkg upgrade -y
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking for upgrades (0 candidates): 100%
Processing candidates (0 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.

   ***   stopping jail stage   ***

jail -r stage
umount: /jails/base-13.2-RELEASE/dev: not a file system root directory
zfs snapshot zroot/jails/base-13.2-RELEASE@p8

   ***   creating /etc/jail.conf.d/base.conf   ***

exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.clean;
devfs_ruleset=5;
path = "/jails/$name";
interface = lo1;
host.hostname = $name;

base    {
        mount.fstab = "/data/base/etc/fstab";
        ip4.addr = lo1|172.16.15.2;
        ip6.addr = lo1|fd7a:e5cd:1fc1:f2f0:dead:beef:cafe:0002;
        exec.created = "/data/base/etc/pf.conf.d/pfrule.sh load";
        exec.poststop = "/data/base/etc/pf.conf.d/pfrule.sh unload";
    }

Success! A new 'base' jail is provisioned

# 

Tell me more about your setup.

msimerson commented 7 months ago

Closing because 3 weeks, no reply, and I can't replicate.