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

    Fog DHCP service not run since fog 1.3

    Scheduled Pinned Locked Moved Solved
    Linux Problems
    5
    22
    6.5k
    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.
    • P
      patrice @george1421
      last edited by patrice

      @george1421
      I have took 10.x.x.x because have see tutorial with it, i don’t need 2 millions adresses, the fog is only on the dhcp server.
      I try to install with 192.168.0.x range

      Sorry,
      I have to go to work, I leave you today
      Thank you

      george1421G 1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator @patrice
        last edited by

        @patrice I’m still reading through your config file.

        I see your dhcp range is 10.0.0.10 10.255.255.254

        But it appears you have computers systems at 10.0.2.2, 10.0.50.5, 10.0.2.15

        This makes me think you have an already existing network, but no existing dhcp server (like on router or windows server)??

        You have a router at 10.0.2.2, do you have other subnets? I’m just trying to understand how your network is designed so we can get the right answer for you.

        I think your fog server is 10.0.2.15??

        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!

        george1421G 1 Reply Last reply Reply Quote 0
        • george1421G
          george1421 Moderator @george1421
          last edited by

          @george1421 On your fog server can you post the output of this command
          ip addr show ??

          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!

          Wayne WorkmanW P 2 Replies Last reply Reply Quote 1
          • Wayne WorkmanW
            Wayne Workman @george1421
            last edited by

            @george1421 Once we have the network configuration, any issues with the dhcpd.conf file or other things will stick out.

            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
            • P
              patrice @george1421
              last edited by Sebastian Roth

              @george1421
              Hello George,
              I want to try to remain simple in my explanation:
              I had taken the configuration in a tutorial:
              The fog server has 10.0.2.15, subnet mask : 255.0.0.0 gateway 10.0.2.2 DNS address 10.0.50.2
              the DHCP server 10.0.2.2

              I have nothing else on the network
              I do not know if this is the best configuration
              Here ip addr show:

              lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default 
                  link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
                  inet 127.0.0.1/8 scope host lo
                     valid_lft forever preferred_lft forever
                  inet6 ::1/128 scope host 
                     valid_lft forever preferred_lft forever
              2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
                  link/ether 80:ee:73:96:8e:ec brd ff:ff:ff:ff:ff:ff
                  inet 10.0.2.15/8 brd 10.255.255.255 scope global eth0
                     valid_lft forever preferred_lft forever
                  inet6 fe80::82ee:73ff:fe96:8eec/64 scope link 
                     valid_lft forever preferred_lft forever
              3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
                  link/ether 80:ee:73:96:8e:ed brd ff:ff:ff:ff:ff:ff
                  inet 192.168.0.33/24 brd 192.168.0.255 scope global dynamic eth1
                     valid_lft 85033sec preferred_lft 85033sec
                  inet6 fe80::82ee:73ff:fe96:8eed/64 scope link 
                     valid_lft forever preferred_lft forever
              
              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by

                @patrice said in Fog DHCP service not run since fog 1.3:

                mai 23 10:51:21 shuttlefog isc-dhcp-server[28947]: Database file: /var/lib/dhcp/dhcpd.leases
                mai 23 10:51:21 shuttlefog isc-dhcp-server[28947]: PID file: /var/run/dhcpd.pid
                mai 23 10:51:23 shuttlefog isc-dhcp-server[28947]: Segmentation fault

                I can reproduce this segfault error on my machine using your configuration. Give me a few more minutes and I am pretty sure we can figure out 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

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

                  It seems like the range is “just too big”. Changing the following line made it work for me:

                  range dynamic-bootp 10.0.0.10 10.0.255.254;
                  

                  With that you still have more than enough IP addresses to play with. But please keep in mind that you ought to read and think a little bit about your network setup to not run into issue after issue in the long run. The output of ip addr show gave us another network interface eth1 which is within a completely different subnet. Don’t get things mixed up 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

                  P 1 Reply Last reply Reply Quote 0
                  • P
                    patrice @Sebastian Roth
                    last edited by

                    @Sebastian-Roth
                    hello Sebastian thank you for you answer.
                    I’ve 2 network on this Computer, the first ( eth0) for fog server, and the second (eth1) for internet connection.
                    I changed the configuration line in dhcpd.conf with

                    range dynamic-bootp 10.0.0.10 10.0.255.254;
                    but the installation was aborted
                    when i launch ./installfog.sh (fog 1.4.0) i can’t change parameters since i install fog 1.2.0:

                    root@shuttlefog:~/fogproject/bin# ./installfog.sh
                    Installing LSB_Release as needed

                    • Attempting to get release information…Done
                      systemd

                      ±-----------------------------------------+
                      | …#######:. …,#,… .::##::. |
                      |.:###### .:;####:…;#;… |
                      |…##… …##;,;##::::.##… |
                      | ,# …##…##:::## …:: |
                      | ## .::###,##. . ##.::#.:######::.|
                      |…##:::###::…#. … .#…#. #…#:::. |
                      |…:####:… …##…##::## … # |
                      | # . …##:,;##;:::#: … ##… |
                      | .# . .:;####;::::.##:::;#:… |
                      | # …:;###… |
                      | |
                      ±-----------------------------------------+
                      | Free Computer Imaging Solution |
                      ±-----------------------------------------+
                      | Credits: http://fogproject.org/Credits |
                      | http://fogproject.org/Credits |
                      | Released under GPL Version 3 |
                      ±-----------------------------------------+

                      Version: 1.4.0 Installer/Updater

                    • Found FOG Settings from previous install at: /opt/fog/.fogsettings

                    • Performing upgrade using these settings

                    Starting Debian based Installation

                    ######################################################################

                    FOG now has everything it needs for this setup, but please

                    understand that this script will overwrite any setting you may

                    have setup for services like DHCP, apache, pxe, tftp, and NFS.

                    ######################################################################

                    It is not recommended that you install this on a production system

                    as this script modifies many of your system settings.

                    ######################################################################

                    This script should be run by the root user.

                    It will prepend the running with sudo if root is not set

                    ######################################################################

                    ** Notice ** FOG is difficult to setup securely

                    SELinux and IPTables are usually asked to be disabled

                    There have been strides in adding capabilities

                    The recommendations would now be more appropriate

                    to set SELinux to permissive and to disable firewall for now.

                    You can find some methods to enable SELinux and maintain firewall

                    settings and ports. If you feel comfortable doing so please do

                    ######################################################################

                    Please see our wiki for more information at:

                    ######################################################################

                    https://wiki.fogproject.org/wiki/index.php

                    ######################################################################

                    • Here are the settings FOG will use:

                    • Base Linux: Debian

                    • Detected Linux Distribution: Debian GNU/Linux

                    • Server IP Address: 10.0.2.15

                    • Server Subnet Mask:

                    • Interface: eth0

                    • Installation Type: Normal Server

                    • Internationalization: 0

                    • Image Storage Location: /images

                    • Using FOG DHCP: Yes

                    • DHCP router Address: 10.0.2.2

                    • Are you sure you wish to continue (Y/N) y

                    • Installation Started

                    • Installing required packages, if this fails
                      | make sure you have an active internet connection.

                    • Adding needed repository…OK

                    • Preparing Package Manager…OK

                    • Packages to be installed:

                      apache2 bc build-essential cpp curl g++ gawk gcc gzip htmldoc isc-dhcp-server lftp libapache2-mod-php5 libc6 libcurl3 m4 mysql-client mysql-server net-tools nfs-kernel-server openssh-server php5 php5-bcmath php5-cli php5-curl php5-fpm php5-gd php5-json php5-mcrypt php5-mysql php5-mysqlnd php-gettext sysv-rc-conf tar tftpd-hpa tftp-hpa unzip vsftpd wget xinetd zlib1g

                    • Skipping package: apache2…(Already Installed)

                    • Skipping package: bc…(Already Installed)

                    • Skipping package: build-essential…(Already Installed)

                    • Skipping package: cpp…(Already Installed)

                    • Skipping package: curl…(Already Installed)

                    • Skipping package: g++…(Already Installed)

                    • Skipping package: gawk…(Already Installed)

                    • Skipping package: gcc…(Already Installed)

                    • Skipping package: gzip…(Already Installed)

                    • Skipping package: htmldoc…(Already Installed)

                    • Skipping package: isc-dhcp-server…(Already Installed)

                    • Skipping package: lftp…(Already Installed)

                    • Skipping package: libapache2-mod-php5…(Already Installed)

                    • Skipping package: libc6…(Already Installed)

                    • Skipping package: libcurl3…(Already Installed)

                    • Skipping package: m4…(Already Installed)

                    • Skipping package: mysql-client…(Already Installed)

                    • Skipping package: mysql-server…(Already Installed)

                    • Skipping package: net-tools…(Already Installed)

                    • Skipping package: nfs-kernel-server…(Already Installed)

                    • Skipping package: openssh-server…(Already Installed)

                    • Skipping package: php5…(Already Installed)

                    • Skipping package: php5-bcmath…(Does not exist)

                    • Skipping package: php5-cli…(Already Installed)

                    • Skipping package: php5-curl…(Already Installed)

                    • Skipping package: php5-fpm…(Already Installed)

                    • Skipping package: php5-gd…(Already Installed)

                    • Skipping package: php5-json…(Already Installed)

                    • Skipping package: php5-mcrypt…(Already Installed)

                    • Skipping package: php5-mysqlnd…(Already Installed)

                    • Skipping package: php5-mysqlnd…(Already Installed)

                    • Skipping package: php-gettext…(Already Installed)

                    • Skipping package: sysv-rc-conf…(Already Installed)

                    • Skipping package: tar…(Already Installed)

                    • Skipping package: tftpd-hpa…(Already Installed)

                    • Skipping package: tftp-hpa…(Already Installed)

                    • Skipping package: unzip…(Already Installed)

                    • Skipping package: vsftpd…(Already Installed)

                    • Skipping package: wget…(Already Installed)

                    • Skipping package: xinetd…(Already Installed)

                    • Skipping package: zlib1g…(Already Installed)

                    • Updating packages as needed…OK

                    • Confirming package installation

                    • Checking package: apache2…OK

                    • Checking package: bc…OK

                    • Checking package: build-essential…OK

                    • Checking package: cpp…OK

                    • Checking package: curl…OK

                    • Checking package: g++…OK

                    • Checking package: gawk…OK

                    • Checking package: gcc…OK

                    • Checking package: gzip…OK

                    • Checking package: htmldoc…OK

                    • Checking package: isc-dhcp-server…OK

                    • Checking package: lftp…OK

                    • Checking package: libapache2-mod-php5…OK

                    • Checking package: libc6…OK

                    • Checking package: libcurl3…OK

                    • Checking package: m4…OK

                    • Checking package: mysql-client…OK

                    • Checking package: mysql-server…OK

                    • Checking package: net-tools…OK

                    • Checking package: nfs-kernel-server…OK

                    • Checking package: openssh-server…OK

                    • Checking package: php5…OK

                    • Checking package: php5-cli…OK

                    • Checking package: php5-curl…OK

                    • Checking package: php5-fpm…OK

                    • Checking package: php5-gd…OK

                    • Checking package: php5-json…OK

                    • Checking package: php5-mcrypt…OK

                    • Checking package: php5-mysqlnd…OK

                    • Checking package: php-gettext…OK

                    • Checking package: sysv-rc-conf…OK

                    • Checking package: tar…OK

                    • Checking package: tftpd-hpa…OK

                    • Checking package: tftp-hpa…OK

                    • Checking package: unzip…OK

                    • Checking package: vsftpd…OK

                    • Checking package: wget…OK

                    • Checking package: xinetd…OK

                    • Checking package: zlib1g…OK

                    • Configuring services

                    • Setting up fog user…Already setup

                    • Setting up fog password…OK

                    • Stopping FOGMulticastManager.service Service…OK

                    • Stopping FOGImageReplicator.service Service…OK

                    • Stopping FOGSnapinReplicator.service Service…OK

                    • Stopping FOGScheduler.service Service…OK

                    • Stopping FOGPingHosts.service Service…OK

                    • Stopping FOGSnapinHash.service Service…OK

                    • Stopping FOGImageSize.service Service…OK

                    • Setting up and starting MySQL…OK

                    • Backing up user reports…Done

                    • Stopping web service…OK

                    • Removing vhost file…OK

                    • Setting up Apache and PHP files…OK

                    • Testing and removing symbolic links if found…OK

                    • Backing up old data…OK

                    • Copying new files to web folder…OK

                    • Creating config file…OK

                    • Unzipping the binaries…Done

                    • Copying binaries where needed…Done

                    • Enabling apache and fpm services on boot…OK

                    • Creating SSL CA…OK

                    • Creating SSL Private Key…OK

                    • Creating SSL Certificate…OK

                    • Creating auth pub key and cert…OK

                    • Resetting SSL Permissions…OK

                    • Setting up SSL FOG Server…OK

                    • Starting and checking status of web services…OK

                    • Changing permissions on apache log files…OK

                    • Backing up database…OK

                    • You still need to install/update your database schema.

                    • This can be done by opening a web browser and going to:

                      http://10.0.2.15/fog/management

                    • Press [Enter] key when database is updated/installed.

                    • Setting up storage…OK

                    • Setting up and starting DHCP Server…Failed!
                      root@shuttlefog:~/fogproject/bin#

                    1 Reply Last reply Reply Quote 0
                    • george1421G
                      george1421 Moderator
                      last edited by

                      I worked with the OP via TV to help get things fixed.

                      Once I had an understanding of what he wanted we fixed the subnet mask from /8 to /24 on eth0 and then went and adjusted the dhcp.config file so that it matched eth0 of the fog server. Then the dhcp started OK. After that we upgraded fog 1.2.0 to fog 1.4.0. I checked the .fogsettings with the settings in the webgui and everything looked good when I disconnected.

                      I think this issue is now solved.

                      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!

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

                        Well now I have to go and try this out myself…

                        The ISC-DHCP folks will be interested to know if this range size really is a 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/

                        george1421G 1 Reply Last reply Reply Quote 0
                        • george1421G
                          george1421 Moderator @Wayne Workman
                          last edited by

                          @Wayne-Workman his original config file is below. Tomorrow I’ll post what I changed it to that allowed the dhcp server to start.

                          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!

                          P 1 Reply Last reply Reply Quote 0
                          • P
                            patrice @george1421
                            last edited by

                            @george1421
                            I thank you, George for you help, for me it’s ok to solve this topic.
                            cordially

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

                            150

                            Online

                            12.0k

                            Users

                            17.3k

                            Topics

                            155.2k

                            Posts
                            Copyright © 2012-2024 FOG Project