phyrox-portable icon indicating copy to clipboard operation
phyrox-portable copied to clipboard

Migrating profile data issue when upgrading to a new version

Open dbarev opened this issue 5 years ago • 4 comments

Behaviour

With latest version phyrox-portable-win64-72.0.2-35 upgrade from an old version messes up the profile data and leads to an unusable profile.

Steps to reproduce this issue

  1. Clean install an earlier release of phyrox portable e.g. phyrox-portable-win64-72.0.1-34
  2. Install addons, open a few different websites in tabs, set session restore on startup, save some favourites
  3. Shut down the app.
  4. Download the latest version phyrox-portable-win64-72.0.2-35 and migrate the profile from the older one by copying the 'data' folder over.
  5. Start the new release phyrox-portable-win64-72.0.2-35. At first site all works fine, session, favourites, history, addons are restored correctly. Do some changes: delete addons, add/delete favourites, open new tabs, close old tabs, change UI/toolbar settings. Shutdown the app.
  6. Upon new start of the app the changes from last session are gone, you are back to the profile state just before migrating/updating. Seems like the profile is currently read-only, any changes are not saved whatsoever.

Expected behaviour

The app should work fine with the migrated profile and all changes shall be saved between sessions.

Actual behaviour

See steps to reproduce

Configuration

**App release: phyrox-portable-win64-72.0.2-35 ** :

Operating system: Windows 10 Pro 64 bits :

Winver screenshot : image

Screenshots

N/A

Logs

Join the log file log\[appname]-portable.log to this issue. phyrox-portable.log

dbarev avatar Jan 28 '20 14:01 dbarev

Workarounds:

a) Re-create profile and manually migrate important data following this guide http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

or

b) After launching the new version for the first time with copied data folder, close it and do the following:

In the profile folder under /data/profile/default/ rename the following files by removing the .tmp at the end: addonStartup.json.lz4.tmp broadcast-listeners.json.tmp extensions.json.tmp extension-settings.json.tmp search.json.mozlz4.tmp sessionCheckpoints.json.tmp sessionstore.jsonlz4.tmp xulstore.json.tmp

Overwrite existing files.

Clear the following folders from any files if existing: /data/profile/default/sessionstore-backups/. /data/profile/default/crashes/. /data/profile/default/datareporting/. /data/profile/default/startupCache/.

Make backup before modifying anything in case something goes wrong.

After a restart the profile should work fine.

dbarev avatar Jan 28 '20 14:01 dbarev

@dbarev Thank you very much for the diagnosis, I'll take a look at it soon.

crazy-max avatar Jan 28 '20 14:01 crazy-max

@dbarev Mozilla has taken into account this issue related to relocation of profile directory. See https://phabricator.services.mozilla.com/D72348 for more info.

crazy-max avatar Apr 24 '20 14:04 crazy-max

C:\Users\You\AppData\Roaming\Mozilla = active script.ui profile

psmiths1974 avatar May 14 '20 16:05 psmiths1974