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

Unable to display Fog Management Console - Newbie to Linux & Fog Project

Scheduled Pinned Locked Moved Solved
FOG Problems
5
25
5.7k
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
    Sebastian Roth Moderator
    last edited by Nov 16, 2017, 5:15 AM

    @tolaria said in Unable to display Fog Management Console - Newbie to Linux & Fog Project:

    Hi Tom, managed to upgrade PHP to version 7.0.25, but the Fog Console is still not launching

    Forget about SELinux for now. I went on the wrong track with this. Apache still has this message in the logs just because it’s capable of running with SELinux. If getenforce is showing ‘permissive’’ you are on the save side about this for now.

    I think you need to be more specific on what happens when you open the URL in the browser. Do you get a blank page now or does it return a 500 internal server error or not load the page at all. For the later I’d think the firewall is still on. Run iptables -L -n -v and post output here`.

    [root@sglfog01 jquek]# php -v
    PHP 7.0.25 (cli) (built: Oct 27 2017 13:55:11) ( NTS )
    

    If you see a blank page check apache error log again. Possibly the PHP version you upgraded was only the PHP CLI. This is used when running PHP on the command line but apache uses a library which could be still the old version. Best to check in the apache error log. The following line is important:

    ... AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 configured ...
    

    You need PHP to be at least 5.5.0 (reference in section “Changelog”)!

    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

    T 1 Reply Last reply Nov 16, 2017, 6:27 AM Reply Quote 0
    • T
      tolaria @Sebastian Roth
      last edited by Sebastian Roth Nov 16, 2017, 12:57 AM Nov 16, 2017, 6:27 AM

      @sebastian-roth Hi Sebastian, noted and I attempted to upgrade PHP from v5.4.16 to v7.0.25, but it seems that it only upgraded certain components

      I then tried to remove all versions of PHP by running yum -y remove php* and then installing PHP v7, but then it seems that it is not able to remove certain components of v5.4.16, resulting in a mixed environment where there are components of both v5.4.16 and v7.0.25 when I run the tail -n command

      Error message when trying to load the Fog Console is as shown:

      Network Error
      A communication error occurred: “Operation timed out”

      The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.

      For assistance, contact your service desk.

      Exception ID : tcp_error

      As requested, ran the iptables -L -n -v and obtained the following results

      iptables -L -n -v
      Chain INPUT (policy ACCEPT 14086 packets, 2720K bytes)
       pkts bytes target     prot opt in     out     source               destination         
          0     0 ACCEPT     udp  --  virbr0 *       0.0.0.0/0            0.0.0.0/0            udp dpt:53
          0     0 ACCEPT     tcp  --  virbr0 *       0.0.0.0/0            0.0.0.0/0            tcp dpt:53
          0     0 ACCEPT     udp  --  virbr0 *       0.0.0.0/0            0.0.0.0/0            udp dpt:67
          0     0 ACCEPT     tcp  --  virbr0 *       0.0.0.0/0            0.0.0.0/0            tcp dpt:67
      
      Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
       pkts bytes target     prot opt in     out     source               destination         
          0     0 ACCEPT     all  --  *      virbr0  0.0.0.0/0            192.168.122.0/24     ctstate RELATED,ESTABLISHED
          0     0 ACCEPT     all  --  virbr0 *       192.168.122.0/24     0.0.0.0/0        iptables -L -n -v
      Chain INPUT (policy ACCEPT 14086 packets, 2720K bytes)
       pkts bytes target     prot opt in     out     source               destination         
          0     0 ACCEPT     udp  --  virbr0 *       0.0.0.0/0            0.0.0.0/0            udp dpt:53
          0     0 ACCEPT     tcp  --  virbr0 *       0.0.0.0/0            0.0.0.0/0            tcp dpt:53
          0     0 ACCEPT     udp  --  virbr0 *       0.0.0.0/0            0.0.0.0/0            udp dpt:67
          0     0 ACCEPT     tcp  --  virbr0 *       0.0.0.0/0            0.0.0.0/0            tcp dpt:67
      
      Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
       pkts bytes target     prot opt in     out     source               destination         
          0     0 ACCEPT     all  --  *      virbr0  0.0.0.0/0            192.168.122.0/24     ctstate RELATED,ESTABLISHED
          0     0 ACCEPT     all  --  virbr0 *       192.168.122.0/24     0.0.0.0/0           
          0     0 ACCEPT     all  --  virbr0 virbr0  0.0.0.0/0            0.0.0.0/0           
          0     0 REJECT     all  --  *      virbr0  0.0.0.0/0            0.0.0.0/0            reject-with icmp-port-unreachable
          0     0 REJECT     all  --  virbr0 *       0.0.0.0/0            0.0.0.0/0            reject-with icmp-port-unreachable
      
      Chain OUTPUT (policy ACCEPT 4016 packets, 760K bytes)
       pkts bytes target     prot opt in     out     source               destination         
          0     0 ACCEPT     udp  --  *      virbr0  0.0.0.0/0            0.0.0.0/0            udp dpt:68
         
          0     0 ACCEPT     all  --  virbr0 virbr0  0.0.0.0/0            0.0.0.0/0           
          0     0 REJECT     all  --  *      virbr0  0.0.0.0/0            0.0.0.0/0            reject-with icmp-port-unreachable
          0     0 REJECT     all  --  virbr0 *       0.0.0.0/0            0.0.0.0/0            reject-with icmp-port-unreachable
      
      Chain OUTPUT (policy ACCEPT 4016 packets, 760K bytes)
       pkts bytes target     prot opt in     out     source               destination         
          0     0 ACCEPT     udp  --  *      virbr0  0.0.0.0/0            0.0.0.0/0            udp dpt:68
      
      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by Nov 16, 2017, 7:02 AM

        @tolaria said in Unable to display Fog Management Console - Newbie to Linux & Fog Project:

        A communication error occurred: “Operation timed out”

        Ok, this is definitely a connection issue in the first place. Might be other things behind that but we need to fix that first. So run the following commands as root:

        iptables -X
        iptables -F
        iptables -t nat -X
        iptables -t nat -F
        iptables -t mangle -X
        iptables -t mangle -F
        iptables -P INPUT ACCEPT
        iptables -P FORWARD ACCEPT
        iptables -P OUTPUT ACCEPT
        

        This is just temporary till you reboot your server. We’ll add proper rules later on.

        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

        T 1 Reply Last reply Nov 16, 2017, 7:10 AM Reply Quote 0
        • T
          tolaria @Sebastian Roth
          last edited by Nov 16, 2017, 7:10 AM

          @sebastian-roth Hi Sebastian, have run the commands as indicated. Running this in GUI mode with Terminal as Root

          [root@sglfog01 jquek]# iptables -X
          [root@sglfog01 jquek]# iptables -F
          [root@sglfog01 jquek]# iptables -t nax -X
          iptables v1.4.21: can’t initialize iptables table `nax’: Table does not exist (do you need to insmod?)
          Perhaps iptables or your kernel needs to be upgraded.
          [root@sglfog01 jquek]# iptables -t nat -F
          [root@sglfog01 jquek]# iptables -t mangle -X
          [root@sglfog01 jquek]# iptables -t mangle -F
          [root@sglfog01 jquek]# iptables -P INPUT ACCEPT
          [root@sglfog01 jquek]# iptables -P FORWARD ACCEPT
          [root@sglfog01 jquek]# iptables -P OUTPUT ACCEPT

          After that, tried to open Fog Console and still fails

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by Nov 16, 2017, 7:44 AM

            @tolaria said in Unable to display Fog Management Console - Newbie to Linux & Fog Project:

            After that, tried to open Fog Console and still fails

            This is not helpful. Does it fail the same way as timeout or different? Maybe apache server is not running after PHP update anymore.

            service httpd restart
            tail -15 /var/log/httpd/error_log
            date
            

            Run as root and post full output here.

            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

            T 1 Reply Last reply Nov 16, 2017, 8:04 AM Reply Quote 0
            • T
              tolaria @Sebastian Roth
              last edited by Nov 16, 2017, 8:04 AM

              @sebastian-roth Hi Sebastian, my bad, same exact error after I ran the iptable commands, forgot to indicate in my reply

              Just did the commands as recommended in your last post,

              tail -15 /var/log/httpd/error_log
              [Thu Nov 16 10:20:23.671488 2017] [core:notice] [pid 4510] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’
              [Thu Nov 16 12:04:50.917584 2017] [mpm_prefork:notice] [pid 4510] AH00170: caught SIGWINCH, shutting down gracefully
              [Thu Nov 16 12:05:47.395822 2017] [core:notice] [pid 982] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
              [Thu Nov 16 12:05:47.471806 2017] [suexec:notice] [pid 982] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
              [Thu Nov 16 12:05:47.618523 2017] [auth_digest:notice] [pid 982] AH01757: generating secret for digest authentication …
              [Thu Nov 16 12:05:47.619540 2017] [lbmethod_heartbeat:notice] [pid 982] AH02282: No slotmem from mod_heartmonitor
              [Thu Nov 16 12:05:49.379196 2017] [mpm_prefork:notice] [pid 982] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.0.25 configured – resuming normal operations
              [Thu Nov 16 12:05:49.379240 2017] [core:notice] [pid 982] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’
              [Thu Nov 16 16:03:02.220557 2017] [mpm_prefork:notice] [pid 982] AH00170: caught SIGWINCH, shutting down gracefully
              [Thu Nov 16 16:03:03.303095 2017] [core:notice] [pid 5969] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
              [Thu Nov 16 16:03:03.304266 2017] [suexec:notice] [pid 5969] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
              [Thu Nov 16 16:03:03.336522 2017] [auth_digest:notice] [pid 5969] AH01757: generating secret for digest authentication …
              [Thu Nov 16 16:03:03.337384 2017] [lbmethod_heartbeat:notice] [pid 5969] AH02282: No slotmem from mod_heartmonitor
              [Thu Nov 16 16:03:03.367540 2017] [mpm_prefork:notice] [pid 5969] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.0.25 configured – resuming normal operations
              [Thu Nov 16 16:03:03.367575 2017] [core:notice] [pid 5969] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’
              [root@sglfog01 jquek]# date
              Thu Nov 16 16:03:22 +08 2017

              Wayne WorkmanW 1 Reply Last reply Nov 18, 2017, 1:07 AM Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by Nov 16, 2017, 10:21 AM

                @tolaria Ok, I see the apache service restarted fine just recently. It also seems to have the correct PHP module (version 7.0.25). Are you sure you try to access the correct server in your browser? Sorry if this question sounds dumb but we better make sure.

                Please run those commands to make sure:

                ip a s | grep "inet" | awk '{print $2}' | cut -d'/' -f1
                iptables -L -n -v
                

                From the first command you will get several IP addresses. One will be 127.0.0.1. Just ignore that. See if you have the correct IP to access the web interface http://x.x.x.x/fog/

                As well try command ping x.x.x.x from the Windows command line to see if you can actually reach the server over the network.

                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 @tolaria
                  last edited by Wayne Workman Nov 17, 2017, 7:10 PM Nov 18, 2017, 1:07 AM

                  @tolaria said in Unable to display Fog Management Console - Newbie to Linux & Fog Project:

                  After that, tried to open Fog Console and still fails

                  What is the URL you’re trying to use for the web interface? None of this is making any sense at all. The fog installer is solid, and is especially solid on CentOS 7. Something about your setup is not standard, or fog would just work. What is not standard? Are you downloading the CentOS 7 ISO yourself? Are you installing FOG on it’s very own OS, on it’s very own hardware/vm ? What is not standard here?

                  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 Nov 22, 2017, 9:29 PM

                    @tolaria Did you get this up and running?

                    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
                    • S
                      Sebastian Roth Moderator
                      last edited by Dec 2, 2017, 12:20 PM

                      Marked as solved…

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

                      165

                      Online

                      12.1k

                      Users

                      17.3k

                      Topics

                      155.3k

                      Posts
                      Copyright © 2012-2024 FOG Project