MozillaZine

How to fix a corrupt (synched) Bookmark and corrupt jsonlz4

User Help for Mozilla Firefox
martinr
 
Posts: 5
Joined: April 19th, 2016, 7:14 am

Post Posted May 14th, 2018, 5:13 am

My Bookmarks are corrupted, they are synched, so all my other browers are corrupted and all bookmarks backups are also corrupted.

How can I fix this?

In the sync-log I found the offending bookmark:
Code: Select all
Sync.Engine.Bookmarks WARN Failed to reconcile incoming record rZXeoYcJLRvV: TypeError: http:///?lidNr=100000363 is not a valid URL. (resource://gre/modules/Bookmarks.jsm:2107:18) JS Stack trace: rowsToItemsArray/<@Bookmarks.jsm:2107:18 < rowsToItemsArray@Bookmarks.jsm:2091:10 < query@Bookmarks.jsm:1696:26
Sync.Engine.Bookmarks WARN Error creating record: TypeError: http:///?lidNr=100000363 is not a valid URL. (resource://gre/modules/Bookmarks.jsm:2107:18) JS Stack trace: rowsToItemsArray/<@Bookmarks.jsm:2107:18 < rowsToItemsArray@Bookmarks.jsm:2091:10 < query@Bookmarks.jsm:1696:26
Sync.ErrorHandler DEBUG bookmarks failed: TypeError: http:///?lidNr=100000363 is not a valid URL. (resource://gre/modules/Bookmarks.jsm:2107:18) JS Stack trace: rowsToItemsArray/<@Bookmarks.jsm:2107:18 < rowsToItemsArray@Bookmarks.jsm:2091:10 < query@Bookmarks.jsm:1696:26


In the Bookmarks browser I can find the offending bookmark, but delete does not work. It does noting.

When I try to restore all my bookmarks from any of the auto generated .jsonlz4 files, then I get the failure: "Unable to process the backup file.".

I can't manually edit the places sqllite DB, and the extension I had for that doesn't work any more on FF Quantum. So I tried with vi, but now bookmarks are even more FOO-BAR. The SQLite manager add-on also doesn't work under the FF Quantum disaster.

I can't manually edit the the auto generated .jsonlz4 bookmark backup files. There is no unzip for it.

I do have a FF 52 ESR in my synch flock (there is no Quantum for Win XP).

I'm thourougly f*cked as it is (20+ years of bookmarks are trashed).

Can anybody help. The incorrect bookmark might have been around for a while and doesn't look that offending to me (http:///?lidNr=100000363), but all of a sudden FF makes a complete clusterf*ck of it.

I'm in urgent need to get on with my work. How can I fix this?

therube

User avatar
 
Posts: 19183
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Post Posted May 14th, 2018, 11:04 am

If you manually save (Export, I guess it is) bookmarks to .json, they will save uncompressed (.json vs .jsonlz4).
You should be able to the edit the .json & re-import.

Similarly, you could do the same with .html, I would think.
Or an external program to manually edit places.sqlite (obviously with FF closed).

Work from a backup, maybe even copying places.sqlite & the .json/.html files into a temporary Profile to do this in.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript

the-edmeister

User avatar
 
Posts: 32122
Joined: February 25th, 2003, 12:51 am
Location: Chicago, IL, USA

Post Posted May 14th, 2018, 11:51 am

The best that I can offer is this Bookmark Backup Reader and see if you can repair / recover your JSON bookmark file wo that Firefox will use it.
https://www.jeffersonscher.com/res/bookbackreader.html

Jefferson Scher is support contributor here and at SUMO (the official Firefox Support forum). I have never used that procedure; haven't had a need for Sync and have never experienced problems such as that with Firefox. Plus I have automatic bookmark.html backup enabled thru about:config .
A mind is a terrible thing to waste. Mine has wandered off and I'm out looking for it.

martinr
 
Posts: 5
Joined: April 19th, 2016, 7:14 am

Post Posted May 14th, 2018, 11:46 pm

therube wrote:If you manually save (Export, I guess it is) bookmarks to .json, they will save uncompressed (.json vs .jsonlz4).
You should be able to the edit the .json & re-import.

Similarly, you could do the same with .html, I would think.
Or an external program to manually edit places.sqlite (obviously with FF closed).

Work from a backup, maybe even copying places.sqlite & the .json/.html files into a temporary Profile to do this in.

Too late, the current bookmarks are already FOOBAR. So saving them won't help.

martinr
 
Posts: 5
Joined: April 19th, 2016, 7:14 am

Post Posted May 14th, 2018, 11:46 pm

the-edmeister wrote:The best that I can offer is this Bookmark Backup Reader and see if you can repair / recover your JSON bookmark file wo that Firefox will use it.
https://www.jeffersonscher.com/res/bookbackreader.html

Jefferson Scher is support contributor here and at SUMO (the official Firefox Support forum). I have never used that procedure; haven't had a need for Sync and have never experienced problems such as that with Firefox. Plus I have automatic bookmark.html backup enabled thru about:config .

Thanks! I'm going to try that.

Return to Firefox Support


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 9 guests