render-examples/tailscale

Deployment issue: failed to fetch oauth token, 503

sam-drew opened this issue · 1 comments

Hey, I'm not sure if this is the right place to write this, as I'm unsure if the issue is with this template or a Docker/Render issue, but the template is failing to deploy, specifically in the Frankfurt region. I've used the template, and spec'd the region in render.yaml (this is the only change). When trying to deploy, I consistently get the following log trail (in this specific attempt I also spec'd debian:buster but the error is the same as :latest):

Dec 20 10:50:18 PM  #1 [internal] load build definition from Dockerfile
Dec 20 10:50:18 PM  #1 transferring dockerfile: 546B done
Dec 20 10:50:18 PM  #1 DONE 0.0s
Dec 20 10:50:18 PM  
Dec 20 10:50:18 PM  #2 [internal] load .dockerignore
Dec 20 10:50:18 PM  #2 transferring context: 2B done
Dec 20 10:50:18 PM  #2 DONE 0.0s
Dec 20 10:50:18 PM  
Dec 20 10:50:18 PM  #3 [internal] load metadata for docker.io/library/debian:buster
Dec 20 10:50:18 PM  #3 ...
Dec 20 10:50:18 PM  
Dec 20 10:50:18 PM  #4 [auth] library/debian:pull token for registry-1.docker.io
Dec 20 10:50:18 PM  #4 DONE 0.0s
Dec 20 10:50:18 PM  
Dec 20 10:50:18 PM  #3 [internal] load metadata for docker.io/library/debian:buster
Dec 20 10:50:19 PM  #3 ERROR: failed to authorize: failed to fetch oauth token: unexpected status: 503 Service Unavailable
Dec 20 10:50:19 PM  ------
Dec 20 10:50:19 PM   > [internal] load metadata for docker.io/library/debian:buster:
Dec 20 10:50:19 PM  ------
Dec 20 10:50:19 PM  Dockerfile:1
Dec 20 10:50:19 PM  --------------------
Dec 20 10:50:19 PM     1 | >>> FROM debian:buster
Dec 20 10:50:19 PM     2 |     WORKDIR /render
Dec 20 10:50:19 PM     3 |
Dec 20 10:50:19 PM  --------------------
Dec 20 10:50:19 PM  error: failed to solve: failed to fetch oauth token: unexpected status: 503 Service Unavailable

Weirdly, it did once deploy successfully, but re-deploying due to an environment variable change caused the error to surface again, and it hasn't gone away since.

Here's the render.yaml I've used:

services:
  - type: pserv
    name: render-subnet-router
    env: docker
    region: frankfurt
    envVars:
      - key: TAILSCALE_AUTHKEY
        sync: false
      - key: TAILSCALE_VERSION
        value: 1.16.1
      - key: ADVERTISE_ROUTES
        value: 10.0.0.0/8
    disk:
      name: tailscale-state
      mountPath: /var/lib/tailscale
      sizeGB: 1

Thanks!

Guessing this was because of the Docker registry outage; seems to deploy fine now :)