What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

NFS Problem

chrizz

New Around Here
Iam new to this board so big hello :)

As the topic says - i got a Problem with integraded NFS exports.
I am running Merlinbuild 3.0.0.4.374.33_0 on a Asus RT-AC56U.
(f* in nice and fast as hell!)

I am using NFS Exports for my 2 XBMC media centers.

After boot (or reboot) it doesnt work
when i do after router booted:
showmount -e 192.168.1.1
clnt_create: RPC: Port mapper failure - RPC: Unable to receive

And then - when i go to webinterface
USB - Servers Center - NFS Exports
and i dont change anything - just a click on Accept

showmount -e 192.168.1.1
Export list for 192.168.1.1:
/tmp/mnt/tosh 192.168.1.0/24
/tmp/mnt/WD 192.168.1.0/24

it works - and xbmc can also access it.
I dont know whats wrong?
i think with accept config is reloaded or nfs restarted?

What can i do or with wich command i can restart nfs?
So i can put it in my post-mount script to automatically restart it that its accessible after reboot...

Thanks a lot

chrizz
 
After boot (or reboot) it doesnt work
when i do after router booted:
showmount -e 192.168.1.1
clnt_create: RPC: Port mapper failure - RPC: Unable to receive

And then - when i go to webinterface
USB - Servers Center - NFS Exports
and i dont change anything - just a click on Accept
Hi,

Some time ago (when NFS was introduced by Merlin into his firmware build) I had some issues with adding the exports to the GUI.

So, I ended up having a exports.add in the /jffs/scripts folder with the following content:
Code:
/tmp/mnt/[COLOR="Blue"][B]USB-Disk1[/B][/COLOR] 192.168.[B][COLOR="Blue"]x[/COLOR][/B].0/255.255.0.0(rw,all_squash,anonuid=0,anongid=0)
/tmp/mnt/[B][COLOR="Blue"]USB-Disk2[/COLOR][/B] 192.168.[B][COLOR="Blue"]x[/COLOR][/B].0/255.255.0.0(rw,all_squash,anonuid=0,anongid=0)
(Of course the blue placeholders need to be updated with your values.)

In the GUI only the option "Enable NFSD = ON" is set, no exports - and it works since then without problems... :rolleyes:

Proof of working NFS exports:
chief@ASUS_RT-N66U:/jffs/configs# showmount -e
Export list for ASUS_RT-N66U:
/tmp/mnt/USB-Disk1 192.168.x.0/255.255.0.0
/tmp/mnt/USB-Disk2 192.168.x.0/255.255.0.0

With kind regards
Joe :cool:
 
Last edited:
hm when i do this

vi /jffs/scripts/exports.add

/tmp/mnt/WD 192.168.1.0/255.255.0.0(rw,all_squash,anonuid=0,anongid=0)
/tmp/mnt/tosh 192.168.1.0/255.255.0.0(rw,all_squash,anonuid=0,anongid=0)

and nfs in webinterface is clear (no exports set)

Then the output is

showmount -e
Export list for asus:

