Closed Bug 718226 Opened 14 years ago Closed 14 years ago

Unable to Sync -- onSynchronizeFailed: Got store error -- Aborting sync: Got store error.

Categories

(Firefox for Android Graveyard :: Android Sync, defect, P1)

ARM
Android

Tracking

(blocking-fennec1.0 beta+, fennec11+)

RESOLVED WORKSFORME
Tracking Status
blocking-fennec1.0 --- beta+
fennec 11+ ---

People

(Reporter: aaronmt, Unassigned)

References

Details

(Whiteboard: sync)

STR: 1. Setup Sync 2. Start up Nightly 3. Visit a site while Syncing is occuring in background D/AndroidBrowserRepositorySession( 3804): Record from mirror cursor: places D/AndroidBrowserRepositorySession( 3804): Ignoring places record in recordFromMirrorCursor. D/AndroidBrowserRepositorySession( 3804): Searching with record string nullfoldernull D/AndroidBrowserRepositorySession( 3804): findExistingRecord failed to find one for places D/AndroidBrowserRepositorySession( 3804): Inserting folder places, with parent 5 (qSpqBK9egqu0, null, null) D/GeckoBrowserProvider( 3804): Calling insert on URI: content://org.mozilla.fennec.db.browser/bookmarks?sync=true&show_deleted=true D/GeckoBrowserProvider( 3804): Getting writable database for URI: content://org.mozilla.fennec.db.browser/bookmarks?sync=true&show_deleted=true D/GeckoBrowserProvider( 3804): Beginning insert transaction: content://org.mozilla.fennec.db.browser/bookmarks?sync=true&show_deleted=true D/GeckoBrowserProvider( 3804): Calling insert in transaction on URI: content://org.mozilla.fennec.db.browser/bookmarks?sync=true&show_deleted=true D/GeckoBrowserProvider( 3804): Getting writable database for URI: content://org.mozilla.fennec.db.browser/bookmarks?sync=true&show_deleted=true D/GeckoBrowserProvider( 3804): Insert on BOOKMARKS: content://org.mozilla.fennec.db.browser/bookmarks?sync=true&show_deleted=true D/GeckoBrowserProvider( 3804): Extracting image values for URI: null D/GeckoBrowserProvider( 3804): Inserting bookmark in database with URL: null E/AndroidBrowserRepositorySession( 3804): Store failed for places E/AndroidBrowserRepositorySession( 3804): android.database.sqlite.SQLiteConstraintException: error code 19: constraint failed E/AndroidBrowserRepositorySession( 3804): at android.database.sqlite.SQLiteStatement.native_executeInsert(Native Method) E/AndroidBrowserRepositorySession( 3804): at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:113) E/AndroidBrowserRepositorySession( 3804): at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1718) E/AndroidBrowserRepositorySession( 3804): at android.database.sqlite.SQLiteDatabase.insertOrThrow(SQLiteDatabase.java:1617) E/AndroidBrowserRepositorySession( 3804): at org.mozilla.fennec.db.BrowserProvider.insertInTransaction(BrowserProvider.java:708) E/AndroidBrowserRepositorySession( 3804): at org.mozilla.fennec.db.BrowserProvider.insert(BrowserProvider.java:658) E/AndroidBrowserRepositorySession( 3804): at android.content.ContentProvider$Transport.insert(ContentProvider.java:189) E/AndroidBrowserRepositorySession( 3804): at android.content.ContentResolver.insert(ContentResolver.java:730) E/AndroidBrowserRepositorySession( 3804): at org.mozilla.gecko.sync.repositories.android.AndroidBrowserRepositoryDataAccessor.insert(AndroidBrowserRepositoryDataAccessor.java:106) E/AndroidBrowserRepositorySession( 3804): at org.mozilla.gecko.sync.repositories.android.AndroidBrowserBookmarksRepositorySession.insert(AndroidBrowserBookmarksRepositorySession.java:359) E/AndroidBrowserRepositorySession( 3804): at org.mozilla.gecko.sync.repositories.android.AndroidBrowserRepositorySession$1.run(AndroidBrowserRepositorySession.java:386) E/AndroidBrowserRepositorySession( 3804): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) E/AndroidBrowserRepositorySession( 3804): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) E/AndroidBrowserRepositorySession( 3804): at java.lang.Thread.run(Thread.java:856) D/GeckoLayerController( 3804): setViewportSize: v=RectF(0.0, 0.0, 480.0, 690.0) p=(689.99994,992.05096) z=0.7040816 o=0.0,0.0 D/ConcurrentRecordConsumer( 3804): Record stored. Notifying. I/System.out( 3804): WARN: First RecordsChannel flow failed. W/SynchronizerSession( 3804): First RecordsChannel flow failed. I/ServerSyncStage( 3804): onSynchronizeAborted. W/GlobalSession( 3804): Aborting sync: Synchronization was aborted. D/GeckoPanZoomController( 3804): generating valid viewport using v=RectF(0.0, 0.0, 480.0, 690.0) p=(689.99994,992.05096) z=0.7040816 o=0.0,0.0 I/SyncAdapter( 3804): GlobalSession indicated error. Flagging auth token as invalid, just in case. D/GeckoPanZoomController( 3804): generated valid viewport as v=RectF(0.0, 0.0, 480.0, 690.0) p=(689.99994,992.05096) z=0.7040816 o=0.0,0.0 D/GeckoLayerController( 3804): setViewportMetrics: v=RectF(0.0, 0.0, 480.0, 690.0) p=(689.99994,992.05096) z=0.7040816 o=0.0,0.0 I/SyncAdapter( 3804): Notifying sync monitor. I/ServerSyncStage( 3804): onSynchronizeFailed: Got store error. W/GlobalSession( 3804): Aborting sync: Got store error. W/GlobalSession( 3804): android.database.sqlite.SQLiteConstraintException: error code 19: constraint failed W/GlobalSession( 3804): at android.database.sqlite.SQLiteStatement.native_executeInsert(Native Method) W/GlobalSession( 3804): at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:113) W/GlobalSession( 3804): at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1718) W/GlobalSession( 3804): at android.database.sqlite.SQLiteDatabase.insertOrThrow(SQLiteDatabase.java:1617) W/GlobalSession( 3804): at org.mozilla.fennec.db.BrowserProvider.insertInTransaction(BrowserProvider.java:708) W/GlobalSession( 3804): at org.mozilla.fennec.db.BrowserProvider.insert(BrowserProvider.java:658) W/GlobalSession( 3804): at android.content.ContentProvider$Transport.insert(ContentProvider.java:189) W/GlobalSession( 3804): at android.content.ContentResolver.insert(ContentResolver.java:730) W/GlobalSession( 3804): at org.mozilla.gecko.sync.repositories.android.AndroidBrowserRepositoryDataAccessor.insert(AndroidBrowserRepositoryDataAccessor.java:106) W/GlobalSession( 3804): at org.mozilla.gecko.sync.repositories.android.AndroidBrowserBookmarksRepositorySession.insert(AndroidBrowserBookmarksRepositorySession.java:359) W/GlobalSession( 3804): at org.mozilla.gecko.sync.repositories.android.AndroidBrowserRepositorySession$1.run(AndroidBrowserRepositorySession.java:386) W/GlobalSession( 3804): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) W/GlobalSession( 3804): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) W/GlobalSession( 3804): at java.lang.Thread.run(Thread.java:856) I/SyncAdapter( 3804): GlobalSession indicated error. Flagging auth token as invalid, just in case. I/SyncAdapter( 3804): Notifying sync monitor. Any way to get more logging? -- Samsung Nexus S (Android 4.0.3) Mozilla/5.0 (Android; Linux armv7l; rv:12.0a1) Gecko/20120114 Firefox/12.0a1 Fennec/12.0a1
Thanks for the report, Aaron. If you don't mind sharing the contents of your bookmarks, the following would help: * On desktop Firefox connected to this account, open about:config * Open the Web Console (Cmd-Opt-K on Mac) * Paste the following: //// Components.utils.import("resource://services-sync/main.js"); Components.utils.import("resource://services-sync/record.js"); let recordType = Weave.Engines.get("bookmarks")._recordObj; let coll = new Collection(Weave.Service.storageURL + "bookmarks", recordType); coll.full = true; coll.recordHandler = function(item) { item.collection = "bookmarks"; item.decrypt(); console.log(item.cleartext); }; coll.get(); //// * Copy and paste the output into a file, and attach it to this bug. Thanks!
Component: General → Android Sync
Product: Fennec Native → Mozilla Services
QA Contact: general → android-sync
Blocks: 718238
tracking-fennec: --- → 11+
Priority: -- → P1
Aaron, can we get the data rnewman requested in comment #1?
Re-testing on the Nexus S, Nightly (02/06), I can't seem to reproduce this anymore. Marking WFM.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
blocking-fennec1.0: --- → beta+
Product: Mozilla Services → Android Background Services
Product: Android Background Services → Firefox for Android
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.