userland calling deprecated sysctl, please rebuild world
-
Ok.
Why are you loading those things?
One of those is causing your error.
Steve
-
@stephenw10
Good day!
What specific parameter from the boot/loader.conf.local confuses you? -
@stephenw10 said in userland calling deprecated sysctl, please rebuild world:
Yup because in order to see that as an option you have to load the module:
[2.5.2-RELEASE][admin@252dev.stevew.lan]/root: kldload cc_htcp [2.5.2-RELEASE][admin@252dev.stevew.lan]/root: sysctl net.inet.tcp.cc.available net.inet.tcp.cc.available: newreno, htcp
It's not loaded by default because it's pointless for the vast majority of users.
So OP is loading it via some custom loader variable which begs; what else us bring loaded?
Whatever it is it's probably generating that error. Which we've yet to see in context.
Steve
This information on tuning FreeBSD hosts connected at speeds of 1Gbps or higher.
FreeBSD supports TCP autotuning and advanced congestion control algorithms in all currently-supported releases. You can check which are available in the running kernel using:sysctl net.inet.tcp.cc.available
To make additional algorithms available in the kernel, the appropriate module must be loaded. The congestion control modules are in /boot/kernel and begin with cc_ - they can be listed with the following command:ls /boot/kernel/cc_* | grep -v symbols
To load a particular congestion control algorithm (for example htcp) you can use:kldload cc_htcp
and you will then be able to set the congestion control algorithm using this:sysctl net.inet.tcp.cc.algorithm=htcp
Enabling congestion control algorithms at boot time
Depending how your kernel is built, you may not have the algorithm you want available by default at boot time, and will need to load the driver during the boot process. To to this add the following to /boot/loader.conf:
cc_htcp_load="YES"
The htcp algorithm will then be loaded at boot time, and will be enabled when sysctl.conf is processed at boot time and the net.inet.tcp.cc.algorithm=htcp variable is set. -
Right but a firewall/router is not a host. Almost all traffic passes through it and those TCP tunables apply to traffic terminated on the system.
Why have you added them? Were you seeing a problem? Did it help?
One of those is causing the error you are seeing. So if you want to not see it you need to stop applying that tunable.
Steve
-
"Userland calling deprecated sysctl, please rebuild world"
~ An anthem for Modern Man
-
@stephenw10
Hello!
Now i delete all settings from boot/loader.conf.local
and i still have this error -
Now i reset boot.loader.conf.local and syscl.conf to default and i have error
userland calling deprecated sysctl, please rebuild world
-
You still have not shown us the log containing this error for context so we can only guess what is calling it. You must have something custom on that box.
To confirm you have removed the custom sysctls from Sys > Adv > System tunables?
sysctl.conf will just get rebuilt at boot.Steve
-
@stephenw10
sysctl.conf recovered after reboot
only this settings
kern.ipc.shmall=2097152
kern.ipc.shmmax=2147483648
kern.ipc.semmsl=250 -
@stephenw10
I don't really understand how to show you an error
There is a journal entrySep 26 23:17:21 pfSenseIllanM syslogd: kernel boot file is /boot/kernel/kernel
Sep 26 23:17:22 pfSenseIllanM nginx: 2021/09/26 23:17:22 [error] 71259#100112: send() failed (54: Connection reset by peer)
Sep 26 23:17:45 pfSenseIllanM kernel: userland calling deprecated sysctl, please rebuild world
Sep 26 23:17:45 pfSenseIllanM kernel: userland calling deprecated sysctl, please rebuild world
Sep 26 23:18:48 pfSenseIllanM kernel: userland calling deprecated sysctl, please rebuild world
Sep 26 23:18:48 pfSenseIllanM kernel: userland calling deprecated sysctl, please rebuild world
Sep 26 23:19:50 pfSenseIllanM kernel: userland calling deprecated sysctl, please rebuild world
Sep 26 23:19:50 pfSenseIllanM kernel: userland calling deprecated sysctl, please rebuild world -
Ok, so it occurs multiple times and not just at boot? Some minutes apart?
Does it log that continually?
That's not a sysctl that is applied at boot then. You have something else on that system actively setting something that's no longer valid. Do you have something else running there? Some other custom script or manually added package?
Steve
-
@stephenw10 said in userland calling deprecated sysctl, please rebuild world:
Ok, so it occurs multiple times and not just at boot? Some minutes apart?
Does it log that continually?
That's not a sysctl that is applied at boot then. You have something else on that system actively setting something that's no longer valid. Do you have something else running there? Some other custom script or manually added package?
Steve
Good day!
After a long search for the error found the following.
The problem appears when enable an additional parameter in the Zabbix agent settingsEnableRemoteCommands=1
-
Nice find.