Sonarqube is not starting on MacOS Monterey 12.1

Sonarqube version
MacOS - Monterey 12.1
OpenJDK Version: 11

Installed through
brew install sonarqube

After installing starting in the console model

To restart sonarqube after an upgrade:
brew services restart sonarqube
Or, if you don’t want/need a background service you can just run:
/opt/homebrew/opt/sonarqube/bin/sonar console

rakesh.shah@ip-192-168-0-122 Cellar % sonar console
Running SonarQube…
wrapper | → Wrapper Started as Console
wrapper | Java Service Wrapper Community Edition 64-bit 3.5.50
wrapper | Copyright (C) 1999-2022 Tanuki Software, Ltd. All Rights Reserved.
wrapper |
wrapper |
wrapper | Launching a JVM…
jvm 1 | WrapperManager: Initializing…
jvm 1 | WrapperManager:
jvm 1 | WrapperManager: ERROR - Unable to load the Wrapper’s native library ‘libwrapper.dylib’.
jvm 1 | WrapperManager: The file is located on the path at the following location but
jvm 1 | WrapperManager: could not be loaded:
jvm 1 | WrapperManager: /opt/homebrew/Cellar/sonarqube/
jvm 1 | WrapperManager: Please verify that the file is both readable and executable by the
jvm 1 | WrapperManager: current user and that the file has not been corrupted in any way.
jvm 1 | WrapperManager: One common cause of this problem is running a 32-bit version
jvm 1 | WrapperManager: of the Wrapper with a 64-bit version of Java, or vice versa.
jvm 1 | WrapperManager: This is a 64-bit JVM.
jvm 1 | WrapperManager: Reported cause:
jvm 1 | WrapperManager: no wrapper in java.library.path: [./lib]
jvm 1 | WrapperManager:
wrapper | JVM process exited with a code of 1, however the Wrapper exit code was already 1.
wrapper | JVM exited unexpectedly while stopping the application.
wrapper | ← Wrapper Stopped
rakesh.shah@ip-192-168-0-122 Cellar %

Any work around or suggestion?

Hey there.

SonarSource doesn’t maintain this formula (which does things like substitute a different version of the Java service wrapper), so you probably want to raise an issue.