-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in python tutorial #1100
Comments
Hi and welcome. First of all, it’s not Ubuntu, it’s Debian. Despite that,
isn’t it all about temporary problems apt repo problems?
Asking this, because I can’t reproduce given problem within EU region.
…On Thu, Jun 28, 2018 at 20:19 Scott Zimmerman ***@***.***> wrote:
Here is the screen capture of running the python tutorial. fn --version
works, and the Ubuntu guest in VirtualBox is able to browse to
http://deb.debian.org, but it redirects the url to https.
------------------------------
***@***.***:$ cd pythonfn
***@***.***:/pythonfn$ fn --verbose run
Building image pythonfn:0.0.1
Sending build context to Docker daemon 7.168kB
Step 1/8 : FROM python:3.6-slim-stretch
---> b31cb11e68a1
Step 2/8 : WORKDIR /function
---> Using cache
---> bcc9d59a78c3
Step 3/8 : RUN apt-get update && apt-get install --no-install-recommends
-qy build-essential gcc
---> Running in 346c6a4b01a3
Err:1 http://deb.debian.org/debian stretch InRelease
Temporary failure resolving 'deb.debian.org'
Err:2 http://security.debian.org/debian-security stretch/updates InRelease
Temporary failure resolving 'security.debian.org'
Err:3 http://deb.debian.org/debian stretch-updates InRelease
Temporary failure resolving 'deb.debian.org'
Reading package lists...
W: Failed to fetch http://deb.debian.org/debian/dists/stretch/InRelease
Temporary failure resolving 'deb.debian.org'
W: Failed to fetch
http://security.debian.org/debian-security/dists/stretch/updates/InRelease
Temporary failure resolving 'security.debian.org'
W: Failed to fetch
http://deb.debian.org/debian/dists/stretch-updates/InRelease Temporary
failure resolving 'deb.debian.org'
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...
E: Unable to locate package build-essential
E: Unable to locate package gcc
The command '/bin/sh -c apt-get update && apt-get install
--no-install-recommends -qy build-essential gcc' returned a non-zero code:
100
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1100>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC5L6w-fU0CswNd2XFKbh-tO4O8Nt2oyks5uBR4hgaJpZM4U72lQ>
.
|
I meant my guest os is Ubuntu where I'm running fn. I had the same error yesterday, is there a way to know what is causing the temporary outage? Is there a way I can point the demo to use the EU repo? |
How to debug this? You may try trace route to apt repos from inside docker
container manually.
However, you may try assigning custom docker image in func.yml
(build_image: ....) that does have all necessary packages (gcc, etc.)
installed.
…On Thu, Jun 28, 2018 at 21:24 Scott Zimmerman ***@***.***> wrote:
I meant my guest os is Ubuntu where I'm running fn. I had the same error
yesterday, is there a way to know what is causing the temporary outage? Is
there a way I can point the demo to use the EU repo?
After installing fn, what components is the demo trying to download?
Thanks
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1100 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AC5L6_r9M71qMSvzKEJjh5xm_sdvnkdhks5uBS1tgaJpZM4U72lQ>
.
|
It seems off that we’re doing an apt-get install during fn build here, I think the base requirements should be bundled into the respective containers we provide |
this seems to be the case now |
Here is the screen capture of running the python tutorial. fn --version works, and the Ubuntu guest in VirtualBox is able to browse to http://deb.debian.org, but it redirects the url to https.
scott@scott-VirtualBox:
$ cd pythonfn/pythonfn$ fn --verbose runscott@scott-VirtualBox:
Building image pythonfn:0.0.1
Sending build context to Docker daemon 7.168kB
Step 1/8 : FROM python:3.6-slim-stretch
---> b31cb11e68a1
Step 2/8 : WORKDIR /function
---> Using cache
---> bcc9d59a78c3
Step 3/8 : RUN apt-get update && apt-get install --no-install-recommends -qy build-essential gcc
---> Running in 346c6a4b01a3
Err:1 http://deb.debian.org/debian stretch InRelease
Temporary failure resolving 'deb.debian.org'
Err:2 http://security.debian.org/debian-security stretch/updates InRelease
Temporary failure resolving 'security.debian.org'
Err:3 http://deb.debian.org/debian stretch-updates InRelease
Temporary failure resolving 'deb.debian.org'
Reading package lists...
W: Failed to fetch http://deb.debian.org/debian/dists/stretch/InRelease Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/InRelease Temporary failure resolving 'security.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/InRelease Temporary failure resolving 'deb.debian.org'
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...
E: Unable to locate package build-essential
E: Unable to locate package gcc
The command '/bin/sh -c apt-get update && apt-get install --no-install-recommends -qy build-essential gcc' returned a non-zero code: 100
The text was updated successfully, but these errors were encountered: