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

apt-buildpack https support (apt-transport-https) #20

Closed
3 tasks done
lrstanley opened this issue Apr 29, 2019 · 4 comments
Closed
3 tasks done

apt-buildpack https support (apt-transport-https) #20

lrstanley opened this issue Apr 29, 2019 · 4 comments

Comments

@lrstanley
Copy link

What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version? cf-cli: v6.43.0 and cf version: 2.2.9-build.5 and tested with 2.3.8-build.6.

What version of the buildpack you are using? v0.1.6

If you were attempting to accomplish a task, what was it you were attempting to do? use an Artifactory based Ubuntu repository, as we are unable to access ubuntu repos directly due to corporate firewall reasons.

What did you expect to happen? It to fetch packages from Artifactory as if it were fetching from Ubuntu directly.

What was the actual behavior? Our Artifactory cluster is https only, which requires the https module for apt. I believe it is failing out because the buildpack doesn't have the https module.

Please confirm where necessary:

  • I have included a log output
  • My log includes an error message
  • I have included steps for reproduction

Deploy logs:

Creating app python-example...
Mapping routes...
Comparing local files to remote cache...
Packaging files to upload...
Uploading files...
 13.09 KiB / 13.09 KiB  100.00% 1s

Waiting for API to complete processing files...

Staging app and tracing logs...
   Downloading python_buildpack...
   Downloading apt_buildpack...
   Downloaded python_buildpack
   Downloaded apt_buildpack
   Cell e4b900e7-e937-48e0-b4eb-3332195c51c6 creating container for instance dc9f2501-88e5-46fa-9e9f-07e0d4431c02
   Cell e4b900e7-e937-48e0-b4eb-3332195c51c6 successfully created container for instance dc9f2501-88e5-46fa-9e9f-07e0d4431c02
   Downloading app package...
   Downloaded app package (13.1K)
   -----> Apt Buildpack version 0.1.6
          **WARNING** 
          ⚠️️️ 🚨️️ ⚠️ 🚨️️
          This application is being deployed on cflinuxfs2 which is being deprecated in April, 2019.
          Please migrate this application to cflinuxfs3.
          For more information about changing the stack, see https://docs.cloudfoundry.org/devguide/deploy-apps/stacks.html
          ⚠️️️ 🚨️️ ⚠️ 🚨️️
   -----> Adding apt repos
   -----> Updating apt cache
   E: The method driver /usr/lib/apt/methods/https could not be found.
          **ERROR** Error running supply: failed to apt-get update 
          
          exit status 100
   Failed to run all supply scripts: exit status 14
   Exit status 225
   Cell e4b900e7-e937-48e0-b4eb-3332195c51c6 stopping instance dc9f2501-88e5-46fa-9e9f-07e0d4431c02
   Cell e4b900e7-e937-48e0-b4eb-3332195c51c6 destroying container for instance dc9f2501-88e5-46fa-9e9f-07e0d4431c02
   Cell e4b900e7-e937-48e0-b4eb-3332195c51c6 successfully destroyed container for instance dc9f2501-88e5-46fa-9e9f-07e0d4431c02
Error staging application: Staging error: staging failed
FAILED
Deleting app python-example in org myorg / space myspace as myuser...
OK
Renaming app python-example-venerable to python-example in org myorg / space myspace as myuser...
OK
error running command: exit status 1

Repo:

  1. apt.yml:
---
packages:
- tesseract-ocr
- libtesseract-dev
repos:
- deb https://myartifactory.domain.com/ubuntu-archive-remote bionic universe
  1. deploy the app.

Sidenote: I also noticed that if I didn't specify Artifactory, because Ubuntu is blocked, it just succeeded, but didn't show it was installed when I logged into the container. I think this may be similar to #19

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/165684025

The labels on this github issue will be updated when the story is started.

@lrstanley lrstanley changed the title apt-buildpack https support apt-buildpack https support (apt-transport-https) Apr 29, 2019
@kardolus
Copy link
Contributor

kardolus commented May 1, 2019

Thanks @lrstanley,

Not sure if this is possible. To me it seems we would have to install the https module from a local deb package in order to make this work. But I'm not sure.

@sclevine ideas?

@shanks3012
Copy link

Duplicate of: #9.

Please use cflinuxfs3 as cflinuxfs2 is no longer supported.

Thanks.

@lrstanley
Copy link
Author

Thanks, didn't notice that existing issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants