CodeQL run is failing everytime due to lost communication with the server #147849
Unanswered
ashutosh7107
asked this question in
Actions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
I am using the below code ql workflow but everytime after 30-40 minutes of running it is giving me below error. I increased the memory size as well but still error is coming.
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/[email protected]
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
Any suggestions how to resolve the above error?
Beta Was this translation helpful? Give feedback.
All reactions