firefox re-installs Add-ons everytime I restart Ubuntu

Bug #1058209 reported by xDfg#$
48
This bug affects 6 people
Affects Status Importance Assigned to Milestone
WebApps: Websites integration Firefox plug-in
Fix Released
Critical
Robert Carr
WebApps: libunity-webapps
Invalid
Critical
Robert Carr
webapps-greasemonkey (Ubuntu)
Fix Released
Critical
Unassigned
Quantal
Fix Released
Critical
Unassigned

Bug Description

It doesn't happen everytime I start firefox, but every couple of starts, firefox wants me to re-install all of my extensions. Started since I upgraded from 12.04.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: firefox 15.0.1+build1-0ubuntu4
ProcVersionSignature: Ubuntu 3.5.0-15.23-generic 3.5.4
Uname: Linux 3.5.0-15-generic i686
AddonCompatCheckDisabled: False
ApportVersion: 2.5.2-0ubuntu4
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: private 1753 F.... pulseaudio
BuildID: 20120928004059
Channel: Unavailable
Date: Fri Sep 28 18:12:21 2012
DefaultProfilePrefSources:
 prefs.js
 [Profile]/<email address hidden>/defaults/preferences/prefs.js
 [Profile]/<email address hidden>/defaults/preferences/preferences.js
EcryptfsInUse: Yes
ForcedLayersAccel: False
IfupdownConfig:
 auto lo
 iface lo inet loopback
InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release i386 (20120817.3)
IpRoute:
 default via 192.168.1.1 dev eth1 proto static
 169.254.0.0/16 dev eth1 scope link metric 1000
 192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.14 metric 9
Profile1PrefSources:
 prefs.js
 [Profile]/<email address hidden>/defaults/preferences/preferences.js
Profiles:
 Profile0 (Default) - LastVersion=15.0.1/20120928004059 (In use)
 Profile1 - LastVersion=15.0.1/20120928004059
RelatedPackageVersions:
 gnome-shell 3.6.0-0ubuntu2
 rhythmbox-mozilla 2.97-1ubuntu5
 totem-mozilla 3.4.3-0ubuntu4
RunningIncompatibleAddons: False
SourcePackage: firefox
UpgradeStatus: Upgraded to quantal on 2012-09-27 (1 days ago)
dmi.bios.date: 02/13/2006
dmi.bios.vendor: IBM
dmi.bios.version: 70ET64WW (1.24 )
dmi.board.name: 1871FAG
dmi.board.vendor: IBM
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: IBM
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnIBM:bvr70ET64WW(1.24):bd02/13/2006:svnIBM:pn1871FAG:pvrThinkPadT43:rvnIBM:rn1871FAG:rvrNotAvailable:cvnIBM:ct10:cvrNotAvailable:
dmi.product.name: 1871FAG
dmi.product.version: ThinkPad T43
dmi.sys.vendor: IBM

Related branches

Revision history for this message
xDfg#$ (mr-nobody) wrote :
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Which dialog is it that you actually see? Could you please take a screenshot?

Changed in firefox (Ubuntu):
status: New → Incomplete
Revision history for this message
xDfg#$ (mr-nobody) wrote :

Added a screenshot. Now I see, it is happening after I restart my machine (Will change the title)

summary: - firefox re-installs Add-ons every couple of starts
+ firefox re-installs Add-ons everytime I restart Ubuntu
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

That screen will appear for third party addons that are dropped in to the profile (ie, not installed via the addon manager). Did you copy the extensions folder (or any extensions) between profiles?

Revision history for this message
xDfg#$ (mr-nobody) wrote :

No, I haven't done this. I've installed them all over. Maybe it is because of the upgrade to 12.10?

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

I've honestly got no idea what would cause this. Nothing has changed in Firefox for weeks, but you're the second person to report this since the Unity webapps stuff landed

Revision history for this message
xDfg#$ (mr-nobody) wrote :

It just happened to me again without restarting ubuntu.
I'll patiently wait for things to get clear about this.
Thank you.

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Does this stop if you disable any one of your addons?

Revision history for this message
xDfg#$ (mr-nobody) wrote :

When I try to reproduce it after disabling one of the add-ons, it asks me again if I want to install it. Should I just uninstall the add-ons one by one?

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Yes please

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Also, do you see any messages in the error console when this happens? (Tools -> Web Developer -> Error Console, although you might need to enable this in about:config using the preference "devtools.errorconsole.enabled")

