Jump to content


Photo

nfsserver broken in 4.0?


  • Please log in to reply
23 replies to this topic

#1 possibly2

  • Member
  • 12 posts

+1
Neutral

Posted 19 January 2014 - 11:50

Hi, 

 

Did a "opkg update;opkg upgrade" today and had to remove "/etc/init.d/functions.initscripts" before the upgrade was able to finish without errors.

 

But, the nfsserver stopped working after that:

 

# sh nfsserver status
/usr/sbin/rpc.mountd is stopped
nfsd is stopped
 
# sh nfsserver start
creating NFS state directory: done
starting 8 nfsd kernel threads: rpc.nfsd: Setting version failed: errno 22 (Invalid argument)
rpc.nfsd: writing fd to kernel failed: errno 146 (Connection refused)
rpc.nfsd: unable to set any sockets for nfsd
done
starting mountd: Cannot register service: RPC: Unable to receive; errno = Connection refused
done
starting statd: done
 
# sh nfsserver status
/usr/sbin/rpc.mountd is stopped
nfsd is stopped
 
The rpc.nfsd seems to incompatible with the current kernel modules... Or? Any clue?
 
 
P.
 
 


Re: nfsserver broken in 4.0? #2 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 19 January 2014 - 12:01

Did a "opkg update;opkg upgrade" today and had to remove "/etc/init.d/functions.initscripts" before the upgrade was able to finish without errors.

Seems that you broke it then. Try installing "initscripts-functions", which should provide that file. If everything else fails, just re-flash the box. And don't remove system-critical files next time.
Real musicians never die - they just decompose

Re: nfsserver broken in 4.0? #3 floydian59

  • Senior Member
  • 65 posts

+1
Neutral

Posted 19 January 2014 - 17:48

Would you please be so Kind to tell me the command for installing "initscript-functions"?



Re: nfsserver broken in 4.0? #4 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 19 January 2014 - 17:58

In that case, just flash the box again. Much less trouble.
Real musicians never die - they just decompose

Re: nfsserver broken in 4.0? #5 gregoire

  • Senior Member
  • 82 posts

0
Neutral

Posted 24 January 2014 - 20:07

For certain I can flash again my box, but I would like to understand the problem that just rather flashing.

 

That would be very nice to learn anything about our box and openpli.

 

Thank you very much.



Re: nfsserver broken in 4.0? #6 Dambedei

  • Member
  • 11 posts

+1
Neutral

Posted 25 January 2014 - 03:50

Same problem here, when you do "opkg install -force-overwrite initscripts-functions", as suggested here to solve the common upgrade problem, nfs won't work anymore.

Not sure if initscripts-functions is related with this problem though.

I had to replace rpcbind 0.2.1-r0 with 0.2.0-r4 because it didn't start anymore.

After that it worked again.



Re: nfsserver broken in 4.0? #7 gregoire

  • Senior Member
  • 82 posts

0
Neutral

Posted 26 January 2014 - 23:39

Great to know !

 

I found out that rpcbind wasn't working but I didn't find another version to test.

I wonder if the 0.2.1-r0 works with a reflash.

 

Thanks.



Re: nfsserver broken in 4.0? #8 Dambedei

  • Member
  • 11 posts

+1
Neutral

Posted 27 January 2014 - 15:25

Unfortunately i can't find the old rpcbind as an ipk package, but i still have the binary. Just replace it with /usr/sbin/rpcbind download here and do chmod 755.

But it's not a good solution, could someone check if latest rpcbind is working?

Strace-log from latest rpcbind



Re: nfsserver broken in 4.0? #9 gregoire

  • Senior Member
  • 82 posts

0
Neutral

Posted 28 January 2014 - 20:05

As I thought a fresh flash don't change anything at all...



Re: nfsserver broken in 4.0? #10 Bernado

  • Senior Member
  • 63 posts

+2
Neutral

Posted 28 January 2014 - 20:10

confirmed, rpcbind 0.2.1-r0 not working atm



Re: nfsserver broken in 4.0? #11 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 28 January 2014 - 20:17

Looks like it isn't working any longer. Probably expects a newer kernel version than the old ones we use?
Real musicians never die - they just decompose

Re: nfsserver broken in 4.0? #12 gregoire

  • Senior Member
  • 82 posts

0
Neutral

Posted 28 January 2014 - 22:22

In the meantime would it be possible to put a working rpcbind somewhere ?
The one provided by Dambedei runs but seems incompatible with my nfs anyway.

 

Thank for all work done on openpli :)



Re: nfsserver broken in 4.0? #13 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 29 January 2014 - 08:43

Believe it or not, but I have a daytime job and a life...

Meanwhile if someone can figure out what has changed, how it is now supposed to work, and what we need to make the current version work, that would help a LOT.
Real musicians never die - they just decompose

Re: nfsserver broken in 4.0? #14 pete_l

  • Member
  • 1 posts

0
Neutral

