Thank you again for the continued help. I updated to the newest version of the script in the OP. Things seem to be improving, docker launching on EE boot by default now, but no containers or Portainer “Stacks” are initializing on EE.
Below are the logs from the same (new) script being run post init on Cobia and EE:
Cobia Log:
§§ Starting script! §§
+ PACKAGES=(make open-iscsi python3-babel python3-pip python3-pyfakefs python3-pyotp python3-pytest python3-pytest-asyncio python3-pytest-dependency python3-pytest-rerunfailures python3-pytest-timeout snmp sshpass zstd)
+ PIP_PACKAGES=()
+ chmod +x /usr/bin/apt /usr/bin/apt-cache /usr/bin/apt-cdrom /usr/bin/apt-config /usr/bin/apt-extracttemplates /usr/bin/apt-ftparchive /usr/bin/apt-get /usr/bin/apt-key /usr/bin/apt-mark /usr/bin/apt-sortpkgs
+ chmod +x /usr/bin/dpkg
+ apt update
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Hit:1 https://download.docker.com/linux/debian bookworm InRelease
Reading package lists...
Building dependency tree...
Reading state information...
6 packages can be upgraded. Run 'apt list --upgradable' to see them.
+ apt install -y make open-iscsi python3-babel python3-pip python3-pyfakefs python3-pyotp python3-pytest python3-pytest-asyncio python3-pytest-dependency python3-pytest-rerunfailures python3-pytest-timeout snmp sshpass zstd
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
make is already the newest version (4.3-4.1).
open-iscsi is already the newest version (2.1.8-1).
python3-babel is already the newest version (2.10.3-1).
python3-pip is already the newest version (23.0.1+dfsg-1).
python3-pyfakefs is already the newest version (4.6.3-3).
python3-pyotp is already the newest version (2.6.0-3).
python3-pytest is already the newest version (7.2.1-2).
python3-pytest-asyncio is already the newest version (0.20.3-1).
python3-pytest-dependency is already the newest version (0.5.1-5).
python3-pytest-rerunfailures is already the newest version (10.2-2).
python3-pytest-timeout is already the newest version (2.1.0-3).
snmp is already the newest version (5.9.3+dfsg-2).
sshpass is already the newest version (1.09-1+b1).
zstd is already the newest version (1.5.4+dfsg2-5).
The following package was automatically installed and is no longer required:
libnvidia-nvvm4
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
+ '[' 0 -gt 0 ']'
§§ Checking apt and dpkg §§
§§ /bin/apt is already executable §§
§§ /bin/apt-cache is already executable §§
§§ /bin/apt-cdrom is already executable §§
§§ /bin/apt-config is already executable §§
§§ /bin/apt-extracttemplates is already executable §§
§§ /bin/apt-ftparchive is already executable §§
§§ /bin/apt-get is already executable §§
§§ /bin/apt-key is already executable §§
§§ /bin/apt-mark is already executable §§
§§ /bin/apt-sortpkgs is already executable §§
§§ /bin/dpkg is already executable §§
§§ /bin/dpkg-architecture is already executable §§
§§ /bin/dpkg-buildflags is already executable §§
§§ /bin/dpkg-buildpackage is already executable §§
§§ /bin/dpkg-checkbuilddeps is already executable §§
§§ /bin/dpkg-deb is already executable §§
§§ /bin/dpkg-distaddfile is already executable §§
§§ /bin/dpkg-divert is already executable §§
§§ /bin/dpkg-genbuildinfo is already executable §§
§§ /bin/dpkg-genchanges is already executable §§
§§ /bin/dpkg-gencontrol is already executable §§
§§ /bin/dpkg-gensymbols is already executable §§
§§ /bin/dpkg-maintscript-helper is already executable §§
§§ /bin/dpkg-mergechangelogs is already executable §§
§§ /bin/dpkg-name is already executable §§
§§ /bin/dpkg-parsechangelog is already executable §§
§§ /bin/dpkg-query is already executable §§
§§ /bin/dpkg-realpath is already executable §§
§§ /bin/dpkg-scanpackages is already executable §§
§§ /bin/dpkg-scansources is already executable §§
§§ /bin/dpkg-shlibdeps is already executable §§
§§ /bin/dpkg-source is already executable §§
§§ /bin/dpkg-split is already executable §§
§§ /bin/dpkg-statoverride is already executable §§
§§ /bin/dpkg-trigger is already executable §§
§§ /bin/dpkg-vendor is already executable §§
§§ apt update §§
§§ Linking apt sources to your storage for persistence §§
§§ Fix the trust.gpg warnings §§
gpg: keybox '/etc/apt/trusted.gpg' created
§§ Docker Checks §§
§§ Keyrings Exist §§
§§ Docker List: §§
deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian bookworm stable
§§ Which Docker: /usr/bin/docker §§
§§ Docker storage-driver §§
§§ Docker daemon.json §§
§§ Storage Driver: overlay2 §§
§§ Dataset: /mnt/OPS/Docker §§
§§ Attempting to create JSON configuration... §§
§§ Generated JSON content: §§
{
"data-root": "/mnt/OPS/Docker",
"storage-driver": "overlay2",
"exec-opts": [
"native.cgroupdriver=cgroupfs"
]
}
§§ Checking /etc/docker/daemon.json §§
§§ Checking file: /etc/docker/daemon.json §§
§§ Which Docker: /usr/bin/docker §§
§§ Docker Version: Docker version 27.1.1, build 6312585 §§
§§ Script Finished! §§
EE Log:
§§ Starting script! §§
+ FORCE_ARG=
+ [[ '' == \-\-\f\o\r\c\e ]]
+ [[ ! -S /var/run/middleware/middlewared.sock ]]
+ PACKAGES=(make open-iscsi python3-cryptography python3-pip python3-pyfakefs python3-pyotp python3-pytest python3-pytest-asyncio python3-pytest-dependency python3-pytest-rerunfailures python3-pytest-timeout snmp sshpass zstd)
+ PIP_PACKAGES=()
+ '[' -f /usr/local/libexec/disable-rootfs-protection ']'
+ /usr/local/libexec/disable-rootfs-protection
Flagging root dataset as developer mode
Setting readonly=off on dataset boot-pool/ROOT/24.10.1/opt
Setting readonly=off on dataset boot-pool/ROOT/24.10.1/usr
+ '[' 0 -ne 0 ']'
+ apt update
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Hit:1 https://download.docker.com/linux/debian bookworm InRelease
Reading package lists...
Building dependency tree...
Reading state information...
6 packages can be upgraded. Run 'apt list --upgradable' to see them.
+ apt install -y make open-iscsi python3-cryptography python3-pip python3-pyfakefs python3-pyotp python3-pytest python3-pytest-asyncio python3-pytest-dependency python3-pytest-rerunfailures python3-pytest-timeout snmp sshpass zstd
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
make is already the newest version (4.3-4.1).
open-iscsi is already the newest version (2.1.8-1).
python3-cryptography is already the newest version (38.0.4-3).
python3-pip is already the newest version (23.0.1+dfsg-1).
python3-pyfakefs is already the newest version (4.6.3-3).
python3-pyotp is already the newest version (2.6.0-3).
python3-pytest is already the newest version (7.2.1-2).
python3-pytest-asyncio is already the newest version (0.20.3-1).
python3-pytest-dependency is already the newest version (0.5.1-5).
python3-pytest-rerunfailures is already the newest version (10.2-2).
python3-pytest-timeout is already the newest version (2.1.0-3).
snmp is already the newest version (5.9.3+dfsg-2).
sshpass is already the newest version (1.09-1+b1).
zstd is already the newest version (1.5.4+dfsg2-5).
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
+ '[' 0 -gt 0 ']'
§§ Checking apt and dpkg §§
§§ /bin/apt is already executable §§
§§ /bin/apt-cache is already executable §§
§§ /bin/apt-cdrom is already executable §§
§§ /bin/apt-config is already executable §§
§§ /bin/apt-extracttemplates is already executable §§
§§ /bin/apt-ftparchive is already executable §§
§§ /bin/apt-get is already executable §§
§§ /bin/apt-key is already executable §§
§§ /bin/apt-mark is already executable §§
§§ /bin/apt-sortpkgs is already executable §§
§§ /bin/dpkg is already executable §§
§§ /bin/dpkg-architecture is already executable §§
§§ /bin/dpkg-buildflags is already executable §§
§§ /bin/dpkg-buildpackage is already executable §§
§§ /bin/dpkg-checkbuilddeps is already executable §§
§§ /bin/dpkg-deb is already executable §§
§§ /bin/dpkg-distaddfile is already executable §§
§§ /bin/dpkg-divert is already executable §§
§§ /bin/dpkg-genbuildinfo is already executable §§
§§ /bin/dpkg-genchanges is already executable §§
§§ /bin/dpkg-gencontrol is already executable §§
§§ /bin/dpkg-gensymbols is already executable §§
§§ /bin/dpkg-maintscript-helper is already executable §§
§§ /bin/dpkg-mergechangelogs is already executable §§
§§ /bin/dpkg-name is already executable §§
§§ /bin/dpkg-parsechangelog is already executable §§
§§ /bin/dpkg-query is already executable §§
§§ /bin/dpkg-realpath is already executable §§
§§ /bin/dpkg-scanpackages is already executable §§
§§ /bin/dpkg-scansources is already executable §§
§§ /bin/dpkg-shlibdeps is already executable §§
§§ /bin/dpkg-source is already executable §§
§§ /bin/dpkg-split is already executable §§
§§ /bin/dpkg-statoverride is already executable §§
§§ /bin/dpkg-trigger is already executable §§
§§ /bin/dpkg-vendor is already executable §§
§§ apt update §§
§§ Linking apt sources to your storage for persistence §§
§§ Fix the trust.gpg warnings §§
gpg: keybox '/etc/apt/trusted.gpg' created
§§ Docker Checks §§
§§ Keyrings Exist §§
§§ Docker List: §§
deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian bookworm stable
§§ Which Docker: /usr/bin/docker §§
§§ Docker storage-driver §§
§§ Docker daemon.json §§
§§ Storage Driver: overlay2 §§
§§ Dataset: /mnt/OPS/Docker §§
§§ Attempting to create JSON configuration... §§
§§ Generated JSON content: §§
{
"data-root": "/mnt/OPS/Docker",
"storage-driver": "overlay2",
"exec-opts": [
"native.cgroupdriver=cgroupfs"
]
}
§§ Checking /etc/docker/daemon.json §§
§§ Checking file: /etc/docker/daemon.json §§
§§ Which Docker: /usr/bin/docker §§
§§ Docker Version: Docker version 27.1.1, build 6312585 §§
§§ Script Finished! §§