AnsweredAssumed Answered

nfsserver segfaults, and sudo: no tty present

Question asked by cooper6581 on Jan 22, 2013
Latest reply on Jan 22, 2013 by nabeel
Hello,

I'm running CentOS 6.3 with mapr-nfs-2.1.1.17042.GA-1.x86_64, and I'm having two problems.

nfsserver will segfault with this in /var/log/messages

    Jan 23 00:25:39 bi1-dw-hadoop-node001 kernel: nfsserver[14871]: segfault at c ip 00000000006664db sp 00007fff3ec3ae00 error 6 in nfsserver[400000+39c000]
    Jan 23 00:25:49 bi1-dw-hadoop-node001 kernel: nfsserver[16426]: segfault at c ip 00000000006664db sp 00007fffa335a370 error 6 in nfsserver[400000+39c000]
    Jan 23 00:25:59 bi1-dw-hadoop-node001 kernel: nfsserver[17671]: segfault at c ip 00000000006664db sp 00007fff1e04a2f0 error 6 in nfsserver[400000+39c000]
    Jan 23 00:29:05 bi1-dw-hadoop-node001 kernel: nfsserver[21785]: segfault at c ip 00000000006664db sp 00007fff8adcda00 error 6 in nfsserver[400000+39c000]

When it isn't segfaulting, I'm getting this:

    2013-01-23 00:16:11,3761 INFO nfsserver[6541] fs/nfsd/main.cc:398 ***** NFS server starting: pid=6541, mapr-version: 2.1.1.17042.GA *****
    2013-01-23 00:16:11,3762 INFO nfsserver[6541] fs/nfsd/main.cc:412 ******* NFS server MAPR_HOME=/opt/mapr, NFS_PORT=2049, NFS_MGMT_PORT=9998, NFSMON_PORT=9997
    ^[[60G[^[[0;32m  OK  ^[[0;39m]^Msudo: no tty present and no askpass program specified
    2013-01-23 00:16:11,3972 INFO nfsserver[6541] fs/nfsd/nfsserver.cc:899 0.0.0.0[0] running the cmd sudo  /opt/mapr/server/pmapset set 100003 3 6 2049, ret 256
    2013-01-23 00:16:11,3982 INFO nfsserver[6541] fs/nfsd/nfsserver.cc:937 0.0.0.0[0] Use32BitFileId is 1
    2013-01-23 00:16:11,3982 ERROR nfsserver[6541] fs/nfsd/main.cc:59 0.0.0.0[0] Error registering NFS program

Edit:  The segfault only seems to be happening when trying to start nfsserver from the init script (/etc/init.d/mapr-nfsserver start)

Edit2:  I was able to start the service as root by executing /opt/mapr/server/nfsserver

Outcomes