Revision history for this message
xDfg#$ (mr-nobody) wrote :
Download full text (4.4 KiB)

Ok, so this is what I did:
Firstly, I removed Adblock plus. After a restart firefox asked me again if I want to install all of my extensions including ABP (although I removed it).
I removed it again and started to remove each add-on with a reboot after this. Sometimes it took me two reboots to reproduce the bug. I removed all of them except "Easy youtube video downloader".
It seems that it stopped after I removed "Https everywhere". After few restarts it didn't happen again.
I reinstalled "Https everywhere" to see if it would came back, but it wouldn't.

This are the logs from the error console:
#This one is before removing anything:

"Timestamp: 09/30/2012 12:18:07 PM
Warning: Unknown property '-moz-border-radius'. Declaration dropped.
Source File: about:startpage
Line: 56

While creating services from category 'profile-after-change', service for entry 'uGlobalMenuLoader', contract ID '@canonical.com/globalmenu-loader;1' does not implement nsIObserver.

While creating services from category 'profile-after-change', service for entry 'UpdateNotifier', contract ID '@ubuntu.com/update-notifier;1' does not implement nsIObserver.

Could not read chrome manifest 'file:///usr/lib/firefox/extensions/%7B972ce4c6-7e08-4474-a285-3208198ce6fd%7D/chrome.manifest'.

Could not read chrome manifest 'jar:file:///<email address hidden>!/chrome/he.manifest'.

Could not read chrome manifest 'jar:file:///<email address hidden>!/chrome/en-GB.manifest'.

Could not read chrome manifest 'jar:file:///<email address hidden>!/chrome/en-ZA.manifest'.

Timestamp: 09/30/2012 12:18:06 PM
Warning: Error in parsing value for 'overflow'. Declaration dropped.
Source File: chrome://unity/skin/browser.css
Line: 11

Timestamp: 09/30/2012 12:18:06 PM
Warning: Bootstrapped manifest not allowed to use 'style' directive.
Source File: file:///usr/share/mozilla/extensions/%7Bec8030f7-c20a-464f-9b0e-13a3a9e97384%<email address hidden>/chrome.manifest
Line: 3

Timestamp: 09/30/2012 12:18:06 PM
Warning: WARN addons.xpi: Add-on <email address hidden> is missing bootstrap method install

Timestamp: 09/30/2012 12:18:06 PM
Warning: WARN addons.xpi: Add-on <email address hidden> is missing bootstrap method uninstall"

#And the secong one is taken after ABP got back although I removed it:

"Timestamp: 09/30/2012 03:52:55 PM
Warning: Bootstrapped manifest not allowed to use 'style' directive.
Source File: file:///usr/share/mozilla/extensions/%7Bec8030f7-c20a-464f-9b0e-13a3a9e97384%<email address hidden>/chrome.manifest
Line: 3

Timestamp: 09/30/2012 03:52:55 PM
Warning: Bootstrapped manifest not allowed to use 'style' directive.
Source File: file:///usr/share/mozilla/extensions/%7Bec8030f7-c20a-464f-9b0e-13a3a9e97384%<email address hidden>/chrome.manifest
Line: 3

Timestamp: 09/30/2012 03:52:55 PM
Warning: Error in parsing value for 'overflow'. Declaration dropped.
Source File: chrome://unity/skin/browser.css
Line: 11

Could not read chrome manifest 'jar:file:///usr/lib/firefox/extensions/langpack-en-ZA@firefox...

Read more...

Revision history for this message
xDfg#$ (mr-nobody) wrote :

It happened again after I installed DoNotTrack Plus.
I think it is to blame.

Revision history for this message
Tim Lunn (darkxst) wrote :

I am also getting this since about 1 week ago. I though my profile might be corrupt, however I have created a new profile and yet firefox still asks if I would like to install all my add-ons, each time I start firefox.

Revision history for this message
Tim Lunn (darkxst) wrote :

based on comment https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1058209/comments/6 , I went and uninstalled xul-ext-unity and xul-ext-websites-integration. Firefox has now stopped asking me to install all add-ons each time I start it up.

Revision history for this message
Tim Lunn (darkxst) wrote :

I just reproduced this issue with only *xul-ext-websites-integration* installed, so I suppose its caused by a regression in that package.

Revision history for this message
xDfg#$ (mr-nobody) wrote :

