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

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.

Related

Ionic + Fastlane | Android "error: package android.support.v4.content does not exist"

I have an Ionic project I'm working with that is having trouble building to Android. I inherited this project, so that's why I'm not 100% familiar with Fastlane and how it's building the java files. Additionally, I'm on WSL2 and using sdkmanager with the following installed packages:
Installed packages:=====================] 100% Fetch remote repository...
Path | Version | Description | Location
------- | ------- | ------- | -------
build-tools;29.0.2 | 29.0.2 | Android SDK Build-Tools 29.0.2 | build-tools/29.0.2
emulator | 30.8.4 | Android Emulator | emulator
patcher;v4 | 1 | SDK Patch Applier v4 | patcher/v4
platform-tools | 31.0.3 | Android SDK Platform-Tools | platform-tools
platforms;android-29 | 5 | Android SDK Platform 29 | platforms/android-29
When I run bundle exec fastlane android build it does a whole lot of magic, but in the end, results in the following error:
> Task :app:compileReleaseJavaWithJavac FAILED
/home/zonyx/git/gitlab/studio/platforms/android/app/src/main/java/org/apache/cordova/camera/CameraLauncher.java:42: error: package android.support.v4.content does not exist
import android.support.v4.content.FileProvider;
^
/home/zonyx/git/gitlab/studio/platforms/android/app/src/main/java/org/apache/cordova/camera/FileProvider.java:21: error: package android.support.v4.content does not exist
public class FileProvider extends android.support.v4.content.FileProvider {}
^
/home/zonyx/git/gitlab/studio/platforms/android/app/src/main/java/org/apache/cordova/camera/CameraLauncher.java:297: error: cannot find symbol
this.imageUri = FileProvider.getUriForFile(cordova.getActivity(),
^
symbol: method getUriForFile(Activity,String,File)
location: class FileProvider
/home/zonyx/git/gitlab/studio/platforms/android/app/src/main/java/org/apache/cordova/camera/CameraLauncher.java:824: error: cannot find symbol
Uri tmpFile = FileProvider.getUriForFile(cordova.getActivity(),
^
symbol: method getUriForFile(Activity,String,File)
location: class FileProvider
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
I've seen some thoughts about newer SDK versions using androidx.core.content.FileProvider instead of android.support.v4.content.FileProvider. Since the entire Android portion is built / generated automatically, I obviously can't change the java file because it will just get overwritten.
Here's a line of the Fastfile that may be helpful:
desc 'Compile a new build for Android'
lane :build do |options|
Dir.chdir('..') do
before_build(options)
ionic_build
sh("ionic cordova build android --device --release --aot false --environment prod --output-hashing all \
--sourcemaps false --extract-css true --named-chunks false --build-optimizer true --minifyjs=true \
--minifycss=true --optimizejs=true")
deeplinks(action: 'uninstall')
end
end
cordova-plugin-androidx-adapter will migrate older libraries to use AndroidX Support Libraries automatically. I believe this is needed when you target Android 10 or higher, which is when the switch was made. Once all of your plugins support AndroidX, you can remove the adapter plugin.

BubbleWrap CLI shows Error The given android-sdk isn't correct when bubblewrap build

I want to build TWA using BubbleWrap CLI
When I try to build my app using bubblewrap build
| |) /_,--.,--| |-.| |-.| |,---.,--. ,--,--.--.,--,--.,---.
| .-. | || | .-. | .-. | | .-. | |.'.| | .--' ,-. | .-. |
| '--' ' '' | `-' | `-' | \ --| .'. | | \ '-' | '-' '
`------' `----' `---' `---'`--'`----'--' '--`--' `--`--| |-'
`--'
(node:1798) ExperimentalWarning: The fs.promises API is experimental
cli ERROR The given androidSdk isn't correct.
It shows error cli Eroor The given androidSdk isn't correct
Here is my file structure is
- application
|
|- jdk
|- android-sdk
|- my-app
My ~/.bubblewrap/config.json contains
{
"jdkPath":"~/application/jdk",
"androidSdkPath":"~/application/andoid-sdk"
}
My OS
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
I got Bubblewrap to work with the latest version of command-line tools downloaded from https://developer.android.com/studio. (currently 6858069)
The downloaded archive file will have a directory called cmdline-tools, this needs to be renamed tools and put inside the android-sdk directory.
Your directory structure should look like
./android-sdk/
./android-sdk/tools
./android-sdk/tools/bin
./android-sdk/tools/lib
Then Bubblewrap asks for android-sdk I used the absolute path to the android-sdk directory, instead of using the ~ (tilde) character. I do not believe ~ is supported by Bubblewrap, as it is a node application and node does not support ~ by default according to https://github.com/nodejs/node/issues/684 . This should be true for your jdk path also.
Bubblewrap will continue and ask you to accept the licenses. After, it will start downloaded extra files to the android-sdk directory so read-write access is also needed.
*Modify the folder of the android-sdk to look like this: android-sdk -> tools -> bin, lib
Optional Commands:
bubblewrap updateConfig --androidSdkPath [your android-sdk path]
run bubblewrap doctor to check all
Hope it will help.
to solve when you can not execute and you get the address error message. just duplicate and copy the sdk/tools/bin/sdkmanager.bat to sdk/tools/bin/sdkmanager, in the same directory.

SonarQube wrapper stopped on Windows

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

Fastlane error in android apk build 'increment_version_code'

I am getting the errors in the fastlane for building a signed apk as an assembleRelease apk and i want to deploy the update on the playstore but when i firing the fastlane command at the time i am getting the error for the increment_version_code.
Shubhams-MacBook-Air:ProjectPath shubhamsejpal$ fastlane beta
[✔] 🚀
[23:33:51]: fastlane detected a Gemfile in the current directory
[23:33:51]: however it seems like you don't use `bundle exec`
[23:33:51]: to launch fastlane faster, please use
[23:33:51]:
[23:33:51]: $ bundle exec fastlane beta
[23:33:51]:
[23:33:51]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[23:33:51]: WARNING: fastlane requires your locale to be set to UTF-8. To learn more go to https://docs.fastlane.tools/getting-started/ios/setup/#set-up-environment-variables
[23:33:52]: ----------------------------------------
[23:33:52]: --- Step: Verifying fastlane version ---
[23:33:52]: ----------------------------------------
[23:33:52]: Your fastlane version 2.90.0 matches the minimum requirement of 2.64.0 ✅
[23:33:52]: ------------------------------
[23:33:52]: --- Step: default_platform ---
[23:33:52]: ------------------------------
[23:33:52]: Driving the lane 'android beta' 🚀
+------------------+--------------+
| Lane Context |
+------------------+--------------+
| DEFAULT_PLATFORM | android |
| PLATFORM_NAME | android |
| LANE_NAME | android beta |
+------------------+--------------+
[23:33:52]: Could not find action, lane or variable 'increment_version_code'. Check out the documentation for more details: https://docs.fastlane.tools/actions
+------+---------------------+-------------+
| fastlane summary |
+------+---------------------+-------------+
| Step | Action | Time (in s) |
+------+---------------------+-------------+
| 1 | Verifying fastlane | 0 |
| | version | |
| 2 | default_platform | 0 |
+------+---------------------+-------------+
[23:33:52]: fastlane finished with errors
[!] Could not find action, lane or variable 'increment_version_code'. Check out the documentation for more details: https://docs.fastlane.tools/actions
[23:33:52]: WARNING: fastlane requires your locale to be set to UTF-8. To learn more go to https://docs.fastlane.tools/getting-started/ios/setup/#set-up-environment-variables
you have to add this plugin
fastlane add_plugin increment_version_code
reference url

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.

Categories

Resources