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

General issue #18363

Open
ashutosh7107 opened this issue Dec 24, 2024 · 8 comments
Open

General issue #18363

ashutosh7107 opened this issue Dec 24, 2024 · 8 comments
Labels
question Further information is requested

Comments

@ashutosh7107
Copy link

ashutosh7107 commented Dec 24, 2024

I am using the below code ql workflow but everytime after 30-40 minutes of running it is giving me below error
The hosted runner: GitHub Actions 206 lost communication with the server. Anything in your workflow that terminates the runner process, starves it for CPU/Memory, or blocks its network access can cause this error.

FAILURE: Build failed with an exception.

  • What went wrong:
    Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)
jobs:
  codeql-analysis:
    name: CodeQL Analyse
    runs-on: ubuntu-latest
    permissions:
      actions: read
      contents: read
      security-events: write
    env:
      CODEQL_EXTRACTOR_JAVA_AGENT_ENABLE_KOTLIN: true
      CODEQL_ACTION_EXTRA_OPTIONS: '{"database": {"finalize": ["-J-Xmx6144m"]}}'
      GH_TOKEN: ${{ github.token }}
    strategy:
      matrix:
        os: [ubuntu-latest]
      fail-fast: false
    steps:
      - name: Cancel Previous Runs
        uses: styfle/cancel-workflow-action@0.12.1
        with:
          access_token: ${{ github.token }}
      - name: Checkout repository
        uses: actions/checkout@v4
      - name: Set up Java
        uses: actions/setup-java@v4
        with:
          java-version: 21
          distribution: 'adopt'
          server-id: github
          server-username: ${{ github.actor }}
          server-password: ${{ secrets.GITHUB_TOKEN }}
      # Initializes the CodeQL tools for scanning.
      - name: Initialize CodeQL
        uses: github/codeql-action/init@v3
        with:
          languages: 'java'
          # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
          queries: security-extended,security-and-quality

      - name: Setup Gradle
        uses: gradle/actions/setup-gradle@v4

      - name: Run build with Gradle Wrapper
        run: |
          export GRADLE_OPTS="-Xmx6144m -Dog.gradle.margins=-Xmx6144m"
          ./gradlew clean assembleDevUsDebug --no-daemon

      - name: Perform CodeQL Analysis
        uses: github/codeql-action/analyze@v3

Any suggestions how to resolve the above error?

@ashutosh7107 ashutosh7107 added the question Further information is requested label Dec 24, 2024
@jketema
Copy link
Contributor

jketema commented Dec 24, 2024

Hi @ashutosh7107,

Lost communication generally indicates that the system was under very high load. From the information you shared it's not possible to tell what is going on. Could you either (a) share a link to a relevant job/repository on which this is happening, or (b) if the previous is not possible - which means you're a paying customer - create a support ticket .

@jketema
Copy link
Contributor

jketema commented Dec 24, 2024

One question based on the workflow file:

      - name: Cancel Previous Runs
        uses: styfle/cancel-workflow-action@0.12.1
        with:
          access_token: ${{ github.token }}

Are you sure communication is not lost because it's being cancelled by another workflow?

@ashutosh7107
Copy link
Author

Hi @ashutosh7107,

Lost communication generally indicates that the system was under very high load. From the information you shared it's not possible to tell what is going on. Could you either (a) share a link to a relevant job/repository on which this is happening, or (b) if the previous is not possible - which means you're a paying customer - create a support ticket .

Sharing a repo link won't be possible as per organization policy it's an internal repo.

@jketema
Copy link
Contributor

jketema commented Dec 24, 2024

Sharing a repo link won't be possible as per organization policy it's an internal repo.

In that case, please create a support ticket.

@ashutosh7107
Copy link
Author

One question based on the workflow file:

      - name: Cancel Previous Runs
        uses: styfle/cancel-workflow-action@0.12.1
        with:
          access_token: ${{ github.token }}

Are you sure communication is not lost because it's being cancelled by another workflow?

The above steps is used to cancel any previously running workflows for the same branch or pull request.

@ashutosh7107
Copy link
Author

I created a new discussion for the same under this link. Please check if that is fine.
https://github.com/orgs/community/discussions/147849

@jketema
Copy link
Contributor

jketema commented Dec 24, 2024

I created a new discussion for the same under this link. Please check if that is fine.
https://github.com/orgs/community/discussions/147849

That is just as problematic as discussing it here, as it's a public page. Creating a support ticket is going to work best, as that allows information to be shared in private.

How to create a support ticket is described here: https://docs.github.com/en/support/contacting-github-support/creating-a-support-ticket

@ashutosh7107
Copy link
Author

I created a new discussion for the same under this link. Please check if that is fine.
https://github.com/orgs/community/discussions/147849

That is just as problematic as discussing it here, as it's a public page. Creating a support ticket is going to work best, as that allows information to be shared in private.

How to create a support ticket is described here: https://docs.github.com/en/support/contacting-github-support/creating-a-support-ticket

Oh Ok..!! Thanks for the guidance. I created a ticket https://support.github.com/ticket/personal/0/3154306, seems fine now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants