Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

NFS server/client install fails here...

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
11 posts • Page 1 of 1
Author
Message
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

NFS server/client install fails here...

  • Quote

Post by CaptainBlood » Sun Jan 19, 2025 9:37 pm

Installed as

Code: Select all

emerge -pv net-fs/nfs-utils

These are the packages that would be merged, in reverse order:

Calculating dependencies....... done!
Dependency resolution took 14.65 s (backtrack: 0/20).

[ebuild   R    ] net-fs/nfs-utils-2.7.1::gentoo  USE="-caps -junction -kerberos -ldap libmount -nfsv3 nfsv4 -sasl (-selinux) -tcpd uuid" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
Throws

Code: Select all

modprobe nfsd
rc-service nfs start
 * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/rpc.statd start
 * Starting NFS statd ...
 * Detaching to start `/sbin/rpc.statd' ...
 *   start-stop-daemon: failed to start `/sbin/rpc.statd'                 [ !! ]
 * ERROR: rpc.statd failed to start
 * ERROR: cannot start nfs as rpc.statd would not start
Install follows wiki but nfs4 only and module.

I must be missing something...
Last edited by CaptainBlood on Tue Jan 21, 2025 6:27 pm, edited 1 time in total.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
alamahant
Advocate
Advocate
Posts: 4032
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Sun Jan 19, 2025 10:26 pm

Is

Code: Select all

/etc/init.d/rpcbind
running?
:)
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Sun Jan 19, 2025 11:22 pm

@alamahant,
Thks 4 ur support.

To my understanding [nfsv4] has strong implication because CONFIG_RPCSEC_GSS_KRB5 gets forced.

Since I want an off the shelf easy and quick solution for home network, I currently switched to nfsv3.

Code: Select all

emerge -pv net-fs/nfs-utils

These are the packages that would be merged, in reverse order:

Calculating dependencies.... done!
Dependency resolution took 14.68 s (backtrack: 0/20).

[ebuild   R    ] net-fs/nfs-utils-2.7.1::gentoo  USE="-caps -junction -kerberos -ldap libmount nfsv3 -nfsv4 -sasl (-selinux) -tcpd uuid" 0 KiB

Code: Select all

rc-service nfs start
 * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/nfs start
 * Exporting NFS directories ...                                          [ ok ]
 * Starting NFS mountd ...
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6            [ ok ]
 * Starting NFS daemon ...                                                [ ok ]
 * Starting NFS smnotify ...                                              [ ok ]
Would be nice to get rid of these

Code: Select all

pc.mountd: svc_tli_create: could not open connection for [tp/ud]p6
Could be I later come back to [nfsv4] aiming to figure out how to have it working in a minimalist approach.

Thks 4 ur attention, interest & support
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
alamahant
Advocate
Advocate
Posts: 4032
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Tue Jan 21, 2025 12:56 am

CONFIG_RPCSEC_GSS_KRB5 gets forced.
I think only if you use sec=krb5(pi) in /etc/exports.
Then you will need also to invoke
rpc.gssd
and
rpc.svcgssd
by adding them in /etc/conf.d/nfs(client).
I am not certain but i think nfs4 uses rpc.idmapd by default.
:)
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Tue Jan 21, 2025 7:00 pm

Setting the client side;

Code: Select all

emerge -p -v net-fs/nfs-utils

 * IMPORTANT: 82 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

These are the packages that would be merged, in reverse order:

Calculating dependencies  ..... done!
Dependency resolution took 31.15 s (backtrack: 0/20).

[ebuild   R    ] net-fs/nfs-utils-2.7.1::gentoo  USE="-caps -junction -kerberos -ldap libmount nfsv3 -nfsv4 -sasl (-selinux) -tcpd uuid" 0 Ki

Code: Select all

grep NFS /boot/config-5.15.175-gentoo-dist 
CONFIG_XENFS=m
CONFIG_XEN_COMPAT_XENFS=y
CONFIG_KERNFS=y
CONFIG_NFS_FS=m
# CONFIG_NFS_V2 is not set
CONFIG_NFS_V3=m
CONFIG_NFS_V3_ACL=y
CONFIG_NFS_V4=m
CONFIG_NFS_SWAP=y
CONFIG_NFS_V4_1=y
CONFIG_NFS_V4_2=y
CONFIG_PNFS_FILE_LAYOUT=m
CONFIG_PNFS_BLOCK=m
CONFIG_PNFS_FLEXFILE_LAYOUT=m
CONFIG_NFS_V4_1_IMPLEMENTATION_ID_DOMAIN="kernel.org"
# CONFIG_NFS_V4_1_MIGRATION is not set
CONFIG_NFS_V4_SECURITY_LABEL=y
CONFIG_NFS_FSCACHE=y
# CONFIG_NFS_USE_LEGACY_DNS is not set
CONFIG_NFS_USE_KERNEL_DNS=y
CONFIG_NFS_DEBUG=y
CONFIG_NFS_DISABLE_UDP_SUPPORT=y
# CONFIG_NFS_V4_2_READ_PLUS is not set
CONFIG_NFSD=m
# CONFIG_NFSD_V2 is not set
CONFIG_NFSD_V3_ACL=y
CONFIG_NFSD_V4=y
CONFIG_NFSD_PNFS=y
CONFIG_NFSD_BLOCKLAYOUT=y
CONFIG_NFSD_SCSILAYOUT=y
CONFIG_NFSD_FLEXFILELAYOUT=y
CONFIG_NFSD_V4_2_INTER_SSC=y
CONFIG_NFSD_V4_SECURITY_LABEL=y
CONFIG_NFS_ACL_SUPPORT=m
CONFIG_NFS_COMMON=y
CONFIG_NFS_V4_2_SSC_HELPER=y

