Closed Bug 875092 Opened 7 years ago Closed 7 years ago

WARN addons.xpi: Failed to set permissions 755 on /mnt/sdcard/tests/profile/extensions/staged/special-powers@mozilla.org/chrome/specialpowers/content (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST)

Categories

(Toolkit :: Add-ons Manager, defect)

All
Android
defect
Not set

Tracking

()

RESOLVED INVALID

People

(Reporter: nalexander, Unassigned)

Details

05-22 14:01:58.228 E/GeckoConsole(10327): [JavaScript Warning: "WARN addons.xpi: Failed to set permissions 755 on /mnt/sdcard/tests/profile/extensions/staged/special-powers@mozilla.org/chrome/specialpowers/content: [Exception... "Component returned failure code: 0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) [nsIFile.permissions]"  nsresult: "0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST)"  location: "JS frame :: resource://gre/modules/XPIProvider.jsm :: setFilePermissions :: line 218"  data: no]" {file: "resource://gre/modules/XPIProvider.jsm" line: 218}]
05-22 14:01:58.248 E/GeckoConsole(10327): [JavaScript Error: "ERROR addons.xpi: Failed to remove directory /mnt/sdcard/tests/profile/extensions/staged/special-powers@mozilla.org/chrome/specialpowers/content: [Exception... "Component returned failure code: 0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) [nsIFile.remove]"  nsresult: "0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST)"  location: "JS frame :: resource://gre/modules/XPIProvider.jsm :: SIO_installDirectory :: line 298"  data: no]" {file: "resource://gre/modules/XPIProvider.jsm" line: 298}]
05-22 14:01:58.293 E/GeckoConsole(10327): [JavaScript Error: "ERROR addons.xpi: Failure moving /mnt/sdcard/tests/profile/extensions/staged/special-powers@mozilla.org/chrome/specialpowers/content to /mnt/sdcard/tests/profile/extensions/special-powers@mozilla.org/chrome/specialpowers" {file: "resource://gre/modules/XPIProvider.jsm" line: 336}]
05-22 14:01:58.298 E/GeckoConsole(10327): [JavaScript Error: "ERROR addons.xpi: Failed to move entry /mnt/sdcard/tests/profile/extensions/staged/special-powers@mozilla.org/chrome/specialpowers/content: [Exception... "Component returned failure code: 0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) [nsIFile.remove]"  nsresult: "0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST)"  location: "JS frame :: resource://gre/modules/XPIProvider.jsm :: SIO_installDirectory :: line 298"  data: no]" {file: "resource://gre/modules/XPIProvider.jsm" line: 298}]
05-22 14:01:58.303 E/GeckoConsole(10327): [JavaScript Error: "ERROR addons.xpi: Failure moving /mnt/sdcard/tests/profile/extensions/staged/special-powers@mozilla.org/chrome/specialpowers to /mnt/sdcard/tests/profile/extensions/special-powers@mozilla.org/chrome" {file: "resource://gre/modules/XPIProvider.jsm" line: 336}]
05-22 14:01:58.308 E/GeckoConsole(10327): [JavaScript Error: "ERROR addons.xpi: Failed to move entry /mnt/sdcard/tests/profile/extensions/staged/special-powers@mozilla.org/chrome/specialpowers: [Exception... "Component returned failure code: 0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) [nsIFile.remove]"  nsresult: "0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST)"  location: "JS frame :: resource://gre/modules/XPIProvider.jsm :: SIO_installDirectory :: line 298"  data: no]" {file: "resource://gre/modules/XPIProvider.jsm" line: 298}]
05-22 14:01:58.313 E/GeckoConsole(10327): [JavaScript Error: "ERROR addons.xpi: Failure moving /mnt/sdcard/tests/profile/extensions/staged/special-powers@mozilla.org/chrome to /mnt/sdcard/tests/profile/extensions/special-powers@mozilla.org" {file: "resource://gre/modules/XPIProvider.jsm" line: 336}]
05-22 14:01:58.318 E/GeckoConsole(10327): [JavaScript Error: "ERROR addons.xpi: Failed to move entry /mnt/sdcard/tests/profile/extensions/staged/special-powers@mozilla.org/chrome: [Exception... "Component returned failure code: 0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) [nsIFile.remove]"  nsresult: "0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST)"  location: "JS frame :: resource://gre/modules/XPIProvider.jsm :: SIO_installDirectory :: line 298"  data: no]" {file: "resource://gre/modules/XPIProvider.jsm" line: 298}]
05-22 14:01:58.323 E/GeckoConsole(10327): [JavaScript Error: "ERROR addons.xpi: Failure moving /mnt/sdcard/tests/profile/extensions/staged/special-powers@mozilla.org to /mnt/sdcard/tests/profile/extensions" {file: "resource://gre/modules/XPIProvider.jsm" line: 336}]

