Vyhľadajte odpoveď

Vyhnite sa podvodom s podporou. Nikdy vás nebudeme žiadať, aby ste zavolali alebo poslali SMS na telefónne číslo alebo zdieľali osobné informácie. Nahláste prosím podozrivú aktivitu použitím voľby “Nahlásiť zneužitie”.

Learn More

Is there any chance to recover session from 'upgrade.jsonlz4' file?

  • 6 odpovedí
  • 3 majú tento problém
  • 128 zobrazení
  • Posledná odpoveď od kaisbe

more options

Hello,

I need to recover a previous session (containing many tabs) I lost after I used to close FF (I wasn't able to use it properly due to my OS kernel security rules that blocked FF from running properly).

After running `grep` on a sessionstore-backup folder to look for the file containing a url of one of my session tabs, I got only one which is 'upgrade.jsonlz4-20170926190823' - When I renamed it to upgrade.json and DND it into FF, I got the following message from the FF JSON inspector:

> SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

The upgrade.json file starts with the following text (of course I can't give the whole file, for privacy and security reasons):

> mozLz40���?��?{"version":["ses?�� restore",1],"windows":[{"tab �bentrie?��/url":"https://www.mozilla.org/en-US/firefox/56.0/whatsnew/?old~��?=55.0.3","title":"F3��% is up to date","charset":"UTF-8","ID":1,"docshellUU?��&"{40e69432-2d05-4bd5-bd15-89a7fff706ba}","originalURI��9�resultPrincip^��?null,"triggering?��?_base64":"SmIS26zLEdO3ZQBgsLbOywA?�??�AEY="���Identifier??�Cpersist":true}],"lastAccessed":1507308570716,"hidden":false,"attributes":{},"indexW��?userContextId":0?��TypedValu�??"?�QClear'�@imag?�?!??�media/img%?�?favicon.dc6635050bf5.ico","?�HLoad<?� ":"ZT4OTT7kRfqycpfCC8Aeu3? 5?�?B3pRy0IA0EdOTmQAQS6D9QJIHOlRteE8wkTq4cYEyCMY;� C/?��v?0bsB?��QRmh0dHBzOi8vd3d3Lm1vemlsbGEub3JnL2VuLVVTL2ZpcmVmb3gvNTYuMC93aGF0c25ldy8/b2xkdmVyc2lvbj01NS4wLjMAd��?� BQ?�?g?�?P?� CP��?8?�?I �?��? �?F?�?C �?X%�?H@� Bc?�?d?�?N?�??�?0@�?D?��?�?N0�?E?�?X?�?w?�??�O="},�??��?�?eb.mit.edu/21w.789??� /notes/designclass15.pdf�???�??�??�3621000986�? �?�?a5c3c0a0-862f-4d4b-bc7a-6002f78ac2d8�?�referrer�?�google.com/%��Policy":3)???��"?p??�ToInherit�??�?Y,62�?

What's supposed to cause the error? Is there any chance to get the tabs from that file?

Thank you very much.

Hello, I need to recover a previous session (containing many tabs) I lost after I used to close FF (I wasn't able to use it properly due to my OS kernel security rules that blocked FF from running properly). After running `grep` on a sessionstore-backup folder to look for the file containing a url of one of my session tabs, I got only one which is 'upgrade.jsonlz4-20170926190823' - When I renamed it to upgrade.json and DND it into FF, I got the following message from the FF JSON inspector: > SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data The upgrade.json file starts with the following text (of course I can't give the whole file, for privacy and security reasons): > mozLz40�����{"version":["ses �� restore",1],"windows":[{"tab �bentrie ��/url":"https://www.mozilla.org/en-US/firefox/56.0/whatsnew/?old~��=55.0.3","title":"F3��% is up to date","charset":"UTF-8","ID":1,"docshellUU��&"{40e69432-2d05-4bd5-bd15-89a7fff706ba}","originalURI��9�resultPrincip^��null,"triggering��_base64":"SmIS26zLEdO3ZQBgsLbOywA� �AEY="���Identifier�Cpersist":true}],"lastAccessed":1507308570716,"hidden":false,"attributes":{},"indexW��userContextId":0��TypedValu�"�QClear'�@imag�!�media/img%� favicon.dc6635050bf5.ico","�HLoad<� ":"ZT4OTT7kRfqycpfCC8Aeu3 5�B3pRy0IA0EdOTmQAQS6D9QJIHOlRteE8wkTq4cYEyCMY;� C/��v0bsB��QRmh0dHBzOi8vd3d3Lm1vemlsbGEub3JnL2VuLVVTL2ZpcmVmb3gvNTYuMC93aGF0c25ldy8/b2xkdmVyc2lvbj01NS4wLjMAd��� BQ�g�P� CP��8 �I ��� �F�C �X%�H@� Bc �d�N��0@�D ���N0�E �X�w ��O="},����eb.mit.edu/21w.789� /notes/designclass15.pdf����3621000986� ��a5c3c0a0-862f-4d4b-bc7a-6002f78ac2d8��referrer��google.com/%��Policy":3)��"p�ToInherit��Y,62� What's supposed to cause the error? Is there any chance to get the tabs from that file? Thank you very much.

Upravil(a) kaisbe dňa

Všetky odpovede (6)

more options

Current Firefox releases compress these files using LZ4 compression as you can see by its file extension. This is the same compression that is used for the automatically created bookmark backups in the bookmarkbackups folder.

You can place a compressed file in the main profile folder and rename the file to sessionstore.jsonlz4 to make Firefox use this file to restore the session.

Note that Firefox can still restore uncompressed sessionstore files, but to make this work you need to remove (rename) compressed files and rename the sessionstore-backups folder to ensure that Firefox can't fallback to compressed .jsonlz4 files.

more options

To read out the contents of the file, you can drag and drop it onto this tool on my website:

https://www.jeffersonscher.com/res/scrounger.html

That gives you a list of clickable links, not a full restore, but it might be useful if other methods don't work.

more options

cor-el said

Current Firefox releases compress these files using LZ4 compression as you can see by its file extension. This is the same compression that is used for the automatically created bookmark backups in the bookmarkbackups folder. You can place a compressed file in the main profile folder and rename the file to sessionstore.jsonlz4 to make Firefox use this file to restore the session. Note that Firefox can still restore uncompressed sessionstore files, but to make this work you need to remove (rename) compressed files and rename the sessionstore-backups folder to ensure that Firefox can't fallback to compressed .jsonlz4 files.

Hi,

I renamed the file as you suggested, but FF asked me to download it (as you can see from the attached screenshot below), instead of restoring the tabs ..

more options

jscher2000 said

To read out the contents of the file, you can drag and drop it onto this tool on my website: https://www.jeffersonscher.com/res/scrounger.html That gives you a list of clickable links, not a full restore, but it might be useful if other methods don't work.

The tool worked well for me, and I saw the full information about all the tabs. That's good, but it is better if I can open them directly from the browser.

more options

You do not open the file in Firefox.

You only need to place the file as sessionstore.jsonlz4 in the profile folder with Firefox closed to replace an existing sessionstore file. That should make Firefox load that session.

more options

cor-el said

You do not open the file in Firefox. You only need to place the file as sessionstore.jsonlz4 in the profile folder with Firefox closed to replace an existing sessionstore file. That should make Firefox load that session.

It looks pretty good! I have got my whole session back to the browser. Thanks for the great help :)