Posted 1 February 2014 - 13:59



Meanwhile if someone can figure out what has changed, how it is now supposed to work, and what we need to make the current version work, that would help a LOT.

What has changed is that whoever rebuilt the kernel forgot to include the config option to include NFS support.

I've just (yesterday) "upgraded" to OpenPLi-4.0-beta-lifestooshorttotypeterestofthename and tried to install the NFS server, as I had in an earlier version. Here's what happened.

 

root@dm800se:/etc# opkg install nfs-utils
Installing nfs-utils (1.2.9-r0) to root...
Downloading http://downloads.pli-images.org/feeds/openpli-4/mips32el/nfs-utils_1.2.9-r0_mips32el.ipk.
Installing kernel-module-nfsd (3.2-r14.17.46) to root...
Downloading http://downloads.pli-images.org/feeds/openpli-4/dm800se/kernel-module-nfsd_3.2-r14.17.46_dm800se.ipk.
Installing kernel-module-exportfs (3.2-r14.17.46) to root...
Downloading http://downloads.pli-images.org/feeds/openpli-4/dm800se/kernel-module-exportfs_3.2-r14.17.46_dm800se.ipk.
 Removing any system startup links for nfsserver ...
Configuring kernel-module-exportfs.
Configuring kernel-module-nfsd.
Configuring nfs-utils.
 Adding system startup for /etc/init.d/nfsserver.
NFS daemon support not enabled in kernel



Re: nfsserver broken in 4.0? #15 theparasol

  • Senior Member
  • 4,157 posts

+198
Excellent

Posted 1 February 2014 - 14:04

Well better try again with todays image...

 

http://sourceforge.n...d752c940458ac0/


@Camping: ZGemma H.2S, Technisat Multytenne 4-in-1 @Home: Edision Mini 4K, Wave Frontier T55, EMP Centauri EMP DiSEqC 8/1 switch, 4x Inverto Ultra Black single LNB


Re: nfsserver broken in 4.0? #16 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 1 February 2014 - 14:53


Meanwhile if someone can figure out what has changed, how it is now supposed to work, and what we need to make the current version work, that would help a LOT.

What has changed is that whoever rebuilt the kernel forgot to include the config option to include NFS support.


Nope, the nfsd module is present and loads just fine, the script just lies about it.
Real musicians never die - they just decompose

Re: nfsserver broken in 4.0? #17 gregoire

  • Senior Member
  • 82 posts

0
Neutral

Posted 1 February 2014 - 18:50

I didn't look at the configuration of the kernel, but at least trying to mount something with -o nfsvers=4 gives me a "mount: NFSv4 not supported" (on the DM8k).

Also the nfs is builtin which make it a little harder to get more informations.



Re: nfsserver broken in 4.0? #18 gregoire

  • Senior Member
  • 82 posts

0
Neutral

Posted 2 February 2014 - 12:03

mattiL got a really good point : Impossible to mount NAS Server on my DM8000HD (comment #9)

With -o nolock I can mount my nfs share on my openpli !



Re: nfsserver broken in 4.0? #19 dapitch666

  • Member
  • 3 posts

0
Neutral

Posted 13 February 2014 - 11:35

Hi,

 

I had the exact same issue with nfs server: one that was working just stopped working some days ago and got the same result as stated in #post1. This happened after a fresh reflash on feb. 4th.

 

I reflashed an old backup from November 2013 and it is working again. No big deal, but I guess I'll have to live without upgrading for some time ;)

 

Thanks to let us know if and when this will be solved.


ClarkeTech ET9000 - OpenPli2.1beta

Re: nfsserver broken in 4.0? #20 possibly2

  • Member
  • 12 posts

+1
Neutral

Posted 19 February 2014 - 17:29

Believe it or not, but I have a daytime job and a life...

Meanwhile if someone can figure out what has changed, how it is now supposed to work, and what we need to make the current version work, that would help a LOT.

 

I think I figured it out.

 

It is the update to rpcbind-0.2.1 that cause the issue.

 

Running the latest rpcbind manually with "rpcbind -df" created the following error in /var/log/messages: daemon.err rpcbind: cannot get uid of '': Success

 

Then Google pointed me to this link: https://www.mail-arc...g/msg23230.html

 

Seems like the "--with-rpcuser=root" needs to be added to configure with building rpcbind?

 

rpcbind-0.2.0 runs as root and it seems like rpcbind-0.2.1 tries to run as the '' user. 

 

A workaround is also to run rpcbind (from 0.2.1) with "-s" to run it as " daemon":

--- /etc/init.d/rpcbind.org
+++ /etc/init.d/rpcbind
@@ -21,7 +21,7 @@
 
 test -f /usr/sbin/rpcbind || exit 0
 
-OPTIONS=""
+OPTIONS="-s"
 if [ -f /etc/default/rpcbind ]
 then
     . /etc/default/rpcbind
 
 
HTH,
P.



2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users