It makes sense, because we all have different add-ons, although I might say that the issue occurs when combining these packages with certain add-ons (like DNT+, in my case).

affects: firefox (Ubuntu) → unity-firefox-extension (Ubuntu)
affects: unity-firefox-extension (Ubuntu) → webapps-greasemonkey (Ubuntu)
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

seb128 also hit this today, but I'm still not sure what's going on. Could people subscribed to this bug please set a path for "extensions.log" in about:config, so that addon manager errors get written to a file. Then, if it occurs again, can you paste the errors in to this bug (assuming that the file gets created)?

Revision history for this message
xDfg#$ (mr-nobody) wrote :

Reproduced it.

extensions.log

2012-10-01 19:05:09 ERROR addons.xpi: Failed to open database (1st attempt): [Exception... "Component returned failure code: 0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID.getService]" nsresult: "0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE)" location: "JS frame :: resource://gre/modules/XPCOMUtils.jsm :: XPCU_serviceLambda :: line 198" data: no] at resource://gre/modules/XPCOMUtils.jsm:198
2012-10-01 19:05:09 ERROR addons.xpi: Failed to open database (2nd attempt): TypeError: Services.storage is undefined at resource:///modules/XPIProvider.jsm:4301
2012-10-01 19:05:09 ERROR addons.manager: Exception calling provider getAddonByID: TypeError: Services.storage is undefined at resource:///modules/XPIProvider.jsm:4309
2012-10-01 19:05:20 ERROR addons.manager: Exception calling provider shutdown: TypeError: connection is undefined at resource:///modules/XPIProvider.jsm:4635

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Ouch, that's a fairly catastrophic failure of the entire storage system. The storage service fails to initialize, which also explains the problems people are having with cookies going missing, cookie exceptions being lost etc. This must also break history / bookmarks / content preferences / form history / website permissions and basically everything in Firefox that uses sqlite.

My guess is that somebody uses sqlite before the storage service is initialized, which then causes the call to sqlite3_config to fail.

This is pretty bad, as the addon manager then deletes the database and tries to create a new one, as well as people losing data that Firefox normally saves

Changed in webapps-greasemonkey (Ubuntu Quantal):
importance: Undecided → Critical
status: Incomplete → Triaged
Robert Carr (robertcarr)
Changed in libunity-webapps:
assignee: nobody → Robert Carr (robertcarr)
status: New → In Progress
importance: Undecided → Critical
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

And thanks for the info btw :)

Revision history for this message
Robert Carr (robertcarr) wrote :

https://code.launchpad.net/~robertcarr/webapps-greasemonkey/fix-1058209-happy-october/+merge/127361

After some discussion with Chris it looks like this may be the safest thing to do for now.

Robert Carr (robertcarr)
Changed in webapps-greasemonkey:
status: New → Fix Committed
importance: Undecided → Critical
assignee: nobody → Robert Carr (robertcarr)
Changed in libunity-webapps:
status: In Progress → Invalid
Revision history for this message
S. Patrikios (sipatrik-m) wrote :

In Tools, Add Ons, Extentions, Ubuntu related extentions are enabled, all the rest appear disabled and I am asked to re-enable when first stating Firefox after a system restart.
Screenshot attached.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package webapps-greasemonkey - 2.3.2-0ubuntu1

---------------
webapps-greasemonkey (2.3.2-0ubuntu1) quantal; urgency=low

  * New upstream release.
    - Force initialization of storage service prior to opening
      UnityWebappsRepository (LP: #1058209)
    - Save install callbacks to prevent them from being preemptively
      garbage collected (LP: #1059441)
  * debian/patches/version_bump.patch
    - bump the version of the extension, upstream missed that in the release.
 -- Ken VanDine <email address hidden> Mon, 01 Oct 2012 23:21:59 -0400

Changed in webapps-greasemonkey (Ubuntu Quantal):
status: Triaged → Fix Released
Revision history for this message
xDfg#$ (mr-nobody) wrote :

As I understand, the fix should be a part of the xul-ext-websites-integration package (because there is no package webapps-greasemonkey in synpatic) , but after an update, this package's version is still 2.3.1. Am I doing something wrong?

David King (amigadave)
Changed in webapps-greasemonkey:
milestone: none → 2.3.2
status: Fix Committed → Fix Released
Revision history for this message
xDfg#$ (mr-nobody) wrote :

After latest updates everything works fine. Thank you!

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.