Packages shouldn't touch any of the files you seem to have problems with. Some other issue caused this, not the upgrade of your packages.Today i just run "pkg update" and "pkg upgrade", reboot, then server can't boot
boot command?I got "can't load 'kernel'" errorPackages shouldn't touch any of the files you seem to have problems with. Some other issue caused this, not the upgrade of your packages.
That said, what happens if you enter thebootcommand?
Ok, there might be more missing. How was this system booted before? UEFI or BIOS boot? Recently upgraded (freebsd-update(8))?I got "can't load 'kernel'" error
How was this system booted before? UEFI or BIOS boot?The error is with loader_lua(8), more specifically you appear to be missing /boot/lua/core.lua. The lua52, or any other package, has nothing to do with this.
Ok, there might be more missing. How was this system booted before? UEFI or BIOS boot? Recently upgraded (freebsd-update(8))?
and/or updated the zroot pool viaRecently upgraded (freebsd-update(8))?
zpool upgrade but didn't update the boot loader?No, I just ran "pkg update" and "pkg upgrade"and/or updated the zroot pool viazpool upgradebut didn't update the boot loader?
It doesn't work, same error message when the server rebootCan I run
to fix it?Code:gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0
pkg upgrade successfully, you're not on 13.0-RELEASE. I think this is the version of your boot media. You show an I/O error trying to read the file cli.lua. I would try a zpool scrub. As you are on a ZFS mirror, you have a chance to correct some errors if errors there are. gpart shows.server's version is FreeBSD 13.0-RELEASE-p13 (GENERIC) when I ran pkg upgrade.If you ranpkg upgradesuccessfully, you're not on 13.0-RELEASE. I think this is the version of your boot media. You show an I/O error trying to read the file cli.lua. I would try azpool scrub. As you are on a ZFS mirror, you have a chance to correct some errors if errors there are.
By the way, you don't boot on EFI but on legacy BIOS if I trust whatgpartshows.