I am trying to run the community edition of SonarQube downloaded from https://www.sonarqube.org/downloads/.

When I extract the downloaded zip file, I step inside

$ cd sonarqube-

and run

$ ./sonar.sh console
Running SonarQube...
./sonar.sh: line 418: /home/t/Downloads/sonarqube- No such file or directory

But the file with the pathname exists. In ./sonar.sh, line 418 is the eval command in:

console() {
    echo "Running $APP_LONG_NAME..."
    if [ "X$pid" = "X" ]
        # The string passed to eval must handles spaces in paths correctly.                                                                                                                                         
        COMMAND_LINE="$CMDNICE \"$WRAPPER_CMD\" \"$WRAPPER_CONF\" wrapper.syslog.ident=$APP_NAME wrapper.pidfile=\"$PIDFILE\" $ANCHORPROP $LOCKPROP"
        eval $COMMAND_LINE
        echo "$APP_LONG_NAME is already running."
        exit 1

What can I do about the problem?


update per comments:

$ ldd wrapper 
        linux-vdso.so.1 (0x00007ffec85fe000)
        libm.so.6 => /nix/store/nprym6lf8lzhp1irb42lb4vp8069l5rj-glibc-2.32-54/lib/libm.so.6 (0x00007f1a7e187000)
        libpthread.so.0 => /nix/store/nprym6lf8lzhp1irb42lb4vp8069l5rj-glibc-2.32-54/lib/libpthread.so.0 (0x00007f1a7e166000)
        libc.so.6 => /nix/store/nprym6lf8lzhp1irb42lb4vp8069l5rj-glibc-2.32-54/lib/libc.so.6 (0x00007f1a7dfa5000)
        /lib64/ld-linux-x86-64.so.2 => /nix/store/nprym6lf8lzhp1irb42lb4vp8069l5rj-glibc-2.32-54/lib64/ld-linux-x86-64.so.2 (0x00007f1a7e2cc000)
  • I tried downloading this community edition, and for me line 418 in sonarqube- is the else immediately below that eval, not the eval line itself. Did you edit that file?
    – muru
    Jun 8 at 10:01
  • @muru my change is minimal, and unrelated.
    – Tim
    Jun 8 at 10:08


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.