Kerberos NFSv4 mounts from FreeBSD server fails with "mount.nfs4: mount system call failed"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nfs-utils (Ubuntu) |
Confirmed
|
High
|
Unassigned |
Bug Description
This problem started to appear after upgrading to 13.10. After another upgrade to 14.4, the problem persists. I also tried a fresh installation of 14.4, with the same result. Anoter client, still on an older Ubuntu release can still successfully mount this partition, and OSX also has no problems with it.
After the upgrade, attempting to mount an NFS partition using NFSv4, and the sec=krb5p option consistently yields the following message:
mount.nfs4: mount system call failed
The file /var/log/syslog shows the following:
May 18 23:35:50 tiger rpc.gssd[31127]: ERROR: GSS-API: error in gss_free_
May 18 23:35:50 tiger rpc.gssd[31127]: WARN: failed to free lucid sec context
May 18 23:35:50 tiger kernel: [438617.037214] NFS: nfs4_discover_
I found the following email thread on the NFS developers list that could possibly be related:
http://
The thread has 15 or so messages in it, and in the end they solve it with a small fix. Of course, I can't be sure that it's actually the same error, but there is lots of evidence in the thread that points to it.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: nfs-common 1:1.2.8-6ubuntu1
ProcVersionSign
Uname: Linux 3.13.0-24-generic x86_64
NonfreeKernelMo
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
CurrentDesktop: GNOME
Date: Sun May 18 23:43:13 2014
InstallationDate: Installed on 2010-07-23 (1394 days ago)
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
SourcePackage: nfs-utils
UpgradeStatus: Upgraded to trusty on 2014-05-04 (13 days ago)
Changed in nfs-utils (Ubuntu): | |
importance: | Undecided → High |
I'm having the same problem (albeit with Linux Mint 17 RC).
Full gssd session output:
jhogg@delves ~ $ sudo rpc.gssd -fvvv pipefs/ nfs/clnt4b pipefs/ nfs/clnt49 pipefs/ nfs/clnt4a pipefs/ nfs/clnt49 pipefs/ nfs/clnt56) 18,17,16, 23,3,1, 2 ' pipefs/ nfs/clnt56) krb5_upcall: service is '*' cse.rl. ac.uk' is 'beale. cse.rl. ac.uk' cse.rl. ac.uk' is 'delves. cse.rl. ac.uk' @CSE.RL. AC.UK while getting keytab entry for 'DELVES$@' cse.rl. ac.uk@' cse.rl. ac.uk@' tmp/krb5ccmachi ne_CSE. RL.AC.UK' tmp/krb5ccmachi ne_CSE. RL.AC.UK' are good until 1400526145 krb5ccmachine_ CSE.RL. AC.UK as credentials cache for machine creds krb5ccmachine_ CSE.RL. AC.UK krb5_rfc4121_ buffer: protocol 1 krb5_rfc4121_ buffer: serializing key with enctype 18 and size 32 lucid_sec_ context( ): GSS_S_NO_CONTEXT (No context has been established) - Unknown error pipefs/ nfs/clnt56) 18,17,16, 23,3,1, 2 ' pipefs/ nfs/clnt56) krb5_upcall: service is '<null>' cse.rl. ac.uk' is 'beale. cse.rl. ac.uk' cse.rl. ac.uk' is 'delves. cse.rl. ac.uk' @CSE.RL. AC.UK while getting keytab entry for 'DELVES$@' cse.rl. ac.uk@' cse.rl. ac.uk@' tmp/krb5ccmachi ne_CSE. RL.AC.UK' are good until 1400526145 tmp/krb5ccmachi ne_CSE. RL.AC.UK' are good until 1400526145 krb5ccmachine_ CSE.RL. AC.UK as credentials cache for machine creds krb5ccmachine_ CSE.RL. AC.UK krb5_rfc4121_ buffer: protocol 1 krb5_rfc4121_ buffer: serializing key with enctype 18 and size 32
beginning poll
destroying client /run/rpc_
Closing 'gssd' pipe for /run/rpc_
destroying client /run/rpc_
destroying client /run/rpc_
handling gssd upcall (/run/rpc_
handle_gssd_upcall: 'mech=krb5 uid=0 service=* enctypes=
handling krb5 upcall (/run/rpc_
process_
Full hostname for 'beale.
Full hostname for 'delves.
No key table entry found for DELVES$
No key table entry found for <email address hidden> while getting keytab entry for 'root/delves.
Success getting keytab entry for 'nfs/delves.
Successfully obtained machine credentials for principal '<email address hidden>' stored in ccache 'FILE:/
INFO: Credentials in CC 'FILE:/
using FILE:/tmp/
using environment variable to select krb5 ccache FILE:/tmp/
creating context using fsuid 0 (save_uid 0)
creating tcp client for server beale.cse.rl.ac.uk
DEBUG: port already set to 2049
creating context with server <email address hidden>
DEBUG: serialize_krb5_ctx: lucid version!
prepare_
prepare_
ERROR: GSS-API: error in gss_free_
WARN: failed to free lucid sec context
doing downcall lifetime_rec 35999
handling gssd upcall (/run/rpc_
handle_gssd_upcall: 'mech=krb5 uid=0 enctypes=
handling krb5 upcall (/run/rpc_
process_
Full hostname for 'beale.
Full hostname for 'delves.
No key table entry found for DELVES$
No key table entry found for <email address hidden> while getting keytab entry for 'root/delves.
Success getting keytab entry for 'nfs/delves.
INFO: Credentials in CC 'FILE:/
INFO: Credentials in CC 'FILE:/
using FILE:/tmp/
using environment variable to select krb5 ccache FILE:/tmp/
creating context using fsuid 0 (save_uid 0)
creating tcp client for server beale.cse.rl.ac.uk
DEBUG: port already set to 2049
creating context with server <email address hidden>
DEBUG: serialize_krb5_ctx: lucid version!
prepare_
prepare_
ERROR: GSS-API: error in gss...