• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Can't login to management after saving FOG settings

    Scheduled Pinned Locked Moved
    FOG Problems
    5
    58
    15.6k
    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.
    • M
      Mark Pickard
      last edited by

      [code]
      root@FOG:/var/lib/php5# df -h
      Filesystem Size Used Avail Use% Mounted on
      /dev/sda1 145G 31G 107G 23% /
      udev 991M 4.0K 991M 1% /dev
      tmpfs 201M 1.4M 199M 1% /run
      none 5.0M 0 5.0M 0% /run/lock
      none 1001M 148K 1001M 1% /run/shm
      [/code]
      [quote=“Tom Elliott, post: 43262, member: 7271”]Also,

      Check the file space:

      [code]df -h[/code][/quote]

      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        can you restart the apache services?
        [code]sudo service apache2 restart[/code]

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • M
          Mark Pickard
          last edited by

          Tried that once from Webmin; just did it again from the terminal. Still seeing the same behavior.

          The restart command returned the following:
          [code]
          root@FOG:/var/lib/php5# sudo service apache2 restart

          • Restarting web server apache2 [Thu Mar 05 07:34:27 2015] [warn] The Alias directive in /etc/phpmyadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias.
            apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName
            … waiting [Thu Mar 05 07:34:28 2015] [warn] The Alias directive in /etc/phpmyadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias.
            apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName
            [ OK ]
            [/code]
            Any issues with that?
            [quote=“Tom Elliott, post: 43280, member: 7271”]can you restart the apache services?
            [code]sudo service apache2 restart[/code][/quote]
          1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott
            last edited by

            What’s the alias you’ve got?

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            1 Reply Last reply Reply Quote 0
            • M
              Mark Pickard
              last edited by

              [quote=“Tom Elliott, post: 43284, member: 7271”]What’s the alias you’ve got?[/quote]

              Line 3 of /etc/phpmyadmin/apache.conf is:

              [COLOR=#000000][code]Alias /phpmyadmin /usr/share/phpmyadmin[/code][/COLOR]

              1 Reply Last reply Reply Quote 0
              • Tom ElliottT
                Tom Elliott
                last edited by

                Try this:

                [code]sudo service apache2 stop;sudo rm -rf /var/lib/php5/sess_*; sudo service apache2 start;[/code]

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                1 Reply Last reply Reply Quote 0
                • M
                  Mark Pickard
                  last edited by

                  [quote=“Tom Elliott, post: 43286, member: 7271”]Try this:

                  [code]sudo service apache2 stop;sudo rm -rf /var/lib/php5/sess_*; sudo service apache2 start;[/code][/quote]

                  It wiped the session files but I still see the same behavior.

                  /var/lib/php5 after a couple attempts to login after running the above command:

                  [code]
                  root@FOG:/var/lib/php5# ls -al
                  total 1476
                  drwx-wx-wt 3 root root 1499136 Mar 5 08:10 .
                  drwxr-xr-x 66 root root 4096 Feb 24 12:48 …
                  drwxr-xr-x 2 root root 4096 Mar 4 16:16 old
                  -rw------- 1 www-data www-data 0 Mar 5 08:10 sess_e60jnb59pcoqads486btknhsj4
                  -rw------- 1 www-data www-data 0 Mar 5 08:10 sess_mqhj79o0eiih24g25cp37t4is2
                  -rw------- 1 www-data www-data 0 Mar 5 08:10 sess_p1f43a9hrglme8diq0ptrmlu51
                  [/code]

                  1 Reply Last reply Reply Quote 0
                  • M
                    Mark Pickard
                    last edited by

                    Don’t know if it’s just a coincidence but both times this has happened (on two separate installations) I was changing settings on the FOG configuration page at /fog/management/index.php?node=about&sub=settings. Once it was AD settings and the other it was TFTP settings. As soon as I hit the “Save Changes” button it booted me back to the sign in page and from that point I could never sign back in.

                    1 Reply Last reply Reply Quote 0
                    • Wayne WorkmanW
                      Wayne Workman
                      last edited by

                      I’m going to assume you’ve tried logging in from a different computer, a different browser?

                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                      Daily Clean Installation Results:
                      https://fogtesting.fogproject.us/
                      FOG Reporting:
                      https://fog-external-reporting-results.fogproject.us/

                      1 Reply Last reply Reply Quote 0
                      • M
                        Mark Pickard
                        last edited by

                        [quote=“Wayne Workman, post: 43327, member: 28155”]I’m going to assume you’ve tried logging in from a different computer, a different browser?[/quote]

                        Yes to both.

                        1 Reply Last reply Reply Quote 0
                        • M
                          Mark Pickard
                          last edited by

                          Additional info:

                          I’m able to login to phpMyadmin on this server and it appears to be generating PHP session files without a problem:

                          [code]
                          root@FOG:~# ls -al /var/lib/php5
                          total 1500
                          drwx-wx-wt 3 root root 1499136 Mar 6 11:54 .
                          drwxr-xr-x 66 root root 4096 Feb 24 12:48 …
                          drwxr-xr-x 2 root root 4096 Mar 4 16:16 old
                          -rw------- 1 www-data www-data 23934 Mar 6 11:55 sess_pd6cadbemdnt9m3ks2bn1gpbguk4c75c
                          root@FOG:~#
                          [/code]

                          1 Reply Last reply Reply Quote 0
                          • S
                            Sebastian Roth Moderator
                            last edited by

                            Hmmm, that’s interesting. So it’s FOG not being able to save session information properly. Not sure if this is related but someone had issues with wordpress writing zero size session files: [url]http://quirm.net/forum/topic.php?id=3950[/url]
                            So far I couldn’t really see what was fixing the issue for him. But maybe this can lead us to where we should have a closer look…

                            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                            1 Reply Last reply Reply Quote 0
                            • M
                              Mark Pickard
                              last edited by

                              [quote=“Uncle Frank, post: 43419, member: 28116”]Hmmm, that’s interesting. So it’s FOG not being able to save session information properly. Not sure if this is related but someone had issues with wordpress writing zero size session files: [url]http://quirm.net/forum/topic.php?id=3950[/url]
                              So far I couldn’t really see what was fixing the issue for him. But maybe this can lead us to where we should have a closer look…[/quote]

                              Yeah, I came across that and a few others like it after Tom made some suggestions about the session files. If that’s what the problem is then it seems like it has to be a FOG problem since phpMyadmin is writing them OK.

                              I’ve got another new FOG install up and running on Ubuntu 12.04 in a VM. This is the third install in the past two weeks with the first two ending in me being locked out of the web interface. Don’t know what else to try if this one locks me out again.

                              1 Reply Last reply Reply Quote 0
                              • Wayne WorkmanW
                                Wayne Workman
                                last edited by

                                [quote=“Mark Pickard, post: 43507, member: 609”]Yeah, I came across that and a few others like it after Tom made some suggestions about the session files. If that’s what the problem is then it seems like it has to be a FOG problem since phpMyadmin is writing them OK.

                                I’ve got another new FOG install up and running on Ubuntu 12.04 in a VM. This is the third install in the past two weeks with the first two ending in me being locked out of the web interface. Don’t know what else to try if this one locks me out again.[/quote]

                                Until it gets solved, snapshots.

                                There must be a way to fix it.

                                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                                Daily Clean Installation Results:
                                https://fogtesting.fogproject.us/
                                FOG Reporting:
                                https://fog-external-reporting-results.fogproject.us/

                                1 Reply Last reply Reply Quote 0
                                • Tom ElliottT
                                  Tom Elliott
                                  last edited by

                                  It seems awfully odd that this is a “FOG” specific problem considering there’s how many different users out there, and from what I can tell you’re the first who seems to get completely locked out of the system in such a manner.

                                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                  Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                  Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                  1 Reply Last reply Reply Quote 0
                                  • Wayne WorkmanW
                                    Wayne Workman
                                    last edited by

                                    What else are you doing on this Linux VM? Just FOG? What’s all the things that are installed? What versions?

                                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                                    Daily Clean Installation Results:
                                    https://fogtesting.fogproject.us/
                                    FOG Reporting:
                                    https://fog-external-reporting-results.fogproject.us/

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      Sebastian Roth Moderator
                                      last edited by

                                      [quote=“Wayne Workman, post: 43510, member: 28155”]What else are you doing on this Linux VM? Just FOG? What’s all the things that are installed? What versions?[/quote]
                                      Yeah, especially other PHP “apps” (other than phpmyadmin). In the end phpmyadmin might play a role too!!! But so far I don’t have any trouble and use it on most of my FOG servers…

                                      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                      1 Reply Last reply Reply Quote 0
                                      • Wayne WorkmanW
                                        Wayne Workman
                                        last edited by

                                        Tom suggested that you check this (on the broken FOG vm) in the FOG data base: [FONT=arial][COLOR=#222222]Globalsettings.[/COLOR][/FONT][FONT=arial][COLOR=#222222]fog_regenerate_[/COLOR][/FONT][FONT=arial][COLOR=#222222]timeout[/COLOR][/FONT]

                                        [FONT=arial][COLOR=#222222]That’s the table and field for the timeout setting. it should NOT be set to zero…[/COLOR][/FONT]

                                        [FONT=arial][COLOR=#222222]beyond that, I’ve got nothing.[/COLOR][/FONT]

                                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                                        Daily Clean Installation Results:
                                        https://fogtesting.fogproject.us/
                                        FOG Reporting:
                                        https://fog-external-reporting-results.fogproject.us/

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          Mark Pickard
                                          last edited by

                                          [quote=“Wayne Workman, post: 43510, member: 28155”]What else are you doing on this Linux VM? Just FOG? What’s all the things that are installed? What versions?[/quote]

                                          On the FOG VM (this is the new install that’s currently working) all I’ve got going is FOG (other than Samba and RDP).

                                          1 Reply Last reply Reply Quote 0
                                          • M
                                            Mark Pickard
                                            last edited by

                                            [quote=“Wayne Workman, post: 43523, member: 28155”]Tom suggested that you check this (on the broken FOG vm) in the FOG data base: [FONT=arial][COLOR=#222222]Globalsettings.[/COLOR][/FONT][FONT=arial][COLOR=#222222]fog_regenerate_[/COLOR][/FONT][FONT=arial][COLOR=#222222]timeout[/COLOR][/FONT]

                                            [FONT=arial][COLOR=#222222]That’s the table and field for the timeout setting. it should NOT be set to zero…[/COLOR][/FONT]

                                            [FONT=arial][COLOR=#222222]beyond that, I’ve got nothing.[/COLOR][/FONT][/quote]

                                            [FONT=arial][COLOR=#222222]Globalsettings.[/COLOR][/FONT][FONT=arial][COLOR=#222222]fog_regenerate_[/COLOR][/FONT][FONT=arial][COLOR=#222222]timeout is set to [/COLOR][/FONT]0.5

                                            And just to review: my first two FOG installations that ended up locking me out were both on physical machines (both on the same hardware). I just recently brought up a third install in a VM as per your suggestion. That one is working OK so far.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • First post
                                              Last post

                                            143

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project