R
Railwayβ€’15mo ago
Rozukai

vm.max_map_count [65530] is too low during deployement

Hi everyone, I currently try to deploy a SonarQube application on Railway and during deployement, I got the following error : max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] Do you know where this error can come from ? I'm Hobby plan, normally I have 8 GB RAM / 8 vCPU per Service. Or it is because Railway cannot host Elastic Search anymore as I understand ? Have a good day guys πŸ˜‰
No description
16 Replies
Percy
Percyβ€’15mo ago
Project ID: 473f1330-4814-4387-bb6a-f598705d6102
Rozukai
RozukaiOPβ€’15mo ago
473f1330-4814-4387-bb6a-f598705d6102
Brody
Brodyβ€’15mo ago
@interstellartaco is the java dood
root
rootβ€’15mo ago
Try adding a JAVA_OPTS=-Dvm.max_map_count=262144 environment variable.
Rozukai
RozukaiOPβ€’15mo ago
I've try but it doesn't work, I found this on the sonarqube dockerhub (https://hub.docker.com/_/sonarqube) In the section "Docker Host Requirements", there is some command to run before running the image
sysctl -w vm.max_map_count=524288
sysctl -w fs.file-max=131072
ulimit -n 131072
ulimit -u 8192
sysctl -w vm.max_map_count=524288
sysctl -w fs.file-max=131072
ulimit -n 131072
ulimit -u 8192
Do you think it is possible to configure the docker host from environement variable of railway ?
sonarqube - Official Image | Docker Hub
SonarQube is an open source platform for continuous inspection of code quality.
Rozukai
RozukaiOPβ€’15mo ago
If it's not possible, I will try to use DinD to create my own environnement
Brody
Brodyβ€’15mo ago
Do you think it is possible to configure the docker host from environment variable of railway?
its not
I will try to use DinD to create my own environment
thats also not possible on railway lets wait and see if aleks can come up with something else
Rozukai
RozukaiOPβ€’15mo ago
For DinD, it's for security reasons ? Or infrastructure ? Or another reason ?
Brody
Brodyβ€’15mo ago
the containers are not started with the permissions to allow that
Rozukai
RozukaiOPβ€’15mo ago
Okay ^^
root
rootβ€’15mo ago
Hmm, I think this is actually a Railway infra thing @jr since I'm not sure who to ping for what any more (sorry if I should have pinged someone else) - thoughts on increasing various system limits?
Brody
Brodyβ€’15mo ago
is this not a setting for the java virtual machine?
Rozukai
RozukaiOPβ€’15mo ago
Nop unfortunately it's a setting for the docker host
Rozukai
RozukaiOPβ€’15mo ago
GitHub
sonarqube/server/sonar-main/src/main/java/org/sonar/application/es/...
Continuous Inspection. Contribute to SonarSource/sonarqube development by creating an account on GitHub.
Rozukai
RozukaiOPβ€’15mo ago
And I don't think it's rewrite elsewhere because I dind't find any other occurance of this key inside the repository I think sonar is not compatible with railway, don't spend more time on this issue, thanks for your help
Want results from more Discord servers?
Add your server