SonarQube wrapper stopped on Windows - android

I want to analyze my Kotlin code with SonarQube except that I have a problem running the server.
During the installation everything worked, but since I stopped the server it is impossible for me to restart it.
When I run the StartSonar file I get this in the console:
C:\sonarqube-7.8\bin\windows-x86-64> .\StartSonar.bat
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 | 2019.07.01 09:05:34 WARN app[][o.s.application.App] SonarQube will require Java 11+ starting on next version
jvm 1 | 2019.07.01 09:05:34 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory C:\sonarqube-7.8\temp
jvm 1 | 2019.07.01 09:05:34 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
jvm 1 | 2019.07.01 09:05:34 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [C:\sonarqube-7.8\elasticsearch]: C:\Program Files\Java\jdk1.8.0_211\jre\bin\java -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -XX:-OmitStackTraceInFastThrow -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.io.tmpdir=C:\sonarqube-7.8\temp -XX:ErrorFile=../logs/es_hs_err_pid%p.log -Xms512m -Xmx512m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=C:\sonarqube-7.8\elasticsearch -Des.path.conf=C:\sonarqube-7.8\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
jvm 1 | 2019.07.01 09:05:35 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
jvm 1 | 2019.07.01 09:05:35 INFO app[][o.e.p.PluginsService] no modules loaded
jvm 1 | 2019.07.01 09:05:35 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
jvm 1 | 2019.07.01 09:05:48 INFO app[][o.s.a.SchedulerImpl] Process[es] is up
jvm 1 | 2019.07.01 09:05:48 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [C:\sonarqube-7.8]: C:\Program Files\Java\jdk1.8.0_211\jre\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=C:\sonarqube-7.8\temp -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/common/*;C:\sonarqube-7.8\lib\jdbc\h2\h2-1.3.176.jar org.sonar.server.app.WebServer C:\sonarqube-7.8\temp\sq-process8492662459842448974properties
jvm 1 | 2019.07.01 09:05:53 INFO app[][o.s.a.SchedulerImpl] Process[web] is stopped
jvm 1 | 2019.07.01 09:05:53 INFO app[][o.s.a.SchedulerImpl] Process[es] is stopped
jvm 1 | 2019.07.01 09:05:53 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
wrapper | <-- Wrapper Stopped
In the wrapper.conf file, I modified the line :
wrapper.java.command=java
to
wrapper.java.command=C:\Program Files\Java\jdk1.8.0_211\bin\java
But nothing changed
With the Git command line, I executed the command
netstat -ntlp | grep 9000
but no process appears

So apparently it was caused by a double version of the plugin, the official one and the non-official one
I just removed the old one and it works perfectly now !
Hope it will help
Here is the lines of the log files :
2019.07.01 08:59:28 ERROR web[][o.s.s.p.Platform] Web server startup failed: Found two versions of the plugin SonarKotlin [kotlin] in the directory extensions/plugins. Please remove one of sonar-kotlin-plugin-1.5.0.315.jar or sonar-kotlin-0.5.2.jar.
2019.07.01 08:59:28 INFO web[][o.s.s.p.d.EmbeddedDatabase] Embedded database stopped
2019.07.01 08:59:28 INFO web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2019.07.01 08:59:28 INFO web[][o.s.p.ProcessEntryPoint] Hard stopping process
2019.07.01 09:00:48 INFO web[][o.s.p.ProcessEntryPoint] Starting web
2019.07.01 09:00:49 ERROR web[][o.s.s.a.EmbeddedTomcat] Fail to start web server
org.apache.catalina.LifecycleException: Failed to initialize component [StandardServer[-1]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)
at org.apache.catalina.startup.Tomcat.start(Tomcat.java:427)
at org.sonar.server.app.EmbeddedTomcat.start(EmbeddedTomcat.java:65)
at org.sonar.server.app.WebServer.start(WebServer.java:52)
at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:97)
at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:81)
at org.sonar.server.app.WebServer.main(WebServer.java:99)
Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [StandardService[Tomcat]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
... 7 common frames omitted
Caused by: org.apache.catalina.LifecycleException: Failed to initialize connector [Connector[HTTP/1.1-8000]]
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
... 9 common frames omitted
2019.07.01 09:00:49 WARN web[][o.s.p.ProcessEntryPoint] Fail to start web
java.lang.RuntimeException: org.apache.catalina.LifecycleException: Failed to initialize component [StandardServer[-1]]
at com.google.common.base.Throwables.propagate(Throwables.java:160)
at org.sonar.server.app.EmbeddedTomcat.start(EmbeddedTomcat.java:69)
at org.sonar.server.app.WebServer.start(WebServer.java:52)
at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:97)
at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:81)
at org.sonar.server.app.WebServer.main(WebServer.java:99)
Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [StandardServer[-1]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)
at org.apache.catalina.startup.Tomcat.start(Tomcat.java:427)
at org.sonar.server.app.EmbeddedTomcat.start(EmbeddedTomcat.java:65)
... 4 common frames omitted
Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [StandardService[Tomcat]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
... 7 common frames omitted
Caused by: org.apache.catalina.LifecycleException: Failed to initialize connector [Connector[HTTP/1.1-8000]]
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
... 9 common frames omitted

Related

After installed of new Windows and Andriod Studio, cannot run existing project

After installed of new Windows and Andriod Studio,the existing project cannot run now. Please help!
The error message is as below.
Unable to start the daemon process. This problem might be caused by
incorrect configuration of the daemon. For example, an unrecognized
jvm option is used. Please refer to the User Manual chapter on the
daemon at https://docs.gradle.org/6.1.1/userguide/gradle_daemon.html
Process command line:
C:\Users\samkong.jdks\corretto-1.8.0_322\bin\java.exe
--add-opens=java.base/java.io=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED -Xmx2048m--add-exports=java.base/sun.nio.ch=ALL-UNNAMED -Dfile.encoding=x-windows-950 -Duser.country=HK -Duser.language=zh -Duser.variant -cp D:\Android\DeliveryApp api level24\wrapper\dists\gradle-6.1.1-all\cfmwm155h49vnt3hynmlrsdst\gradle-6.1.1\lib\gradle-launcher-6.1.1.jar
org.gradle.launcher.daemon.bootstrap.GradleDaemon 6.1.1 Please read
the following process output to find out more:
----------------------- Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
Unrecognized option: --add-opens=java.base/java.io=ALL-UNNAMED
----------------------- Check the JVM arguments defined for the gradle process in:
gradle.properties in project root directory

Unable to Start daemon process & Gradle syncing is too slow

I Updated my Android Studio and as well I keep getting this error when I launch any project ...
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the User Manual chapter on the daemon at https://docs.gradle.org/6.7.1/userguide/gradle_daemon.html
Process command line: C:\Program Files\Android\Android Studio\jre\bin\java.exe --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED -Xmx2048m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp C:\Users\Nerd\.gradle\wrapper\dists\gradle-6.7.1-bin\bwlcbys1h7rz3272sye1xwiv6\gradle-6.7.1\lib\gradle-launcher-6.7.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 6.7.1
Please read the following process output to find out more:
-----------------------
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000080000000, 268435456, 0) failed; error='The paging file is too small for this operation to complete' (DOS error/errno=1455)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 268435456 bytes for Failed to commit area from 0x0000000080000000 to 0x0000000090000000 of length 268435456.
# An error report file with more information is saved as:
# C:\Users\Nerd\.gradle\daemon\6.7.1\hs_err_pid21920.log
-----------------------
Check the JVM arguments defined for the gradle process in:
- gradle.properties in project root directory
I thought maybe my C: drive has insufficient space but I cleaned lost of unuseful files.
and I can't figure out why my C: drive had 32 GB Space and while Gradle is Building it's just becomes Low space and when the Gradle synch finish unsuccessfully it has 7.2 GB space!
I just recently install Unity game engine and used the Android Studio SDK directory as well. I don't know if it doesn't have any relation with the problem, but that's whole the contemporary changes to my computer.
Any Idea other than uninstalling and reinstalling Android Studio will be appreciated.
Your error states that the daemon exited because there was insufficient memory. Here, it is referring to the RAM, and not the hard disk. Add this to gradle.properties file, create one if it's not present,
org.gradle.jvmargs=-Xms512M -Xmx5G

Sonarqube not started it exit with exit code [es]:1

Sonarqube started fine on windows but it stops itself after 5 seconds .it shows the blow log on CMd display.
C:\sonarqube\bin\windows-x86-64>StartSonar.bat
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 | 2018.01.09 10:05:37 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory C:\sonarqube\temp
jvm 1 | 2018.01.09 10:05:37 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
jvm 1 | 2018.01.09 10:05:37 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [C:\sonarqube\elasticsearch]: C:\Program Files\jre\bin\java -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+AlwaysPreTouch -server -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -Djdk.io.permissionsUseCanonicalPath=true -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dlog4j.skipJansi=true -Xms512m -Xmx512m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=C:\sonarqube\elasticsearch -cp lib/* org.elasticsearch.bootstrap.Elasticsearch -Epath.conf=C:\sonarqube\temp\conf\es
jvm 1 | 2018.01.09 10:05:37 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
jvm 1 | 2018.01.09 10:05:38 INFO app[][o.e.p.PluginsService] no modules loaded
jvm 1 | 2018.01.09 10:05:38 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
jvm 1 | 2018.01.09 10:05:39 WARN app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 1
jvm 1 | 2018.01.09 10:05:39 INFO app[][o.s.a.SchedulerImpl] Process [es] is stopped
jvm 1 | 2018.01.09 10:05:39 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
wrapper | <-- Wrapper Stopped
After spending a lot of time on this I found the answer
1.
first I got this error on my windows system even my system already has Java installed
java.lang.illegalstateexception: Sonarqube require java
To resolve this issue I found my system installed java version is 8 and Sonarcube required 11+.
So I downloaded the JDK11.0.5 from oracle java site and replace the path of java in
\sonarqube-8.0\conf\wrapper.conf file present in Sonarqube directory
I replaced from this
wrapper.java.command=java
to this
wrapper.java.command=C:\Program Files\Java\jdk-11.0.5\bin\java
Then this issue got resolved.
here the 11+ means it should only be java 11 version not other then that.
2.
Here the sonarqube run but got stoped just after it execution.
C:\sonarqube\bin\windows-x86-64>StartSonar.bat
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 | 2018.01.09 10:05:37 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory C:\sonarqube\temp
jvm 1 | 2018.01.09 10:05:37 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
jvm 1 | 2018.01.09 10:05:37 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [C:\sonarqube\elasticsearch]: C:\Program Files\jre\bin\java -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+AlwaysPreTouch -server -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -Djdk.io.permissionsUseCanonicalPath=true -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dlog4j.skipJansi=true -Xms512m -Xmx512m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=C:\sonarqube\elasticsearch -cp lib/* org.elasticsearch.bootstrap.Elasticsearch -Epath.conf=C:\sonarqube\temp\conf\es
jvm 1 | 2018.01.09 10:05:37 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
jvm 1 | 2018.01.09 10:05:38 INFO app[][o.e.p.PluginsService] no modules loaded
jvm 1 | 2018.01.09 10:05:38 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
jvm 1 | 2018.01.09 10:05:39 WARN app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 1
jvm 1 | 2018.01.09 10:05:39 INFO app[][o.s.a.SchedulerImpl] Process [es] is stopped
jvm 1 | 2018.01.09 10:05:39 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
wrapper | <-- Wrapper Stopped
There is no error shows on CMD screen.
But I checked the logs in Sonarcube log file i.e. C:\Users\pathto\sonarqube-8.0\logs\es
and here its mentioned about the java access denied.
To Resolve this
Just go to file manager and right-click on This PC and select properties from the list , after that select advance system setting that present at the top left side of the screen. Then a pop-up screen appear then select Environment variables and then add the path of your Sonarqube bin folder under the path tag like
Path
C:\Users\pathto\sonarqube-8.0\bin\windows-x86-64
And also add as variable
SONAR_RUNNER_HOME
C:\Users\Prashka\Videos\sonarqube-8.0\bin\
And after adding those variable clicks ok to pop up screen. And then click on SonarStart.bat file. Your SonarServer will start working
then open http//:localhost:9000 in your browser and click on the login.
then login to Sonar server
with User admin
and password admin
Finally, SonarServer starts working with the Administrator panel.

docker on android (gnuroot debian)

I am trying to install docker-ce on my android (6.0.1) over gnurooot debian, the installation fails with "no permission to read /proc/cmdline".
Can you help me to fix it?
here is the error i get
Sponsored by:
_____ _
|_ _| ___ ___ ___ _| | _ _ ___ ___
| | | -_|| _|| . || . || | || || -_|
|_| |___||_| |__,||___||_ ||_|_||___|
|___|
root#localhost:/# apt-get install docker-ce
Reading package lists... Done
Building dependency tree
Reading state information... Done
docker-ce is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 41 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up cgroupfs-mount (1.1) ...
Failed to read /proc/cmdline. Ignoring: Permission denied
Mounting cgroupfs hierarchy/usr/bin/cgroupfs-mount: 32: cd: can't cd to /sys/fs/cgroup
invoke-rc.d: initscript cgroupfs-mount, action "start" failed.
dpkg: error processing package cgroupfs-mount (--configure): subprocess installed post-installation script returned error exit status 2
Setting up docker-ce (17.09.1~ce-0~debian) ...
Failed to read /proc/cmdline. Ignoring: Permission denied
/etc/init.d/docker: 73: cd: can't cd to /sys/fs/cgroup
invoke-rc.d: initscript docker, action "start" failed.
dpkg: error processing package docker-ce (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
cgroupfs-mount
docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)
root#localhost:/#
Docker isolates containers using cgroups and namespaces. The installer failed to find /sys/fs/cgroup. Either this is not present inside your Debian chroot environment, or, your kernel is too old for cgroup support (pretty likely on Android).
Does the /sys/ directory exist for you?
What kernel are you running? (uname -a). Docker requires 3.10 or later.

Error while running program in Android Titanium

I am new to Appcelerator Titanium.
I have downloaded Appcelerator Studio and its prerequisites (Oracle JDK and Node.js) and also installed all the needed android SDKs.
When I try to run Favebook project from Titanium documentation (Creating your first Titanium App) using titanium_1_WVGA800, I always get an error:
[ERROR] : Invalid "--device-id" value "titanium_1_WVGA800"
For help, run: titanium help build
2016-01-29T11:50:34.771Z | TRACE | titanium exited with exit code 1
2016-01-29T11:50:34.771Z | ERROR | Error: ti run exited with error code 1
at ChildProcess.<anonymous>
(C:\Users\Pragnesh\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\plugins\run.js:92:66)
at ChildProcess.emit (events.js:110:17)
at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
2016-01-29T11:50:34.787Z | TRACE | Sending exit signal to titanium process: 23888
[ERROR] Application Installer abnormal process termination. Process exit value was 1
Need help to find out what error is this.

Categories

Resources