there is nothing then :(

And after Reboot the same Problem nothing listed

And after some time
showmount -e
clnt_create: RPC: Port mapper failure - RPC: Unable to receive

then same - clicking accept as i told before

showmount -e
Export list for asus:

i want this to run to make the router perfect ;(
 
and nfs in webinterface is clear (no exports set)
Hi,

Hmmm, interesting... :confused:

And the status of "Enable NFSD = ON" (Green)?

With kind regards
Joe :cool:
 
hm when i do this

vi /jffs/scripts/exports.add

/tmp/mnt/WD 192.168.1.0/255.255.0.0(rw,all_squash,anonuid=0,anongid=0)
/tmp/mnt/tosh 192.168.1.0/255.255.0.0(rw,all_squash,anonuid=0,anongid=0)

and nfs in webinterface is clear (no exports set)

Then the output is

showmount -e
Export list for asus:

there is nothing then :(

And after Reboot the same Problem nothing listed

And after some time
showmount -e
clnt_create: RPC: Port mapper failure - RPC: Unable to receive

then same - clicking accept as i told before

showmount -e
Export list for asus:

i want this to run to make the router perfect ;(

You have incorrectly specified the /jffs/scripts directory rather than the /jffs/configs directory

Try

Code:
vi /jffs/configs/exports.add
 
I've experienced a few timing issues with NFS services not always properly restarting in the correct order. I fixed some of these issues in a recent version, but it's possible that it's not 100% foolproof yet.
 
i tried with

vi /jffs/configs/exports.add

But after reboot
clnt_create: RPC: Port mapper failure - RPC: Unable to receive

And again one / sometimes more klicks on Accept
and its working again

Export list for asus:
/tmp/mnt/tosh 192.168.1.0/255.255.0.0
/tmp/mnt/WD 192.168.1.0/255.255.0.0

:( thats bad..
Any possibility to restart services correct via command line RMerlin?
 
Anything new here?

Im on 3.0.0.4.374.35_4 now.

I still got this problems - i also think they are from timings.
NFS services are started before partitions are mounted..?

As if there is no possibility to start them manually via command line, i tried to install unfs3.

On portmap install i get this error i think because of gcc?
/opt/sbin/portmap: can't resolve symbol '__register_frame_info'


admin@asus:/tmp/home/root# ipkg install unfs3
Installing unfs3 (0.9.22-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/mbwe-bluering/cross/stable/unfs3_0.9.22-1_arm.ipk
Configuring portmap
/opt/sbin/portmap: can't resolve symbol '__register_frame_info'
postinst script returned status 1
ERROR: portmap.postinst returned 1
Configuring unfs3
Successfully terminated.
admin@asus:/tmp/home/root#

Any ideas.. ? Iam using unfs3 on a Synology UsbStation2 and it works correctly - no problem..

Thanks
 
Same problem here; RT-AC68U with Merlin _38-1

Tryed to enable unfs3 and portmap by optware, but without any success

Please Merlin, help us fixing this annoying problem. Also for me it's related to a timing issue on when he service starts and when the Hard disk would be mounted
 
I'm aware of various issues related to NFS, it's just not a high priority at this time as this is a feature that barely anyone uses, and there are more important things to work on that affect more users. Being the sole developer on this project, I have to establish prioritie where to devote my limited time, sorry.

In fact, I might eventually simply drop NFS support since it's too unstable on the MIPS platform, and I simply lack the time and expertise to debug it.
 
I see you point of view Merlin and I fully understand; I only beg you to not drop the support for the NFS, since although it wouldn't be so widely used, it is indeed a quite useful feature. If you need any help to improve and/or fix any bugs about this feature, please feel free to ask me for any needs
 
I see you point of view Merlin and I fully understand; I only beg you to not drop the support for the NFS, since although it wouldn't be so widely used, it is indeed a quite useful feature. If you need any help to improve and/or fix any bugs about this feature, please feel free to ask me for any needs

Thanks. What I would mostly need at this point is someone comfortable enough with the firmware-side of the code to handle the timing issues that were reported here (and which had been on my ToDO list for nearly 4-6 months now).

The other issue (router crashing under NFS access on MIPS routers) would require a kernel-level programmer to track down the issue. There's already an entry on Github's issue tracker with what info I had been able to gather last time I worked on this issue last year.

With the recent rapid release rate of Asus, and the fact that those releases addresses some pretty critical issues (so I can't just skip them), just keeping up with recent GPL code is taking nearly all my development time these days. That's forcing me to leave a lot of other less critical issues on the ToDO list.
 
I'm having the same issue.

Is it possible to restart the nfs export service from a jffs script?

I think that could be used as a workaround.

Thanks for any help!
 
I'm having the same issue.

Is it possible to restart the nfs export service from a jffs script?

I think that could be used as a workaround.

Thanks for any help!
Same here (with firmware version 378.52_2 on RT-AC87.

I'm aware of the fact that these timing issues which are causing this are low on the priority list of things to fix, but does anyone know if the NFS export can be triggered by a script? I would then just trigger it with e.g. wan-start and that should be it, it'd be perfect.

I'd be super grateful if anyone could shed some light on this!
 
I was just thinking it should be possible (to trigger this via scripts) as the UI is basically just a frontend anyway...
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top