boa icon indicating copy to clipboard operation
boa copied to clipboard

Limit for nofile set too high

Open reswild opened this issue 2 years ago • 3 comments

I went through my server logs the other day, and I noticed that my auth log was being filled up with endless warnings about su: pam_limits(su-l:session): Could not set limit for 'nofile' to soft=2097152, hard=2097152: Operation not permitted; uid=0,euid=0 I can see that this was caused by this commit from a few months ago: https://github.com/omega8cc/boa/commit/7227341116e4039e4fe4b8af978c888559eecc21

It appears that 1048576 is the highest value my system will accept as a nofile limit, so I manually edited /etc/security/limits.conf, and restored the previous values.

reswild avatar Feb 01 '24 16:02 reswild

Thanks for the fix; I had the same problem.

EdNett avatar Feb 07 '24 13:02 EdNett

@reswild what is your virtualization system and host?

Sent with GitHawk

omega8cc avatar Feb 07 '24 13:02 omega8cc

@omega8cc I had the issue on both Hetzner and DigitalOcean. I believe they both use KVM.

reswild avatar Feb 07 '24 15:02 reswild

Same thing

Mar 3 06:34:27 lon su: pam_limits(su-l:session): Could not set limit for 'nofile' to soft=2097152, hard=2097152: Operation not permitted; uid=0,euid=0

OVH VPS Model VPS vps2020-elite-8-16-160 vCores 8 Memory 16 GB Storage 160 GB

lexsoft00 avatar Mar 03 '24 14:03 lexsoft00

This should be reverted and made configurable.

Sent with GitHawk

omega8cc avatar Mar 10 '24 16:03 omega8cc

This has been reverted in 5.2.0 release.

omega8cc avatar Apr 03 '24 19:04 omega8cc