question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support Package fails to download if proxy is in use

See original GitHub issue

After successfully testing the HelloWorld application using briefcase dev I attempted to move on to tutorial 3 and got the following error: Using support package https://briefcase-support.org/python?platform=windows&version=3.6&arch=amd64 Unable to downloading support package; is your computer offline?

I am behind a Proxy but I configured the git config --global http.proxy and https.proxy using the same proxy configurations I use for pip behind the proxy but it still resulted in the same error. Please advise.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
freakboy3742commented, Aug 25, 2020

Thanks for the report!

In this case, the problem isn’t with git or pip (Briefcase does use those two services as well); it’s with the https://briefcase-support.org website that hosts our pre-build Python support packages. In your particular case, the URL that is listed will be redirecting to download https://www.python.org/ftp/python/3.6.8/python-3.6.8-embed-amd64.zip

We don’t currently have any proxy support baked in for accessing that service - it sounds like we may need to add support for proxies.

To help us work out what is required: What configuration would you need in briefcase to allow:

curl -L "https://briefcase-support.org/python?platform=windows&version=3.6&arch=amd64" -o python-3.6.8-embed-amd64.zip

to successfully download the ZIP file?

As a workaround; if you can manually download that file, you can add support_package = 'path\to\python-3.6.8-embed-amd64.zip' to the MSI section of your pyproject.toml - that will circumvent Briefcase’s attempt to download the support package and use the local version.

0reactions
CJRobeycommented, Mar 9, 2021

Just as a note for anyone who may be having the following issue when building for linux behind a proxy:

Sending build context to Docker daemon  527.4kB
Step 1/17 : FROM ubuntu:18.04
 ---> 329ed837d508
Step 2/17 : WORKDIR /app
 ---> Using cache
 ---> 5f258402fbb4
Step 3/17 : ARG PY_VERSION
 ---> Using cache
 ---> a743e1568346
Step 4/17 : ARG SYSTEM_REQUIRES
 ---> Using cache
 ---> b63e3081971c
Step 5/17 : ENV DEBIAN_FRONTEND="noninteractive"
 ---> Using cache
 ---> f28a77e17016
Step 6/17 : RUN apt-get update -y &&     apt-get install -y         software-properties-common         dirmngr         apt-transport-https         lsb-release         ca-certificates
 ---> Running in 3d0852eca36e
Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
  Could not connect to webproxy.ext.ti.com:80 (23.202.231.168), connection timed out Could not connect to webproxy.ext.ti.com:80 (23.217.138.109), connection timed out
Err:2 http://archive.ubuntu.com/ubuntu bionic InRelease
  Could not connect to webproxy.ext.ti.com:80 (23.202.231.168), connection timed out Could not connect to webproxy.ext.ti.com:80 (23.217.138.109), connection timed out
Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
  Unable to connect to webproxy.ext.ti.com:80:
Err:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
  Unable to connect to webproxy.ext.ti.com:80:
Reading package lists...
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease  Could not connect to webproxy.ext.ti.com:80 (23.202.231.168), connection timed out Could not connect to webproxy.ext.ti.com:80 (23.217.138.109), connection timed out
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease  Unable to connect to webproxy.ext.ti.com:80:
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease  Unable to connect to webproxy.ext.ti.com:80:
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease  Could not connect to webproxy.ext.ti.com:80 (23.202.231.168), connection timed out Could not connect to webproxy.ext.ti.com:80 (23.217.138.109), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
Package ca-certificates is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package software-properties-common
E: Unable to locate package dirmngr
E: Unable to locate package lsb-release
E: Package 'ca-certificates' has no installation candidate
The command '/bin/sh -c apt-get update -y &&     apt-get install -y         software-properties-common         dirmngr         apt-transport-https         lsb-release         ca-certificates' returned a non-zero code: 100

Error building Docker container for batchccm.

This is a docker proxy issue that can be solved here: https://docs.docker.com/config/daemon/systemd/

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when downloading a Support Package with proxy
When I try to install the package by the Support Package Installer (SPI) from Internet, an error occurs because of my proxy.
Read more >
proxy issue when downloading Software Updates
On our Primary site server, under Admin > Site System properties, we have set the proxy settings with username and password.
Read more >
Error in install.packages : unable to install packages - General
Help please, I have been trying to download the package dplyr into my r studio but is unable to do so - maybe...
Read more >
Uploading support packages manually - IBM
You can use the management GUI or the command-line interface to upload support packages to the support center. If support assistance is configured...
Read more >
Can't donwnload some files when using web proxy (works ...
Please ask a new question if you need help. ... On the proxy (Squid) I can see the failing files downloaded and I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found