Fix script to debug problem place:
Identified that the problem was in iocage jail with samba, and fdescfs(/usr/local/bastille/jails/nas/root/var/run/samba4/fd/3/: Bad file descriptor)
Stopped samba in a jail and umount fdescfs. From 4.16 Samba On FreeBSD 4.16+ inside jails, Samba expects /dev/fd (fdescfs) to be mounted.
Upgrade from the WEB with no problems.
SOLVED!
Code Select
#!/bin/sh
# Flush temporary system files
# Script version (originally a function)
echo "Cleaning stale .pyc files..."
find /usr/local/opnsense -type f -name "*.pyc" -delete
for DIR in /usr/local ; do
echo "Processing $DIR..."
# Remove package-related temporary files
# find "${DIR}" ! \( -type d \) -a \
# \( -name "*.pkgsave" -o -name ".pkgtemp.*" \) -print -delete
find "${DIR}" \
\( -type d -exec sh -c 'printf "ENTER: %s\n" "$1" >&2' sh {} \; \) -o \
\( ! -type d -a \( -name "*.pkgsave" -o -name ".pkgtemp.*" \) -print 1>&2 -delete \)
# Remove package-related temporary directories
find "${DIR}" -type d -name ".pkgtemp.*" -print0 | \
xargs -0 -n1 rm -rf
done
echo "Cleanup completed successfully."
exit 0
Identified that the problem was in iocage jail with samba, and fdescfs(/usr/local/bastille/jails/nas/root/var/run/samba4/fd/3/: Bad file descriptor)
Stopped samba in a jail and umount fdescfs. From 4.16 Samba On FreeBSD 4.16+ inside jails, Samba expects /dev/fd (fdescfs) to be mounted.
Upgrade from the WEB with no problems.
SOLVED!