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

    Pipe no leaking

    Scheduled Pinned Locked Moved Captive Portal
    4 Posts 2 Posters 1.0k 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.
    • A
      aneip
      last edited by

      I have seeing "System reached maximum login capacity" multiple times after a few weeks of running. After a bit of investigation, it's seems the error message pointing to exhausted of pipeno. After restart and deleting dn rules file. I seeing the number keep increasing way more than my user. Concurrent user hovering around 1500 users.. But now my pipeno is 15000.

      For short term solutions how do I restart the captive portal cleanly? Which clear out everything included logon user/pipe no and so on. Planing to do this once a weeks.

      Can I call captiveportal_init_rules?

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        Hi,

        You found the $pipeno and the way its used in /etc/inc/captiveportal.inc

        Find the function captiveportal_get_next_dn_ruleno(….) - this is where a new rule set is allocated when a user connects.
        The array size is 64500 - 2000 = 62500

        A couple of line lower, you will find the  function captiveportal_free_dn_ruleno($ruleno)
        This one should be called when a user gets disconnected.

        You should look why, on your setup, "captiveportal_free_dn_ruleno($ruleno)" isn't called, or doesn't do it's job.

        I propose you add a 'trace/log' call in the beginning of each function, so you can see in your log when a 2-rule-set is allocated, and when they are destroyed.

        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
        • A
          aneip
          last edited by

          I do the trace already but still not find where it's leak. Because I got much big issues which is lighttpd crash. Happen 2-3 times a day.. Will continue this 1 when I found solutions for the crash.

          1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan
            last edited by

            For info : the new version (2.2.6) has a new httpd version which includes bug fixes.

            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
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.