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

Downloading action fails #308

Open
back-2-95 opened this issue Mar 21, 2024 · 5 comments
Open

Downloading action fails #308

back-2-95 opened this issue Mar 21, 2024 · 5 comments

Comments

@back-2-95
Copy link

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
@appleboy
Copy link
Owner

Please show your config?

@back-2-95
Copy link
Author

      - name: Do stuff on remote host
        uses: appleboy/ssh-action@v1.0.3
        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.

@appleboy
Copy link
Owner

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

Can't reproduce your issue in v1.0.3 version

@back-2-95
Copy link
Author

@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
Copy link
Author

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

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

2 participants