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

    After Reboot, Good Login Shows Only Login Screen

    Scheduled Pinned Locked Moved General pfSense Questions
    10 Posts 2 Posters 5.2k 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.
    • B
      bsmither
      last edited by

      I had to power-cycle the pfSense box.

      The console did not give any errors (except maybe squid3).

      At a workstation, I request the login page and submit the user/pass. I am shown the login screen again.

      The console screen shows that the user has successfully logged in.

      This may or may not have any contributing info:
      https://forum.pfsense.org/index.php?topic=100338.0

      This box was operating fine before the referenced activity.

      I think this could not be a case of user/pass failing a hashing algorithm – all characters are lower-case USA alphabet -- as the console screen says success and the login screen does not hint at a failed attempt.

      Restarting the WebConfigurator (option 11 on console) does not fix it. Restart php-fpm (option 16) does not fix it.

      1 Reply Last reply Reply Quote 0
      • B
        bsmither
        last edited by

        More info:

        Warm-booted the box (option 5) and requested the webconfigurator. Got the login page.

        Intentionally entered a wrong user/pass. Got back the login page with the added phrase, "Username or Password incorrect".

        Entered the correct user/pass and still was given the same login page – with the added phrase still present.

        Console has a line that says a login failed, followed by a line that says login succeeded.

        1 Reply Last reply Reply Quote 0
        • D
          doktornotor Banned
          last edited by

          Which pfSense version? ???

          1 Reply Last reply Reply Quote 0
          • B
            bsmither
            last edited by

            More info:

            Just finished Upgrading from console (option 13) to v2.2.4.

            No change. The console says a login was successful, but I get the login page again.

            1 Reply Last reply Reply Quote 0
            • D
              doktornotor Banned
              last edited by

              You just finished upgrading from what version? Everything before 2.2.4 was plagued with /etc filesystem corruption issue, screwing up /etc/group among others. Are we talking about admin user here, or some other account you configured manually? If the first, why don't you use Reset webConfigurator password in console? If the second, delete the user and re-create it?

              1 Reply Last reply Reply Quote 0
              • B
                bsmither
                last edited by

                This is the default user/admin created on initial install – uses the default user/pass.

                Worked before the aforementioned reboot.

                The console says login was successful. DOES IT LIE?

                The login page does not say wrong user/pass. DOES IT LIE?

                No other user created.

                Sure, I'll try resetting the password.

                1 Reply Last reply Reply Quote 0
                • B
                  bsmither
                  last edited by

                  No change.

                  1 Reply Last reply Reply Quote 0
                  • D
                    doktornotor Banned
                    last edited by

                    If that doesn't work, perhaps you could try from a different browser, different computer altogether.

                    1 Reply Last reply Reply Quote 1
                    • B
                      bsmither
                      last edited by

                      Frak!

                      Composed a superlative response only to have timed out the session and lost it all!

                      It was the cookies.

                      (Frakkin' forums.)

                      1 Reply Last reply Reply Quote 0
                      • B
                        bsmither
                        last edited by

                        Let me try to get this in.

                        Using a second (instance/profile of the same brand) browser, I asked for the pfsense page and was given the login page. However, this page is using a different theme.

                        Comparing the cookies between the two browsers, I find that the first browser has three cookies named PHPSESSID with different 'host' values. Deleting the two obviously wrong same-named cookies got me past the login page.

                        On the first browser, I logged in and was given the dashboard page of the theme I always used.

                        On the second browser, a different theme is shown, yet the General Setup, Theme choice is 'pfsense_ng' in both browsers.

                        Edit: Changing the selection of the theme does not change the theme displayed.
                        Edit2: Correction - the theme changes on the first browser when a selection is made, but not on the second when a selection is made.

                        So, I think the browser was sending too many cookies or the wrong cookie.

                        Suggest that pfSense use a cookie with a name unique unto itself, instead of the common/default PHPSESSID.

                        1 Reply Last reply Reply Quote 0
                        • K kj32 referenced this topic on
                        • K kj32 referenced this topic on
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.