# Common Pitfalls
# Insufficient memory size for Docker containers
Appearance: When deploying a generated DIME application with docker-compose up
the wildfly
container may fail to build or stops silently during runtime due to lack of memory.
Stacktrace: Either watch out for the Wildfly to suddenly quit:
dywa-app_1 | *** JBossAS process (57) received KILL signal ***
1
Or for errors during the webdev build
phase:
[WARNING]build_web_compilers:entrypoint on web/main.dart: Dart2Js failure: Dart2js exited with an unknown error
[...]
[SEVERE]build_web_compilers:entrypoint on web/main.dart: Dart2js exited with an unknown error
[...]
[SEVERE] FailureType: 1
#14 ERROR: executor failed running [/bin/sh -c /root/.pub-cache/bin/webdev build]: exit code: 1
1
2
3
4
5
6
2
3
4
5
6
Reason: The memory size available for Docker containers is insufficient.
Solution: Increase the available memory size in the Docker settings.
# The Deployment View fails to start
Appearance: When opening the Deployment View, the following error is reported.
java.lang.RuntimeException: The Deployment View is not supported on a runtime environment without Docker
at info.scce.dime.ui.deployment.view.DeploymentView.createPartControl(DeploymentView.java:136)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:153)
...
Caused by: info.scce.gantry.Environment$EnvironmentException: We failed connecting to the docker daemon
at info.scce.gantry.impl.DockerEnvironment.checkPreconditions(DockerEnvironment.java:89)
at info.scce.dime.ui.deployment.view.DeploymentView.createPartControl(DeploymentView.java:134)
...
Caused by: java.lang.RuntimeException: java.io.IOException: native connect() failed : Permission denied
at com.github.dockerjava.httpclient5.ApacheDockerHttpClientImpl.execute(ApacheDockerHttpClientImpl.java:162)
at com.github.dockerjava.httpclient5.ApacheDockerHttpClient.execute(ApacheDockerHttpClient.java:8)
...
Caused by: java.io.IOException: native connect() failed : Permission denied
at com.github.dockerjava.httpclient5.UnixDomainSocket.connect(UnixDomainSocket.java:157)
at org.apache.hc.client5.http.socket.PlainConnectionSocketFactory$1.run(PlainConnectionSocketFactory.java:87)
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Observation: Since Docker requires root privileges, the Deployment View fails if DIME was started by a regular user.
Solution: Make sure the user, which starts DIME, is part of the docker
group. See Note for Linux Users.