Issue when Updating to Version 1.6.0-beta.2082 | sed: can't read /etc/nfs.conf:
-
Hi,
When trying to update I receive the error below
I do not have a /etc/nfs.conf file, what should be in it?
!!!
!! 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 /root/fogproject/bin/error_logs/fog_error_1.6.0-beta.2082.log !!
!!!install -d /usr/local/share/man/man1
install -m 644 udp-sender.1 udp-receiver.1 /usr/local/share/man/man1
install -d /usr/local/include/udpcast
install -m 644 rateGovernor.h /usr/local/include/udpcast
sed: can’t read /etc/nfs.conf: No such file or directoryThanks
-
@falko That’s interesting.
/etc/nfs.conf is supposed to be the defacto location for the nfs configuration though I suppose it could should up in other places.
https://man7.org/linux/man-pages/man5/nfs.conf.5.html
I suppose I’ll have to be more specific in the calls but it’s okay I have to remove the entry anyway.
Thanks for letting me know.
-
@falko 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.
-
@Tom-Elliott thanks Tom, updated
-
@falko And it worked?
Now I did add checking to see which file to use, can you tell me what output of:
rpcinfo -p
gives you? -
@Tom-Elliott It let me install without issue, I have not imaged anything yet
OUTPUT:
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100005 1 udp 44827 mountd
100005 1 tcp 44615 mountd
100005 2 udp 53244 mountd
100005 2 tcp 58437 mountd
100005 3 udp 52261 mountd
100005 3 tcp 38371 mountd
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100227 3 tcp 2049
100003 3 udp 2049 nfs
100227 3 udp 2049
100021 1 udp 43652 nlockmgr
100021 3 udp 43652 nlockmgr
100021 4 udp 43652 nlockmgr
100021 1 tcp 44617 nlockmgr
100021 3 tcp 44617 nlockmgr
100021 4 tcp 44617 nlockmgr -
@falko Imaging will work in your case, I’m just not sure how you can have NFS without having /etc/nfs.conf.
I did the 2 points I’m aware of:
/etc/nfs.conf
/usr/etc/nfs.confbut I have no idea where your nfs.conf file is
-
@Tom-Elliott me neither!
I have run a search on the server (Debian 11) and it appears I do not have one at all?