NFS client not connecting

Discussion about U-Boot and the kernel.

NFS client not connecting

Postby eduardfaber » Thu Jan 14, 2021 4:56 pm

Problem:

[root@A10S ~]# mount 192.168.2.139:/var/log /mnt/scrap/
mount.nfs: Protocol error


Description:
At my A10S (I know, not supported any more, but also on cubietruck) I installed a new image ArchLinuxARM-armv7-latest.tar.gz after a long time, the board seems working fine. Except the nfs client is not connecting to any external nfs any more. As I have many computers and boards, it was time for some experiments.

- The server is on a cubietruck, running linux several years.
- I installed a brand new archlinux on a Z600, works. (Z600 --> server)
- I installed a brand new ArchLinuxARM-armv5-latest.tar.gz on a iMX233, works. (iMX233 --> server)
- I tried al kind of version options, no solution.
- I set up a nfs-server on the A10S it selve, works. (A10S --> A10S)

So I concluded, problem could be in the networks stack, time for sniffering...
Wireshark pointed to: "parameter problem, pointer indicates the error." Already on the SYN package, it responds with an IMCP, instead of a syn,ack.
The pointer points to IP Option Commercial Security. Type 134 ( as far my knowledge reaches). I do not see this commercial security item on the working systems.

Roling back to kernel 5.0.10.1 solved.

Any idea?
Thanks, Ed.
eduardfaber
 
Posts: 25
Joined: Mon Jan 04, 2016 11:38 pm
Location: Netherlands

Re: NFS client not connecting

Postby RossoCorsa » Tue Jan 26, 2021 7:58 am

I have the same issue. Downgrading to 5.0.10.1 as you suggest fixed the problem.
What kernel were you running previously?
RossoCorsa
 
Posts: 3
Joined: Wed Feb 13, 2013 8:29 pm

Re: NFS client not connecting

Postby eduardfaber » Wed Jan 27, 2021 7:13 pm

Thanks for the reply! I was just wondering if I was the only person on the world using
ArchLinuxARM-armv7-latest.tar.gz as a nfs client.

[2021-01-06T21:25:14+0100] [ALPM] downgraded linux-armv7 (5.8.0-1 -> 5.0.10-1)

I am trying to set up a cross build system with distcc and struggeling with the download
of files (git clone????) Compiler works but downloaded stuff seems to big.

==> Making package: linux 5.10.10.arch1-1 (Sun Jan 24 23:39:05 2021)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Cloning archlinux-linux git repo...
Cloning into bare repository '/home/alarm/linux/archlinux-linux'...
error: index-pack died of signal 9
fatal: index-pack failed
==> ERROR: Failure while downloading archlinux-linux git repo
Aborting...
[alarm@CubieTruck linux]$


next step is increasing swap to 2Gb.


Greetings Eduard Faber
eduardfaber
 
Posts: 25
Joined: Mon Jan 04, 2016 11:38 pm
Location: Netherlands

Re: NFS client not connecting

Postby RossoCorsa » Sat Jan 30, 2021 9:59 am

I'm using an ancient A13 q88-style tablet as a WiFi MPD player :) . Music is shared via NFS from my main arch amd64 server.

What I did was download the mainline 5.0.10-1 kernel and headers (linux-armv7, linux-armv7-headers) from the ALARM archive and downgrade with pacman -U. Did you have a specific reason to recompile the kernel?

When I have a moment I'll try and pin down which kernel version breaks NFS.
RossoCorsa
 
Posts: 3
Joined: Wed Feb 13, 2013 8:29 pm

Re: NFS client not connecting

Postby eduardfaber » Sat Jan 30, 2021 7:44 pm

When I have a moment I'll try and pin down which kernel version breaks NFS.

- At http://tardis.tiny-vps.com/aarm/packages/l/linux-armv7/ 5.0.10-1 was the latest kernel working OK.
5.1.0-1 had the problem.
----------------------------------------
Did you have a specific reason to recompile the kernel?

- I tried to find which config flag is responsible for this problem. As I can not get the distcc environment working (complaining about -plugin option not safe), I guess I will not succeed. :cry:

greetings Eduard Faber
eduardfaber
 
Posts: 25
Joined: Mon Jan 04, 2016 11:38 pm
Location: Netherlands

Re: NFS client not connecting

Postby graysky » Sat Jan 30, 2021 8:39 pm

If you know the last-known-good and the first-known-bad you can compare with git:

$this->bbcode_second_pass_code('', '
cd /path/to/PKGBUILDs/core/linux-armv7
git log -- config

<<< get the corresponding commits for the two versions >>>
commit 20cf7ffd1cee13794f20edd26dfa26c73c8ee979
Author: Kevin...
Date: Sun May 12 18:42:41 2019 +0000

core/linux-armv7 to 5.1.0-1

...

commit 4207512f6e3361acce7a51eb3c1c30c8e3fae979
Author: Kevin...
Date: Fri May 3 01:03:23 2019 +0000

core/linux-armv7 to 5.0.10-1

<<< now you got them >>>

git diff 4207512..20cf7ff config')

At first glance, I didn't see changes in the config relating to NFS. You can find the diff here. Perhaps something upstream is to blame?
graysky
Developer
 
Posts: 1723
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: NFS client not connecting

Postby eduardfaber » Sun Jan 31, 2021 12:14 pm

Kevin, maybe upstream, but:
I installed a brand new ArchLinuxARM-armv5-latest.tar.gz on a iMX233, works.

[root@rfm69develop ~]# mount |grep nfs
server:/home/raid/armpac5 on /var/cache/pacman/pkg type nfs4 (rw,nosuid,nodev,relatime,vers=4.0,rsize=8192,wsize=8192,namlen=255,hard,proto=tcp,timeo=14,retrans=2,sec=sys,clientaddr=192.168.2.147,local_lock=none,addr=192.168.2.139,user)
[root@rfm69develop ~]# uname -a
Linux rfm69develop 5.8.9-1-ARCH #1 Sat Sep 12 23:08:17 UTC 2020 armv5tejl GNU/Linux

Thats making it a little strange...


Eduard Faber
eduardfaber
 
Posts: 25
Joined: Mon Jan 04, 2016 11:38 pm
Location: Netherlands


Return to U-Boot/Kernel

Who is online

Users browsing this forum: No registered users and 3 guests

cron