[OpenAFS] Start of afsd fails with "afsd: Error -1 in basic initialization."

Benjamin Kaduk kaduk@MIT.EDU
Wed, 10 Feb 2016 11:27:16 -0500 (EST)

On Wed, 10 Feb 2016, Karl-Philipp Richter wrote:

> Hi,
> Starting `sudo /usr/local/sbin/afsd` after installing in default prefix on
> Ubuntu 15.10 with Linux 4.3.3 fails with `afsd: Error -1 in basic
> initialization.`. In `config.log` I see that `sysname` is `amd64_linux26` and
> [I
> found](https://lists.openafs.org/pipermail/openafs-info/2004-November/015432.html)
> that if `sysname` is wrongly detected by `configure` similar errors might
> occur. Can you confirm that this is the right `sysname`. In case it isn't
> which one would be the correct one (`configure --help` doesn't list
> possiblities).
> I also detected with `stract` that `afsd` tries to open files in `/proc/`
> which don't exist.
>    SScall(183, 28, 0)=-1 open("/proc/fs/openafs/afs_ioctl", O_RDWR) = -1
> ENOENT (No such file or directory)
>    open("/proc/fs/nnpfs/afs_ioctl", O_RDWR) = -1 ENOENT (No such file or
> directory)
> Only `/proc/fs/afs/cells` and `/proc/fs/afs/rootcell` exist with similar name.
> There're no system packages installed and OpenAFS and kerberos (in case that
> matters) are installed from source (OpenAFS
> openafs-devel-1_5_76-4781-ged52d65) and `lsmod | grep afs` shows:
>    kafs                  106496  0
>    af_rxrpc              102400  3 kafs
>    fscache                61440  1 kafs

Those are from the in-tree kafs provider, which is completely unrelated to
openafs.  I would expect that trying to run both that and openafs at the
same time would end poorly.

The sort of "Error -1 in basic initialization" generally leads me to
suspect that libafs.ko (from openafs) is not loaded, which indeed seems to
be the case.  Did you install openafs-modules-dkms and/or some other
openafs-modules package?