I am using Cloud Run as the tunnel node in the full tunnel mode, but after a certain point in time, I could not deploy it anymore. I had run the following command as shown in the tunnel-node readme docs after doing a git clone:
cd tunnel-node
gcloud run deploy tunnel-node \
--source . \
--region us-central1 \
--allow-unauthenticated \
--set-env-vars TUNNEL_AUTH_KEY=$(openssl rand -hex 24) \
--memory 256Mi \
--cpu 1 \
--max-instances 1
I believe this was at the time v1.4.0 had come out (I remember I did the git clone on Apr 24 some time around 10:30 PM UTC). After a while I wanted to upgrade it so I did a git pull and ran the same command without the line --set-env-vars TUNNEL_AUTH_KEY=$(openssl rand -hex 24) to make sure the AUTH KEY does not change. However, I cannot re-deploy it anymore and I get the following errors:
Error:
starting build "89b809c9-04f7-41b5-970f-cb87a07425e4"
FETCHSOURCE
Fetching storage object: gs://run-sources-PROJECT_ID-us-central1/services/tunnel-node/1777157446.323366-c1ad021ffa164464a29cf57aece0d549.zip#1777157446883000
Copying gs://run-sources-PROJECT_ID-us-central1/services/tunnel-node/1777157446.323366-c1ad021ffa164464a29cf57aece0d549.zip#1777157446883000...
/ [1 files][ 29.4 KiB/ 29.4 KiB]
Operation completed over 1 objects/29.4 KiB.
Archive: /tmp/source-archive.zip
creating: /workspace/src/
inflating: /workspace/Cargo.toml
inflating: /workspace/README.md
inflating: /workspace/Dockerfile
inflating: /workspace/.dockerignore
inflating: /workspace/Cargo.lock
inflating: /workspace/src/main.rs
BUILD
Already have image (with digest): gcr.io/cloud-builders/docker
Sending build context to Docker daemon 114.7kB
Step 1/15 : FROM rust:1.85-slim AS builder
1.85-slim: Pulling from library/rust
6e909acdb790: Pulling fs layer
d4ceaeef95ce: Pulling fs layer
6e909acdb790: Verifying Checksum
6e909acdb790: Download complete
6e909acdb790: Pull complete
d4ceaeef95ce: Verifying Checksum
d4ceaeef95ce: Download complete
d4ceaeef95ce: Pull complete
Digest: sha256:9f841bbe9e7d8e37ceb96ed907265a3a0df7f44e3737d0b100e7907a679acb36
Status: Downloaded newer image for rust:1.85-slim
8573a005bfcb
Step 2/15 : WORKDIR /app
Running in 8954a4ac302a
Removing intermediate container 8954a4ac302a
0805a9c6f44e
Step 3/15 : COPY Cargo.toml Cargo.lock ./
7377f0096a63
Step 4/15 : COPY src/ ./src/
1cdeff4fabeb
Step 5/15 : RUN --mount=type=cache,target=/usr/local/cargo/registry --mount=type=cache,target=/usr/local/cargo/git --mount=type=cache,target=/app/target cargo build --release --bin tunnel-node && cp /app/target/release/tunnel-node /usr/local/bin/tunnel-node
the --mount option requires BuildKit. Refer to https://docs.docker.com/go/buildkit/ to learn how to build images with BuildKit enabled
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 1
Also, passing --set-build-env-vars DOCKER_BUILDKIT=1 or --set-env-vars DOCKER_BUILDKIT=1 does not fix the issue. I tried deploying a new instance (thinking maybe it's the "updating" of the deployment that's causing some issues) and I got the same BuildKit error. FYI, I did a git pull today and tried deploying again but got the same issue. Can you find a solution to this and/or update the readme docs for Cloud Run so we can successfully deploy an instance in Google Cloud?
I am using Cloud Run as the tunnel node in the full tunnel mode, but after a certain point in time, I could not deploy it anymore. I had run the following command as shown in the tunnel-node readme docs after doing a git clone:
I believe this was at the time v1.4.0 had come out (I remember I did the git clone on Apr 24 some time around 10:30 PM UTC). After a while I wanted to upgrade it so I did a git pull and ran the same command without the line
--set-env-vars TUNNEL_AUTH_KEY=$(openssl rand -hex 24)to make sure the AUTH KEY does not change. However, I cannot re-deploy it anymore and I get the following errors:Also, passing
--set-build-env-vars DOCKER_BUILDKIT=1or--set-env-vars DOCKER_BUILDKIT=1does not fix the issue. I tried deploying a new instance (thinking maybe it's the "updating" of the deployment that's causing some issues) and I got the same BuildKit error. FYI, I did a git pull today and tried deploying again but got the same issue. Can you find a solution to this and/or update the readme docs for Cloud Run so we can successfully deploy an instance in Google Cloud?