This is when trying to run `make mochitest-remote` on my local developer box.  This means that the profile directory is on the SD card.  For the record, 

archo:mochitest ncalexan$ adb shell ls -al /mnt/sdcard/tests/profile/extensions/staged/special-powers@mozilla.org/chrome/specialpowers
drwxrwxr-x system   sdcard_rw          2013-05-22 14:01 content

So the requested file appears to exist.
jmaher: you seen this?  Can you get ateam to look into this?  Seems to be very recent.  mwargers was seeing this too.
Flags: needinfo?(jmaher)
Special powers is a plain extension IIRC so add-ons manager is probably better. Don't think anything special has changed here though.
Component: General → Add-ons Manager
Product: Add-on SDK → Toolkit
I haven't seen this, in fact all our automation is working well and I was doing runs today from an m-c build I did yesterday.  Is this a build with no patches applied?  Is there a chance that the sdcard is read only (adb shell mount) or is out of space?
Flags: needinfo?(jmaher)
The sdcard is not out of space.

adb shell mount gives me:
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/secure tmpfs rw,relatime,mode=700 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/platform/omap/omap_hsmmc.0/by-name/system /system ext4 ro,relatime,barrier=1,data=ordered 0 0
/dev/block/platform/omap/omap_hsmmc.0/by-name/efs /factory ext4 ro,relatime,barrier=1,data=ordered 0 0
/dev/block/platform/omap/omap_hsmmc.0/by-name/cache /cache ext4 rw,nosuid,nodev,noatime,errors=panic,barrier=1,nomblk_io_submit,data=ordered 0 0
/dev/block/platform/omap/omap_hsmmc.0/by-name/userdata /data ext4 rw,nosuid,nodev,noatime,errors=panic,barrier=1,nomblk_io_submit,data=ordered 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
/dev/fuse /mnt/shell/emulated fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/dm-0 /mnt/asec/com.athlon.brandstofprijs-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-1 /mnt/asec/nl.ziggo.android.tv-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-2 /mnt/asec/nl.rodekruis.android-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
mwargers-10103:~ mwargers$ 

Doing something like adb push log.txt /mnt/sdcard/ seems to work correctly.
nalexander and mw22, which devices are you seeing this on?
(In reply to Joel Maher (:jmaher) from comment #5)
> nalexander and mw22, which devices are you seeing this on?

I'm seeing this on a Galaxy SII, which has never had any problems deploying the specialpowers extension.  I have some ideas on how to bisect this; if I get anywhere I'll report back.
I'm also seeing this on an ASUS Transformer Prime (TF201).
I'm seeing this on the Galaxy Nexus.
These messages are truly warnings.  On Android, with a profile on the sdcard card, the Firefox app does not own (in the Unix sense) any of the profile files.  Therefore, some of these operations fail.  There's nothing to be done in this case other than muffle or ignore the warnings.  I don't think we should muffle, so I'm closing this.

The behaviour I was seeing that I fingered these warnings for is now Bug 876456.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.