Comment 11 for bug 1059233

Revision history for this message
Iain Lane (laney) wrote :

I tracked this down to a failure to open the sqlite3 DB in libaccounts-glib (ag-manager.c)

,----
| ret = sqlite3_open (filename, &priv->db);
| g_free (filename);
|
| if (ret != SQLITE_OK)
| {
| if (priv->db)
| {
| g_warning ("Error opening accounts DB: %s",
| sqlite3_errmsg (priv->db));
| sqlite3_close (priv->db);
| priv->db = NULL;
| }
| return FALSE;
| }
`----

and constructed a C program to reproduce it (attached). Modify the URL to match
yours and compile with

,----
| gcc -g `pkg-config --cflags sqlite3` test.c `pkg-config --libs sqlite3`
`----

You'll see that it fails to open and gives an error. In my case it returned 14
(unable to open file). Then if you change sqlite3_open to sqlite3_open16 you'll
be able to open the file again.

I'm going to try making this change in libaccounts-glib now.