Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

sync not working

  • 17 个回答
  • 22 人有此问题
  • 1 次查看
  • 最后回复者为 dobiehub

more options

sync encountered an error while syncing: Unknown error....

sync encountered an error while syncing: Unknown error....

被采纳的解决方案

Yes, rebuilding places.sqlite should fix the issue. Please keep a copy of the database, though! It'll allow us to (via you) test hypotheses.

定位到答案原位置 👍 1

所有回复 (17)

more options

Hi dobiehub,

Could you please attach a screenshot of that error? What page was the error occurring on? Have you also tried to disconnect the device and reconnect?

Thank you, this will help further investigate!

由guigs于修改

more options

It occurs at the bottom of every web page...including this one...at the bottom, where the add-on toolbar used to be.

Including image of error....

more options

And yes..I have disconnected and reconnected..same problem.

more options

Would it be possible to collect logs? If you go to about:config and turn on "services.sync.log.appender.file.logOnSuccess" and open up about:sync-logs, this will give more detail on the bug.

It may be a network error, but I am not sure, the logs may help.

[Bug 865552 - "Sync encountered an error: unknown error" toolbar isn't useful] [Bug 978432 - Sync encountered an error while syncing:Unknown error.Sync will automatically retry this action]

Thank you for helping us investigate this issue.

more options

Firefox is probably encountering a problem while trying to apply one of your Sync records. It's not your fault, and it's annoying. Sorry about that.

If you're seeing this bar you shouldn't need to set logOnSuccess; just take a look in about:sync-log for an error log, and post the last one here. Thanks!

more options

I appreciate all the help....Ive looked at the error logs (there were many of them since I enabled sync) myself, but they were way above my head.

most recent error log...

Part 1 of 2....

1398806877237 Sync.Status DEBUG Status.service: success.status_ok => success.status_ok 1398806878062 Sync.Tracker.Addons DEBUG Saving changed IDs to addons 1398807260432 Sync.SyncScheduler DEBUG Global Score threshold hit, triggering sync. 1398807260439 Sync.Service DEBUG User-Agent: Firefox/29.0 FxSync/1.31.0.20140421221237. 1398807260439 Sync.Service INFO Starting sync at 2014-04-29 14:34:20 1398807260439 Sync.SyncScheduler DEBUG Clearing sync triggers and the global score. 1398807260440 Sync.Status INFO Resetting Status. 1398807260440 Sync.Status DEBUG Status.service: success.status_ok => success.status_ok 1398807260440 Sync.BrowserIDManager DEBUG _ensureValidToken already has one 1398807260697 Sync.Resource DEBUG mesg: GET success 200 https://sync-4-us-west-2.sync.services.mozilla.com/1.5/211705/info/collections 1398807260697 Sync.Resource DEBUG GET success 200 https://sync-4-us-west-2.sync.services.mozilla.com/1.5/211705/info/collections 1398807260697 Sync.Service DEBUG Fetching global metadata record 1398807260697 Sync.Service DEBUG Clearing cached meta record. metaModified is undefined, setting to 1398806881.84 1398807260697 Sync.BrowserIDManager DEBUG _ensureValidToken already has one 1398807260785 Sync.SyncScheduler DEBUG Next sync in 3600000 ms. 1398807260810 Sync.Resource DEBUG mesg: GET success 200 https://sync-4-us-west-2.sync.services.mozilla.com/1.5/211705/storage/meta/global 1398807260810 Sync.Resource DEBUG GET success 200 https://sync-4-us-west-2.sync.services.mozilla.com/1.5/211705/storage/meta/global 1398807260810 Sync.Service DEBUG Weave Version: 1.31.0 Local Storage: 5 Remote Storage: 5 1398807260810 Sync.Service INFO Sync key is up-to-date: no need to upgrade. 1398807260810 Sync.Service DEBUG Fetching and verifying -- or generating -- symmetric keys. 1398807260810 Sync.Service INFO Testing info/collections: {"passwords":1398806972.32,"tabs":1398806966.38,"clients":1398806966.1,"crypto":1398806781.19,"forms":1398807006,"meta":1398806881.84,"prefs":1398806881.22,"bookmarks":1398807160.68,"addons":1398806881.76,"history":1398807160.98} 1398807260811 Sync.CollectionKeyManager INFO Testing for updateNeeded. Last modified: 1398806781.19 1398807260811 Sync.Synchronizer DEBUG Refreshing client list. 1398807260811 Sync.Engine.Clients INFO 1 outgoing items pre-reconciliation 1398807260811 Sync.BrowserIDManager DEBUG _ensureValidToken already has one 1398807260889 Sync.Collection DEBUG mesg: GET success 200 https://sync-4-us-west-2.sync.services.mozilla.com/1.5/211705/storage/clients?newer=1398806781.62&full=1 1398807260889 Sync.Collection DEBUG GET success 200 https://sync-4-us-west-2.sync.services.mozilla.com/1.5/211705/storage/clients?newer=1398806781.62&full=1 1398807260889 Sync.Engine.Clients INFO Records: 1 applied, 1 successfully, 0 failed to apply, 0 newly failed to apply, 0 reconciled. 1398807260890 Sync.Engine.Clients INFO Uploading all of 1 records 1398807260890 Sync.BrowserIDManager DEBUG _ensureValidToken already has one 1398807260890 Sync.Collection DEBUG POST Length: 357 1398807260983 Sync.Collection DEBUG mesg: POST success 200 https://sync-4-us-west-2.sync.services.mozilla.com/1.5/211705/storage/clients 1398807260983 Sync.Collection DEBUG POST success 200 https://sync-4-us-west-2.sync.services.mozilla.com/1.5/211705/storage/clients 1398807260983 Sync.SyncScheduler DEBUG Client count: 1 -> 2 1398807260984 Sync.Synchronizer INFO Updating enabled engines: 2 clients. 1398807260985 Sync.Engine.Bookmarks INFO 720 outgoing items pre-reconciliation 1398807260985 Sync.BrowserIDManager DEBUG _ensureValidToken already has one 1398807261210 Sync.Engine.Bookmarks WARN Got exception "Component returned failure code: 0x804b000a (NS_ERROR_MALFORMED_URI) [nsINavBookmarksService.getBookmarkURI] Stack trace: _buildGUIDMap()@resource://gre/modules/services-sync/engines/bookmarks.js:248 < _syncStart/</<()@resource://gre/modules/services-sync/engines/bookmarks.js:361 < _mapDupe()@resource://gre/modules/services-sync/engines/bookmarks.js:315 < _createRecord()@resource://gre/modules/services-sync/engines/bookmarks.js:404 < SyncEngine.prototype._reconcile()@resource://services-sync/engines.js:1333 < SyncEngine.prototype._processIncoming/newitems.recordHandler()@resource://services-sync/engines.js:1039 < Collection.prototype.recordHandler/this._onProgress()@resource://services-sync/record.js:625 < Channel_onDataAvail()@resource://services-sync/resource.js:542 < <file:unknown>" building GUID map. Skipping all other incoming items. 1398807261210 Sync.Engine.Bookmarks WARN Reconciliation failed: aborting incoming processing. 1398807261211 Sync.Collection DEBUG mesg: GET success 200 https://sync-4-us-west-2.sync.services.mozilla.com/1.5/211705/storage/bookmarks?newer=1398806864.2&full=1 1398807261211 Sync.Collection DEBUG GET success 200 https://sync-4-us-west-2.sync.services.mozilla.com/1.5/211705/storage/bookmarks?newer=1398806864.2&full=1 1398807261211 Sync.Engine.Bookmarks DEBUG Records that failed to apply: mobile 1398807261219 Sync.Status DEBUG Status for engine bookmarks: error.engine.reason.unknown_fail 1398807261219 Sync.Status DEBUG Status.service: success.status_ok => error.sync.failed_partial 1398807261219 Sync.ErrorHandler DEBUG bookmarks failed: Component returned failure code: 0x804b000a (NS_ERROR_MALFORMED_URI) [nsINavBookmarksService.getBookmarkURI] Stack trace: _buildGUIDMap()@resource://gre/modules/services-sync/engines/bookmarks.js:248 < _syncStart/</<()@resource://gre/modules/services-sync/engines/bookmarks.js:361 < _mapDupe()@resource://gre/modules/services-sync/engines/bookmarks.js:315 < _createRecord()@resource://gre/modules/services-sync/engines/bookmarks.js:404 < SyncEngine.prototype._reconcile()@resource://services-sync/engines.js:1333 < SyncEngine.prototype._processIncoming/newitems.recordHandler()@resource://services-sync/engines.js:1039 < Collection.prototype.recordHandler/this._onProgress()@resource://services-sync/record.js:625 < Channel_onDataAvail()@resource://services-sync/resource.js:542 < <file:unknown> 1398807261219 Sync.Engine.Forms INFO 0 outgoing items pre-reconciliation 1398807261219 Sync.BrowserIDManager DEBUG _ensureValidToken already has one 1398807261316 Sync.Collection DEBUG mesg: GET success 200 https://sync-4-us-west-2.sync.services.mozilla.com/1.5/211705/storage/forms?newer=1398806865.38&full=1 1398807261316 Sync.Collection DEBUG GET success 200 https://sync-4-us-west-2.sync.services.mozilla.com/1.5/211705/storage/forms?newer=1398806865.38&full=1 1398807261323 Sync.Engine.Forms INFO Records: 8 applied, 8 successfully, 0 failed to apply, 0 newly failed to apply, 0 reconciled. 1398807261323 Sync.Engine.History INFO 1 outgoing items pre-reconciliation 1398807261324 Sync.BrowserIDManager DEBUG _ensureValidToken already has one 1398807261424 Sync.SyncScheduler DEBUG Next sync in 90000 ms. 1398807261811 Sync.Tracker.Clients DEBUG Saving changed IDs to clients 1398807262219 Sync.Tracker.Bookmarks DEBUG Saving changed IDs to bookmarks 1398807262220 Sync.Tracker.Forms DEBUG Saving changed IDs to forms 1398807262324 Sync.Tracker.History DEBUG Saving changed IDs to history 1398807263274 Sync.Collection DEBUG mesg: GET success 200 https://sync-4-us-west-2.sync.services.mozilla.com/1.5/211705/storage/history?newer=1398806880.44&full=1&limit=5000 1398807263274 Sync.Collection DEBUG GET success 200 https://sync-4-us-west-2.sync.services.mozilla.com/1.5/211705/storage/history?newer=1398806880.44&full=1&limit=5000 1398807263312 Sync.Engine.History INFO Records: 458 applied, 458 successfully, 0 failed to apply, 0 newly failed to apply, 0 reconciled. 1398807263313 Sync.Engine.History INFO Uploading all of 1 records </p>

more options

error log...... part 2 of 2.....

1398807263314 Sync.BrowserIDManager DEBUG _ensureValidToken already has one 1398807263314 Sync.Collection DEBUG POST Length: 393 1398807263392 Sync.Collection DEBUG mesg: POST success 200 https://sync-4-us-west-2.sync.services.mozilla.com/1.5/211705/storage/history 1398807263392 Sync.Collection DEBUG POST success 200 https://sync-4-us-west-2.sync.services.mozilla.com/1.5/211705/storage/history 1398807263393 Sync.Engine.Passwords INFO 0 outgoing items pre-reconciliation 1398807263393 Sync.BrowserIDManager DEBUG _ensureValidToken already has one 1398807263482 Sync.Engine.Passwords DEBUG Switching local ID to incoming: {137271a4-22d9-43e7-8b03-78695427271d} -> {f8450251-e724-47eb-8bf2-6b769f056e25} 1398807263503 Sync.Engine.Passwords DEBUG Local item after duplication: age=null; modified=false; exists=true 1398807263506 Sync.Engine.Passwords DEBUG Switching local ID to incoming: {71e174b2-4e55-446c-a721-abfd824141de} -> {47ec844a-b1b9-45e3-b550-f8600f440fe8} 1398807263512 Sync.Engine.Passwords DEBUG Local item after duplication: age=null; modified=false; exists=true 1398807263513 Sync.Collection DEBUG mesg: GET success 200 https://sync-4-us-west-2.sync.services.mozilla.com/1.5/211705/storage/passwords?newer=1398806881.01&full=1 1398807263513 Sync.Collection DEBUG GET success 200 https://sync-4-us-west-2.sync.services.mozilla.com/1.5/211705/storage/passwords?newer=1398806881.01&full=1 1398807263515 Sync.Store.Passwords DEBUG Updating https://accounts.google.com 1398807263518 Sync.Store.Passwords DEBUG Updating https://www.amazon.com 1398807263525 Sync.Engine.Passwords INFO Records: 2 applied, 2 successfully, 0 failed to apply, 0 newly failed to apply, 0 reconciled. 1398807263525 Sync.BrowserIDManager DEBUG _ensureValidToken already has one 1398807263605 Sync.Collection DEBUG mesg: DELETE success 200 https://sync-4-us-west-2.sync.services.mozilla.com/1.5/211705/storage/passwords?ids={137271a4-22d9-43e7-8b03-78695427271d},{71e174b2-4e55-446c-a721-abfd824141de} 1398807263605 Sync.Collection DEBUG DELETE success 200 https://sync-4-us-west-2.sync.services.mozilla.com/1.5/211705/storage/passwords?ids={137271a4-22d9-43e7-8b03-78695427271d},{71e174b2-4e55-446c-a721-abfd824141de} 1398807263605 Sync.Engine.Prefs INFO 0 outgoing items pre-reconciliation 1398807263605 Sync.Engine.Prefs INFO Records: 0 applied, 0 successfully, 0 failed to apply, 0 newly failed to apply, 0 reconciled. 1398807263605 Sync.Engine.Tabs INFO 1 outgoing items pre-reconciliation 1398807263606 Sync.BrowserIDManager DEBUG _ensureValidToken already has one 1398807263681 Sync.Store.Tabs DEBUG Adding remote tabs from Firefox on SCH-I545 1398807263681 Sync.Collection DEBUG mesg: GET success 200 https://sync-4-us-west-2.sync.services.mozilla.com/1.5/211705/storage/tabs?newer=1398806881.48&full=1 1398807263681 Sync.Collection DEBUG GET success 200 https://sync-4-us-west-2.sync.services.mozilla.com/1.5/211705/storage/tabs?newer=1398806881.48&full=1 1398807263681 Sync.Engine.Tabs INFO Records: 1 applied, 1 successfully, 0 failed to apply, 0 newly failed to apply, 0 reconciled. 1398807263684 Sync.Engine.Tabs INFO Uploading all of 1 records 1398807263684 Sync.BrowserIDManager DEBUG _ensureValidToken already has one 1398807263685 Sync.Collection DEBUG POST Length: 1528 1398807263760 Sync.Collection DEBUG mesg: POST success 200 https://sync-4-us-west-2.sync.services.mozilla.com/1.5/211705/storage/tabs 1398807263760 Sync.Collection DEBUG POST success 200 https://sync-4-us-west-2.sync.services.mozilla.com/1.5/211705/storage/tabs 1398807263761 Sync.Engine.Addons DEBUG Refreshing reconciler state 1398807263761 Sync.AddonsReconciler INFO Refreshing global state from AddonManager. 1398807263762 Sync.AddonsReconciler DEBUG Rectifying state for addon: {5D3F3872-91E9-4d59-AD9F-AA174A3145DD} 1398807263762 Sync.AddonsReconciler DEBUG Rectifying state for addon: {FCE04E1F-9378-4f39-96F6-5689A9159E45} 1398807263762 Sync.AddonsReconciler DEBUG Rectifying state for addon: fbt@quicksaver 1398807263762 Sync.AddonsReconciler DEBUG Rectifying state for addon: HighlightedTextToFile@bobbyrne01.org 1398807263762 Sync.AddonsReconciler DEBUG Rectifying state for addon: {b9db16a4-6edc-47ec-a1f4-b86292ed211d} 1398807263762 Sync.AddonsReconciler DEBUG Rectifying state for addon: zoompage@DW-dev 1398807263762 Sync.AddonsReconciler DEBUG Rectifying state for addon: {972ce4c6-7e08-4474-a285-3208198ce6fd} 1398807263762 Sync.AddonsReconciler DEBUG Rectifying state for addon: {BBDA0591-3099-440a-AA10-41764D9DB4DB} 1398807263762 Sync.AddonsReconciler DEBUG Rectifying state for addon: {2D3F3651-74B9-4795-BDEC-6DA2F431CB62} 1398807263762 Sync.AddonsReconciler DEBUG Rectifying state for addon: 21333@personas.mozilla.org 1398807263762 Sync.AddonsReconciler DEBUG Rectifying state for addon: 31082@personas.mozilla.org 1398807263762 Sync.AddonsReconciler DEBUG Rectifying state for addon: {c2db5b63-b731-b04a-dbe2-d2b937aed7d7} 1398807263764 Sync.AddonsReconciler DEBUG Rectifying state for addon: {10c68f07-63a6-4653-8f43-9fc763f22443} 1398807263764 Sync.AddonsReconciler DEBUG Rectifying state for addon: {c3f5e548-d50b-d2d7-2450-8b48c56b387c} 1398807263764 Sync.AddonsReconciler DEBUG Rectifying state for addon: {8d55738c-d0eb-43a8-8a72-9e79e1a35511} 1398807263765 Sync.AddonsReconciler DEBUG Rectifying state for addon: {7c87a927-7a80-bf1c-6ccd-b07c080b8bdc} 1398807263765 Sync.AddonsReconciler DEBUG Rectifying state for addon: {ea720a50-b9b1-2647-1de7-98269eb5b621} 1398807263765 Sync.AddonsReconciler DEBUG Rectifying state for addon: {9c82cbb0-bb81-e85d-d3c5-a3e99a3826bc} 1398807263765 Sync.AddonsReconciler DEBUG Rectifying state for addon: {32a56f14-031e-4998-f43e-3d343495cd28} 1398807263766 Sync.AddonsReconciler DEBUG Rectifying state for addon: {d2928e25-ae62-145a-32ae-df6c6671a0d1} 1398807263766 Sync.AddonsReconciler DEBUG Rectifying state for addon: {fd7eff20-37ea-1e7f-f239-0ac6290cf418} 1398807263766 Sync.AddonsReconciler DEBUG Rectifying state for addon: {198e5688-b862-64b6-e405-3d6e6fd1b39c} 1398807263766 Sync.AddonsReconciler DEBUG Rectifying state for addon: {00d240b9-46eb-e7a3-214c-aef7353526dd} 1398807263766 Sync.AddonsReconciler DEBUG Rectifying state for addon: {398449b4-9c51-59b6-911b-46f139c6ba84} 1398807263766 Sync.AddonsReconciler DEBUG Rectifying state for addon: {5df65283-4a77-0cb9-bcf5-e9c94e578449} 1398807263766 Sync.AddonsReconciler DEBUG Rectifying state for addon: {52341b48-fdb5-76a2-307c-4601233dbfc0} 1398807263766 Sync.AddonsReconciler DEBUG Rectifying state for addon: {113adfd1-de4d-a07f-2b97-f529520f1640} 1398807263766 Sync.AddonsReconciler DEBUG Rectifying state for addon: {6e51f54f-5117-3863-ef08-142f34f17b29} 1398807263766 Sync.AddonsReconciler DEBUG Rectifying state for addon: {86707aa0-db96-0c5d-3966-b8b99e62a339} 1398807263767 Sync.AddonsReconciler INFO Saving reconciler state to file: addonsreconciler 1398807263771 Sync.Engine.Addons INFO 0 outgoing items pre-reconciliation 1398807263771 Sync.Engine.Addons INFO Records: 0 applied, 0 successfully, 0 failed to apply, 0 newly failed to apply, 0 reconciled. 1398807263771 Sync.Synchronizer INFO Sync completed at 2014-04-29 14:34:23 after 3.33 secs. 1398807263771 Sync.Declined DEBUG Handling remote declined: [] 1398807263771 Sync.Declined DEBUG Handling local declined: [] 1398807263771 Sync.Declined DEBUG Declined changed? false 1398807263772 Sync.Service INFO No change to declined engines. Not reuploading meta/global. 1398807263772 Sync.SyncScheduler DEBUG Next sync in 90000 ms. 1398807263772 Sync.ErrorHandler DEBUG Some engines did not sync correctly.

more options

Sounds like Bug 821757. It implies that something in your bookmarks and history database is malformed. I've reopened that bug; if you can, your help with finding the cause would be appreciated!

If you don't mind me seeing your bookmarks and history, sending me a copy of places.sqlite from your profile directory would be the quickest approach. If you don't want to share that personal data, then we can figure something else out.

more options

rnewman- hey thanks for all of your help-

places.sqlite way to private..I know it would help both of us... but I just looked at it... So, no... Anyway...

If it helps your report any I can tell you I suspected it because my bookmarks have always had weird behaviors..since about FF27... when they were imported from a Firefox- Yahoo Edition (I accidentally installed and then uninstalled) when I did a clean re-install. If there is something specific you would like me to find in the places.sqlite that might help the bug report..or other...I'll be glad to help....

otherwise I'm guessing I let FF29 rebuild my places.sqlite ? I've needed to anyways,,

what do you think?

more options

Actually, if you remember when it stopped working, and what you did right before the error came up this would help with steps to reproduce. Or maybe an example of a corrupt uri you think?

more options

选择的解决方案

Yes, rebuilding places.sqlite should fix the issue. Please keep a copy of the database, though! It'll allow us to (via you) test hypotheses.

more options

Ok- once again, thanks for all your help... what I did... 1. Exported my bookmarks to HTML (just in case)..... 2. Made a backup of my bookmarks (just in case).... 3. Per article: ,,, http://kb.mozillazine.org/Locked_or_damaged_places.sqlite ,,,, for damaged places database, I installed the addon: places maintenance 1.3 and ran it with all variables EXCEPT "vacuum" (there were no instructions and all the options seemed safe except 'vacuum')

...Now Syncing works with PC and Android phone without any error. ...Also my bookmarks act normal (ie- they stay where I put them and do not get rearranged)

If either of you are familiar with this addon..what does 'vacuum' do? and do you know where to find docs or instructions?

If you need any further info let me know..

Once again thanks for helping solve my problem-

more options

guigs2- re:...Or maybe an example of a corrupt uri you think?

The problem with my bookmarks was...

I never really sorted my book marks (too lazy to create specific folders ect)....instead I just always added bookmarks to the end of my toolbar and they would go into the overflow ...I had around a hundred at a time located in the toolbar and would delete them as needed or change there order of importance ect.....it was just quicker, less mouse clicks/movement, to hit the overflow icon (>>) on the bookmarks toolbar and scroll down to find what I wanted instead of opening up the bookmark windows and finding the folder.....when I reinstalled FF27 to get rid of the FF Yahoo Edition I thought I exported and imported my bookmarks correctly, but it never worked right with my toolbar method anymore.....what would happen is - when I added a new bookmarks at the end of the toolbar, sometimes they would not stay there, or they would get rearranged, and I would have to open up the bookmarks window and find them in the "show all bookmarks"....sometimes they would come back to the toolbar and sometimes they were all rearranged....now they are staying in the toolbar where I put them.


I don't know if that helps...

more options

If remove delete history items or bookmarks then the space that the items take in the places.sqlite file is filled with null bytes, but the size of the places.sqlite remains unchanged.
Vacuuming an SQLite database file will compact the file by removing those null bytes, so the file may get smaller.
Note that Firefox uses specific minimum sizes for SQLite database files (for places.sqlite a multiple of 10 MB), so you may not see a change in file size at all.

more options

Thanks cor-el,

That explains it....Vacuum just sounded too destructive without knowing!....That's sounds like something I should do, considering how many I have and delete..that helps alot..thanks.

more options

I had the same issue, my suggestion is to turn off add-ons sync. if you do not have any passwords saved, turn off password sync aswell

the last option fixed my problem.

more options

Thanks InteNs...but so far, repairing the places.sqlite has fixed my issue and now sync works great across all my platforms, however..it's good to know if I have a problem later. Thanks again.