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

    I ran into problem with the NFS server when trying to update to the latest dev version - 1.5.10.1580

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    3
    8
    245
    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
      Fog_Newb
      last edited by Fog_Newb

      Any ideas how to resolve this? Nothing was changed on the FOG server since updating to the previous build.

      • Setting up and starting NFS Server…Failed to get unit file state for nfs.service: No such file or directory
        Failed!

      !!!
      !! The installer was not able to run all the way to the end as !!
      !! something has caused it to fail. The following few lines are !!
      !! from the error log file which might help us figure out what’s !!
      !! wrong. Please add this information when reporting an error. !!
      !! As well you might want to take a look at the full error log !!
      !! in /opt/fogproject/bin/error_logs/fog_error_1.5.10.1580.log !!
      !!!

      Aug 13 16:35:48 fogger rpc.nfsd[35204]: rpc.nfsd: unable to bind AF_INET TCP socket: errno 98 (Address already in use)
      Aug 13 16:35:48 fogger rpc.nfsd[35204]: rpc.nfsd: unable to set any sockets for nfsd
      Failed to enable unit: Unit file nfs.service does not exist.
      Failed to start nfs.service: Unit nfs.service not found.
      Unit nfs.service could not be found.
      srossi@fogger:/opt/fogproject/bin$

      I ended up restoring a VM image from a few days ago. I am back up on 1.5.10.1578 but not sure how to continue getting newer builds.

      Tom ElliottT 2 Replies Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott @Fog_Newb
        last edited by

        @Fog_Newb there is a new sed statement that is trying to set the port for mountd to 20048, but seems it may be setting all ports after mountd to 20048. We are aware but trying to figure out why and how to fix.

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

          @Fog_Newb (This is a copy paste, just easier that way 😄 )
          I have updated the code for both working-1.6 and dev-branch to revert the changes to port=20048 to commented out.

          Moved the code to set the mountd port only by use of an nfs.conf.d directory.

          This should prevent the problems of port being set in multiple places on subsequent updates.

          I’m sorry, I didn’t realize subsequent updates would cause the below port= items to be set as well cause well I am human sometimes.

          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

          AUTH IT CenterA 1 Reply Last reply Reply Quote 0
          • AUTH IT CenterA
            AUTH IT Center @Tom Elliott
            last edited by

            @Tom-Elliott just a friendly reminder. The dev-branch doesn’t have the new code in functions.sh for the nfs mount.

            Thank you for all your help.

            Tom ElliottT 1 Reply Last reply Reply Quote 0
            • Tom ElliottT
              Tom Elliott @AUTH IT Center
              last edited by

              @AUTH-IT-Center Sorry it was staged, but not pushed, it is now, thanks! (For dev-branch)

              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 AUTH IT CenterA 2 Replies Last reply Reply Quote 0
              • F
                Fog_Newb @Tom Elliott
                last edited by

                @Tom-Elliott Thanks. Updating to 1.5.10.1581 worked fine.

                1 Reply Last reply Reply Quote 0
                • AUTH IT CenterA
                  AUTH IT Center @Tom Elliott
                  last edited by

                  @Tom-Elliott if the directory nfs.conf.d exists the fog-nfs.conf isn’t created.

                  I believe the code should be:

                  configureNFS() {
                      dots "Setting up NFS configuration file"
                      if [[ -f "/etc/nfs.conf" ]]; then
                          # Fix all set port=20048 back to default values
                          sed -i '/^port=20048/ {s/^port=20048/# port=0/}' /etc/nfs.conf >>$error_log 2>&1
                      fi
                      # set port in nfs.conf.d directory
                      if [[ -f "/etc/nfs.conf" && ! -d "/etc/nfs.conf.d/" ]]; then
                          mkdir /etc/nfs.conf.d/
                      elif [[ -f "/etc/nfs.conf" &&  -d "/etc/nfs.conf.d/" ]]; then
                          cat > /etc/nfs.conf.d/fog-nfs.conf <<EOF
                  [mountd]
                  port=20048
                  EOF
                      elif [[ -f "/usr/etc/nfs.conf" && ! -d "/usr/etc/nfs.conf.d/" ]]; then
                          mkdir /usr/etc/nfs.conf.d/
                      elif [[ -f "/usr/etc/nfs.conf" &&  -d "/usr/etc/nfs.conf.d/" ]]; then
                          cat > /usr/etc/nfs.conf.d/fog-nfs.conf <<EOF
                  [mountd]
                  port=20048
                  EOF
                      fi
                      errorStat $?
                  
                  Tom ElliottT 1 Reply Last reply Reply Quote 0
                  • Tom ElliottT
                    Tom Elliott @AUTH IT Center
                    last edited by

                    @AUTH-IT-Center Should be addressed in the latest.

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

                    211

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project