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

Fix: sysctl permission error #408

Closed
wants to merge 1 commit into from

Conversation

ismailbaskin
Copy link

runAsGroup: 0 is also required to prevent "sysctl: permission denied on key xxx, ignoring" error

Please ensure your pull request adheres to the following guidelines:

  • explain your motives to contribute this change: what problem you are trying to fix, what improvement you are trying to make
  • Document your Changes in the CHANGELOG.md file of the respected chart as well as the Chart.yaml

`runAsGroup: 0` is also required to prevent "sysctl: permission denied on key xxx, ignoring" error
@jCOTINEAU
Copy link
Collaborator

hello @ismailbaskin thanks a lot for participating in the community. Can you confirm this is strictly needed ?

When only being user root and not group from docker it seems to work (have not double checked yet on kubernetes)

docker run --rm --privileged -u 0:1000 -it sonarqube bash
root@a2eaf9b9b0a8:/opt/sonarqube# id
uid=0(root) gid=1000(sonarqube) groups=1000(sonarqube)
root@a2eaf9b9b0a8:/opt/sonarqube# sysctl -w vm.max_map_count=262144
vm.max_map_count = 262144
root@a2eaf9b9b0a8:/opt/sonarqube# 

@jCOTINEAU jCOTINEAU self-assigned this Jan 15, 2024
@jCOTINEAU jCOTINEAU self-requested a review January 15, 2024 16:21
@jCOTINEAU
Copy link
Collaborator

Hello @ismailbaskin, thanks again for taking the time to participate in the community.

We merged a PR that include the changes you proposed, which close the issue.

@jCOTINEAU jCOTINEAU closed this Jan 29, 2024
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

Successfully merging this pull request may close these issues.

2 participants