Skip to content
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

Closed
scottz1 opened this issue Jun 28, 2018 · 5 comments
Closed

Error in python tutorial #1100

scottz1 opened this issue Jun 28, 2018 · 5 comments
Labels
bug CLI we should move these to CLI?

Comments

@scottz1
Copy link

scottz1 commented Jun 28, 2018

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
scott@scott-VirtualBox:
/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

@denismakogon
Copy link
Member

denismakogon commented Jun 28, 2018 via email

@scottz1
Copy link
Author

scottz1 commented Jun 28, 2018

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

@denismakogon
Copy link
Member

denismakogon commented Jun 28, 2018 via email

@zootalures
Copy link
Member

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

@rdallman rdallman added bug CLI we should move these to CLI? labels Jun 29, 2018
@rdallman
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug CLI we should move these to CLI?
Projects
None yet
Development

No branches or pull requests

4 participants