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

Depoyment failed #335

Open
scxsayas opened this issue Sep 30, 2023 · 1 comment
Open

Depoyment failed #335

scxsayas opened this issue Sep 30, 2023 · 1 comment

Comments

@scxsayas
Copy link

2023-09-30T10:49:18.784Z
SYSTEM
PREPARING DEPLOYMENT...

2023-09-30T10:49:18.800Z
SYSTEM
FETCHING GITHUB REPOSITORY...

2023-09-30T10:49:19.276Z
SYSTEM
BUILDING IMAGE...

2023-09-30T10:49:19.990Z
INFO
Enumerating objects: 4534, done.

2023-09-30T10:49:20.241Z
INFO
Total 4534 (delta 0), reused 0 (delta 0), pack-reused 4534

2023-09-30T10:49:22.000Z
INFO
Retrieving image manifest alpine:edge

2023-09-30T10:49:22.001Z
INFO
Retrieving image alpine:edge from registry index.docker.io

2023-09-30T10:49:23.000Z
INFO
Retrieving image manifest alpine:edge

2023-09-30T10:49:23.001Z
INFO
Returning cached image manifest

2023-09-30T10:49:23.002Z
INFO
Built cross stage deps: map[]

2023-09-30T10:49:23.003Z
INFO
Retrieving image manifest alpine:edge

2023-09-30T10:49:23.004Z
INFO
Returning cached image manifest

2023-09-30T10:49:23.005Z
INFO
Retrieving image manifest alpine:edge

2023-09-30T10:49:23.006Z
INFO
Returning cached image manifest

2023-09-30T10:49:23.007Z
INFO
Executing 0 build triggers

2023-09-30T10:49:23.008Z
INFO
Building stage 'alpine:edge' [idx: '0', base-idx: '-1']

2023-09-30T10:49:23.009Z
INFO
Applying label maintainer=dev@jpillora.com

2023-09-30T10:49:23.010Z
INFO
Checking for cached layer registry.containers.back4app.com/back4app2-4a110c69-bf25-4e9b-8e15-872e69f71327/cache:dda2b77da66996ab6ff9cf66fac61284b840acf31f867d4173eadd12cd2beb9e...

2023-09-30T10:49:23.011Z
INFO
No cached layer found for cmd RUN set -ex && apk update && apk add ca-certificates && apk add --no-cache --virtual .build-deps bash gcc musl-dev openssl git go curl && curl -s https://raw.githubusercontent.com/docker-library/golang/221ee92559f2963c1fe55646d3516f5b8f4c91a4/1.9/alpine3.6/no-pic.patch -o /no-pic.patch && cat /no-pic.patch && export GOROOT_BOOTSTRAP="$(go env GOROOT)" && wget -q "$GOLANG_SRC_URL" -O golang.tar.gz && echo "$GOLANG_SRC_SHA256 golang.tar.gz" | sha256sum -c - && tar -C /usr/local -xzf golang.tar.gz && rm golang.tar.gz && cd /usr/local/go/src && patch -p2 -i /no-pic.patch && ./make.bash && mkdir -p $PACKAGE_DIR && git clone https://$PACKAGE.git $PACKAGE_DIR && cd $PACKAGE_DIR && go build -ldflags "-X main.VERSION=$(git describe --abbrev=0 --tags)" -o /usr/local/bin/$NAME && apk del .build-deps && rm -rf /no-pic.patch $GOPATH /usr/local/go

2023-09-30T10:49:23.012Z
INFO
Unpacking rootfs as cmd RUN set -ex && apk update && apk add ca-certificates && apk add --no-cache --virtual .build-deps bash gcc musl-dev openssl git go curl && curl -s https://raw.githubusercontent.com/docker-library/golang/221ee92559f2963c1fe55646d3516f5b8f4c91a4/1.9/alpine3.6/no-pic.patch -o /no-pic.patch && cat /no-pic.patch && export GOROOT_BOOTSTRAP="$(go env GOROOT)" && wget -q "$GOLANG_SRC_URL" -O golang.tar.gz && echo "$GOLANG_SRC_SHA256 golang.tar.gz" | sha256sum -c - && tar -C /usr/local -xzf golang.tar.gz && rm golang.tar.gz && cd /usr/local/go/src && patch -p2 -i /no-pic.patch && ./make.bash && mkdir -p $PACKAGE_DIR && git clone https://$PACKAGE.git $PACKAGE_DIR && cd $PACKAGE_DIR && go build -ldflags "-X main.VERSION=$(git describe --abbrev=0 --tags)" -o /usr/local/bin/$NAME && apk del .build-deps && rm -rf /no-pic.patch $GOPATH /usr/local/go requires it.

