afpd's CNID DB fails after upgrade

Bug #879020 reported by Jan Nylund
18
This bug affects 4 people
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
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
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=en_US.UTF-8
 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.conffile..etc.netatalk.AppleVolumes.default: [modified]
mtime.conffile..etc.netatalk.AppleVolumes.default: 2011-10-20T01:32:00.758492

Revision history for this message
Jan Nylund (jan-nylund) wrote :
Revision history for this message
Jan Nylund (jan-nylund) wrote :

Upgrading to netaltalk 2.2.1 from source fixed the problem, so it's likely related to 2.2-beta.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in netatalk (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.