Environment: OpenWrt 18.06.2, MediaTek MT7621, Xiaomi Mi Router 3G
Description: Cannot install nfs server. It says:
opkg install nfs-kernel-server
Unknown package 'nfs-kernel-server'.
Collected errors:
https://downloads.openwrt.org/releases/faillogs/mipsel_24kc/packages/nfs-kernel-server/compile.txt
The package tree rarely sees backports so you need to compile your own packages/firmware or wait for the 19.X release.
Same for me 馃憥
OpenWrt 18.06.2, D-Link DIR-645
The NFS server seemed to work fine for me in 18.06.1. I installed that server some time in January 2019. I also hit this problem after upgrade to 18.06.2 on a Linksys EA-8500.
However, it seems that all 18.06.* releases use the same package repository, in
releases/packages-18.06/... Therefore, I do not think that downgrade back to 18.06.1 will avoid this problem.
Because my clients are Linux, I will use the sshfs with the openssh-sftp-server package on my router.
I was just going to reply that downgrading is indeed not possible anymore either; I have held off on upgrading to 18.06.2 for this reason. But I'm wondering if it is possible to manually install the nfs-kernel-server package from Master (which has version 2.3.3)? Or even if the entware package from http://bin.entware.net/mipselsf-k3.4 would work?
I could not just download and install nfs-kernel-server_2.3.3-3_arm_cortex-a15_neon-vfpv4.ipk. There were other additional unmet dependencies. In addition, it looks like there are four different packages built from the same sources (nfs-kernel-server-utils, nfs-kernel-server, nfs-utils-libs, nfs-utils). It would be much safer to have identical versions of any of those packages installed.
# opkg install /tmp/nfs-kernel-server_2.3.3-3_arm_cortex-a15_neon-vfpv4.ipk
Installing nfs-kernel-server (2.3.3-3) to root...
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for nfs-kernel-server:
* libblkid1
* libuuid1
* rpcbind
* nfs-utils-libs
* libkeyutils
* opkg_install_cmd: Cannot install package nfs-kernel-server.
No, you can't mix and mash packages. Also, you can use snaphots but be aware that it's a moving target.
Same happened to me today on Kirkwood Zyxel NSA325. The arch ist arm_xscale and the package nfs-kernel-server is missing in 18.06.2.
I have an identical box which was installed in February, 11th and package was available.
To get my recently updated box running a nfs-server, I installed all dependencies listed for https://openwrt.org/packages/pkgdata/nfs-kernel-server (also nfs-server-kernel-utils) and copied /usr/sbin/rpc.statd, rpc.mountd, rpc.nfsd, exportfs from the working box.
I know this is not a solution, but for me (lucky to have two boxes) a quick and dirty way around
On x86 I've installed nfs-kernel-server 2.3.3-4 (as well as matching version of nfs-kernel-server-utils and dependencies) but nfsd still does not work because /usr/sbin/rpc.mountd -p 32780 -F fails as follows:
Error relocating /usr/sbin/rpc.mountd: name_to_handle_at: symbol not found
Is there a reproducible way to have a working NFS server on 18.06.02?
Can somebody upload a working nfs-kernel-server into 18.06.02 packages repository please?
You can't mix and mash branches, either you compile your own firmware or use snapshots.
Alternatively you can try to convince the core team of OpenWrt to quarterly snapshots of packages or something for releases.
Maybe it is related (after git pull to latest version - not clean compilation):
cache.c: In function 'uuid_by_path':
cache.c:343:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (*bad == st.f_type)
^~
cache.c: In function 'same_path':
cache.c:431:22: error: field 'fh' has incomplete type
struct file_handle fh;
^~
cache.c:438:6: warning: implicit declaration of function 'name_to_handle_at' [-Wimplicit-function-declaration]
if (name_to_handle_at(AT_FDCWD, p, &fchild.fh, &mnt_child, 0) != 0) {
^~~~~~~~~~~~~~~~~
Makefile:618: recipe for target 'mountd-cache.o' failed
make[6]: *** [mountd-cache.o] Error 1
make[6]: Leaving directory '/mnt/openwrt/OpenwrtNSA310/build_dir/target-arm_xscale_musl_eabi/nfs-utils-2.3.3/utils/mountd'
Makefile:446: recipe for target 'all-recursive' failed
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory '/mnt/openwrt/OpenwrtNSA310/build_dir/target-arm_xscale_musl_eabi/nfs-utils-2.3.3/utils'
Makefile:470: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
Same issue here. Seems the package was not included in the 18.06.2 repo for some reason.
@elonden at some point it was included in 18.06.2, see my answer https://github.com/openwrt/packages/issues/8108#issuecomment-466388611
Please be aware that there are differences between architectures. So even though for example https://downloads.openwrt.org/releases/packages-18.06/mips_24kc/packages/nfs-kernel-server_2.3.1-1_mips_24kc.ipk does exist, there is no nfs-kernel-server package in https://downloads.openwrt.org/releases/packages-18.06/mipsel_24kc/packages/
@dterrahe yes I'm aware of that. For my Zyxel NSA325 the arch is arm_xscale and and the package for 18.06.2 was available around February 11th and now it ain't. So there may be a common issue...
I'm in the same boat as you guys. Just upgraded to 18.06.2 from 18.06.1 and cannot find the "nfs-kernel-server" package anywhere. Not even 18.06.1 repo has it anymore. It was there, just like @outlawx described, but it's gone now and I can't even fall back. Does anybody know of mirrors with old files that can be retrieved for 18.06.2?
This is due to "blindly" making a snapshot of the package repo and little to no effort backporting from master branch. The majority of developers only tracks master which makes the branches "fall behind".
why this became so low quality? are developers aware of the problem? how many packages else are missing?
@the-w1nd in the official download mirror packages don't seem to be specific to the minor versions - just to the major branch.
Here I found an old mirror http://mirror.math.princeton.edu/pub/openwrt/releases/packages-18.06/ be careful though...
And you can also try snapshot-packages from https://downloads.openwrt.org/snapshots/packages/~~ edit: maybe won't work as someone above already tried
in the official download mirror packages don't seem to be specific to the minor versions - just to the major branch.
That explains it! Because it would be strange if 18.06.1 branch lost a package a few months after getting released.
Here I found an old mirror http://mirror.math.princeton.edu/pub/openwrt/releases/packages-18.06/ be careful though...
Thanks a lot! The "nfs-kernel-server_2.3.1-1" is exactly what I was looking for, since it's compatible with 18.06.1/2 branches. Just installed it and "opkg" pulled all necessary dependencies just fine.
As a plan "B", I was already thinking about temporarily switching to a snapshot build, or some custom community build for my router.
Much appreciated!
HI,
I have the same problem: the nfs-kernel-server package is missing from repo. Any idea when it will be included again?
I have the same problem: the nfs-kernel-server package is missing from repo. Any idea when it will be included again?
As @diizzyy pointed out, the package fails compilation on release branches: https://downloads.openwrt.org/releases/faillogs/mipsel_24kc/packages/nfs-kernel-server/compile.txt
So, until someone addresses on 18.* branches, it will stay broken. 19.* branch has it present, but not compatible with 18.* release.
From https://downloads.openwrt.org/releases/faillogs/arm_cortex-a9_vfpv3/packages/nfs-kernel-server/compile.txt I can see the row:
Package nfs-kernel-server is missing dependencies for the following libraries:
libbsd.so.0
An old issue was opened about the missing dependency: https://github.com/openwrt/packages/issues/6890 and closed with commit https://github.com/openwrt/packages/commit/3fc7f7b8cc151ab6490189405cb526b70c9bf6e6
In the branch openwrt-18.06 I can see that the line is missing:
ac_cv_lib_bsd_daemon=no \
So I try to insert it in the Makefile.
Someone can test my pull request https://github.com/openwrt/packages/pull/8443 ?
HI,
I am trying to contribute to resolve this issue.
So I downloaded from git the project and tried to compile expecting that it failed.
These were my commands:
git clone https://git.openwrt.org/openwrt/openwrt.git/
cd openwrt
git chekout v18.06.2
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
<selected nfs-kernel-server>
<selected kmod-fs-nfs*>
make -j 5
It seems to work fine, in fact I can find the nfs-kernel-server:
fabrizio@fabrizio-Dell:~/Progetti/openwrt ((v18.06.2))$ find . -name "*nfs-kernel*"
...
./bin/packages/arm_cortex-a9_vfpv3/packages/nfs-kernel-server-utils_2.3.1-1_arm_cortex-a9_vfpv3.ipk
./bin/packages/arm_cortex-a9_vfpv3/packages/nfs-kernel-server_2.3.1-1_arm_cortex-a9_vfpv3.ipk
...
I expected that it failed, but it compiles. Where am I doing wrong?
Someone please test #8612
Can't someone just fix the build scripts and add them to the repo without waiting for 19.x?
`Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading http://downloads.openwrt.org/releases/18.06.2/packages/arm_cortex-a9_vfpv3/telephony/Packages.sig
Signature check passed.
root@OpenWrt:~# opkg install nfs-kernel-server
Unknown package 'nfs-kernel-server'.
Collected errors:
Fixed with c3f6660b8bbf6830d3cdb82fa4fcf362d5cfd0f7
Most helpful comment
From https://downloads.openwrt.org/releases/faillogs/arm_cortex-a9_vfpv3/packages/nfs-kernel-server/compile.txt I can see the row:
An old issue was opened about the missing dependency: https://github.com/openwrt/packages/issues/6890 and closed with commit https://github.com/openwrt/packages/commit/3fc7f7b8cc151ab6490189405cb526b70c9bf6e6
In the branch openwrt-18.06 I can see that the line is missing:
So I try to insert it in the Makefile.
Someone can test my pull request https://github.com/openwrt/packages/pull/8443 ?