chromium-browser user data gets copied to per-snap-revision directory while chromium is running, leads to data loss and "chromium did not shut down correctly"

Bug #1852809 reported by Steve Langasek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
chromium-browser (Ubuntu)
New
Undecided
Unassigned

Bug Description

I noticed that after the switch to a snap in eoan, in a case where I knew I had manually shut down chromium cleanly, I got an error on restart saying that it had not been shut down cleanly. Digging around on the filesystem led me to realize that a snap refresh had happened and the profile had been copied over while still in use.

The unclean shutdown message is annoying but not critical. More important is that this means any data written to the profile (cookies, passwords, etc) by the still-running instance of the old chromium, after the snap refresh, are not retained.

Tags: snap
Steve Langasek (vorlon)
tags: added: snap
Revision history for this message
Olivier Tilloy (osomon) wrote :

This is bug #1616650, and it is being addressed by https://forum.snapcraft.io/t/wip-refresh-app-awareness/10736. Until this is the default in snapd, I suggest you do:

    snap set core experimental.refresh-app-awareness=true

This will prevent chromium (and any other snap) from updating while it's running.

I have been testing this for over a month, and it seems to be working well.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.