Bug 727746

Summary: Can't Migration Mail from 2.30 -> 3.0.2
Product: [Fedora] Fedora Reporter: Alexander J. Maidak <ajmaidak>
Component: evolutionAssignee: Matthew Barnes <mbarnes>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: lucilanga, mbarnes, mcrha
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-04 05:53:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alexander J. Maidak 2011-08-03 05:32:39 UTC
Description of problem:
I exported my email from a F13 system using the evolution backup utility.

I then imported the evolution.tar.gz backup file into evolution 3.0.2 using the evolution UI.

Evolution untar'ed the file and then asked me to convert to maildir.  I said yes and evolution ran the conversion then attempted to restart.  Evolution now will not start.

Version-Release number of selected component (if applicable):

evolution-3.0.2-3.fc15.i686 

How reproducible: Attempt to import my evolution.tar.gz tarball into evolution.

Steps to Reproduce:
1.
2.
3.
  
Actual results:
Evolution hangs on start with this stack:
[ajmaidak@antec ~]$ date
Wed Aug  3 00:32:01 CDT 2011
[ajmaidak@antec ~]$ ps -ef|grep evolution
ajmaidak  9918     1  4 Aug02 ?        00:05:50 evolution
ajmaidak 10446  1998  0 00:32 pts/0    00:00:00 grep --color=auto evolution
[ajmaidak@antec ~]$ pstack 9918
Thread 2 (Thread 0xb75a6b70 (LWP 9922)):
#0  0x00940424 in __kernel_vsyscall ()
#1  0x02974b9e in poll () from /lib/libc.so.6
#2  0x040f7aac in g_poll () from /lib/libglib-2.0.so.0
#3  0x040e8c36 in ?? () from /lib/libglib-2.0.so.0
#4  0x040e9457 in g_main_loop_run () from /lib/libglib-2.0.so.0
#5  0x03720032 in ?? () from /lib/libgio-2.0.so.0
#6  0x04110535 in ?? () from /lib/libglib-2.0.so.0
#7  0x0061a9fe in start_thread () from /lib/libpthread.so.0
#8  0x0297f24e in clone () from /lib/libc.so.6
Thread 1 (Thread 0xb77c0890 (LWP 9918)):
#0  0x00940424 in __kernel_vsyscall ()
#1  0x029443c6 in nanosleep () from /lib/libc.so.6
#2  0x0297866d in usleep () from /lib/libc.so.6
#3  0x006517a3 in ?? () from /usr/lib/libsqlite3.so.0
#4  0x0064ded1 in ?? () from /usr/lib/libsqlite3.so.0
#5  0x0064bfa9 in ?? () from /usr/lib/libsqlite3.so.0
#6  0x0065660e in ?? () from /usr/lib/libsqlite3.so.0
#7  0x0067c8a4 in ?? () from /usr/lib/libsqlite3.so.0
#8  0x0068b67f in ?? () from /usr/lib/libsqlite3.so.0
#9  0x00698f97 in ?? () from /usr/lib/libsqlite3.so.0
#10 0x0069dcfe in sqlite3_step () from /usr/lib/libsqlite3.so.0
#11 0x006a332d in sqlite3_exec () from /usr/lib/libsqlite3.so.0
#12 0x004112c2 in camel_db_select () from /usr/lib/libcamel-1.2.so.23
#13 0x004123f3 in camel_db_read_message_info_record_with_uid () from /usr/lib/libcamel-1.2.so.23
#14 0x0021fac9 in ?? () from /usr/lib/libcamel-provider-1.2.so.23
#15 0x0021930f in camel_folder_summary_uid () from /usr/lib/libcamel-provider-1.2.so.23
#16 0x00259e60 in camel_vee_summary_add () from /usr/lib/libcamel-provider-1.2.so.23
#17 0x002532e9 in ?? () from /usr/lib/libcamel-provider-1.2.so.23
#18 0x040d7674 in g_hash_table_foreach () from /lib/libglib-2.0.so.0
#19 0x00256704 in ?? () from /usr/lib/libcamel-provider-1.2.so.23
#20 0x00256a30 in ?? () from /usr/lib/libcamel-provider-1.2.so.23
#21 0x0025477a in camel_vee_folder_add_folder () from /usr/lib/libcamel-provider-1.2.so.23
#22 0x002468b8 in ?? () from /usr/lib/libcamel-provider-1.2.so.23
#23 0x03aa4e93 in ?? () from /usr/lib/evolution-data-server/camel-providers/libcamellocal.so
#24 0x002491ad in camel_store_get_folder_sync () from /usr/lib/libcamel-provider-1.2.so.23
#25 0x0024a8de in camel_store_get_trash_folder_sync () from /usr/lib/libcamel-provider-1.2.so.23
#26 0x03ec1cd8 in ?? () from /usr/lib/evolution/3.0/libevolution-mail.so.0
#27 0x03ec229d in e_mail_store_init () from /usr/lib/evolution/3.0/libevolution-mail.so.0
#28 0x03eb220c in e_mail_migrate () from /usr/lib/evolution/3.0/libevolution-mail.so.0
#29 0x00518dd1 in e_shell_backend_migrate () from /usr/lib/evolution/3.0/libeshell.so.0
#30 0x0052be90 in e_shell_migrate_attempt () from /usr/lib/evolution/3.0/libeshell.so.0
#31 0x08049cd2 in ?? ()
#32 0x028be413 in __libc_start_main () from /lib/libc.so.6
#33 0x0804a009 in ?? ()




Expected results:
Evolution starts up and I can read my mail.

Additional info:

Comment 1 Milan Crha 2011-08-03 07:26:18 UTC
Thanks for a bug report. Fedora 13 contained evolution 2.30, thus I'm adjusting summary. The backtrace, even not with debug symbols, shows an issue with the underlying sqlite DB summary. Either it is broken, or there is missing a migration routine between these versions. Either way, you can fix it by moving away all folders.db files from ~/.evolution and ~/.local/share/evolution, which will lead to a recreation of these the next start. You can probably delete them, as you have them stored in the backup.

Please let me know whether it helped.

Comment 2 Alexander J. Maidak 2011-08-04 00:25:15 UTC
I did this:

[ajmaidak@antec evolution]$ pwd
/home/ajmaidak/.local/share/evolution
[ajmaidak@antec evolution]$ find . -name *folders.db -ls
1998860 36604 -rw-r--r--   1 ajmaidak ajmaidak 37437440 Aug  2 22:28 ./mail/local/folders.db
1000664 77912 -rw-r--r--   1 ajmaidak ajmaidak 79694848 Aug  2 21:33 ./mail/local_mbox/folders.db
1000889    8 -rw-r--r--   1 ajmaidak ajmaidak     3072 Aug  1  2009 ./mail/pop/ajmaidak@pop.gmail.com/folders.db
1001141    8 -rw-r--r--   1 ajmaidak ajmaidak     3072 Aug  1  2009 ./mail/pop/maidak.alex.com/folders.db
1000957    8 -rw-r--r--   1 ajmaidak ajmaidak     3072 Aug  1  2009 ./mail/pop/ajmaidak.com/folders.db
1001305  120 -rw-r--r--   1 ajmaidak ajmaidak   113664 Jul 27 22:28 ./mail/vfolder/folders.db
[ajmaidak@antec evolution]$ find . -name *folders.db -exec rm {} \;

and now evolution works again.

THANKS!  First time I've read my email in a week :).

Comment 3 Milan Crha 2011-08-04 05:53:23 UTC
Thanks for the update. I happy it helped. I'm closing this as WorksForMe (I would use "fixed", but it's not in the list).