Code: Select all

lsmod|grep nfs
nfs                   372736  0
lockd                 122880  1 nfs
sunrpc                520192  2 lockd,nfs
fscache               393216  1 nfs
Starting the service throws:

Code: Select all

rc-service nfsclient start
 * Caching service dependencies ...
Service 'nfsclient' needs non existent service 'rpc.idmapd'                                                                                                         [ ok ]
 * ERROR: nfsclient needs service(s) rpc.idmapd
Side note: Oh boy, I hardly recall having such a hard time with a gentoo wiki.

Thks 4 ur attention, interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Tue Jan 21, 2025 7:47 pm

Learning the hard way:

Code: Select all

emerge -p -v net-fs/nfs-utils

 * IMPORTANT: 74 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

These are the packages that would be merged, in reverse order:

Calculating dependencies  .!!! /etc/portage/package.env references non-existent file: /etc/portage/env/slibtool-max-error
!!! /etc/portage/package.env references non-existent file: /etc/portage/env/slibtool-max-error
. ...... done!
Dependency resolution took 19.26 s (backtrack: 0/20).

[ebuild   R    ] net-fs/nfs-utils-2.7.1::gentoo  USE="-caps -junction -kerberos -ldap libmount nfsv3 nfsv4 -sasl (-selinux) -tcpd uuid" 0 KiB
Now starts as:

Code: Select all

rc-service nfsclient start
 * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/rpcbind start
 * Starting rpcbind ...
 * Detaching to start `/sbin/rpcbind' ...                                                                                                                           [ ok ]
 * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/rpc.statd start
 * Starting NFS statd ...
 * Detaching to start `/sbin/rpc.statd' ...                                                                                                                         [ ok ]
 * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/rpc.pipefs start
 * Setting up RPC pipefs ...                                                                                                                                        [ ok ]
 * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/rpc.idmapd start
 * Starting idmapd ...                                                                                                                                              [ ok ]
 * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/nfsclient start
 * Starting NFS sm-notify ...
Thks 4 ur attention, interest and support
Last edited by CaptainBlood on Tue Jan 21, 2025 8:16 pm, edited 1 time in total.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Tue Jan 21, 2025 8:09 pm

Code: Select all

* IMPORTANT: 82 config files in '/etc/portage' need updating.

Code: Select all

* IMPORTANT: 74 config files in '/etc/portage' need updating.
I have no words ...
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Tue Jan 21, 2025 8:55 pm

asturm wrote:I have no words ...
You have at least FOUR words and A.E.I.O.U. is no more than the ordered list of the FIVE vowels of the alphabet.
It would be much appreciated here if you keep out of the way with what I can't refrain to consider as a trolling like posture since you have no evidences your point is any relevant
to the OP.
Thks 4 ur attention, interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
Banana
Moderator
Moderator
User avatar
Posts: 2379
Joined: Fri May 21, 2004 12:02 pm
Location: Germany
Contact:
Contact Banana
Website

  • Quote

Post by Banana » Wed Jan 22, 2025 12:36 pm

CaptainBlood wrote:
asturm wrote:I have no words ...
You have at least FOUR words and A.E.I.O.U. is no more than the ordered list of the FIVE vowels of the alphabet.
It would be much appreciated here if you keep out of the way with what I can't refrain to consider as a trolling like posture since you have no evidences your point is any relevant
to the OP.
Thks 4 ur attention, interest & support.
Could it have been phrased better by asturm, yes.
Are you a total beginner who does need a complete explenation every time, no.

So please, do not start a heated conversion over something rather silly and please stay on topic. And maybe those config updates could lead to a solution of your journey?
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Top
Hu
Administrator
Administrator
Posts: 24385
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Wed Jan 22, 2025 12:44 pm

Although there is no specific evidence that the pending updates are relevant, it is standard practice to expect users to address known warnings and errors before trying to debug new problems. OP has shown that there are an unusually large number of pending configuration updates[1] and an erroneous package.env entry.

OP: please get Portage to a state where it is not actively warning about known issues, then try to reproduce your original problem. If you need help resolving these warnings, please ask.

[1]: I think the highest I've ever seen for /etc/portage was less than 10. I've only seen in the many tens when ca-certificates triggers a bulk update in /etc/ssl/certs.
Top
mahi
n00b
n00b
Posts: 35
Joined: Thu Mar 18, 2004 1:53 pm

  • Quote

Post by mahi » Sat May 03, 2025 8:56 am

CaptainBlood wrote:

Code: Select all

rc-service nfs start
 * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/nfs start
 * Exporting NFS directories ...                                          [ ok ]
 * Starting NFS mountd ...
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6            [ ok ]
 * Starting NFS daemon ...                                                [ ok ]
 * Starting NFS smnotify ...                                              [ ok ]
Would be nice to get rid of these
I know it's an old post and maybe you already figured this out by yourself, but I got the same errors because IPv6 was not enabled in the kernel. If you do not want to enable IPv6, you can get rid of the errors by commenting the udp6 and tcp6 lines in /etc/netconfig:

Code: Select all

#udp6       tpi_clts      v     inet6    udp     -       -
#tcp6       tpi_cots_ord  v     inet6    tcp     -       -
Note that if you ever decide to support IPv6, this change may break things and must be undone.
Top
Post Reply

11 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic