cannot sync: database is locked
I noticed that if I try to launch Geary immediately at startup, it fails to sync almost always.
It appears an Account problem message in the top bar. When I click on details I see this log:
Account identifier: account_01
Account provider: GEARY_SERVICE_PROVIDER_OTHER
Service type: GEARY_PROTOCOL_IMAP
Service host: mail.autistici.org
Error type: GearyDatabaseError 2
Message: (Connection.exec /home/fede/.local/share/geary/account_01/geary.db) [err=5] - database is locked (PRAGMA synchronous=normal)
Back trace:
* geary_error_context_new
* geary_problem_report_construct
* geary_account_problem_report_construct
* geary_service_problem_report_construct
* geary_service_problem_report_new
* geary_imap_engine_refresh_folder_sync_real_execute_co
* geary_imap_engine_refresh_folder_sync_execute_ready
* g_subprocess_communicate_utf8
* g_task_attach_source
* geary_imap_engine_check_folder_sync_real_sync_folder_co
* geary_imap_engine_check_folder_sync_sync_folder_ready
* g_subprocess_communicate_utf8
* g_task_attach_source
* geary_imap_db_folder_detach_emails_before_timestamp_co
* geary_imap_db_folder_detach_emails_before_timestamp_ready
* g_subprocess_communicate_utf8
* g_task_attach_source
* geary_db_database_exec_transaction_async_co
* geary_db_database_exec_transaction_async_ready
* g_subprocess_communicate_utf8
* g_task_attach_source
* geary_db_transaction_async_job_wait_for_completion_async_co
* geary_db_transaction_async_job_wait_for_completion_async_ready
* g_subprocess_communicate_utf8
* g_task_attach_source
* geary_nonblocking_lock_real_wait_async_co
* _geary_nonblocking_lock_real_wait_async_co_gsource_func
* geary_scheduler_scheduled_instance_on_callback
* _geary_scheduler_scheduled_instance_on_callback_gsource_func
* g_clear_list
* g_main_context_dispatch
* g_main_context_dispatch
* g_main_context_iteration
* g_application_run
* _vala_main
* main
* __libc_start_main
* _start
Geary was started from GNOME shell and this is the running command:
/usr/local/bin/geary --gapplication-service
Self-compiled version:
$ geary --version
geary: 3.37.1