docker, sonarqube,

SonarQube How to Fix 'node.store.allow_mmapfs is no longer supported'

Feb 21, 2023 · 1 min read · Post a comment

If you are trying to update SonarQube to a higher version you might get org.sonar.process.MessageException: Property 'node.store.allow_mmapfs' is no longer supported. Let’s see how to fix it.

Prerequisites

  • sudo privileges

Solution

The SonarQube docker image will try to spin up a new ElasticSearch service, so the important thing is that allow_mmapfs is deprecated since ES version 6.7.

To fix the issue you need to find the sonar.search.javaAdditionalOpts option in the env variables and change the value.

You need to change allow_mmapfs

- Name: SONAR_SEARCH_JAVAADDITIONALOPTS
  Value: -Dnode.store.allow_mmapfs=false

with allow_mmap

- Name: SONAR_SEARCH_JAVAADDITIONALOPTS
  Value: -Dnode.store.allow_mmap=false

Restart the service and you shouldn’t be getting the error.

Conclusion

Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.