actions / runner-images

GitHub Actions runner images
MIT License
10.13k stars 3.05k forks source link

GitHub Actions has encountered an internal error when running your job #2788

Closed TD-CSK closed 3 years ago

TD-CSK commented 3 years ago

Description
I changed only repository name in ecosystem.config.js. When I switched it back, nothing changes. I still get this error.

Area for Triage:
Deployment/Release

Question, Bug, or Feature?:
Question

Virtual environments affected
Ubuntu 20.04

Image version latest

Expected behavior
I expected job to be run.

Actual behavior
Job crashes in 3-5 seconds.

Repro steps

name: CI - Master
on:
  push:
    branches: [ main ]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      #
      # ... your other steps, such as running tests, etc...
      #
      - name: Set up SSH
        run: |
          mkdir -p ~/.ssh/
          echo "$SECRET_TEST" > ./deploy.key
          sudo chmod 600 ./deploy.key
          echo "$KNOWN_HOSTS_TEST" > ~/.ssh/known_hosts
        shell: bash
        env:
          SECRET_TEST: ${{secrets.SECRET_TEST}}
          KNOWN_HOSTS_TEST: ${{secrets.KNOWN_HOSTS_TEST}}

      - name: Install PM2
        run: sudo npm i pm2 -g

      - name: Deploy
        run: npm run deploy

I just changed name if the repo from https://... to git@... Then I changed it back, but it didn't help

miketimofeev commented 3 years ago

Hi @TD-CSK! Could you please provide a bit more details:

I've tried the following steps, and for me, they run just fine except for the last step since I don't have any package.json:

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      #
      # ... your other steps, such as running tests, etc...
      #
      - name: Set up SSH
        run: |
          mkdir -p ~/.ssh/
          echo "dasdsadasd" > ./deploy.key
          sudo chmod 600 ./deploy.key
          echo "10.74.5.6" > ~/.ssh/known_hosts
        shell: bash
      - name: Install PM2
        run: sudo npm i pm2 -g

      - name: Deploy
        run: npm run deploy
AlenaSviridenko commented 3 years ago

Hi @TD-CSK, I am closing this issue due to no reply in a long time. Please, feel free to let us know if the issue will appear again. Thanks.