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

SSL portal does not restart

Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
5 Posts 2 Posters 2.3k 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
    spookycave
    last edited by Jul 22, 2011, 2:43 AM Jul 22, 2011, 2:24 AM

    The SSL captive portal doesn't appear to restart properly, neither by restarting it from the [Status -> Services] page nor by saving the portal configuration on the [Services -> Captive Portal] page.

    This syslog is generated when you try to restart the Captive Portal service:

    php[33518]: /status_services.php: The command '/usr/local/sbin/lighttpd -f /var/etc/lighty-CaptivePortal-SSL.conf' returned exit code '255', the output was '2011-07-21 16:43:23: (network.c.364) can't bind to port: 8001 Address already in use'

    In fact, the /var/run/light-CaptivePortal-ssl.pid file is empty.  The problem seems to be in /etc/inc/captiveportal.inc:

    This line:
    killbypid("{$g['varrun_path']}/lighty-CaptivePortal-SSL.pid");
    should read:
    killbypid("{$g['varrun_path']}/lighty-CaptivePortal-ssl.pid");

    (note that SSL was inadvertently capitalized)

    And /usr/local/www/status_services.php also needs to be changed as follows:

    if($_GET['mode'] == "restartservice" and !empty($_GET['service'])) {
    switch($_GET['service']) {
    case 'captiveportal':
    killbypid("{$g['varrun_path']}/lighty-CaptivePortal.pid");

    add this line to also kill the ssl portal:

    killbypid("{$g['varrun_path']}/lighty-CaptivePortal-ssl.pid");
    captiveportal_init_webgui();
    break;

    and again in this section:

    /* stop service */
    if($_GET['mode'] == "stopservice" && !empty($_GET['service'])) {
    switch($_GET['service']) {
    case 'captiveportal':
    killbypid("{$g['varrun_path']}/lighty-CaptivePortal.pid");

    add this line to also kill the ssl portal:

    killbypid("{$g['varrun_path']}/lighty-CaptivePortal-ssl.pid");
    break;

    thanks,
    Mike

    1 Reply Last reply Reply Quote 0
    • E
      eri--
      last edited by Jul 22, 2011, 10:04 AM Jul 22, 2011, 10:01 AM

      Try latest snapshot  since i put some fixes.

      1 Reply Last reply Reply Quote 0
      • S
        spookycave
        last edited by Jul 25, 2011, 3:32 PM

        partially resolved, but I don't think /usr/local/www/status_services.php was modified (see the second part of my post).
        thanks
        Mike

        1 Reply Last reply Reply Quote 0
        • E
          eri--
          last edited by Jul 25, 2011, 4:47 PM

          Try again a later snapshot since the .pid file has been capitalized consistently all-over.

          1 Reply Last reply Reply Quote 0
          • S
            spookycave
            last edited by Jul 25, 2011, 6:24 PM

            Yep, the 7/24/2011 snapshot fixed this problem – thanks!
            Mike

            1 Reply Last reply Reply Quote 0
            5 out of 5
            • First post
              5/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received