Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    userland calling deprecated sysctl, please rebuild world

    Scheduled Pinned Locked Moved General pfSense Questions
    25 Posts 4 Posters 1.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      Ok.

      Why are you loading those things?

      One of those is causing your error.

      Steve

      I 1 Reply Last reply Reply Quote 0
      • I
        itfsupport @stephenw10
        last edited by

        @stephenw10
        Good day!
        What specific parameter from the boot/loader.conf.local confuses you?

        1 Reply Last reply Reply Quote 0
        • I
          itfsupport @stephenw10
          last edited by itfsupport

          @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.

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            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

            I 1 Reply Last reply Reply Quote 1
            • provelsP
              provels
              last edited by

              "Userland calling deprecated sysctl, please rebuild world"

              ~ An anthem for Modern Man

              Peder

              MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
              BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

              1 Reply Last reply Reply Quote 1
              • I
                itfsupport @stephenw10
                last edited by itfsupport

                @stephenw10
                Hello!
                Now i delete all settings from boot/loader.conf.local
                and i still have this error

                1 Reply Last reply Reply Quote 0
                • I
                  itfsupport
                  last edited by itfsupport

                  Now i reset boot.loader.conf.local and syscl.conf to default and i have error

                  userland calling deprecated sysctl, please rebuild world

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    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

                    I 2 Replies Last reply Reply Quote 0
                    • I
                      itfsupport @stephenw10
                      last edited by itfsupport

                      @stephenw10
                      sysctl.conf recovered after reboot
                      only this settings
                      kern.ipc.shmall=2097152
                      kern.ipc.shmmax=2147483648
                      kern.ipc.semmsl=250

                      1 Reply Last reply Reply Quote 0
                      • I
                        itfsupport @stephenw10
                        last edited by itfsupport

                        @stephenw10
                        I don't really understand how to show you an error
                        There is a journal entry

                        Sep 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

                        1 Reply Last reply Reply Quote 0
                        • stephenw10S
                          stephenw10 Netgate Administrator
                          last edited by

                          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

                          I 1 Reply Last reply Reply Quote 0
                          • I
                            itfsupport @stephenw10
                            last edited by

                            @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 settings

                            EnableRemoteCommands=1

                            1 Reply Last reply Reply Quote 1
                            • stephenw10S
                              stephenw10 Netgate Administrator
                              last edited by

                              Nice find.

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post
                              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.