ssh-action icon indicating copy to clipboard operation
ssh-action copied to clipboard

Downloading action fails

Open back-2-95 opened this issue 1 year ago • 5 comments

Yday somewhere 8 PM EET downloading the action started to fail. It's still failing with following output:

Build container for action use: '/home/runner/actions-runner/_work/_actions/appleboy/ssh-action/v1.0.3/Dockerfile'.
  /usr/bin/docker build -t f34484:4715fd[2](https://github.com/MYORG/MYREPO/actions/runs/8364657738/job/22900546076#step:2:2)c5f504aed86bd6e0172b86f68 -f "/home/runner/actions-runner/_work/_actions/appleboy/ssh-action/v1.0.3/Dockerfile" "/home/runner/actions-runner/_work/_actions/appleboy/ssh-action/v1.0.3"
  #0 building with "default" instance using docker driver
  
  #1 [internal] load build definition from Dockerfile
  #1 transferring dockerfile: 149B done
  #1 DONE 0.0s
  
  #2 [auth] appleboy/drone-ssh:pull token for ghcr.io
  #2 DONE 0.0s
  
  #3 [internal] load metadata for ghcr.io/appleboy/drone-ssh:1.7.3
  #3 ERROR: failed to authorize: failed to fetch oauth token: unexpected status from GET request to https://ghcr.io/token?scope=repository%3Aappleboy%2Fdrone-ssh%3Apull&service=ghcr.io: 403 Forbidden
  ------
   > [internal] load metadata for ghcr.io/appleboy/drone-ssh:1.7.3:
  ------
  Dockerfile:1
  --------------------
     1 | >>> FROM ghcr.io/appleboy/drone-ssh:1.7.3
     2 |     
     3 |     COPY entrypoint.sh /bin/entrypoint.sh
  --------------------
  ERROR: failed to solve: ghcr.io/appleboy/drone-ssh:1.7.3: failed to authorize: failed to fetch oauth token: unexpected status from GET request to https://ghcr.io/token?scope=repository%3Aappleboy%2Fdrone-ssh%3Apull&service=ghcr.io: 403 Forbidden
  Warning: Docker build failed with exit code 1, back off 7.388 seconds before retry.
  /usr/bin/docker build -t f34484:4715fd2c5f504aed86bd6e0172b86f68 -f "/home/runner/actions-runner/_work/_actions/appleboy/ssh-action/v1.0.3/Dockerfile" "/home/runner/actions-runner/_work/_actions/appleboy/ssh-action/v1.0.3"
  #0 building with "default" instance using docker driver
  
  #1 [internal] load build definition from Dockerfile
  #1 transferring dockerfile: 149B done
  #1 DONE 0.0s
  
  #2 [auth] appleboy/drone-ssh:pull token for ghcr.io
  #2 DONE 0.0s
  
  #[3](https://github.com/MYORG/MYREPO/actions/runs/8364657738/job/22900546076#step:2:3) [internal] load metadata for ghcr.io/appleboy/drone-ssh:1.7.3
  #3 ERROR: failed to authorize: failed to fetch oauth token: unexpected status from GET request to https://ghcr.io/token?scope=repository%3Aappleboy%2Fdrone-ssh%3Apull&service=ghcr.io: 403 Forbidden
  ------
   > [internal] load metadata for ghcr.io/appleboy/drone-ssh:1.7.3:
  ------
  Dockerfile:1
  --------------------
     1 | >>> FROM ghcr.io/appleboy/drone-ssh:1.7.3
     2 |     
     3 |     COPY entrypoint.sh /bin/entrypoint.sh
  --------------------
  ERROR: failed to solve: ghcr.io/appleboy/drone-ssh:1.7.3: failed to authorize: failed to fetch oauth token: unexpected status from GET request to https://ghcr.io/token?scope=repository%3Aappleboy%2Fdrone-ssh%3Apull&service=ghcr.io: 403 Forbidden
  Warning: Docker build failed with exit code 1, back off 1.063 seconds before retry.
  /usr/bin/docker build -t f34484:4715fd2c5f504aed86bd6e0172b86f68 -f "/home/runner/actions-runner/_work/_actions/appleboy/ssh-action/v1.0.3/Dockerfile" "/home/runner/actions-runner/_work/_actions/appleboy/ssh-action/v1.0.3"
  #0 building with "default" instance using docker driver
  
  #1 [internal] load build definition from Dockerfile
  #1 transferring dockerfile: 1[4](https://github.com/MYORG/MYREPO/actions/runs/8364657738/job/22900546076#step:2:4)9B done
  #1 DONE 0.0s
  
  #2 [auth] appleboy/drone-ssh:pull token for ghcr.io
  #2 DONE 0.0s
  
  #3 [internal] load metadata for ghcr.io/appleboy/drone-ssh:1.[7](https://github.com/MYORG/MYREPO/actions/runs/8364657738/job/22900546076#step:2:7).3
  #3 ERROR: failed to authorize: failed to fetch oauth token: unexpected status from GET request to https://ghcr.io/token?scope=repository%3Aappleboy%2Fdrone-ssh%3Apull&service=ghcr.io: 403 Forbidden
  ------
   > [internal] load metadata for ghcr.io/appleboy/drone-ssh:1.7.3:
  ------
  Dockerfile:1
  --------------------
     1 | >>> FROM ghcr.io/appleboy/drone-ssh:1.7.3
     2 |     
     3 |     COPY entrypoint.sh /bin/entrypoint.sh
  --------------------
  ERROR: failed to solve: ghcr.io/appleboy/drone-ssh:1.7.3: failed to authorize: failed to fetch oauth token: unexpected status from GET request to https://ghcr.io/token?scope=repository%3Aappleboy%2Fdrone-ssh%3Apull&service=ghcr.io: [40](https://github.com/MYORG/MYREPO/actions/runs/8364657738/job/22900546076#step:2:40)3 Forbidden
Error: Docker build failed with exit code 1

back-2-95 avatar Mar 21 '24 08:03 back-2-95

Please show your config?

appleboy avatar Mar 21 '24 12:03 appleboy

      - name: Do stuff on remote host
        uses: appleboy/[email protected]
        with:
          host: ${{ env.SSH_HOST }}
          username: ${{ env.SSH_USER }}
          key: ${{ secrets.PRIVATE_SSH_KEY }}
          script: |
            whoami

Same task (with different script) in multiple repos started failing from last night around 8 PM EET.

back-2-95 avatar Mar 21 '24 12:03 back-2-95

See the new build https://github.com/appleboy/ssh-action/actions/runs/8375932859

Can't reproduce your issue in v1.0.3 version

appleboy avatar Mar 21 '24 13:03 appleboy

@appleboy Could be actually about how self-hosted github runner works? So it's a custom Ubuntu server with runner software and maybe something is off in the Docker installed on that runner ?

back-2-95 avatar Mar 22 '24 07:03 back-2-95

Now it works, and we did nothing to it 🤷‍♂️

back-2-95 avatar Mar 25 '24 09:03 back-2-95