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

    FOG Compatibility Test Failed

    Scheduled Pinned Locked Moved Solved
    Hardware Compatibility
    7
    71
    35.0k
    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.
    • T
      techlover28 @Tom Elliott
      last edited by techlover28

      @Tom-Elliott I re-tried installing Trunk from scratch after removing-reinstalling DHCP and VSFTPD RPMs.

      It got stuck at same place again (Setting up and starting DHCP Server…Failed!).

      Attaching logs for reference. 1_1454387019861_foginstall.log 0_1454387019861_fog_error_6134.log

      It is not able to start the DHCP service, therefore I manually configured it and re-executed the installfog.sh script. Script overwrites the configuration and fails.

      My manual configuration which let DHCP service to start:

         subnet 192.168.1.0 netmask 255.255.255.0 {
         # option subnet-mask ;
          range dynamic-bootp 192.168.1.10 192.168.1.100;
          default-lease-time 21600;
          max-lease-time 43200;
          #       option domain-name-servers      x.x.x.x; 
          #       option routers      x.x.x.x;
          filename "undionly.kpxe";
          }
      

      Script configuration which does NOT let DHCP service to start:

          subnet 0.0.0.0 netmask  {
          option subnet-mask ;
          range dynamic-bootp 0.0.0.253 192.168.1.254;
          default-lease-time 21600;
          max-lease-time 43200;
          #       option domain-name-servers      x.x.x.x; 
          #       option routers      x.x.x.x;
          filename "undionly.kpxe";
          }
      
      Wayne WorkmanW 1 Reply Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman @techlover28
        last edited by Wayne Workman

        @techlover28 I don’t think you have the latest version of trunk. The very, very latest has a more robust dhcp configuration.

        And, in the script you posted, I think it fails to start because your interface IP address is not being detected correctly. The address and mask detected are what’s used to calculate the subnet address and start range, exactly the things that are not configured correctly here. Also the subnet-mask option is blank, which would be blank if the netmask couldn’t be calculated.

        If you can post the output of ip addr I will try to come up with a more robust IP detection method that will hopefully solve your problem.

        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/

        T 1 Reply Last reply Reply Quote 0
        • T
          techlover28 @Wayne Workman
          last edited by techlover28

          @Wayne-Workman Thank you for your response.

          I am using version 6134 (as written on a cloud on FOG management page). Please let me know where I can download latest Trunk.

          Please find the output of said command below (I am using interface em2 for FOG/DHCP management):

            1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
              link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
              inet 127.0.0.1/8 scope host lo
              inet6 ::1/128 scope host 
              valid_lft forever preferred_lft forever
           2: em1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
              link/ether f8:bc:12:3b:48:3c brd ff:ff:ff:ff:ff:ff
              inet 10.201.6.176/16 brd 10.201.255.255 scope global em1
              inet6 2001:ac9:101:3e9:fabc:12ff:fe3b:483c/64 scope global dynamic 
              valid_lft 2591952sec preferred_lft 604752sec
              inet6 fe80::fabc:12ff:fe3b:483c/64 scope link 
              valid_lft forever preferred_lft forever
          3: em2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
              link/ether f8:bc:12:3b:48:3d brd ff:ff:ff:ff:ff:ff
             ** inet 192.168.1.1/24 brd 192.168.1.255 scope global em2**
              inet6 fe80::fabc:12ff:fe3b:483d/64 scope link 
              valid_lft forever preferred_lft forever
          4: em3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
              link/ether f8:bc:12:3b:48:3e brd ff:ff:ff:ff:ff:ff
          5: em4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
              link/ether f8:bc:12:3b:48:3f brd ff:ff:ff:ff:ff:ff
          
          Tom ElliottT 1 Reply Last reply Reply Quote 1
          • Tom ElliottT
            Tom Elliott @techlover28
            last edited by

            @techlover28 we we ask you to upgrade we need you to update the sources as well. If you’re running svn trunk you cd to the trunk directory, for example /opt/svn/trunk then run

            svn up
            cd bin
            ./installfog.sh -y
            

            If running git for example stored in /opt/fogproject you cd there and run

            git pull
            cd bin
            ./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! 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

            T 1 Reply Last reply Reply Quote 2
            • T
              techlover28 @Tom Elliott
              last edited by techlover28

              @Tom-Elliott I have done the “svn up”, below is the output:

              # svn up
                 A    .gitignore
                 U    lib/common/functions.sh
                 .
                 .
                 U    packages/web/lib/fog/group.class.php
                 Updated to revision 4752.
              

              But the install.sh script failed again at the same place (Setting up and starting DHCP Server…Failed!).

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

                @techlover28 Ok so, you have many interfaces.

                What network do you want FOG to serve DHCP to? The 192.168.1.0 network or the 10.201.0.0 network?

                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/

                T 1 Reply Last reply Reply Quote 0
                • T
                  techlover28 @Wayne Workman
                  last edited by

                  @Wayne-Workman I am using interface em2 (192.168.1.0) for FOG/DHCP management.

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

                    @techlover28 So are you specifying the correct interface during the FOG installation? the em2 interface?

                    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/

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      techlover28 @Wayne Workman
                      last edited by techlover28

                      @Wayne-Workman Yes, I am.

                      
                       * Here are the settings FOG will use:
                       * Base Linux: Redhat
                       * Detected Linux Distribution: CentOS
                       * Server IP Address: 192.168.1.1
                       * Interface: em2
                       * Installation Type: Normal Server
                       * Donate: 0
                       * Internationalization: 0
                       * Image Storage Location: /images
                       * Using FOG DHCP: Yes
                       * DHCP router Address: 
                       * DHCP DNS Address: 
                      
                      Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                      • Wayne WorkmanW
                        Wayne Workman @techlover28
                        last edited by

                        I’ve forked the fogproject and added auxiliary code in case the IP or Subnet mask is missing - to hopefully solve your issue.

                        If you know how to use git, the project is here: https://github.com/wayneworkman/fogproject

                        Report back with your findings please, if it works we need to merge it to the main repo.

                        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/

                        T 1 Reply Last reply Reply Quote 0
                        • T
                          techlover28 @Wayne Workman
                          last edited by

                          @Wayne-Workman I had installed FOG 1.2.0 earlier. It worked fine with DHCP. I observed the issue during upgrade to Trunk (I attempted to upgrade because I was facing issue with the RAID disk and Trunk has RAID drivers included).

                          If you know how to use git, the project is here: https://github.com/wayneworkman/fogproject

                          This link appears to be pointing to the download of Fog 1.2.0. Is it the updated version including RAID drivers?

                          Wayne WorkmanW 2 Replies Last reply Reply Quote 0
                          • Wayne WorkmanW
                            Wayne Workman @techlover28
                            last edited by

                            @techlover28 It’s not pointing to 1.2.0.

                            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/

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

                              @techlover28 Please update and try again, the changes I’ve made have been merged. Maybe it’s fixed now?

                              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
                              • T
                                techlover28 @Wayne Workman
                                last edited by techlover28

                                @Wayne-Workman Sorry I should have downloaded and installed it instead of just looking at the text. I have downloaded it and trying to install it now.

                                I am getting an error:

                                Setting up and starting DHCP Server…/lib/common/functions.sh: line 1705: 255.255.255.0: command not found
                                Failed!

                                I think it should be something to do with GIT.

                                T 1 Reply Last reply Reply Quote 0
                                • T
                                  techlover28 @techlover28
                                  last edited by

                                  I am trying to make an understanding with GIT and going to try again installing version 6181 after setting GIT up.

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

                                    @techlover28 No I think there is a fix needed that @Wayne-Workman can shoot up pretty soon!

                                    In line 1705 instead of:

                                                [[ -z $submask ]] && $( cidr2mask $(getCidr $interface))
                                    

                                    should be (I reckon):

                                                [[ -z $submask ]] && $submask=$( cidr2mask $(getCidr $interface))
                                    

                                    You can edit this in your local files and test till you hear from Wayne.

                                    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 Reply Quote 1
                                    • T
                                      techlover28 @Sebastian Roth
                                      last edited by

                                      @Sebastian-Roth I have edited functions.sh file - replaced 1705 line.

                                      I am facing the same issue again.

                                      Setting up and starting DHCP Server…/lib/common/functions.sh: line 1705: =255.255.255.0: command not found
                                      Failed!

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

                                        Sorry! Should be (remove $😞

                                                    [[ -z $submask ]] && submask=$( cidr2mask $(getCidr $interface))
                                        

                                        @george1421 You are absolutely right about people need to get enough sleep!

                                        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 Reply Quote 1
                                        • T
                                          techlover28 @Sebastian Roth
                                          last edited by techlover28

                                          @Sebastian-Roth Thank you for the instant response.

                                          I have edited it and removed the “$” symbol.

                                          It has failed again.

                                          Setting up and starting DHCP Server…Failed!

                                          It seems that “dhcpd.conf” has the “option subnet-mask 255.255.255.0;” line in it. When I remove it, I am able to start the DHCPd service.

                                          subnet 192.168.1.0 netmask 255.255.255.0{
                                          option subnet-mask 255.255.255.0;
                                          range dynamic-bootp 192.168.1.253 192.168.1.254;
                                          default-lease-time 21600;
                                          max-lease-time 43200;
                                          
                                          Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                                          • S
                                            Sebastian Roth Moderator
                                            last edited by

                                            I have that option in my config too. Does not cause an issue?! I can’t see what’s wrong with it.

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

                                            212

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project