2023-09-30T10:49:23.013Z
INFO
LABEL maintainer="dev@jpillora.com"

2023-09-30T10:49:23.014Z
INFO
Applying label maintainer=dev@jpillora.com

2023-09-30T10:49:23.015Z
INFO
No files changed in this command, skipping snapshotting.

2023-09-30T10:49:23.016Z
INFO
ENV GOPATH /go

2023-09-30T10:49:23.017Z
INFO
No files changed in this command, skipping snapshotting.

2023-09-30T10:49:23.018Z
INFO
ENV NAME cloud-torrent

2023-09-30T10:49:23.019Z
INFO
No files changed in this command, skipping snapshotting.

2023-09-30T10:49:23.020Z
INFO
ENV PACKAGE github.com/jpillora/$NAME

2023-09-30T10:49:23.021Z
INFO
No files changed in this command, skipping snapshotting.

2023-09-30T10:49:23.022Z
INFO
ENV PACKAGE_DIR $GOPATH/src/$PACKAGE

2023-09-30T10:49:23.023Z
INFO
No files changed in this command, skipping snapshotting.

2023-09-30T10:49:23.024Z
INFO
ENV GOLANG_VERSION 1.9.1

2023-09-30T10:49:23.025Z
INFO
No files changed in this command, skipping snapshotting.

2023-09-30T10:49:23.026Z
INFO
ENV GOLANG_SRC_URL https://golang.org/dl/go$GOLANG_VERSION.src.tar.gz

2023-09-30T10:49:23.027Z
INFO
No files changed in this command, skipping snapshotting.

2023-09-30T10:49:23.028Z
INFO
ENV GOLANG_SRC_SHA256 a84afc9dc7d64fe0fa84d4d735e2ece23831a22117b50dafc75c1484f1cb550e

2023-09-30T10:49:23.029Z
INFO
No files changed in this command, skipping snapshotting.

2023-09-30T10:49:23.030Z
INFO
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH

2023-09-30T10:49:23.031Z
INFO
No files changed in this command, skipping snapshotting.

2023-09-30T10:49:23.032Z
INFO
ENV CGO_ENABLED 0

2023-09-30T10:49:23.033Z
INFO
No files changed in this command, skipping snapshotting.

2023-09-30T10:49:23.034Z
INFO
RUN set -ex && apk update && apk add ca-certificates && apk add --no-cache --virtual .build-deps bash gcc musl-dev openssl git go curl && curl -s https://raw.githubusercontent.com/docker-library/golang/221ee92559f2963c1fe55646d3516f5b8f4c91a4/1.9/alpine3.6/no-pic.patch -o /no-pic.patch && cat /no-pic.patch && export GOROOT_BOOTSTRAP="$(go env GOROOT)" && wget -q "$GOLANG_SRC_URL" -O golang.tar.gz && echo "$GOLANG_SRC_SHA256 golang.tar.gz" | sha256sum -c - && tar -C /usr/local -xzf golang.tar.gz && rm golang.tar.gz && cd /usr/local/go/src && patch -p2 -i /no-pic.patch && ./make.bash && mkdir -p $PACKAGE_DIR && git clone https://$PACKAGE.git $PACKAGE_DIR && cd $PACKAGE_DIR && go build -ldflags "-X main.VERSION=$(git describe --abbrev=0 --tags)" -o /usr/local/bin/$NAME && apk del .build-deps && rm -rf /no-pic.patch $GOPATH /usr/local/go

2023-09-30T10:49:23.035Z
INFO
Initializing snapshotter ...

