• 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

      New FOG 1.2 install on Ubuntu workstation 12.04. Have successfully created and deployed images to a test machine.

      After entering my active directory information in the FOG configuration page and saving the changes I was immediately taken back to the sign in page. I re-entered my credentials but the page just refreshed back to the sign in page - no error message or anything. If I intentionally enter wrong credentials it gives me the “Invalid Login” message.

      This happened to me once before when I first setup this FOG server a couple of weeks ago. That time I was changing DNS settings in the FOG configuration pages IIRC. I searched for a solution but was never able to fix it. Since I wasn’t very far along at that time I ended up re-installing.

      I’ve got a lot more invested in it this time and don’t want to re-install. Any ideas?

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

        Just noticed that my FOG management login page has several lines of gibberish at the bottom (see attached image). Don’t think that was there when things were working.

        [ATTACH=full]1743[/ATTACH]

        [url=“/_imported_xf_attachments/1/1743_management-login-page.png?:”]management-login-page.png[/url]

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

          they probably weren’t but I don’t think that’s what’s causing the issue.

          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

            So, I’m going to assume that since you’re asking for help here, you don’t have this FOG server virtualized, and don’t have a snapshot of it when it was working?

            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

              Unfortunately, no. It’s on a real server.

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

                Apache error and access logs attached.

                [url=“/_imported_xf_attachments/1/1744_error.txt?:”]error.txt[/url][url=“/_imported_xf_attachments/1/1745_access(tail).txt?:”]access(tail).txt[/url]

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

                  Well, when you say you’ve “got a lot more invested in it this time and don’t want to re-install”, what do you mean?

                  Do you have your database backed up? Can you just log into the FOG server and back it up manually? Can you copy your images from it to a different location?

                  You could do a rebuild if you could get your database & images backed up. I believe that importing a database is straight forward. After that’s done, you’d just place the images where they should go.

                  I’ve found this in the WiKi: [url]http://fogproject.org/wiki/index.php/Restoring_FOG_from_Backup[/url]

                  If you’re confident with it, it might be the way to go. Esp. since it seems like only the Web login is broken.

                  Also, for the record, I would advise anyone to virtualize their FOG server. Mine’s running in Hyper-V, and I take snap shots before any major change. It’s a safety net.

                  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

                    I can still WebMin into the box so I could definitely back up everything. Plus I’ve got Samba running so I can easily grab the images. However, this is the second time this has happened. I’d rather find the root cause instead of re-installing (or going back to a snapshot if I virtualize) if this happens again.

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

                      First,

                      what’s in the error logs?

                      As you’re running 12.04 and Ubuntu, can you check if there’s a permissions error in the /var/lib/php5/sessions folder?

                      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

                        Not sure what I’m looking for but I’ve attached a screenshot.

                        [quote=“Tom Elliott, post: 43222, member: 7271”]First,

                        what’s in the error logs?

                        As you’re running 12.04 and Ubuntu, can you check if there’s a permissions error in the /var/lib/php5/sessions folder?[/quote]

                        [url=“/_imported_xf_attachments/1/1749_varlibphp5.png?:”]varlibphp5.png[/url]

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

                          [quote=“Mark Pickard, post: 43224, member: 609”]Not sure what I’m looking for but I’ve attached a screenshot.[/quote]

                          Look at Tom’s signature. It says where everything is.

                          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

                            I attached both my Apache error and access logs in a previous post. Do you see anything in them that would indicate a problem?

                            As you can see from the screen shot in my last post there isn’t a sessions folder in /var/lib/php5/, only a bunch of files (session files?). Is that a problem?

                            [quote=“Wayne Workman, post: 43228, member: 28155”]Look at Tom’s signature. It says where everything is.[/quote]

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

                              Session filenames look alright I’d say. But why are there three files owned by root I wonder AND why are all these files of zero size? Is that really the case? Please run ‘ls -al /var/lib/php5’ on the console on the FOG server. Check the permissions.

                              Can’t see any related error in the log files you posted (doesn’t mean much)!

                              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
                              • Tom ElliottT
                                Tom Elliott
                                last edited by

                                Also,

                                Check the file space:

                                [code]df -h[/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

                                  Here’s the results of ‘ls -al /var/lib/php5’ from a copy of those files I made before cleaning out the /var/lib/php5 directory and restarting Apache.

                                  -rw------- 1 www-data www-data 0 Mar 4 16:15 sess_0969m10k5egnck11q07jkb3uq5
                                  -rw------- 1 root root 0 Feb 24 14:32 sess_e2i1ddhl3g3vppt4gv5kh5am16
                                  -rw------- 1 root root 0 Feb 24 14:32 sess_e6pvp88q6vhdnide6b5f94gll3
                                  -rw------- 1 root root 0 Feb 24 14:32 sess_gm47ulnsrhe19nr4q6petondv0
                                  [quote=“Uncle Frank, post: 43260, member: 28116”]Session filenames look alright I’d say. But why are there three files owned by root I wonder AND why are all these files of zero size? Is that really the case? Please run ‘ls -al /var/lib/php5’ on the console on the FOG server. Check the permissions.

                                  Can’t see any related error in the log files you posted (doesn’t mean much)![/quote]

                                  1 Reply Last reply Reply Quote 0
                                  • 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
                                            • 1
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • First post
                                              Last post

                                            147

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project