heroku-buildpack-elixir-otp-builds
heroku-buildpack-elixir-otp-builds copied to clipboard
Travis build script fails silently
The latest few updates with OTP version has silently failed on Travis with results in no new OTP build uploaded:
The command '/bin/sh -c apt-get update' returned a non-zero code: 100
239Unable to find image 'otp-build:latest' locally
240docker: Error response from daemon: pull access denied for otp-build, repository does not exist or may require 'docker login'.
241See 'docker run --help'.
242Error: No such container:path: otp-build-24.0.1-cedar-14:/home/build/out/OTP-24.0.1.tar.gz
243cedar-14
244The command "bash build.sh" exited with 0.
245
Example from https://travis-ci.org/github/HashNuke/heroku-buildpack-elixir-otp-builds/builds/771924649
Specifically these versions seem like they have not been build and uploaded by the script:
- 24.0.1
- 23.3.4
- 23.3.3
- 23.2.7.3
- 22.3.4.18
- 22.3.4.12.1
- 21.3.8.23
I'm getting the same error here
I tried looking into this just a little bit.
- The error message
240docker: Error response from daemon: pull access denied for otp-build, repository does not exist or may require 'docker login'.is a bit misleading and comes from this segment- Line 11 tries to unsuccessfully pull
otp-buildimage, which fails because that’s an image that’s not supposed to be pulled, but rather built and tagged on line 10
- Line 11 tries to unsuccessfully pull
docker buildfrom line 10 fails becauseapt-get updatefailsapt-get updatefails because it can’t read repo manifest from PostgreSQL- And that fails because PostgreSQL seems to have removed
trusty-pgdgfrom this directory - But provided that we don’t need PostgreSQL for building OTP (I hope?), perhaps the issue could be temporarily resolved by adding
RUN sed -i '/^deb http:\/\/apt\.postgresql\.org\/*/d' /etc/apt/sources.liston line 3 incedar-14.dockerfile
I have not fully tested this but I ~can prepare~ prepared a PR if you’d like to give this test a try 👌 cc @HashNuke
@HashNuke Thank you for merging my PR! However, it seems like that did not trigger a single Travis build… I think that could be caused by this warning: “Since June 15th, 2021, the building on travis-ci.org is ceased. Please use travis-ci.com from now on.”
Do you think it would be possible to migrate the project over to travis-ci.com? 🙇♂️
@HashNuke Thank you for merging my PR!
@Cellane that PR was merged by @jesseshieh.
Ah, my bad! Sorry, I did not check properly!
I think your diagnosis was correct, but it looks like the merged PR wasn't able to fix the issue. I'm trying to re-order the commands like this: https://github.com/HashNuke/heroku-buildpack-elixir-otp-builds/commit/0445ff9ad87db7be24cfdcf4216d17135af6986d
It does appear like the builds have indeed stopped though as you mentioned before. "Since June 15th, 2021, the building on travis-ci.org is ceased. Please use travis-ci.com from now on."
@HashNuke do you think you can help us migrate to travis-ci.com? It doesn't look like it's too involved. https://docs.travis-ci.com/user/migrate/open-source-repository-migration
Aa, true, the workaround should definitely come before trying to run apt-get update. Thanks for catching that!
@jesseshieh @HashNuke What's the word on the move to travis-ci.com ?
I know I'd love to see this; I'm really curious to see how my app performs with erlang 24 and the JIT.
@hlship If you upgrade your stack to gigalixir-20, you should be able to choose erlang 24. The erlang builds here are just for the older stacks.
I've been deploying using Dokku on Digital Ocean, so there's a lot of the stack I don't (yet?) understand.