Upgrade from Karmic to Lucid leaves broken netatalk caches

Bug #555917 reported by barberio
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
netatalk (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Lucid by barberio

Bug Description

Binary package hint: netatalk

The upgrade from Karmic to Lucid leaves behind the .AppleDB metadata store in the shares, used by afpd for metadata. The bdb version for this metadata has changed again, and the new version of netatalk can not read the old data, and will return error messages on attempts to access shares with old metadata caches.

The work-around is to delete these caches manually.

But it would be preferable for the install package to either
  * Scan for shares, and upgrade the metadata stores,
  * Scan for shares, and delete the metadata stores.
  * Notify the user of the need to upgrade/manually delete metadata stores.

This is an old bug (http://lists.apple.com/archives/macosx-interop/2007/Jul/msg00002.html) that keeps coming up every time netatalk is compiled against a different version of bdb.

Revision history for this message
franklahm (franklahm-googlemail) wrote :

Note 1:
.AppleDB is NOT a cache, but instead it's the place where a consistent filename/dirname <-> CNID mapping is stored. Delete it, every file/dir will be assigned a new and different CNID, such that a) Aliases will loose their ability to maintain reference to the original in case the original is moved and b) linked documents (eg. InDesign/Quark) loose the same coupling leaving only the path relationship to resolve the link.

Note 2:
The internal metadata format is a term that only makes sense in relation to the data in the .AppleDouble directories, and this too has NOT changed. What probably has changed is that Netatalk in lucid links against a newer version of BerkeleyDB then the one in Karmic. Unfortunately solving this upgrade problem is difficult with Netatalk 2.0.x. Some instructions can be found in the Netatalk Wiki:
<https://sourceforge.net/apps/mediawiki/netatalk/index.php?title=Upgrading_BerkeleyDB>

Starting with the upcoming version 2.1 Netatalk will be able to upgrade its databases without manual intervention.

HTH, Frank
Netatalk Developer, Consulting and Services
<http://www.netafp.com/>

Revision history for this message
barberio (barberio) wrote :

Any chance of this being backported to 2.0 in time for Lucid's release?

Revision history for this message
franklahm (franklahm-googlemail) wrote :

Sorry, no chance, too involved.

The final release of 2.1 is scheduled end of April. Any chance to pick that up in Lucid?

Revision history for this message
barberio (barberio) wrote :

Feature freeze was on February 18th. https://wiki.ubuntu.com/LucidReleaseSchedule

Revision history for this message
franklahm (franklahm-googlemail) wrote :

Too bad. Lucid is gonna miss an important Netatalk release.

Revision history for this message
barberio (barberio) wrote :

A quickly hacked together db upgrade script based on cnid_maint, goes through each defined share and updates *.db in .Apple_DB

No verification, and it might lose data if the database was in a bad state before the upgrade.

barberio (barberio)
description: updated
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

Bug attachments

Remote bug watches

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