Coda File System

Re: Error when starting updated coda-server 5.3.20

From: Jan Harkes <jaharkes_at_cs.cmu.edu>
Date: Mon, 23 Dec 2002 10:08:28 -0500
On Mon, Dec 23, 2002 at 03:31:24PM +0100, Florian Schaefer wrote:
> On Mon, 23 Dec 2002 09:19:52 -0500, Jan Harkes said:
> 
> > That is the user/group database file. It should be db1.85 format, but if
> > you are running a recent glibc (i.e. debian unstable) they seem to have
> > completely dropped support for it. It is not even found in oldlibs
> > anymore.
> 
> That doesn't sound good (but it would explain why reverting to the older
> coda-server rpm didn't help either). I'm running a RH7.1 system here with
> the latest glibc 2.3.1 from rawhide.
> 
> But I seem to have a db1.85:
> 
> root_at_floyd:~ # rpm -q db1 
> db1-1.85-5
> root_at_floyd:~ # rpm -ql db1 
> /usr/bin/db1_dump185
> /usr/lib/libdb.so.2
> /usr/lib/libdb1.so.2
> root_at_floyd:~ # ldconfig -p | grep libdb
> 	libdb.so.3 (libc6) => /usr/lib/libdb.so.3
> 	libdb.so.2 (libc6) => /usr/lib/libdb.so.2
> 	libdb-4.0.so (libc6) => /lib/libdb-4.0.so
> 	libdb-3.1.so (libc6) => /lib/libdb-3.1.so
> 
> > What happens if you run 'pdbtool list', same error?
> 
> root_at_floyd:~ # pdbtool list
> Error opening /vice/db/prot_users.db: Invalid argument
> 
> Yes, I get the same error.
> 
> Do I have any chance to get coda to work with this setup?

Yes, the simplest might be to rebuild the RPMS for your machine,

Get the following source rpms from ftp.coda,

    /pub/lwp/redhat-linux/SRPMS/lwp-1.10-1.src.rpm
    /pub/rpc2/redhat-linux/SRPMS/rpc2-1.14-1.src.rpm
    /pub/rvm/redhat-linux/SRPMS/rvm-1.7-1.src.rpm
    /pub/coda/linux/SRPMS/coda-debug-5.3.20-1.src.rpm

Then (as root) do,

    rpm --rebuild lwp-1.10-1.src.rpm
    rpm -Uhv /usr/src/redhat/i386/lwp*

    rpm --rebuild rpc2-1.14-1.src.rpm
    rpm --rebuild rvm-1.7-1.src.rpm
    rpm -Uhv /usr/src/redhat/i386/rpc2*
    rpm -Uhv /usr/src/redhat/i386/rvm*

    rpm --rebuild coda-debug-5.3.20-1.src.rpm

And you'll have the coda-debug-{client,server}-5.3.20-1.i386.rpm files
in /usr/src/redhat/i386.

However, I should figure out what is wrong with the rpms you installed.
And finding that problem might end up less work on your side.
    Which rpms did you install? 
    Can you send me the output of ldd /usr/sbin/pdbtool

You could also send me a tarball with the user and group databases. I
can probably export the user and group from them with a correctly linked
version of pdbtool which you can then import into a clean database.

Jan
Received on 2002-12-23 10:11:18