afpd's CNID DB fails after upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netatalk (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
1) Description: Ubuntu 11.10
Release: 11.10
2) netatalk:
Installed: 2.2~beta4-1
Candidate: 2.2~beta4-1
3) netaltalk shares would be accessible after upgraded ubuntu distribution.
4) netatalk clients (mac os x) fails to access the shares after upgrade. Error seem to be in netatalk or dbd.
Oct 20 21:42:19 g5 afpd[6044]: AFP3.3 Login by air
Oct 20 21:42:22 g5 cnid_dbd[6045]: Set syslog logging to level: LOG_NOTE
Oct 20 21:42:28 g5 cnid_dbd[6052]: Set syslog logging to level: LOG_NOTE
Oct 20 21:42:29 g5 cnid_dbd[6052]: error opening DB environment: DB_RUNRECOVERY: Fatal error, run database recovery
Oct 20 21:42:29 g5 afpd[6044]: read: Connection reset by peer
Oct 20 21:42:29 g5 afpd[6044]: dbd_rpc: Error reading header from fd (db_dir /mnt): Connection reset by peer
Verifying the CNID db on the share causes dbd to fail:
root@g5:~# dbd -sv /mnt/
Oct 20 21:48:02.472172 [6082] {logger.c:407} (D5:Logger): Setup file logging: type: Default, level: LOG_DEBUG, file: /dev/tty
Oct 20 21:48:02.594297 [6082] {dbif.c:520} (D5:CNID): See if we can upgrade the CNID database...
Oct 20 21:48:02.684581 [6082] {dbif.c:537} (D5:CNID): Finished BerkeleyBD upgrade check
Oct 20 21:48:02.692990 [6082] {dbif.c:140} (D5:CNID): CNID database version 0
Oct 20 21:48:07.591424 [6082] {dbif.c:648} (E:CNID): Failed to associate name index: Cannot allocate memory
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: netatalk 2.2~beta4-1
ProcVersionSign
Uname: Linux 3.0.0-12-generic x86_64
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
Date: Thu Oct 20 21:35:43 2011
ProcEnviron:
LANGUAGE=
LC_CTYPE=UTF-8
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: netatalk
UpgradeStatus: Upgraded to oneiric on 2011-10-19 (0 days ago)
modified.
mtime.conffile.
Upgrading to netaltalk 2.2.1 from source fixed the problem, so it's likely related to 2.2-beta.