gorhill / uBlock

uBlock Origin - An efficient blocker for Chromium and Firefox. Fast and lean.
GNU General Public License v3.0
47.77k stars 3.17k forks source link

Settings reset on update #149

Closed psivesely closed 9 years ago

psivesely commented 9 years ago

Hi @gorhill,

This hasn't happened every update, but at least the last two version bumps have caused me to lose all my custom settings, which is quite sad because I had spent some decent time unbreaking sites in default-deny. Do you know what is up with this?

Noah

gorhill commented 9 years ago

You need to provide more details. I don't even know which browser you are using. See https://github.com/gorhill/uBlock/blob/master/CONTRIBUTING.md#what-to-include.

Also, a reminder that to back up all settings is very simple: a mere click on the Backup to file button in the Settings pane.

psivesely commented 9 years ago

Apologies, I'm

I do have a backup, but it's from a couple weeks ago and I didn't invest in learning how to fully utilize uBlock except in the last month, so most is lost.

gorhill commented 9 years ago

uBlock will save its data using Chrome API chrome.storage.local, which as far as uBlock is concerned is an opaque storage, I actually don't know into what this translates on disk.

When you say "all my custom settings", what does that include exactly? Dynamic filtering rules? Whtielist directives? Custom static filters? Settings?

psivesely commented 9 years ago

It refers to everything. Every configurable setting on uBlock has been reset to it's default state.

gorhill commented 9 years ago

Do you use incognito mode?

WyohKnott commented 9 years ago

When you install the new version, do you use "Load unpacked extension"? Because if you had an older one from the store installed, you would get two uBlock Origin installed with different IDs. For example on my config I have ID: cjpalhdlnbpafiamejdnhcphjbkeiagm and ID: hdeccefknbcngnnplnaffponljjbiikg Of course the second one having a different ID can't read the settings of the first one.

gorhill commented 9 years ago

@WyohKnott Good point.

The losing-all-settings symptom matches well re-installing uBlock manually, but at a different path. uBlock needs to be re-installed at exactly the same path for the settings to be reused.

lewisje commented 9 years ago

I forget, do manually-installed extensions still refuse to uninstall unless you delete the folder they're in?

I had this problem back when I was playing around with ABP (to make it redirect to noop content, as gorhill would later try early in uBlock's development), and that led me to forswear installing unpacked extensions (instead I just pack them and test in Canary; I tested in Stable before Google disallowed off-store extension installation in Stable versions on Windows).

psivesely commented 9 years ago

@gorhill Seldomly.

@WyohKnott I have been using the Web Store version, but it seems to be keeping pretty good pace with the repo. I would install it from the git source if I didn't have to do that for the several different VMs I run Chromium in (I'm actually running Debian in Qubes).

Anyway, that reminded me that there is a VM that I rarely use and might have my rules still. I removed its networking access right before starting it up--so it couldn't update--and was able to get a little more of my ruleset back. I try to keep the VMs as synced as possible, but this is a lesser used one, so it was a little behind in rules, but also still running 0.9.4.4.

What's interesting is that I then updated and restarted that browser, and when it restarted my configuration was still there. This was the 1 of 4 VMs that didn't have the settings wipe problem! So strange! It should be noted that all four of these VMs are based on an identical template root filesystem--and thus are running an identical Chromium binary.

gorhill commented 9 years ago

the several different VMs I run Chromium in

Given that this kind of issue has never been reported elsewhere, is it possible that the cause has something to do with using Chromium in a VM?