Hello,
I have a cluster of three freebsd 12.1-p7 vm’s running a Vault cluster. it has been running v1.4.2 for quite some time now without issue, however after attempting to upgrade to 1.5.0 the service fails to start with this error:
Jul 23 13:51:32 hcp01 vault[45993]: Error initializing core: Failed to lock memory: cannot allocate memory
Jul 23 13:51:32 hcp01 vault[45993]:
Jul 23 13:51:32 hcp01 vault[45993]: This usually means that the mlock syscall is not available.
Jul 23 13:51:32 hcp01 vault[45993]: Vault uses mlock to prevent memory from being swapped to
Jul 23 13:51:32 hcp01 vault[45993]: disk. This requires root privileges as well as a machine
Jul 23 13:51:32 hcp01 vault[45993]: that supports mlock. Please enable mlock on your system or
Jul 23 13:51:32 hcp01 vault[45993]: disable Vault from using it. To disable Vault from using it,
Jul 23 13:51:32 hcp01 vault[45993]: set the `disable_mlock` configuration option in your configuration
Jul 23 13:51:32 hcp01 vault[45993]: file.
I have applied the steps outlined in this link when initially installing vault 1.4.0, and continued to work fine through 1.4.2.
It may be worth noting that 1.4.3 works just fine.
I am definitely no bsd expert. Has any other BSD users run into this problem? I have not had a chance to dig through diffs to try to find a cause. Any pointers would be welcome.