2023-09-30T10:49:23.036Z
INFO
Taking snapshot of full filesystem...

2023-09-30T10:49:23.037Z
INFO
Cmd: /bin/sh

2023-09-30T10:49:23.038Z
INFO
Args: [-c set -ex && apk update && apk add ca-certificates && apk add --no-cache --virtual .build-deps bash gcc musl-dev openssl git go curl && curl -s https://raw.githubusercontent.com/docker-library/golang/221ee92559f2963c1fe55646d3516f5b8f4c91a4/1.9/alpine3.6/no-pic.patch -o /no-pic.patch && cat /no-pic.patch && export GOROOT_BOOTSTRAP="$(go env GOROOT)" && wget -q "$GOLANG_SRC_URL" -O golang.tar.gz && echo "$GOLANG_SRC_SHA256 golang.tar.gz" | sha256sum -c - && tar -C /usr/local -xzf golang.tar.gz && rm golang.tar.gz && cd /usr/local/go/src && patch -p2 -i /no-pic.patch && ./make.bash && mkdir -p $PACKAGE_DIR && git clone https://$PACKAGE.git $PACKAGE_DIR && cd $PACKAGE_DIR && go build -ldflags "-X main.VERSION=$(git describe --abbrev=0 --tags)" -o /usr/local/bin/$NAME && apk del .build-deps && rm -rf /no-pic.patch $GOPATH /usr/local/go]

2023-09-30T10:49:23.039Z
INFO
Running: [/bin/sh -c set -ex && apk update && apk add ca-certificates && apk add --no-cache --virtual .build-deps bash gcc musl-dev openssl git go curl && curl -s https://raw.githubusercontent.com/docker-library/golang/221ee92559f2963c1fe55646d3516f5b8f4c91a4/1.9/alpine3.6/no-pic.patch -o /no-pic.patch && cat /no-pic.patch && export GOROOT_BOOTSTRAP="$(go env GOROOT)" && wget -q "$GOLANG_SRC_URL" -O golang.tar.gz && echo "$GOLANG_SRC_SHA256 golang.tar.gz" | sha256sum -c - && tar -C /usr/local -xzf golang.tar.gz && rm golang.tar.gz && cd /usr/local/go/src && patch -p2 -i /no-pic.patch && ./make.bash && mkdir -p $PACKAGE_DIR && git clone https://$PACKAGE.git $PACKAGE_DIR && cd $PACKAGE_DIR && go build -ldflags "-X main.VERSION=$(git describe --abbrev=0 --tags)" -o /usr/local/bin/$NAME && apk del .build-deps && rm -rf /no-pic.patch $GOPATH /usr/local/go]

2023-09-30T10:49:23.586Z
ERROR

  • apk update

2023-09-30T10:49:23.591Z
INFO
fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

2023-09-30T10:49:23.784Z
INFO
fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

2023-09-30T10:49:24.331Z
INFO
v20230901-1989-g7f3aa2e3ac1 [https://dl-cdn.alpinelinux.org/alpine/edge/main]

2023-09-30T10:49:24.332Z
INFO
v20230901-1993-g19589efd6eb [https://dl-cdn.alpinelinux.org/alpine/edge/community]

2023-09-30T10:49:24.333Z
INFO
OK: 21260 distinct packages available

2023-09-30T10:49:24.425Z
ERROR

  • apk add ca-certificates

2023-09-30T10:49:24.866Z
INFO
(1/1) Installing ca-certificates (20230506-r0)

2023-09-30T10:49:24.943Z
INFO
Executing busybox-1.36.1-r6.trigger

2023-09-30T10:49:24.951Z
INFO
Executing ca-certificates-20230506-r0.trigger

2023-09-30T10:49:25.027Z
INFO
OK: 8 MiB in 16 packages

2023-09-30T10:49:25.149Z
ERROR

  • apk add --no-cache --virtual .build-deps bash gcc musl-dev openssl git go curl

2023-09-30T10:49:25.158Z
INFO
fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

2023-09-30T10:49:25.267Z
INFO
fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

2023-09-30T10:49:25.667Z
INFO
(1/32) Installing ncurses-terminfo-base (6.4_p20230918-r0)

2023-09-30T10:49:25.673Z
INFO
(2/32) Installing libncursesw (6.4_p20230918-r0)

2023-09-30T10:49:25.679Z
INFO
(3/32) Installing readline (8.2.1-r2)

2023-09-30T10:49:25.685Z
INFO
(4/32) Installing bash (5.2.15-r6)

2023-09-30T10:49:25.701Z
INFO
Executing bash-5.2.15-r6.post-install

2023-09-30T10:49:25.709Z
INFO
(5/32) Installing libgcc (13.1.1_git20230722-r2)

2023-09-30T10:49:25.714Z
INFO
(6/32) Installing jansson (2.14-r4)

2023-09-30T10:49:25.715Z
INFO
(7/32) Installing libstdc++ (13.1.1_git20230722-r2)

2023-09-30T10:49:25.736Z
INFO
(8/32) Installing zstd-libs (1.5.5-r7)

2023-09-30T10:49:25.747Z
INFO
(9/32) Installing binutils (2.41-r0)

2023-09-30T10:49:25.823Z
INFO
(10/32) Installing libgomp (13.1.1_git20230722-r2)

2023-09-30T10:49:25.830Z
INFO
(11/32) Installing libatomic (13.1.1_git20230722-r2)

2023-09-30T10:49:25.833Z
INFO
(12/32) Installing gmp (6.3.0-r0)

2023-09-30T10:49:25.841Z
INFO
(13/32) Installing isl26 (0.26-r1)

2023-09-30T10:49:25.864Z
INFO
(14/32) Installing mpfr4 (4.2.1-r0)

2023-09-30T10:49:25.876Z
INFO
(15/32) Installing mpc1 (1.3.1-r1)

2023-09-30T10:49:25.880Z
INFO
(16/32) Installing gcc (13.1.1_git20230722-r2)

2023-09-30T10:49:27.044Z
INFO
(17/32) Installing musl-dev (1.2.4_git20230717-r2)

2023-09-30T10:49:27.154Z
INFO
(18/32) Upgrading libcrypto3 (3.1.2-r0 -> 3.1.3-r0)

2023-09-30T10:49:27.199Z
INFO
(19/32) Upgrading libssl3 (3.1.2-r0 -> 3.1.3-r0)

2023-09-30T10:49:27.210Z
INFO
(20/32) Installing openssl (3.1.3-r0)

2023-09-30T10:49:27.222Z
INFO
(21/32) Installing brotli-libs (1.0.9-r15)

2023-09-30T10:49:27.233Z
INFO
(22/32) Installing c-ares (1.19.1-r1)

2023-09-30T10:49:27.235Z
INFO
(23/32) Installing libunistring (1.1-r2)

2023-09-30T10:49:27.252Z
INFO
(24/32) Installing libidn2 (2.3.4-r4)

2023-09-30T10:49:27.256Z
INFO
(25/32) Installing nghttp2-libs (1.56.0-r0)

2023-09-30T10:49:27.259Z
INFO
(26/32) Installing libcurl (8.3.0-r1)

2023-09-30T10:49:27.272Z
INFO
(27/32) Installing libexpat (2.5.0-r2)

2023-09-30T10:49:27.275Z
INFO
(28/32) Installing pcre2 (10.42-r1)

2023-09-30T10:49:27.290Z
INFO
(29/32) Installing git (2.42.0-r0)

2023-09-30T10:49:27.382Z
INFO
(30/32) Installing go (1.21.1-r0)

2023-09-30T10:49:29.403Z
INFO
(31/32) Installing curl (8.3.0-r1)

2023-09-30T10:49:29.410Z
INFO
(32/32) Installing .build-deps (20230930.104925)

2023-09-30T10:49:29.416Z
INFO
Executing busybox-1.36.1-r6.trigger

2023-09-30T10:49:29.421Z
INFO
Executing ca-certificates-20230506-r0.trigger

2023-09-30T10:49:29.470Z
INFO
OK: 347 MiB in 46 packages

2023-09-30T10:49:29.581Z
ERROR

2023-09-30T10:49:29.701Z
ERROR

  • cat /no-pic.patch

2023-09-30T10:49:29.702Z
INFO
diff --git a/src/cmd/link/internal/ld/lib.go b/src/cmd/link/internal/ld/lib.go

2023-09-30T10:49:29.703Z
INFO
index 6252871..94ef43c 100644

2023-09-30T10:49:29.704Z
INFO
--- a/src/cmd/link/internal/ld/lib.go

2023-09-30T10:49:29.705Z
INFO
+++ b/src/cmd/link/internal/ld/lib.go

2023-09-30T10:49:29.706Z
INFO
@@ -1293,6 +1293,11 @@ func (l *Link) hostlink() {

2023-09-30T10:49:29.707Z
INFO
argv = append(argv, peimporteddlls()...)

2023-09-30T10:49:29.708Z
INFO
}

2023-09-30T10:49:29.709Z
INFO

2023-09-30T10:49:29.710Z
INFO

  • // The Go linker does not currently support building PIE

2023-09-30T10:49:29.711Z
INFO

  • // executables when using the external linker. See:

2023-09-30T10:49:29.712Z
INFO

2023-09-30T10:49:29.713Z
INFO

  • argv = append(argv, "-fno-PIC")

2023-09-30T10:49:29.714Z
INFO
+

2023-09-30T10:49:29.715Z
INFO
if l.Debugvlog != 0 {

2023-09-30T10:49:29.716Z
INFO
l.Logf("%5.2f host link:", Cputime())

2023-09-30T10:49:29.717Z
INFO
for _, v := range argv {

2023-09-30T10:49:29.718Z
ERROR

  • go env GOROOT

2023-09-30T10:49:29.719Z
ERROR

  • export 'GOROOT_BOOTSTRAP=/usr/lib/go'

2023-09-30T10:49:29.720Z
ERROR

2023-09-30T10:49:30.608Z
ERROR

  • echo 'a84afc9dc7d64fe0fa84d4d735e2ece23831a22117b50dafc75c1484f1cb550e golang.tar.gz'

2023-09-30T10:49:30.609Z
ERROR

  • sha256sum -c -

2023-09-30T10:49:30.738Z
INFO
golang.tar.gz: OK

2023-09-30T10:49:30.739Z
ERROR

  • tar -C /usr/local -xzf golang.tar.gz

2023-09-30T10:49:32.419Z
ERROR

  • rm golang.tar.gz

2023-09-30T10:49:32.420Z
ERROR

  • cd /usr/local/go/src

2023-09-30T10:49:32.421Z
ERROR

  • patch -p2 -i /no-pic.patch

2023-09-30T10:49:32.422Z
ERROR
/bin/sh: patch: not found

2023-09-30T10:49:32.423Z
INFO
error building image: error building stage: failed to execute command: waiting for process to exit: exit status 127

2023-09-30T10:49:33.636Z
SYSTEM
image build failed

2023-09-30T10:49:33.637Z
SYSTEM
deployment failed

@scxsayas
Copy link
Author

2023-09-30T10:49:29.718Z
ERROR

  • go env GOROOT

2023-09-30T10:49:29.719Z
ERROR

  • export 'GOROOT_BOOTSTRAP=/usr/lib/go'

2023-09-30T10:49:29.720Z
ERROR

2023-09-30T10:49:30.608Z
ERROR

  • echo 'a84afc9dc7d64fe0fa84d4d735e2ece23831a22117b50dafc75c1484f1cb550e golang.tar.gz'

2023-09-30T10:49:30.609Z
ERROR

  • sha256sum -c -

2023-09-30T10:49:30.738Z
INFO
golang.tar.gz: OK

2023-09-30T10:49:30.739Z
ERROR

  • tar -C /usr/local -xzf golang.tar.gz

2023-09-30T10:49:32.419Z
ERROR

  • rm golang.tar.gz

2023-09-30T10:49:32.420Z
ERROR

  • cd /usr/local/go/src

2023-09-30T10:49:32.421Z
ERROR

  • patch -p2 -i /no-pic.patch

2023-09-30T10:49:32.422Z
ERROR
/bin/sh: patch: not found

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

1 participant