Closed Bug 1684501 Opened 4 years ago Closed 4 years ago

ERROR_NETWORK_FAILURE when downloading language pack via policy (macOS)

Categories

(Firefox :: Enterprise Policies, defect)

Firefox 84
defect

Tracking

()

RESOLVED INACTIVE

People

(Reporter: martin.van.diemen, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.2 Safari/605.1.15

Steps to reproduce:

I've created a policy for installing additional language packs. When applying the policy I see that not all languages are installed.

Actual results:

Active in about:policies shows the correct policy name and value.
"https://addons.mozilla.org/firefox/downloads/file/3698097/deutsch_de_language_pack-84.0buildid20201221152838-fx.xpi"
"https://addons.mozilla.org/firefox/downloads/file/1163876/german_dictionary-2.0.6.1webext.xpi"
"https://addons.mozilla.org/firefox/downloads/file/3698081/francais_language_pack-84.0buildid20201221152838-fx.xpi"
"https://addons.mozilla.org/firefox/downloads/file/3581786/dictionnaire_francais-7.0b.xpi"
"https://addons.mozilla.org/firefox/downloads/file/3693052/nederlands_nl_language_pack-84.0buildid20201211215739-fx.xpi"
"https://addons.mozilla.org/firefox/downloads/file/1163889/woordenboek_nederlands-3.1.2.1webext.xpi"

Errors in about:policies shows:
Download failed - ERROR_NETWORK_FAILURE - https://addons.mozilla.org/firefox/downloads/file/3698097/deutsch_de_language_pack-84.0buildid20201221152838-fx.xpi
Download failed - ERROR_NETWORK_FAILURE - https://addons.mozilla.org/firefox/downloads/file/3698081/francais_language_pack-84.0buildid20201221152838-fx.xpi

The links are correct, I'm able to download the packs manually. Removing and pushing the policy again to the client doesn't solve the issue.

Expected results:

Language packs should install without error and if the download failed Firefox should retry to download the language pack.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Enterprise Policies

Would you please provide exact steps to your process of installing additional language packs via policies? I'd like to attempt its confirmation as it is still unconfirmed so far.

Flags: needinfo?(martin.van.diemen)

Yes, sorry, I should have asked for more info when I said to report this. Which policy are you using?

I did some testing and can only recreate when I disconnect my network. There is a preference you can flip in about:config - extensions.logging.enabled - that gives more detailed info.

This is what I see when I have no network connection:

1611261400470 addons.xpi DEBUG Download started for https://addons.mozilla.org/firefox/downloads/file/3698097/deutsch_de_language_pack-84.0buildid20201221152838-fx.xpi to file C:\Users\mkaply\AppData\Local\Temp\tmp-psm.xpi
1611261400470 addons.xpi DEBUG Download of https://addons.mozilla.org/firefox/downloads/file/3698097/deutsch_de_language_pack-84.0buildid20201221152838-fx.xpi completed.
1611261400470 addons.xpi WARN Download of https://addons.mozilla.org/firefox/downloads/file/3698097/deutsch_de_language_pack-84.0buildid20201221152838-fx.xpi failed: 2152398878
Policies.jsm: Download failed - ERROR_NETWORK_FAILURE - https://addons.mozilla.org/firefox/downloads/file/3698097/deutsch_de_language_pack-84.0buildid20201221152838-fx.xpi Policies.jsm:2308
1611261400471 addons.xpi DEBUG downloadFailed: removing temp file for https://addons.mozilla.org/firefox/downloads/file/3698097/deutsch_de_language_pack-84.0buildid20201221152838-fx.xpi
1611261400471 addons.xpi DEBUG removeTemporaryFile: https://addons.mozilla.org/firefox/downloads/file/3698097/deutsch_de_language_pack-84.0buildid20201221152838-fx.xpi removing temp file C:\Users\mkaply\AppData\Local\Temp\tmp-psm.xpi

So I'd be curious to see what you see on the JS console when you flip that pref.

I did a clean install of Firefox. Network connection is fine because it did install other languages. Below the results:

1611499139362 addons.xpi DEBUG Download started for https://addons.mozilla.org/firefox/downloads/file/3698097/deutsch_de_language_pack-84.0buildid20201221152838-fx.xpi to file /var/folders/2j/z3ynv4652wldnjrpmyq7nqyc0000gn/T/tmp-4wq.xpi
1611499139362 addons.xpi DEBUG Download of https://addons.mozilla.org/firefox/downloads/file/3698097/deutsch_de_language_pack-84.0buildid20201221152838-fx.xpi completed.
1611499139362 addons.xpi WARN Download of https://addons.mozilla.org/firefox/downloads/file/3698097/deutsch_de_language_pack-84.0buildid20201221152838-fx.xpi failed: 2152398919
1611499139363 addons.xpi DEBUG downloadFailed: removing temp file for https://addons.mozilla.org/firefox/downloads/file/3698097/deutsch_de_language_pack-84.0buildid20201221152838-fx.xpi
1611499139363 addons.xpi DEBUG removeTemporaryFile: https://addons.mozilla.org/firefox/downloads/file/3698097/deutsch_de_language_pack-84.0buildid20201221152838-fx.xpi removing temp file /var/folders/2j/z3ynv4652wldnjrpmyq7nqyc0000gn/T/tmp-4wq.xpi

Flags: needinfo?(martin.van.diemen)

That specific error is:

NS_ERROR_NET_INTERRUPT = 0x804B0047,

which implied something went wrong with the connection. I'm at a loss.

This sounds like it might be an issue with AMO and these files somehow?

Any ideas wezhou?

Flags: needinfo?(wezhou)

We can download those 2 files using "wget", which means the files are served by our servers as expected.

I noticed in comment #4 Mike said he's able to install those files unless he intentionally disconnected his network. The second thing I noticed is that in your debug logs, it seemed to indicated those files were downloaded successfully, where it says,

1611499139362 addons.xpi DEBUG Download of https://addons.mozilla.org/firefox/downloads/file/3698097/deutsch_de_language_pack-84.0buildid20201221152838-fx.xpi completed.

and even it tried to remove the temp file, where it says,

1611499139363 addons.xpi DEBUG downloadFailed: removing temp file for https://addons.mozilla.org/firefox/downloads/file/3698097/deutsch_de_language_pack-84.0buildid20201221152838-fx.xpi

The fact that Mike was able to install the files, and the logs seem to indicate this is not a problem of "downloading" a file, but more likely a problem of "installing" the file.

However, I think the "ERROR_NETWORK_FAILURE" error is confusing and probably misleading.

Would it be possible that something related to the browser is preventing the files from being installed?

Flags: needinfo?(wezhou)

I think the:

1611261400470 addons.xpi DEBUG Download of https://addons.mozilla.org/firefox/downloads/file/3698097/deutsch_de_language_pack-84.0buildid20201221152838-fx.xpi completed.

message is a bug in Firefox. I think we're using the term "completed" when we don't mean "succeeded"

martin:

are you saying every other XPI you installed from AMO via policy worked except the German langpack?

Flags: needinfo?(martin.van.diemen)
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → INACTIVE
Flags: needinfo?(martin.van.diemen)
You need to log in before you can comment on or make changes to this bug.