Skip to content

Instantly share code, notes, and snippets.

@winpat
Created October 18, 2020 20:12
Show Gist options
  • Save winpat/321145ab42bb5bddba7ea0adc66777b0 to your computer and use it in GitHub Desktop.
Save winpat/321145ab42bb5bddba7ea0adc66777b0 to your computer and use it in GitHub Desktop.
Unable to inject ceb into image with nix-based waypoint build
~/vcs/waypoint-examples/docker/python (main) waypoint up -vv
2020-10-18T22:00:11.928+0200 [INFO] waypoint: waypoint version: full_string="Waypoint edf37a0 (edf37a0+CHANGES)" version=edf37a0 prerelease= metadata= revision=edf37a0+CHANGES
2020-10-18T22:00:11.929+0200 [DEBUG] waypoint: home configuration directory: path=/home/patrick/.config/waypoint
2020-10-18T22:00:11.930+0200 [INFO] waypoint.server: attempting to source credentials and connect
2020-10-18T22:00:11.960+0200 [DEBUG] waypoint.server: connection established with sourced credentials
2020-10-18T22:00:11.963+0200 [INFO] waypoint: server version info: version=v0.1.2 api_min=1 api_current=1 entrypoint_min=1 entrypoint_current=1
2020-10-18T22:00:11.963+0200 [INFO] waypoint: negotiated api version: version=1
2020-10-18T22:00:11.963+0200 [DEBUG] waypoint: will operate on app: name=example-python
2020-10-18T22:00:11.963+0200 [INFO] waypoint: local mode, starting local runner
2020-10-18T22:00:11.963+0200 [DEBUG] waypoint.runner: registering runner
2020-10-18T22:00:11.964+0200 [INFO] waypoint.runner: runner registered with server
2020-10-18T22:00:11.964+0200 [INFO] waypoint: runner started: runner_id=01EMYMRK5VBTJ85H122TH7MADJ
2020-10-18T22:00:11.964+0200 [DEBUG] waypoint: queueing job: operation=*gen.Job_Build
2020-10-18T22:00:11.969+0200 [DEBUG] waypoint: opening job stream: job_id=01EMYMRK5XVCQWKR3176VYSR7J
2020-10-18T22:00:11.969+0200 [DEBUG] waypoint.runner: opening job stream
2020-10-18T22:00:11.970+0200 [INFO] waypoint.runner: waiting for job assignment
» Building...2020-10-18T22:00:11.972+0200 [INFO] waypoint.runner: job assignment received: job_id=01EMYMRK5XVCQWKR3176VYSR7J
2020-10-18T22:00:11.973+0200 [INFO] waypoint.runner: starting job execution: job_id=01EMYMRK5XVCQWKR3176VYSR7J
2020-10-18T22:00:11.973+0200 [DEBUG] waypoint.runner: plugin search path: job_id=01EMYMRK5XVCQWKR3176VYSR7J path=[, .waypoint/plugins, /home/patrick/.config/waypoint/plugins]
2020-10-18T22:00:11.973+0200 [DEBUG] waypoint.runner: searching for plugin: job_id=01EMYMRK5XVCQWKR3176VYSR7J plugin_name=docker
2020-10-18T22:00:11.973+0200 [DEBUG] waypoint.runner: plugin found as builtin: job_id=01EMYMRK5XVCQWKR3176VYSR7J plugin_name=docker
2020-10-18T22:00:11.974+0200 [INFO] waypoint.runner.app.example-python.builder: launching plugin: job_id=01EMYMRK5XVCQWKR3176VYSR7J type=Builder path=/nix/store/b9hzl70nc3nijnvvnr0wndrx5sa7kq1d-waypoint-0.1.2/bin/waypoint args=[/nix/store/b9hzl70nc3nijnvvnr0wndrx5sa7kq1d-waypoint-0.1.2/bin/waypoint, plugin, docker]
2020-10-18T22:00:11.974+0200 [DEBUG] waypoint.runner.app.example-python.builder: starting plugin: job_id=01EMYMRK5XVCQWKR3176VYSR7J path=/nix/store/b9hzl70nc3nijnvvnr0wndrx5sa7kq1d-waypoint-0.1.2/bin/waypoint args=[/nix/store/b9hzl70nc3nijnvvnr0wndrx5sa7kq1d-waypoint-0.1.2/bin/waypoint, plugin, docker]
2020-10-18T22:00:11.975+0200 [DEBUG] waypoint.runner.app.example-python.builder: plugin started: job_id=01EMYMRK5XVCQWKR3176VYSR7J path=/nix/store/b9hzl70nc3nijnvvnr0wndrx5sa7kq1d-waypoint-0.1.2/bin/waypoint pid=27822
2020-10-18T22:00:11.975+0200 [DEBUG] waypoint.runner.app.example-python.builder: waiting for RPC address: job_id=01EMYMRK5XVCQWKR3176VYSR7J path=/nix/store/b9hzl70nc3nijnvvnr0wndrx5sa7kq1d-waypoint-0.1.2/bin/waypoint
2020-10-18T22:00:12.024+0200 [DEBUG] waypoint.runner.app.example-python.builder: using plugin: job_id=01EMYMRK5XVCQWKR3176VYSR7J version=1
2020-10-18T22:00:12.024+0200 [DEBUG] waypoint.runner.app.example-python.builder.waypoint: plugin address: job_id=01EMYMRK5XVCQWKR3176VYSR7J address=/tmp/plugin399999784 network=unix @module=plugin timestamp=2020-10-18T22:00:12.023+0200
2020-10-18T22:00:12.026+0200 [DEBUG] waypoint.runner.app.example-python.builder: plugin successfully launched and connected: job_id=01EMYMRK5XVCQWKR3176VYSR7J
2020-10-18T22:00:12.027+0200 [INFO] waypoint.runner.app.example-python.builder: initialized component: job_id=01EMYMRK5XVCQWKR3176VYSR7J type=Builder
2020-10-18T22:00:12.027+0200 [INFO] waypoint.runner.app.example-python.builder: registered component-specific mappers: job_id=01EMYMRK5XVCQWKR3176VYSR7J len=0
2020-10-18T22:00:12.028+0200 [INFO] waypoint.runner.app.example-python.platform: launching plugin: job_id=01EMYMRK5XVCQWKR3176VYSR7J type=Platform path=/nix/store/b9hzl70nc3nijnvvnr0wndrx5sa7kq1d-waypoint-0.1.2/bin/waypoint args=[/nix/store/b9hzl70nc3nijnvvnr0wndrx5sa7kq1d-waypoint-0.1.2/bin/waypoint, plugin, docker]
2020-10-18T22:00:12.028+0200 [DEBUG] waypoint.runner.app.example-python.platform: starting plugin: job_id=01EMYMRK5XVCQWKR3176VYSR7J path=/nix/store/b9hzl70nc3nijnvvnr0wndrx5sa7kq1d-waypoint-0.1.2/bin/waypoint args=[/nix/store/b9hzl70nc3nijnvvnr0wndrx5sa7kq1d-waypoint-0.1.2/bin/waypoint, plugin, docker]
2020-10-18T22:00:12.029+0200 [DEBUG] waypoint.runner.app.example-python.platform: plugin started: job_id=01EMYMRK5XVCQWKR3176VYSR7J path=/nix/store/b9hzl70nc3nijnvvnr0wndrx5sa7kq1d-waypoint-0.1.2/bin/waypoint pid=27834
2020-10-18T22:00:12.029+0200 [DEBUG] waypoint.runner.app.example-python.platform: waiting for RPC address: job_id=01EMYMRK5XVCQWKR3176VYSR7J path=/nix/store/b9hzl70nc3nijnvvnr0wndrx5sa7kq1d-waypoint-0.1.2/bin/waypoint
2020-10-18T22:00:12.076+0200 [DEBUG] waypoint.runner.app.example-python.platform.waypoint: plugin address: job_id=01EMYMRK5XVCQWKR3176VYSR7J @module=plugin address=/tmp/plugin245248207 network=unix timestamp=2020-10-18T22:00:12.076+0200
2020-10-18T22:00:12.077+0200 [DEBUG] waypoint.runner.app.example-python.platform: using plugin: job_id=01EMYMRK5XVCQWKR3176VYSR7J version=1
2020-10-18T22:00:12.078+0200 [INFO] waypoint.runner.app.example-python.platform: platform plugin capable of destroy: job_id=01EMYMRK5XVCQWKR3176VYSR7J
2020-10-18T22:00:12.079+0200 [INFO] waypoint.runner.app.example-python.platform: platform plugin capable of auth: job_id=01EMYMRK5XVCQWKR3176VYSR7J
2020-10-18T22:00:12.079+0200 [DEBUG] waypoint.runner.app.example-python.platform: plugin successfully launched and connected: job_id=01EMYMRK5XVCQWKR3176VYSR7J
2020-10-18T22:00:12.079+0200 [INFO] waypoint.runner.app.example-python.platform: initialized component: job_id=01EMYMRK5XVCQWKR3176VYSR7J type=Platform
2020-10-18T22:00:12.079+0200 [INFO] waypoint.runner.app.example-python.platform: registered component-specific mappers: job_id=01EMYMRK5XVCQWKR3176VYSR7J len=0
2020-10-18T22:00:12.081+0200 [INFO] waypoint.runner.app.example-python: no releaser configured, platform does not support a default releaser: job_id=01EMYMRK5XVCQWKR3176VYSR7J platform_type=*plugin.mix_Platform_Destroy
2020-10-18T22:00:12.081+0200 [INFO] waypoint.runner: project initialized: job_id=01EMYMRK5XVCQWKR3176VYSR7J workspace=default
2020-10-18T22:00:12.081+0200 [INFO] waypoint.runner: executing operation: job_id=01EMYMRK5XVCQWKR3176VYSR7J type=*gen.Job_Build
2020-10-18T22:00:12.081+0200 [DEBUG] waypoint.runner.app.example-python.build: creating metadata on server: job_id=01EMYMRK5XVCQWKR3176VYSR7J
2020-10-18T22:00:12.085+0200 [DEBUG] waypoint.runner.app.example-python.build: running local operation: id=01EMYMRK9J3XW96ZSBZNWN9JVB job_id=01EMYMRK5XVCQWKR3176VYSR7J
✓ Initializing Docker client...
✓ Building image...
│ ---> Using cache
│ ---> be20dc949f4d
│ Step 9/10 : EXPOSE 8080
│ ---> Using cache
│ ---> ddb3a153399d
│ Step 10/10 : CMD ["gunicorn", "-b", "0.0.0.0:8080", "wsgi", "-k", "gevent"]
│ ---> Using cache
│ ---> 8ac60f48a5bb
│ Successfully built 8ac60f48a5bb
│ Successfully tagged waypoint.local/example-python:latest
⠸ Injecting Waypoint Entrypoint...2020-10-18T22:00:12.571+0200 [WARN] waypoint.runner.app.example-python.build: error during local operation: id=01EMYMRK9J3XW96ZSBZNWN9JVB job_id=01EMYMRK5XVCQWKR3176VYSR7J err="rpc error: code = Internal desc = unable to restore custom entry point binary: Asset ceb/ceb can't read by error: Read "ceb/ceb": gzip: invalid checksum"
2020-10-18T22:00:12.577+0200 [DEBUG] waypoint.runner.app.example-python.build: metadata marked as complete: id=01EMYMRK9J3XW96ZSBZNWN9JVB job_id=01EMYMRK5XVCQWKR3176VYSR7J
2020-10-18T22:00:12.577+0200 [DEBUG] waypoint.runner: closing project: job_id=01EMYMRK5XVCQWKR3176VYSR7J
✓ Initializing Docker client...
✓ Building image...
│ ---> Using cache
│ ---> be20dc949f4d
│ Step 9/10 : EXPOSE 8080
│ ---> Using cache
│ ---> ddb3a153399d
│ Step 10/10 : CMD ["gunicorn", "-b", "0.0.0.0:8080", "wsgi", "-k", "gevent"]
│ ---> Using cache
│ ---> 8ac60f48a5bb
│ Successfully built 8ac60f48a5bb
│ Successfully tagged waypoint.local/example-python:latest
⠸ Injecting Waypoint Entrypoint...
! unable to restore custom entry point binary: Asset ceb/ceb can't read by error:
Read "ceb/ceb": gzip: invalid checksum
2020-10-18T22:00:12.591+0200 [WARN] waypoint: context cancelled, stopping interrupt listener loop
~/vcs/waypoint-examples/docker/python (main) echo $?
0
~/vcs/waypoint-examples/docker/python (main) nix-env --version
nix-env (Nix) 2.3.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment