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

    System Log Errors : send() failed (40: Message too long) !!

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 3 Posters 788 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.
    • S
      sparktcs
      last edited by

      Dears,

      Could you please provide a proper solution for below errors which is found in the log file?

      Dec 4 20:28:42 nginx 2021/12/04 20:28:42 [alert] 86917#100411: send() failed (40: Message too long)
      Dec 4 20:28:42 nginx 2021/12/04 20:28:42 [alert] 86941#100394: send() failed (40: Message too long)
      Dec 4 20:28:42 nginx 2021/12/04 20:28:42 [alert] 86941#100394: send() failed (40: Message too long)
      Dec 4 20:28:43 nginx 2021/12/04 20:28:43 [alert] 86941#100394: send() failed (40: Message too long)

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

        Are you seeing that error repeatedly?

        What pfSense version are you running?

        Are you using the captive portal? With a custom login page?

        Check the nginx error logs in /var/log.

        Steve

        S stephenw10S 3 Replies Last reply Reply Quote 0
        • S
          sparktcs @stephenw10
          last edited by

          Yes .. repeating the same ..
          we do have captive portal also

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

            @stephenw10 said in System Log Errors : send() failed (40: Message too long) !!:

            What pfSense version are you running?

            With a custom login page?

            Check the nginx error logs in /var/log.

            Steve

            S 1 Reply Last reply Reply Quote 0
            • S
              sparktcs @stephenw10
              last edited by

              2.5.2-RELEASE (amd64)
              
              1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan @sparktcs
                last edited by

                @sparktcs said in System Log Errors : send() failed (40: Message too long) !!:

                we do have captive portal also

                Do you use the default, build 'pfSense' portal login page ?
                Or do you use your own portal page ?

                Also :
                Does this happens with every portal client using every possible device ?
                Or just some client using some type of device ?

                Are you using the SSL portal login (https) ? Or IP based (http) ?

                Does it happen with user launched browsers ?
                Are they accessing the portal's login page directly ?

                Normally, portal users don't need to know that a captive portal is used.
                The connect to your, typically a Wifi, network, and as soon as the link comes up, DHCP does it's thing, the OS of the device will handle the portal's login page as it is auto detected, the user will get redirects to the captive portal's login page, the user logs itself in, and the request is repeated using the initial URL. Most if not all is done without portal user interaction.

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

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

                  @stephenw10 said in System Log Errors : send() failed (40: Message too long) !!:

                  With a custom login page?

                  Exactly. Previous reports of this were caused by a bad custom port page that was creating a forward incorrectly.

                  Steve

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