FreeBSD 13.1: Failed to create CoreCLR, HRESULT: 0x8007FF02 When Upgrading Emby Server
After updating the
emby-server package from 18.104.22.168_2 to 22.214.171.124 inside a
Bastille jail, it refused to start. Attempting to run it manually revealed a
rather cryptic error message:
Failed to create CoreCLR, HRESULT: 0x8007FF02
Searching the web for it, I was able to dig out a GitHub issue in the .NET repository. The apparent cause:
[…] this error means that there is not even a single page of wired memory available for our use. We use one such page. There is a system-wide limit to the amount of memory that can be allocated as wired (locked via mlock). The error means that some other application has consumed all the available wired memory.
And indeed, once you follow the suggested fix, setting
allow.mlock = 1 in the
jail.conf and restart it, that solves the issue.