I ran into problem with the NFS server when trying to update to the latest dev version - 1.5.10.1580
-
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.
- Setting up and starting NFS Server…Failed to get unit file state for nfs.service: No such file or directory
-
@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.
-
@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.
-
@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.
-
@AUTH-IT-Center Sorry it was staged, but not pushed, it is now, thanks! (For dev-branch)
-
@Tom-Elliott Thanks. Updating to 1.5.10.1581 worked fine.
-
@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 $?
-
@AUTH-IT-Center Should be addressed in the latest.