gitpod-io / gitpod

The developer platform for on-demand cloud development environments to create software faster and more securely.
https://www.gitpod.io
GNU Affero General Public License v3.0
12.73k stars 1.22k forks source link

gitpod workspace-full is not working #5909

Closed synedra closed 2 years ago

synedra commented 2 years ago

Bug description

My repo is here: https://github.com/synedra/appsembler-tiktok

In there I'm using gitpod/workspace-full:latest

But the touch command when adding the gitpod layer is not working because the new ubuntu base doesn't seem to like touch using ~.

Which image should I use instead?

Steps to reproduce

Connecting to workspace logs... sha256:f5de6aa1cbf69ab48173c7a595ae0e9e655723d41e34d99f82854f6f7947ca3c: Pulling from synedra/dockertiktok Digest: sha256:f5de6aa1cbf69ab48173c7a595ae0e9e655723d41e34d99f82854f6f7947ca3c Status: Image is up to date for synedra/dockertiktok@sha256:f5de6aa1cbf69ab48173c7a595ae0e9e655723d41e34d99f82854f6f7947ca3c adding Gitpod layer ........... ........... ...... Error: build failed: cannot build workspace image: The command '/bin/sh -c touch ~/.hushlogin && BASH_RC=~/.bashrc; if [ -f "$BASH_RC" ]; then cp "$BASH_RC" ~/.bashrc-org; else touch ~/.bashrc-org; fi && cat /var/gitpod/.bashrc-prepend > "$BASH_RC" && cat ~/.bashrc-org >> "$BASH_RC" && cat /var/gitpod/.bashrc-append >> "$BASH_RC"' returned a non-zero code: 1

Expected behavior

Should work

Example repository

https://github.com/synedra/appsembler-tiktok

Anything else?

No response

iQQBot commented 2 years ago

your .gitpod.yml is using image: synedra/dockertiktok, as my saw, this image is build from Dockerfile.standard, the base image is codeserver, not gitpod/workspace-full:latest, you can build with Dockerfile and repush to docker hub or try to change .gitpod.yml to

image:
  file: Dockerfile
synedra commented 2 years ago

Now I get

Err:10 https://apt.llvm.org/focal llvm-toolchain-focal Release Could not wait for server fd - select (11: Resource temporarily unavailable) [IP: 199.232.198.49 443] Reading package lists... E: The repository 'https://apt.llvm.org/focal llvm-toolchain-focal Release' no longer has a Release file.

On Tue, Sep 28, 2021 at 8:19 AM iQQBot @.***> wrote:

your .gitpod.yml is using image: synedra/dockertiktok, as my saw, this image is build from Dockerfile.standard, the base image is codeserver, not gitpod/workspace-full:latest, you can build with Dockerfile and repush to docker hub or try to change .gitpod.yml to

image: file: Dockerfile

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gitpod-io/gitpod/issues/5909#issuecomment-929329961, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASOTDYE357HRE7UBDAWY3RDUEHME7ANCNFSM5E5QEYQQ .

iQQBot commented 2 years ago

Now I get Err:10 https://apt.llvm.org/focal llvm-toolchain-focal Release Could not wait for server fd - select (11: Resource temporarily unavailable) [IP: 199.232.198.49 443] Reading package lists... E: The repository 'https://apt.llvm.org/focal llvm-toolchain-focal Release' no longer has a Release file. On Tue, Sep 28, 2021 at 8:19 AM iQQBot @.***> wrote: your .gitpod.yml is using image: synedra/dockertiktok, as my saw, this image is build from Dockerfile.standard, the base image is codeserver, not gitpod/workspace-full:latest, you can build with Dockerfile and repush to docker hub or try to change .gitpod.yml to image: file: Dockerfile — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#5909 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASOTDYE357HRE7UBDAWY3RDUEHME7ANCNFSM5E5QEYQQ .

you want to install nodejs 16? a better way is use nvm install node

synedra commented 2 years ago

Now it builds, but won't launch: https://github.com/synedra/appsembler-tiktok

On Tue, Sep 28, 2021 at 9:11 AM iQQBot @.***> wrote:

Now I get Err:10 https://apt.llvm.org/focal https://urldefense.proofpoint.com/v2/url?u=https-3A__apt.llvm.org_focal&d=DwMFaQ&c=adz96Xi0w1RHqtPMowiL2g&r=HWv0IAveWdJ9m6eYc1Wk8l6QoYph5k_c9vUTYxyzhZ8&m=DuJQDbtLcQOa9rnUqQnrWU_xVZI_BRTB2wKlZvUsR54jcKofHNrIQ9QKzI0uQqRS&s=ZaqVSqZ53UemY6IYJu9UobkQsx6NeblimjeeDk6xycU&e= llvm-toolchain-focal Release Could not wait for server fd - select (11: Resource temporarily unavailable) [IP: 199.232.198.49 443] Reading package lists... E: The repository 'https://apt.llvm.org/focal https://urldefense.proofpoint.com/v2/url?u=https-3A__apt.llvm.org_focal&d=DwMFaQ&c=adz96Xi0w1RHqtPMowiL2g&r=HWv0IAveWdJ9m6eYc1Wk8l6QoYph5k_c9vUTYxyzhZ8&m=DuJQDbtLcQOa9rnUqQnrWU_xVZI_BRTB2wKlZvUsR54jcKofHNrIQ9QKzI0uQqRS&s=ZaqVSqZ53UemY6IYJu9UobkQsx6NeblimjeeDk6xycU&e= llvm-toolchain-focal Release' no longer has a Release file. … <#m7397190067739011495> On Tue, Sep 28, 2021 at 8:19 AM iQQBot @.***> wrote: your .gitpod.yml is using image: synedra/dockertiktok, as my saw, this image is build from Dockerfile.standard, the base image is codeserver, not gitpod/workspace-full:latest, you can build with Dockerfile and repush to docker hub or try to change .gitpod.yml to image: file: Dockerfile — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#5909 (comment) https://github.com/gitpod-io/gitpod/issues/5909#issuecomment-929329961>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASOTDYE357HRE7UBDAWY3RDUEHME7ANCNFSM5E5QEYQQ .

you want to install nodejs 16? a better way is use nvm install node

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gitpod-io/gitpod/issues/5909#issuecomment-929373499, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASOTDYCXMNOT4E423NGDRKDUEHSKZANCNFSM5E5QEYQQ .

iQQBot commented 2 years ago

@synedra because you use COPY command, by default the file owner is root not gitpod

USE

COPY --chown=gitpod:gitpod /root/config/.bashrc /home/gitpod/.bashrc.d/999-datastax
COPY --chown=gitpod:gitpod /root/config/* /home/gitpod/.gitpod-code/

replace

stale[bot] commented 2 years ago

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.