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 πŸ˜‰
@interstellartaco is the java dood
Try adding a JAVA_OPTS=-Dvm.max_map_count=262144 environment variable.
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

Do you think it is possible to configure the docker host from environement variable of railway ?
If it's not possible, I will try to use DinD to create my own environnement
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
For DinD, it's for security reasons ? Or infrastructure ? Or another reason ?
the containers are not started with the permissions to allow that
Okay ^^
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?
is this not a setting for the java virtual machine?
Nop unfortunately it's a setting for the docker host
In the source code of sonarqube, there is already this environment variable set : https://github.com/SonarSource/sonarqube/blob/12639b9a55950a24a971eeee7044e474dbb72e46/server/sonar-main/src/main/java/org/sonar/application/es/EsSettings.java#L165
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

Looking for more? Join the community!



Join Server
Recommended Posts
Errors Installing Cal.com TemplateHello, I am running into issues installing the cal template. Error: `ERROR: failed to solve: procIs private networking down?Hey is private networking down or something? Because currently all my builds are crashing because thHow to save a bit in MySQL database?I am trying to put data in my table in SQL, but whenever I come across bit, the table does not accepRunning Sqlite migrate with prisma in railwayHi, so im trying to use Sqlite database with prisma in railway, i got this error, any clue with thisAngular SSRI'm planning to deploy an angular app with server side rendering. Does Railway support it? At the moKilled Errorhello can somebody help me with this its not starting my projectTerrafoam thingyMy friend told me to learn terrafoarm(this sounds wrong i forgot what its called) Anyway what does iDocker Build Error``` ============== Using Nixpacks ============== context: 009fc5728ee64eb7a597ef6570e251a0 β•”making linux program available in nixpacksHi, I want to run a golang app on railway. Within this app i use the following dependency https://giIs it normal for a deployment to be initializing this long?https://cdn.fl1nt.dev/GAGE1/YAdogAtO61.png I don't think this is normal, none of my deployments takUpdating N8N Service Via Railway CLIHello, I created a Railway project and installed N8N via a Railway template. The version I am on is Ephemeral storage concernHi I want to do programmatic NPM publishes using a Railway service I will need to basically use shelredploy after pushin to github not working anymoreit stopped to redeploy my appProject failing to deploy - 'no space available'Project: 13b3222b-eb44-433c-ad71-9174aa430a7d Has been deploying fine but started to complain about"Waiting" to deploy for 18 hours? Am I doing something wrong?I'm trying to move an app I deployed personally to a new account by setting up a new account and newQ: Help with Deploying a Medusa Server to RailwaySo, it keeps saying server crashed, but in the logs, nothing seems to be an issue. Been at it backHow do i move my project under the pro plan i just moved to?I just migrated from hobby to Pro - how do i move my projects under this? it says i need an active sDeploy appwrite on railway apphow to deploy appwrite in railway app ? , as fullstack i really like appwrite as backend and Next jsCurrent usage is $ 3.13 but current bill $5.00Please let me know how it's works, should I pay $5 for next month Project: af5712a6-cd8f-4b70-93f8-1Cannot create code snapshot right nowCannot create code snapshot right now, please review your last commit or try again If this error per