[OpenAFS] Debian install problem: ptserver won't start

Scott Fritzinger scottf@unr.edu
Tue, 19 Apr 2005 15:44:28 -0700


All,

I'm having a "bang your head against a wall" problem when installing
OpenAFS on Debian from the Debian repository.

I am installing it on a box with FQDN of 'server.domain.com' (changed,
of course). This box is a multi-homed machine; each ip address resolves
to the appropriate FQDN (more info on that at the bottom of this email)

First, I made sure that my hosts file is correct to avoid the loopback
device problem:

192.168.0.101	server.domain.com	server

The hostname is set to 'server'. Pinging 'server' results in a ping to
'server.domain.com (192.168.0.101)'

I am following the install instructions at
http://www.scode.org/afs/openafs-install.txt , step-by-step.

$ apt-get install krb5-admin-server krb5-doc krb5-kdc
	- 'DOMAIN.COM' is the default realm.
	- 'nopreauth' is the krb4 compatibility setting.
	- 'server.domain.com' is the krb server
$ krb5_newrealm
	- I type in the master key
$ kadmin.local -q "addprinc -randkey afs"
	- Principal "afs@domain.com" is created
$ kadmin.local -q "ktadd -e des-cbc-crc:afs3 afs"
	- kvno = 3, written to the keytab
$ apt-get install openafs-krb5 openafs-fileserver openafs-dbserver
	- 'domain.com' is the cell name
	- 50000 is the AFS cache size
	- don't auto-generate /afs contents
	- 'server' is the DB server
	- don't run client now or at boot
$ /etc/init.d/openafs-fileserver
	(added: need to stop the bosserver run after installation)
$ asetkey add 3 /etc/krb5.keytab afs
$ bosserver -noauth &
	- Verified that bosserver is running in process list
$ bos listhosts server -noauth
	- Output:
		Cell name is domain.com
		bos: failed to get cell host 0 (could not find entry)
	- The 2nd line worries me. Is that a problem?
$ bos create -server server -instance ptserver -type simple \
   -cmd /usr/lib/openafs/ptserver -cell domain.com -noauth
$ kadmin.local -q "addprinc admin"
	- Output:
		Principal "admin@DOMAIN.COM" created
$ bos adduser server admin -cell domain.com -noauth
$ bos listkeys server -cell domain.com -noauth
	- Output:
		key 3 has cksum 893926614
		Keys last changed on Tue Apr 19 17:18:45 2005.
		All done.
$ pts createuser -name admin -cell domain.com -noauth

This is where the error is. pts will hang, and come back with:
> pts: server or network not responding ; unable to create user admin

Checking BosLog reveals:
Tue Apr 19 17:22:27 2005: Server directory access is okay
Tue Apr 19 17:22:58 2005: ptserver exited with code 2
Tue Apr 19 17:22:58 2005: ptserver exited with code 2
Tue Apr 19 17:22:58 2005: ptserver exited with code 2
Tue Apr 19 17:22:58 2005: ptserver exited with code 2
Tue Apr 19 17:22:58 2005: ptserver exited with code 2
Tue Apr 19 17:22:58 2005: ptserver exited with code 2
Tue Apr 19 17:22:58 2005: ptserver exited with code 2
Tue Apr 19 17:22:58 2005: ptserver exited with code 2
Tue Apr 19 17:22:58 2005: ptserver exited with code 2
Tue Apr 19 17:22:58 2005: ptserver exited with code 2
Tue Apr 19 17:22:58 2005: ptserver exited with code 2
Tue Apr 19 17:22:58 2005: ptserver exited with code 2
Tue Apr 19 17:22:58 2005: BNODE 'ptserver' repeatedly failed to start,
perhaps missing executable.
Tue Apr 19 17:22:58 2005: ptserver exited with code 2
Tue Apr 19 17:22:58 2005: BNODE 'ptserver' repeatedly failed to start,
perhaps missing executable.

So, ptserver couldn't be run at all. In the guide I'm following, he
mentioned to make sure that 'hostname' matches the server that was used
during installation. It does match (hostname returns 'server'). He then
mentions that is will try to resolve it; ping will resolve it, and using
nslookup resolves it as well. As mentioned at the beginning, this is a
multi-homed machine, but DNS is set up appropriately:

$ nslookup server
[snip]
Name: server.domain.com
Address: 192.168.0.101

Any ideas? I just can't get ptserver to run and am unsure as to what
'code 2' means.

Thank you for any help in advance!

-Scott