Public bug reported:

Binary package hint: evolution

After upgrading to Natty following the Beta 1 release, my local contacts
were not correctly migrated.

After the upgrade I could not access two of my three addressbooks.  The
"Personal" addressbook was accessible, however my older "Palm Contacts"
(legacy data)  and "Autocompleted" (used by the plugin) did not migrate.
They had entries in Evolution, but resulted in URI error below.

This address book cannot be opened. This either means that an incorrect URI was 
entered, or the server is unreachable.
Detailed error message: Invalid source

Initially thought was related to bug 752468, but I know now is a result
of this incorrect migration.  Looking at the URI/sources I had the
following entries with the broken addressbooks/contact lists.

imac@repo:~$ gconftool-2 --get /apps/evolution/addressbook/sources 
[<?xml version="1.0"?>
<group uid="1227068757.7280.2@repo" name="Google" base_uri="google://" 
readonly="no"/>
,<?xml version="1.0"?>
<group uid="1227068757.7280.3@repo" name="WebDAV" base_uri="webdav://" 
readonly="no"/>
,<?xml version="1.0"?>
<group uid="1227068758.7280.4@repo" name="On This Computer" base_uri="local:" 
readonly="no"><source uid="[email protected]" 
name="Autocompleted" 
uri="file:///home/imac/.evolution/addressbook/local/[email protected]"
 
relative_uri="[email protected]"><properties><property
 name="use-in-contacts-calendar" value="0"/></properties></source><source 
uid="[email protected]" name="Personal" 
relative_uri="system"><properties><property name="use-in-contacts-calendar" 
value="0"/><property name="remember_password" 
value="false"/></properties></source><source 
uid="[email protected]" name="Palm Contacts" 
uri="file:///home/imac/.evolution/addressbook/local/[email protected]"
 
relative_uri="[email protected]"><properties><property
 name="use-in-contacts-calendar" value="0"/><property name="pilot-sync" 
value="true"/></properties></source></group>
,<?xml version="1.0"?>
<group uid="1227068758.7280.6@repo" name="On LDAP Servers" base_uri="ldap://"; 
readonly="no"/>
,<?xml version="1.0"?>
<group uid="[email protected]" name="CouchDB" 
base_uri="couchdb://" readonly="no"><source 
uid="[email protected]" name="Ubuntu One" 
relative_uri="127.0.0.1"><properties><property name="couchdb_instance" 
value="user"/><property name="remember_password" 
value="false"/></properties></source></group>
]
 
I know from reviewing this related bug comment that the above sources (uri=) 
were not correctly modified, except for the "Personal" where uri="system".

https://bugzilla.gnome.org/show_bug.cgi?id=632962#c7

based on this comment I executed a python script designed to fix this problem, 
found here:
http://www.gentoo.org/proj/en/desktop/gnome/howtos/gnome-2.32-upgrade.xml 

The fix-addressbook.py script worked after I changed the permissions for
execution, and by modifying the first line to match the local python2.7
interpreter path.

The same output now looks like below, and my contacts are totally
accessible.

imac@repo:~$ ./fix-addressbook.py 
Removing deprecated attribute from source 2 [Autocompleted]
Removing deprecated attribute from source 2 [Palm Contacts]
imac@repo:~$ gconftool-2 --get /apps/evolution/addressbook/sources 
[<?xml version="1.0"?>
<group uid="1227068757.7280.2@repo" name="Google" base_uri="google://" 
readonly="no"/>
,<?xml version="1.0"?>
<group uid="1227068757.7280.3@repo" name="WebDAV" base_uri="webdav://" 
readonly="no"/>
,<?xml version="1.0"?>
<group base_uri="local:" name="On This Computer" readonly="no" 
uid="1227068758.7280.4@repo"><source name="Autocompleted" 
relative_uri="[email protected]" 
uid="[email protected]"><properties><property 
name="use-in-contacts-calendar" value="0" /></properties></source><source 
name="Personal" relative_uri="system" 
uid="[email protected]"><properties><property 
name="use-in-contacts-calendar" value="0" /><property name="remember_password" 
value="false" /></properties></source><source name="Palm Contacts" 
relative_uri="[email protected]" 
uid="[email protected]"><properties><property 
name="use-in-contacts-calendar" value="0" /><property name="pilot-sync" 
value="true" /></properties></source></group>
,<?xml version="1.0"?>
<group uid="1227068758.7280.6@repo" name="On LDAP Servers" base_uri="ldap://"; 
readonly="no"/>
,<?xml version="1.0"?>
<group uid="[email protected]" name="CouchDB" 
base_uri="couchdb://" readonly="no"><source 
uid="[email protected]" name="Ubuntu One" 
relative_uri="127.0.0.1"><properties><property name="couchdb_instance" 
value="user"/><property name="remember_password" 
value="false"/></properties></source></group>

FYI, I backed everything up before even starting my upgrade;  YMMV on
this workaround.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: evolution 2.32.2-0ubuntu6
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelModules: fglrx
Architecture: amd64
Date: Thu Apr 14 14:53:09 2011
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: evolution
UpgradeStatus: Upgraded to natty on 2011-04-06 (8 days ago)

** Affects: evolution (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug natty running-unity

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to evolution in Ubuntu.
https://bugs.launchpad.net/bugs/761037

Title:
  Evolution failed to properly migrate Local Contacts during 2.32
  (Natty) Upgrade

-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to