packages icon indicating copy to clipboard operation
packages copied to clipboard

nfs-kernel-server: is absent in repo

Open darkblaze69 opened this issue 7 years ago • 26 comments

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:

  • opkg_install_cmd: Cannot install package nfs-kernel-server.

darkblaze69 avatar Feb 02 '19 19:02 darkblaze69

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.

diizzyy avatar Feb 03 '19 06:02 diizzyy

Same for me 👎 OpenWrt 18.06.2, D-Link DIR-645

neradp avatar Feb 15 '19 15:02 neradp

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.

n1be avatar Feb 18 '19 18:02 n1be

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?

dterrahe avatar Feb 18 '19 19:02 dterrahe

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.

n1be avatar Feb 18 '19 19:02 n1be

No, you can't mix and mash packages. Also, you can use snaphots but be aware that it's a moving target.

diizzyy avatar Feb 18 '19 19:02 diizzyy

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

outlawx avatar Feb 22 '19 13:02 outlawx

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?

onlyjob avatar Feb 22 '19 14:02 onlyjob

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.

diizzyy avatar Feb 22 '19 20:02 diizzyy

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

kofec avatar Feb 25 '19 18:02 kofec

Same issue here. Seems the package was not included in the 18.06.2 repo for some reason.

elonden avatar Mar 08 '19 02:03 elonden

@elonden at some point it was included in 18.06.2, see my answer https://github.com/openwrt/packages/issues/8108#issuecomment-466388611

outlawx avatar Mar 09 '19 11:03 outlawx

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 avatar Mar 09 '19 13:03 dterrahe

@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...

outlawx avatar Mar 09 '19 13:03 outlawx

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?

the-w1nd avatar Mar 09 '19 21:03 the-w1nd

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".

diizzyy avatar Mar 10 '19 00:03 diizzyy

why this became so low quality? are developers aware of the problem? how many packages else are missing?

darkblaze69 avatar Mar 10 '19 06:03 darkblaze69

@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

outlawx avatar Mar 10 '19 14:03 outlawx

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!

the-w1nd avatar Mar 10 '19 14:03 the-w1nd

HI, I have the same problem: the nfs-kernel-server package is missing from repo. Any idea when it will be included again?

fabrizio2210 avatar Mar 16 '19 07:03 fabrizio2210