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

    Unable to connect to Web Interface. Git trunk(8245)

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    20
    3.3k
    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.
    • F
      foggee @Tom Elliott
      last edited by

      @Tom-Elliott

      Hi Tom

      First of all, thank you for your time.

      When I access the web interface from server (firefox) to update database schema, I get… 0_1466724378406_upload-0c087c46-1ced-4774-bd74-f3168adf26f8
      When I try to access the web interface from client machines(chrome), i get…
      0_1466724448210_upload-38274610-3c7c-4a48-8014-0d035cb13214

      Lastly, I have tried looking at the Apache log but it doesn’t seem right to me because of the timestamp. If this log is not the one, please tell me where to find the correct one.

      [Mon Jun 06 17:32:42 2016] [error] [client 172.16.1.122] PHP Fatal error:  Call to a member function query() on a non-object in /var/www/fog/lib/db/MySQL.class.php on line 89
      [Mon Jun 06 17:32:42 2016] [error] [client 172.16.1.122] PHP Warning:  Unknown: open(/var/lib/php5/sess_9hf0lmul0f53sfblcoeqpf5486, O_RDWR) failed: Permission denied (13) in Unknown on line 0
      [Mon Jun 06 17:32:42 2016] [error] [client 172.16.1.122] PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5) in Unknown on line 0
      [Mon Jun 06 17:32:42 2016] [error] [client 172.16.1.122] PHP Fatal error:  Call to a member function query() on a non-object in /var/www/fog/lib/db/MySQL.class.php on line 89
      [Mon Jun 06 17:32:42 2016] [error] [client 172.16.1.122] PHP Warning:  Unknown: open(/var/lib/php5/sess_nt2jq0pgilceskr3mjgr57m266, O_RDWR) failed: Permission denied (13) in Unknown on line 0
      [Mon Jun 06 17:32:42 2016] [error] [client 172.16.1.122] PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5) in Unknown on line 0
      [Mon Jun 06 17:32:42 2016] [error] [client 172.16.1.122] PHP Fatal error:  Call to a member function query() on a non-object in /var/www/fog/lib/db/MySQL.class.php on line 89
      [Mon Jun 06 17:32:42 2016] [error] [client 172.16.1.122] PHP Warning:  Unknown: open(/var/lib/php5/sess_ohmbj4sed09ejtnquk10pdle34, O_RDWR) failed: Permission denied (13) in Unknown on line 0
      [Mon Jun 06 17:32:42 2016] [error] [client 172.16.1.122] PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5) in Unknown on line 0
      [Mon Jun 06 17:32:42 2016] [error] [client 172.16.1.122] PHP Fatal error:  Call to a member function query() on a non-object in /var/www/fog/lib/db/MySQL.class.php on line 89
      [Mon Jun 06 17:32:42 2016] [error] [client 172.16.1.122] PHP Warning:  Unknown: open(/var/lib/php5/sess_s7ip113c7c6j166kkm4glkndt0, O_RDWR) failed: Permission denied (13) in Unknown on line 0
      [Mon Jun 06 17:32:42 2016] [error] [client 172.16.1.122] PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5) in Unknown on line 0
      [Mon Jun 06 17:32:44 2016] [notice] caught SIGTERM, shutting down```
      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        This appears to be indicating it can’t write session data. Maybe your root filesystem is full?

        What’s the output of df -b /?

        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

        F 1 Reply Last reply Reply Quote 0
        • F
          foggee @Tom Elliott
          last edited by

          @Tom-Elliott

          Filesystem     1K-blocks    Used Available Use% Mounted on
          udev             2055700       4   2055696   1% /dev
          tmpfs             413064    1072    411992   1% /run
          /dev/sda1      119594212 6673176 106822964   6% /
          none                   4       0         4   0% /sys/fs/cgroup
          none                5120       0      5120   0% /run/lock
          none             2065316      76   2065240   1% /run/shm
          none              102400      72    102328   1% /run/user
          

          0_1466725925947_upload-66ce7109-dd49-49cc-a760-4ffbe1238766
          I know that Apache is the main component for accessing web interface, correct me if I’m wrong. I also have a feeling that log I posted is wrong because of the timestamp dated back to June 6th. I’m trying to find a log for today but could not find it anywhere…

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

            @foggee What if you uninstall apache, then delete that file, then reinstall?

            apt-get remove apache2 -y;rm -f /etc/apache2/apache2.conf;apt-get install apache2 -y

            I feel you are wanting to fix it rather than rebuild it, but keep in mind that you could probably have already rebuilt the server with the time you’ve spent on this.

            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/

            F 1 Reply Last reply Reply Quote 0
            • F
              foggee @Wayne Workman
              last edited by

              @Wayne-Workman

              Have tried removing Apache2, uninstalled FOG as a whole, then retrying the installations but I’m still back to the “Unable to Connect” page.

              Does this mean anything to you? Could this be the reason why I cannot access web interface?

              root@FogServer:~/git/fogproject/bin# sudo service apache2 stop
               * Stopping web server apache2                                                  * 
              root@FogServer:~/git/fogproject/bin# sudo service apache2 start
               * Starting web server apache2                                                  * 
               * The apache2 configtest failed.
              Output of config test was:
              apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/mods-enabled/authz_default.load: No such file or directory
              Action 'configtest' failed.
              The Apache error log may have more information.
              
              Wayne WorkmanW 1 Reply Last reply Reply Quote 0
              • Wayne WorkmanW
                Wayne Workman @foggee
                last edited by

                @foggee But did you delete that file?

                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/

                F 1 Reply Last reply Reply Quote 0
                • F
                  foggee @Wayne Workman
                  last edited by

                  @Wayne-Workman

                  I did delete the .conf file.

                  As of right now, the fog installer is asking me to update database schema by entering fog management. And I cannot access the web interface to do so.

                  Any other ideas? I’d be more the willing to try anything you throw at me…

                  I wish I know which are the main components that allow me to access the web interface to the fogserver so I can dig in there and dissect each component.

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

                    @foggee You can try to tell the installer to update the DB, instead of using the web interface. idk if it will work or not.
                    just add the -y argument.
                    ./installfog.sh -y

                    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/

                    F 1 Reply Last reply Reply Quote 0
                    • F
                      foggee @Wayne Workman
                      last edited by

                      @Wayne-Workman

                      But the database isn’t the reason why I cannot see the web interface, right?

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

                        @foggee Right, but it needs updated one way or another.

                        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/

                        F 1 Reply Last reply Reply Quote 0
                        • F
                          foggee @Wayne Workman
                          last edited by

                          @Wayne-Workman

                          Gotcha.

                          I just ran ./installfog.sh -y

                          Updating Database...................................Failed!
                          
                          

                          How can I verify that Apache2 is running correctly and that it’s doing what its suppose to do?

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

                            @foggee type the IP of the server into a browser, you should get an Apache test page if it’s 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/

                            F 1 Reply Last reply Reply Quote 0
                            • F
                              foggee @Wayne Workman
                              last edited by

                              @Wayne-Workman

                              Hmm…yeah
                              I’m getting the “unable to connect” page, same as below.

                              Can I ask for your expertise to help me troubleshoot Apache2? I feel like this is where should start but I have no idea how to, as I already uninstalled, deleted .conf file.

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

                                @foggee If you have time at 4:00 Central Standard, I can try to help via Team Viewer with you.

                                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/

                                F 1 Reply Last reply Reply Quote 0
                                • F
                                  foggee @Wayne Workman
                                  last edited by

                                  @Wayne-Workman

                                  Unfortunately being at work will not allow me to do so, even when this is work related. I sent you an email for the FOG session tomorrow, hoping that it will get me out of this hole…

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

                                    @foggee If it were me, and I couldn’t figure it out, I’d have just rebuilt the server.

                                    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/

                                    F 1 Reply Last reply Reply Quote 0
                                    • F
                                      foggee @Wayne Workman
                                      last edited by

                                      @Wayne-Workman

                                      Some quick questions regarding that.

                                      If I rebuild the VM session, which is the best version of Ubuntu to be on? And when I start installing FOG, do I go straight to trunk or should I install 1.2.0 first then trunk it.

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

                                        @foggee There are mixed thoughts about the best version of Ubuntu. IMO, I’d go with 16. There are special steps that need included (search the forums for “Ubuntu 16”), but after that it’s good to go. Ubuntu 14 will work without modification.

                                        You do not need to install 1.2.0. You can go straight to trunk.

                                        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
                                        • 1 / 1
                                        • First post
                                          Last post

                                        153

                                        Online

                                        12.1k

                                        Users

                                        17.3k

                                        Topics

                                        155.4k

                                        Posts
                                        Copyright © 2012-2024 FOG Project