Hi,
I'm trying to configure a sonar setup which will be initiated from pipelines. I have Sonarqube installed on a separate server which I have added as a runner.
I'm also using the sonarsource/sonarqube-scan:2.0.1 pipe. The idea is once the step is triggered, it should run the sonar scan on the server I have added as runner and the SONAR_HOST_URL & SONAR_TOKEN will be provided by arguments in pipe.
When I'm running the pipeline , right now I'm getting below error:
Status: Downloaded newer image for sonarsource/sonarqube-scan:2.0.1
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: can't get final child's PID from pipe: EOF: unknown.
time="2024-08-13T07:55:40Z" level=error msg="error waiting for container: context canceled"
Please help me understand what I'm missing.
Sharing the snippet of pipeline.
- step: &sonar-scan
name: SonarQube analysis
image: eclipse-temurin:17
oidc: true
runs-on:
- self.hosted
- linux
caches:
- gradle
- sonar
script:
- pipe: sonarsource/sonarqube-scan:2.0.1
variables:
SONAR_HOST_URL: ${SONAR_HOST_URL}
SONAR_TOKEN: ${SONAR_TOKEN}
DEBUG: "true"
SONAR_SCANNER_OPTS: -Xmx512m
I was able to resolve this after running below command on my underlying vm.
sysctl -w user.max_user_namespaces=15000
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.