gitpod icon indicating copy to clipboard operation
gitpod copied to clipboard

Gitpod fails to compile image

Open msusanrbrown opened this issue 3 years ago • 3 comments

Bug description

When I try to open my repo using Gitpod I get this error:

#6 [3/8] RUN pyenv update && pyenv install 3.10.5 && pyenv global 3.10.5
#6 0.192 Updating /home/gitpod/.pyenv...
#6 0.192 pyenv-update: /home/gitpod/.pyenv is not clean
#6 0.776 Updating /home/gitpod/.pyenv/plugins/pyenv-doctor...
#6 0.776 From https://github.com/pyenv/pyenv-doctor
#6 1.256  * branch            master     -> FETCH_HEAD
#6 1.275 Already up to date.
#6 1.276 Updating /home/gitpod/.pyenv/plugins/pyenv-installer...
#6 1.276 From https://github.com/pyenv/pyenv-installer
#6 1.662  * branch            master     -> FETCH_HEAD
#6 1.672 Already up to date.
#6 1.673 Updating /home/gitpod/.pyenv/plugins/pyenv-update...
#6 1.673 From https://github.com/pyenv/pyenv-update
#6 2.033  * branch            master     -> FETCH_HEAD
#6 2.044 Already up to date.
#6 2.045 Updating /home/gitpod/.pyenv/plugins/pyenv-virtualenv...
#6 2.045 From https://github.com/pyenv/pyenv-virtualenv
#6 2.473  * branch            master     -> FETCH_HEAD
#6 2.486 Already up to date.
#6 2.486 Updating /home/gitpod/.pyenv/plugins/pyenv-which-ext...
#6 2.486 From https://github.com/pyenv/pyenv-which-ext
#6 2.840  * branch            master     -> FETCH_HEAD
#6 2.854 Already up to date.
#6 ERROR: process "/bin/sh -c pyenv update && pyenv install 3.10.5 && pyenv global 3.10.5" did not complete successfully: exit code: 1
------
 > [3/8] RUN pyenv update && pyenv install 3.10.5 && pyenv global 3.10.5:
From https://github.com/pyenv/pyenv-which-ext
#6 2.840  * branch            master     -> FETCH_HEAD
#6 2.854 Already up to date.
------
.gitpod.Dockerfile:9
--------------------
   7 |         && sudo rm -rf /var/cache/apt/* /var/lib/apt/lists/* /tmp/*
   8 |     
   9 | >>> RUN pyenv update && pyenv install 3.10.5 && pyenv global 3.10.5
  10 |     RUN pip install pipenv yapf
  11 |     
--------------------
error: failed to solve: process "/bin/sh -c pyenv update && pyenv install 3.10.5 && pyenv global 3.10.5" did not complete successfully: exit code: 1
{"@type":"type.googleapis.com/google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent","command":"build","error":"exit status 1","level":"error","message":"build failed","serviceContext":{"service":"bob","version":""},"severity":"ERROR","time":"2022-09-05T01:31:19Z"}
exit

headless task failed: exit status 1

image image

Steps to reproduce

open gitpod url: https://gitpod.io/#https://github.com/msusanrbrown/apiv2/tree/master

Workspace affected

No response

Expected behavior

Docker image should be compiled

Example repository

https://github.com/msusanrbrown/apiv2/tree/master

Anything else?

No response

msusanrbrown avatar Sep 05 '22 01:09 msusanrbrown

I have the same issue

jefer94 avatar Sep 19 '22 23:09 jefer94

This lines fix my issue

# That Gitpod install pyenv for me? no, thanks
WORKDIR /home/gitpod/
RUN rm .pyenv -Rf
RUN rm .gp_pyenv.d -Rf
RUN curl https://pyenv.run | bash

jefer94 avatar Sep 20 '22 07:09 jefer94

@jefer94 this can be fixed by removing pyenv update on here: https://github.com/breatheco-de/apiv2/blob/ca7892e40d76835cb024e1acecfd80c4138fe32a/.gitpod.Dockerfile#L20

Will push a patch that will not cause errors with pyenv update by default.

Removing the gitpod setup of pyenv means that it won't have integration with prebuilds and vscode intellisense(out of the box) 😄

axonasif avatar Sep 21 '22 12:09 axonasif

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 20 '22 20:12 stale[bot]