SBT preload failure - sbt

I have installed sbt in a docker image.
The installation was fine.
# installing sbt
ENV SBT_VERSION 1.3.13
RUN apk add wget \
&& wget -O tmp/sbt.tgz "https://piccolo.link/sbt-1.3.13.tgz" \
&& tar -xvzf tmp/sbt.tgz -C /usr/local \
&& export PATH="/usr/local/sbt/bin:$PATH" \
&& sbt sbtVersion \
&& apk del wget \
&& rm tmp/sbt.tgz
When i invoked sbt commands inside my container, the commands are successfully executed.
However, it fetches a bunch of packages from maven repository before starting up.
when i invoke sbt commands through jenkins pipeline, it fails...
Below is the Jenkins pipeline code and failure log:
docker.withRegistry(.....) {
pipelineDock = docker.image(...)
pipelineDock.pull()
pipelineDock.inside("--entrypoint=''") {
stage('test) {
sh "sbt clean"
}
}
[Pipeline] sh
+ sbt clean
copying runtime jar...
[info] [launcher] getting org.scala-sbt sbt 1.3.13 (this may take some time)...
downloading https://repo1.maven.org/maven2/org/scala-sbt/main_2.12/1.3.13/main_2.12-1.3.13.jar ...
:: loading settings :: url = jar:file:/usr/local/sbt/bin/sbt-launch.jar!/org/apache/ivy/core/settings/ivysettings.xml
downloading https://repo1.maven.org/maven2/org/scala-sbt/sbt/1.3.13/sbt-1.3.13.jar ...
downloading https://repo1.maven.org/maven2/org/scala-sbt/io_2.12/1.3.4/io_2.12-1.3.4.jar ...
downloading https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.12.10/scala-library-2.12.10.jar ...
:: loading settings :: url = jar:file:/usr/local/sbt/bin/sbt-launch.jar!/org/apache/ivy/core/settings/ivysettings.xml
:: loading settings :: url = jar:file:/usr/local/sbt/bin/sbt-launch.jar!/org/apache/ivy/core/settings/ivysettings.xml
:: loading settings :: url = jar:file:/usr/local/sbt/bin/sbt-launch.jar!/org/apache/ivy/core/settings/ivysettings.xml
[SUCCESSFUL ] org.scala-sbt#sbt;1.3.13!sbt.jar (210ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/logic_2.12/1.3.13/logic_2.12-1.3.13.jar ...
[SUCCESSFUL ] org.scala-sbt#logic_2.12;1.3.13!logic_2.12.jar (67ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/actions_2.12/1.3.13/actions_2.12-1.3.13.jar ...
[SUCCESSFUL ] org.scala-sbt#io_2.12;1.3.4!io_2.12.jar (318ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/main-settings_2.12/1.3.13/main-settings_2.12-1.3.13.jar ...
[SUCCESSFUL ] org.scala-sbt#actions_2.12;1.3.13!actions_2.12.jar (51ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/run_2.12/1.3.13/run_2.12-1.3.13.jar ...
[SUCCESSFUL ] org.scala-sbt#run_2.12;1.3.13!run_2.12.jar (37ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/command_2.12/1.3.13/command_2.12-1.3.13.jar ...
[SUCCESSFUL ] org.scala-sbt#main-settings_2.12;1.3.13!main-settings_2.12.jar (125ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/collections_2.12/1.3.13/collections_2.12-1.3.13.jar ...
[SUCCESSFUL ] org.scala-sbt#command_2.12;1.3.13!command_2.12.jar (74ms)
[SUCCESSFUL ] org.scala-sbt#main_2.12;1.3.13!main_2.12.jar (451ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/scripted-sbt-redux_2.12/1.3.13/scripted-sbt-redux_2.12-1.3.13.jar ...
downloading https://repo1.maven.org/maven2/org/scala-sbt/scripted-plugin_2.12/1.3.13/scripted-plugin_2.12-1.3.13.jar ...
[SUCCESSFUL ] org.scala-sbt#scripted-sbt-redux_2.12;1.3.13!scripted-sbt-redux_2.12.jar (41ms)
[SUCCESSFUL ] org.scala-sbt#scripted-plugin_2.12;1.3.13!scripted-plugin_2.12.jar (35ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/zinc-lm-integration_2.12/1.3.13/zinc-lm-integration_2.12-1.3.13.jar ...
[SUCCESSFUL ] org.scala-sbt#collections_2.12;1.3.13!collections_2.12.jar (61ms)
downloading https://repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.12/1.3.0/scala-xml_2.12-1.3.0.jar ...
downloading https://repo1.maven.org/maven2/org/scala-sbt/launcher-interface/1.1.4/launcher-interface-1.1.4.jar ...
[SUCCESSFUL ] org.scala-sbt#zinc-lm-integration_2.12;1.3.13!zinc-lm-integration_2.12.jar (33ms)
downloading https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-api/2.11.2/log4j-api-2.11.2.jar ...
[SUCCESSFUL ] org.scala-sbt#launcher-interface;1.1.4!launcher-interface.jar (38ms)
downloading https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.11.2/log4j-core-2.11.2.jar ...
[SUCCESSFUL ] org.scala-lang.modules#scala-xml_2.12;1.3.0!scala-xml_2.12.jar(bundle) (73ms)
[SUCCESSFUL ] org.apache.logging.log4j#log4j-api;2.11.2!log4j-api.jar (52ms)
downloading https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-slf4j-impl/2.11.2/log4j-slf4j-impl-2.11.2.jar ...
downloading https://repo1.maven.org/maven2/com/github/cb372/scalacache-caffeine_2.12/0.20.0/scalacache-caffeine_2.12-0.20.0.jar ...
[SUCCESSFUL ] org.scala-lang#scala-library;2.12.10!scala-library.jar (610ms)
[SUCCESSFUL ] org.apache.logging.log4j#log4j-slf4j-impl;2.11.2!log4j-slf4j-impl.jar (40ms)
downloading https://repo1.maven.org/maven2/io/get-coursier/lm-coursier-shaded_2.12/2.0.0-RC6-4/lm-coursier-shaded_2.12-2.0.0-RC6-4.jar ...
downloading https://repo1.maven.org/maven2/org/scala-sbt/util-logging_2.12/1.3.3/util-logging_2.12-1.3.3.jar ...
[SUCCESSFUL ] com.github.cb372#scalacache-caffeine_2.12;0.20.0!scalacache-caffeine_2.12.jar (40ms)
[SUCCESSFUL ] org.apache.logging.log4j#log4j-core;2.11.2!log4j-core.jar (88ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/librarymanagement-core_2.12/1.3.4/librarymanagement-core_2.12-1.3.4.jar ...
downloading https://repo1.maven.org/maven2/org/scala-sbt/librarymanagement-ivy_2.12/1.3.4/librarymanagement-ivy_2.12-1.3.4.jar ...
[SUCCESSFUL ] org.scala-sbt#util-logging_2.12;1.3.3!util-logging_2.12.jar (50ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/compiler-interface/1.3.5/compiler-interface-1.3.5.jar ...
[SUCCESSFUL ] org.scala-sbt#librarymanagement-ivy_2.12;1.3.4!librarymanagement-ivy_2.12.jar (56ms)
[SUCCESSFUL ] org.scala-sbt#librarymanagement-core_2.12;1.3.4!librarymanagement-core_2.12.jar (79ms)
[SUCCESSFUL ] org.scala-sbt#compiler-interface;1.3.5!compiler-interface.jar (41ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/zinc-compile_2.12/1.3.5/zinc-compile_2.12-1.3.5.jar ...
downloading https://repo1.maven.org/maven2/org/scala-sbt/util-relation_2.12/1.3.3/util-relation_2.12-1.3.3.jar ...
downloading https://repo1.maven.org/maven2/com/eed3si9n/sjson-new-scalajson_2.12/0.8.3/sjson-new-scalajson_2.12-0.8.3.jar ...
[SUCCESSFUL ] org.scala-sbt#zinc-compile_2.12;1.3.5!zinc-compile_2.12.jar (51ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/util-position_2.12/1.3.3/util-position_2.12-1.3.3.jar ...
[SUCCESSFUL ] com.eed3si9n#sjson-new-scalajson_2.12;0.8.3!sjson-new-scalajson_2.12.jar (45ms)
[SUCCESSFUL ] org.scala-sbt#util-relation_2.12;1.3.3!util-relation_2.12.jar (49ms)
downloading https://repo1.maven.org/maven2/com/eed3si9n/sjson-new-core_2.12/0.8.3/sjson-new-core_2.12-0.8.3.jar ...
downloading https://repo1.maven.org/maven2/com/eed3si9n/shaded-scalajson_2.12/1.0.0-M4/shaded-scalajson_2.12-1.0.0-M4.jar ...
[SUCCESSFUL ] org.scala-sbt#util-position_2.12;1.3.3!util-position_2.12.jar (40ms)
[SUCCESSFUL ] com.eed3si9n#shaded-scalajson_2.12;1.0.0-M4!shaded-scalajson_2.12.jar (39ms)
downloading https://repo1.maven.org/maven2/org/spire-math/jawn-parser_2.12/0.10.4/jawn-parser_2.12-0.10.4.jar ...
downloading https://repo1.maven.org/maven2/org/scala-lang/scala-reflect/2.12.10/scala-reflect-2.12.10.jar ...
[SUCCESSFUL ] org.spire-math#jawn-parser_2.12;0.10.4!jawn-parser_2.12.jar (40ms)
[SUCCESSFUL ] com.eed3si9n#sjson-new-core_2.12;0.8.3!sjson-new-core_2.12.jar (81ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/completion_2.12/1.3.13/completion_2.12-1.3.13.jar ...
downloading https://repo1.maven.org/maven2/org/scala-sbt/task-system_2.12/1.3.13/task-system_2.12-1.3.13.jar ...
[SUCCESSFUL ] org.scala-sbt#completion_2.12;1.3.13!completion_2.12.jar (51ms)
[SUCCESSFUL ] org.scala-sbt#task-system_2.12;1.3.13!task-system_2.12.jar (44ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/testing_2.12/1.3.13/testing_2.12-1.3.13.jar ...
downloading https://repo1.maven.org/maven2/org/scala-sbt/tasks_2.12/1.3.13/tasks_2.12-1.3.13.jar ...
[SUCCESSFUL ] org.scala-sbt#tasks_2.12;1.3.13!tasks_2.12.jar (37ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/util-tracking_2.12/1.3.3/util-tracking_2.12-1.3.3.jar ...
[SUCCESSFUL ] org.scala-sbt#testing_2.12;1.3.13!testing_2.12.jar (48ms)
[SUCCESSFUL ] io.get-coursier#lm-coursier-shaded_2.12;2.0.0-RC6-4!lm-coursier-shaded_2.12.jar (315ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/zinc-classpath_2.12/1.3.5/zinc-classpath_2.12-1.3.5.jar ...
downloading https://repo1.maven.org/maven2/org/scala-sbt/zinc-apiinfo_2.12/1.3.5/zinc-apiinfo_2.12-1.3.5.jar ...
[SUCCESSFUL ] org.scala-sbt#util-tracking_2.12;1.3.3!util-tracking_2.12.jar (31ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/zinc_2.12/1.3.5/zinc_2.12-1.3.5.jar ...
[SUCCESSFUL ] org.scala-sbt#zinc-classpath_2.12;1.3.5!zinc-classpath_2.12.jar (39ms)
downloading https://repo1.maven.org/maven2/jline/jline/2.14.6/jline-2.14.6.jar ...
[SUCCESSFUL ] org.scala-sbt#zinc_2.12;1.3.5!zinc_2.12.jar (36ms)
[SUCCESSFUL ] org.scala-sbt#zinc-apiinfo_2.12;1.3.5!zinc-apiinfo_2.12.jar (54ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/util-control_2.12/1.3.3/util-control_2.12-1.3.3.jar ...
[SUCCESSFUL ] org.scala-lang#scala-reflect;2.12.10!scala-reflect.jar (204ms)
downloading https://repo1.maven.org/maven2/com/swoval/file-tree-views/2.1.3/file-tree-views-2.1.3.jar ...
downloading https://repo1.maven.org/maven2/net/java/dev/jna/jna/5.5.0/jna-5.5.0.jar ...
[SUCCESSFUL ] jline#jline;2.14.6!jline.jar (52ms)
downloading https://repo1.maven.org/maven2/net/java/dev/jna/jna-platform/5.5.0/jna-platform-5.5.0.jar ...
[SUCCESSFUL ] org.scala-sbt#util-control_2.12;1.3.3!util-control_2.12.jar (57ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/util-interface/1.3.3/util-interface-1.3.3.jar ...
[SUCCESSFUL ] com.swoval#file-tree-views;2.1.3!file-tree-views.jar (74ms)
downloading https://repo1.maven.org/maven2/com/lmax/disruptor/3.4.2/disruptor-3.4.2.jar ...
[SUCCESSFUL ] org.scala-sbt#util-interface;1.3.3!util-interface.jar (44ms)
downloading https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.12.10/scala-compiler-2.12.10.jar ...
[SUCCESSFUL ] net.java.dev.jna#jna;5.5.0!jna.jar (103ms)
downloading https://repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.7.0/protobuf-java-3.7.0.jar ...
[SUCCESSFUL ] com.lmax#disruptor;3.4.2!disruptor.jar (81ms)
[SUCCESSFUL ] net.java.dev.jna#jna-platform;5.5.0!jna-platform.jar (136ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/util-cache_2.12/1.3.3/util-cache_2.12-1.3.3.jar ...
downloading https://repo1.maven.org/maven2/com/eed3si9n/sjson-new-murmurhash_2.12/0.8.3/sjson-new-murmurhash_2.12-0.8.3.jar ...
[SUCCESSFUL ] com.google.protobuf#protobuf-java;3.7.0!protobuf-java.jar(bundle) (97ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/test-agent/1.3.13/test-agent-1.3.13.jar ...
[SUCCESSFUL ] com.eed3si9n#sjson-new-murmurhash_2.12;0.8.3!sjson-new-murmurhash_2.12.jar (63ms)
[SUCCESSFUL ] org.scala-sbt#util-cache_2.12;1.3.3!util-cache_2.12.jar (84ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/test-interface/1.0/test-interface-1.0.jar ...
downloading https://repo1.maven.org/maven2/org/scala-sbt/compiler-bridge_2.12/1.3.5/compiler-bridge_2.12-1.3.5.jar ...
[SUCCESSFUL ] org.scala-sbt#test-agent;1.3.13!test-agent.jar (57ms)
[SUCCESSFUL ] org.scala-sbt#test-interface;1.0!test-interface.jar (50ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/zinc-classfile_2.12/1.3.5/zinc-classfile_2.12-1.3.5.jar ...
downloading https://repo1.maven.org/maven2/com/jcraft/jsch/0.1.54/jsch-0.1.54.jar ...
[SUCCESSFUL ] org.scala-sbt#compiler-bridge_2.12;1.3.5!compiler-bridge_2.12.jar (60ms)
downloading https://repo1.maven.org/maven2/com/eed3si9n/gigahorse-okhttp_2.12/0.5.0/gigahorse-okhttp_2.12-0.5.0.jar ...
[SUCCESSFUL ] org.scala-sbt#zinc-classfile_2.12;1.3.5!zinc-classfile_2.12.jar (63ms)
[SUCCESSFUL ] com.eed3si9n#gigahorse-okhttp_2.12;0.5.0!gigahorse-okhttp_2.12.jar (37ms)
[SUCCESSFUL ] com.jcraft#jsch;0.1.54!jsch.jar (60ms)
downloading https://repo1.maven.org/maven2/com/eed3si9n/gigahorse-core_2.12/0.5.0/gigahorse-core_2.12-0.5.0.jar ...
downloading https://repo1.maven.org/maven2/com/squareup/okhttp3/okhttp-urlconnection/3.7.0/okhttp-urlconnection-3.7.0.jar ...
downloading https://repo1.maven.org/maven2/com/squareup/okhttp3/okhttp/3.14.2/okhttp-3.14.2.jar ...
[SUCCESSFUL ] com.eed3si9n#gigahorse-core_2.12;0.5.0!gigahorse-core_2.12.jar (36ms)
[SUCCESSFUL ] org.scala-lang#scala-compiler;2.12.10!scala-compiler.jar (279ms)
downloading https://repo1.maven.org/maven2/com/typesafe/ssl-config-core_2.12/0.4.0/ssl-config-core_2.12-0.4.0.jar ...
downloading https://repo1.maven.org/maven2/org/reactivestreams/reactive-streams/1.0.2/reactive-streams-1.0.2.jar ...
[SUCCESSFUL ] com.squareup.okhttp3#okhttp-urlconnection;3.7.0!okhttp-urlconnection.jar (52ms)
[SUCCESSFUL ] com.squareup.okhttp3#okhttp;3.14.2!okhttp.jar (53ms)
downloading https://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.26/slf4j-api-1.7.26.jar ...
downloading https://repo1.maven.org/maven2/org/scala-lang/modules/scala-parser-combinators_2.12/1.1.2/scala-parser-combinators_2.12-1.1.2.jar ...
[SUCCESSFUL ] com.typesafe#ssl-config-core_2.12;0.4.0!ssl-config-core_2.12.jar(bundle) (39ms)
[SUCCESSFUL ] org.reactivestreams#reactive-streams;1.0.2!reactive-streams.jar (36ms)
downloading https://repo1.maven.org/maven2/com/typesafe/config/1.3.3/config-1.3.3.jar ...
downloading https://repo1.maven.org/maven2/com/squareup/okio/okio/1.17.2/okio-1.17.2.jar ...
[SUCCESSFUL ] org.slf4j#slf4j-api;1.7.26!slf4j-api.jar (39ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/zinc-core_2.12/1.3.5/zinc-core_2.12-1.3.5.jar ...
[SUCCESSFUL ] org.scala-lang.modules#scala-parser-combinators_2.12;1.1.2!scala-parser-combinators_2.12.jar(bundle) (49ms)
[SUCCESSFUL ] com.squareup.okio#okio;1.17.2!okio.jar (33ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/zinc-persist_2.12/1.3.5/zinc-persist_2.12-1.3.5.jar ...
downloading https://repo1.maven.org/maven2/org/scala-sbt/zinc-compile-core_2.12/1.3.5/zinc-compile-core_2.12-1.3.5.jar ...
[SUCCESSFUL ] com.typesafe#config;1.3.3!config.jar(bundle) (57ms)
downloading https://repo1.maven.org/maven2/com/trueaccord/scalapb/scalapb-runtime_2.12/0.6.0/scalapb-runtime_2.12-0.6.0.jar ...
[SUCCESSFUL ] org.scala-sbt#zinc-core_2.12;1.3.5!zinc-core_2.12.jar (71ms)
[SUCCESSFUL ] org.scala-sbt#zinc-compile-core_2.12;1.3.5!zinc-compile-core_2.12.jar (55ms)
downloading https://repo1.maven.org/maven2/com/trueaccord/lenses/lenses_2.12/0.4.12/lenses_2.12-0.4.12.jar ...
downloading https://repo1.maven.org/maven2/com/lihaoyi/fastparse_2.12/0.4.2/fastparse_2.12-0.4.2.jar ...
[SUCCESSFUL ] org.scala-sbt#zinc-persist_2.12;1.3.5!zinc-persist_2.12.jar (84ms)
downloading https://repo1.maven.org/maven2/com/lihaoyi/fastparse-utils_2.12/0.4.2/fastparse-utils_2.12-0.4.2.jar ...
[SUCCESSFUL ] com.trueaccord.lenses#lenses_2.12;0.4.12!lenses_2.12.jar (36ms)
[SUCCESSFUL ] com.lihaoyi#fastparse_2.12;0.4.2!fastparse_2.12.jar (40ms)
downloading https://repo1.maven.org/maven2/com/lihaoyi/sourcecode_2.12/0.1.3/sourcecode_2.12-0.1.3.jar ...
downloading https://repo1.maven.org/maven2/org/scala-sbt/sbinary_2.12/0.5.0/sbinary_2.12-0.5.0.jar ...
[SUCCESSFUL ] com.trueaccord.scalapb#scalapb-runtime_2.12;0.6.0!scalapb-runtime_2.12.jar (84ms)
[SUCCESSFUL ] com.lihaoyi#fastparse-utils_2.12;0.4.2!fastparse-utils_2.12.jar (39ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/core-macros_2.12/1.3.13/core-macros_2.12-1.3.13.jar ...
downloading https://repo1.maven.org/maven2/org/scala-sbt/protocol_2.12/1.3.13/protocol_2.12-1.3.13.jar ...
[SUCCESSFUL ] org.scala-sbt#sbinary_2.12;0.5.0!sbinary_2.12.jar (35ms)
[SUCCESSFUL ] com.lihaoyi#sourcecode_2.12;0.1.3!sourcecode_2.12.jar (45ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/template-resolver/0.1/template-resolver-0.1.jar ...
downloading https://repo1.maven.org/maven2/org/scala-sbt/ipcsocket/ipcsocket/1.0.1/ipcsocket-1.0.1.jar ...
[SUCCESSFUL ] org.scala-sbt#core-macros_2.12;1.3.13!core-macros_2.12.jar (40ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/util-scripted_2.12/1.3.3/util-scripted_2.12-1.3.3.jar ...
[SUCCESSFUL ] org.scala-sbt#protocol_2.12;1.3.13!protocol_2.12.jar (46ms)
[SUCCESSFUL ] org.scala-sbt#template-resolver;0.1!template-resolver.jar (37ms)
downloading https://repo1.maven.org/maven2/com/github/cb372/scalacache-core_2.12/0.20.0/scalacache-core_2.12-0.20.0.jar ...
[SUCCESSFUL ] org.scala-sbt.ipcsocket#ipcsocket;1.0.1!ipcsocket.jar (42ms)
downloading https://repo1.maven.org/maven2/com/github/ben-manes/caffeine/caffeine/2.5.6/caffeine-2.5.6.jar ...
downloading https://repo1.maven.org/maven2/org/scala-sbt/ivy/ivy/2.3.0-sbt-839fad1cdc07cf6fc81364d74c323867230432ad/ivy-2.3.0-sbt-839fad1cdc07cf6fc81364d74c323867230432ad.jar ...
[SUCCESSFUL ] org.scala-sbt#util-scripted_2.12;1.3.3!util-scripted_2.12.jar (39ms)
[SUCCESSFUL ] com.github.cb372#scalacache-core_2.12;0.20.0!scalacache-core_2.12.jar (47ms)
[SUCCESSFUL ] com.github.ben-manes.caffeine#caffeine;2.5.6!caffeine.jar (62ms)
[SUCCESSFUL ] org.scala-sbt.ivy#ivy;2.3.0-sbt-839fad1cdc07cf6fc81364d74c323867230432ad!ivy.jar (65ms)
:: problems summary ::
:::: WARNINGS
problem while downloading module descriptor: file:/?/.sbt/preloaded/org.scala-sbt/sbt/1.3.13/ivys/ivy.xml: Downloaded file size doesn't match expected Content Length for file:/?/.sbt/preloaded/org.scala-sbt/sbt/1.3.13/ivys/ivy.xml. Please retry. (3ms)
..... .... ......
problem while downloading module descriptor: file:/?/.sbt/preloaded/org/scala-sbt/sbt/1.3.13/sbt-1.3.13.pom: Downloaded file size doesn't match expected Content Length for file:/?/.sbt/preloaded/org/scala-sbt/sbt/1.3.13/sbt-1.3.13.pom. Please retry. (2ms)
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
:: retrieving :: org.scala-sbt#boot-scala
confs: [default]
6 artifacts copied, 0 already retrieved
[info] Updated file /u01/app/jenkins/masters/jenkins-dig-dsh-gsr-jenkins-master-5b9b94f5f7-n6rm4/workspace/kpn.dsh.test.record_feature_test/project/build.properties: set sbt.version to 1.3.13
[info] welcome to sbt 1.3.13 (Alpine Java 11.0.7)
[error] java.lang.IllegalArgumentException: URI has a query component
[error] Use 'last' for the full log.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?
My questions are:
Why is sbt downloading a bunch of packages?
Will sbt preload prevent sbt from downloading these files? if so how to perform that.
what exactly is the problem here, is it "problem with downloading module descriptor" or "URI has a query component" or something else. can someone elaborate on the error.
--Update--
I found out the problem, the problem was the user didn't have access to the sbt directory. So sbt directory didn't get expanded. Which resulted in having a ?. Hence the error URI has a query component..
But would like to know more about behaviour of sbt and sbt preload..

Related

How do I update Drupal 9 from ssh command line on OVH server?

I installed Drupal in one click on a OVH server. First bad surprise: I discovered that the installed version 9.1.9 needs a security update to 9.2.9.
Second bad surprise: drush was not installed by default. So I had to install first composer in order to install drush with the command:
curl -sS https://getcomposer.org/installer | php
After some battles, composer was working. I installed drush issuing command:
composer require --dev drush/drush
Probably, the --dev flag was not necessary.
I see that composer is able to list the available updates of drupal by running:
composer show drupal/recommended-project --all
name : drupal/recommended-project
descrip. : Project template for Drupal 9 projects with a relocated document root
keywords :
versions : 9.4.x-dev, 9.3.x-dev, 9.3.0-beta2, 9.3.0-beta1, 9.3.0-alpha1, 9.2.x-dev, 9.2.9, 9.2.8, 9.2.7, 9.2.6, 9.2.5, 9.2.4, 9.2.3, 9.2.2, 9.2.1, 9.2.0, 9.2.0-rc1, 9.2.0-beta3, 9.2.0-beta2, 9.2.0-beta1, 9.2.0-alpha1, 9.1.x-dev, 9.1.14, 9.1.13, 9.1.12, 9.1.11, 9.1.10, 9.1.9, 9.1.8, 9.1.7, 9.1.6, 9.1.5, 9.1.4, 9.1.3, 9.1.2, 9.1.1, 9.1.0, 9.1.0-rc3, 9.1.0-rc2, 9.1.0-rc1, 9.1.0-beta1, 9.1.0-alpha1, 9.0.x-dev, 9.0.14, 9.0.13, 9.0.12, 9.0.11, 9.0.10, 9.0.9, 9.0.8, 9.0.7, 9.0.6, 9.0.5, 9.0.4, 9.0.3, 9.0.2, 9.0.1, 9.0.0, 9.0.0-rc1, 9.0.0-beta3, 9.0.0-beta2, 9.0.0-beta1, 9.0.0-alpha2, 9.0.0-alpha1, 8.9.x-dev, 8.9.20, 8.9.19, 8.9.18, 8.9.17, 8.9.16, 8.9.15, 8.9.14, 8.9.13, 8.9.12, 8.9.11, 8.9.10, 8.9.9, 8.9.8, 8.9.7, 8.9.6, 8.9.5, 8.9.4, 8.9.3, 8.9.2, 8.9.1, 8.9.0, 8.9.0-rc1, 8.9.0-beta3, 8.9.0-beta2, 8.9.0-beta1, 8.8.x-dev, 8.8.12, 8.8.11, 8.8.10, 8.8.9, 8.8.8, 8.8.7, 8.8.6, 8.8.5, 8.8.4, 8.8.3, 8.8.2, 8.8.1, 8.8.0, 8.8.0-rc1, 8.8.0-beta1, 8.8.0-alpha1
type : project
license : GNU General Public License v2.0 or later (GPL-2.0-or-later) (OSI approved) https://spdx.org/licenses/GPL-2.0-or-later.html#licenseText
homepage : https://www.drupal.org/project/drupal
source : [git] https://github.com/drupal/recommended-project.git 7f83a471aca47ffaa981bc8cb8a0cf615163ae5b
dist : [zip] https://api.github.com/repos/drupal/recommended-project/zipball/7f83a471aca47ffaa981bc8cb8a0cf615163ae5b 7f83a471aca47ffaa981bc8cb8a0cf615163ae5b
names : drupal/recommended-project
support
chat : https://www.drupal.org/node/314178
docs : https://www.drupal.org/docs/user_guide/en/index.html
source : https://github.com/drupal/recommended-project/tree/9.4.x
requires
composer/installers ^1.9
drupal/core-composer-scaffold ^9.4
drupal/core-project-message ^9.4
drupal/core-recommended ^9.4
requires (dev)
drupal/core-dev ^9.4
conflicts
drupal/drupal *
My problem is that I installed drupal/drupal that is apparently conflicting with drupal/recommended-project where I see the upgrade of drupal I need.
What should be the next step to upgrade from Drupal 9.1.9 to Drupal 9.2.9? Sorry if this question is trivial, but I am overwhelmed with a huge documentation where I get lost.
UPDATE: this is the composer.json file I found in my home directory:
{
"require-dev": {
"drush/drush": "^10.6"
}
}
And UPDATE2: this is the composer.json file I found in the Drupal root directory:
{
"name": "drupal/legacy-project",
"description": "Project template for Drupal 9 projects with composer following drupal/drupal layout",
"type": "project",
"license": "GPL-2.0-or-later",
"homepage": "https://www.drupal.org/project/drupal",
"support": {
"docs": "https://www.drupal.org/docs/user_guide/en/index.html",
"chat": "https://www.drupal.org/node/314178"
},
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
}
],
"require": {
"composer/installers": "^1.9",
"drupal/core-composer-scaffold": "^9.1",
"drupal/core-project-message": "^9.1",
"drupal/core-recommended": "^9.1",
"drupal/core-vendor-hardening": "^9.1"
},
"conflict": {
"drupal/drupal": "*"
},
"minimum-stability": "stable",
"prefer-stable": true,
"config": {
"sort-packages": true
},
"extra": {
"drupal-scaffold": {
"locations": {
"web-root": "./"
}
},
"installer-paths": {
"core": [
"type:drupal-core"
],
"libraries/{$name}": [
"type:drupal-library"
],
"modules/contrib/{$name}": [
"type:drupal-module"
],
"profiles/contrib/{$name}": [
"type:drupal-profile"
],
"themes/contrib/{$name}": [
"type:drupal-theme"
],
"drush/Commands/contrib/{$name}": [
"type:drupal-drush"
],
"modules/custom/{$name}": [
"type:drupal-custom-module"
],
"profiles/custom/{$name}": [
"type:drupal-custom-profile"
],
"themes/custom/{$name}": [
"type:drupal-custom-theme"
]
},
"drupal-core-project-message": {
"include-keys": [
"homepage",
"support"
],
"post-create-project-cmd-message": [
"<bg=blue;fg=white> </>",
"<bg=blue;fg=white> Congratulations, you’ve installed the Drupal codebase </>",
"<bg=blue;fg=white> from the drupal/legacy-project template! </>",
"<bg=blue;fg=white> </>",
"",
"<bg=yellow;fg=black>Next steps</>:",
" * Install the site: https://www.drupal.org/docs/8/install",
" * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html",
" * Get support: https://www.drupal.org/support",
" * Get involved with the Drupal community:",
" https://www.drupal.org/getting-involved",
" * Remove the plugin that prints this message:",
" composer remove drupal/core-project-message"
]
}
}
}
If your project is new you can do some actions to be on the last version of drupal.
To avoid any conflicts you have to :
rm -rf /vendor
rm composer.lock (this file fix the versions of your dependencies)
then
composer update
It will install last version of every dependencies.
In case if you just want to update drupal dependencies do (without delete composer.lock and /vendor) :
composer update drupal/core-recommended --with-dependencies
I use the inital installation of composer/drush/drupal like this.
The drush part is the important.
composer
PATH=/Applications/MAMP/Library/bin:/Applications/MAMP/bin/php/php7.4.2/bin:$PATH
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
sudo mv composer.phar /usr/local/bin/composer
PATH="$(composer config -g home)/vendor/bin:$PATH"
drush
cd /drushproject/web/
composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader
composer global require consolidation/cgr
cgr drush/drush
# correct DrushLog problems (alternatively run once: drush cr)
composer require drush/drush
drupal
drupal --root=/drushproject/web/

Fresh install of Trellis by Roots on Ubuntu & VituralBox is missing composer.json under /srv/www/website.com/current

This is the error message I got when I first run 'vagrant provision' (after command 'vagrant up' blocked in 'Mounting NFS shared folders...') under the trellis directory:
TASK [wordpress-install : Install Dependencies with Composer] ******************
System info:
Ansible 2.9.11; Vagrant 2.2.9; Linux
Trellis version (per changelog): "Removes ID from Lets Encrypt bundled certificate and make filename stable"
---------------------------------------------------
Composer could not find a composer.json file in /srv/www/example.com/current
To initialize a project, please create a composer.json file
as described in the https://getcomposer.org/ "Getting Started"
section failed: [default] (item=example.com) =>
{
"ansible_loop_var": "item",
"changed": false,
"item": {
"key": "example.com",
"value": {
"admin_email": "admin#example.test",
"cache": {
"enabled": false
},
"local_path": "../site",
"multisite": {
"enabled": false
},
"site_hosts": [
{
"canonical": "example.test",
"redirects": [
"www.example.test"
]
}
],
"ssl": {
"enabled": false,
"provider": "self-signed"
}
}
},
"stdout": "Composer could not find a composer.json file in /srv/www/example.com/current\nTo initialize a project, please create a composer.json file as described in the https://getcomposer.org/ \"Getting Started\" section\n",
"stdout_lines": [
"Composer could not find a composer.json file in /srv/www/example.com/current",
"To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ \"Getting Started\" section"
]
}
PLAY RECAP *********************************************************************
default : ok=125 changed=83 unreachable=0 failed=1 skipped=34 rescued=0 ignored=0
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
How do I fix this? Where to find the right composer.json for Trellis, Bedrock, and Sage for local development on Linux?
Ubuntu 19.10

Can't run here-maps sdk Flutter example

I spend a whole weekend trying to run an example of here sdk with Flutter. Tried on both available versions 4.3.0.0 and 4.3.1.0.
I followed this https://developer.here.com/documentation/flutter-sdk-navigate/4.3.1.0/dev_guide/topics/quick-start.html
Tried with the newer flutter stable version (1.12.13+hotfix.9), tried with the same version of the guide (1.12.13+hotfix.5).
I'm just trying to reach anyone from Here to know if this works for Flutter at all. I know it's beta but i kinda cant go to anywhere at all.
When i try to run the example the app just doesn't run.
I tried a lot on this other post Error trying to run here example on Flutter
Edit:
The app just don't start. I know it's a here problem because if i remove the here dependencies from the code the app starts normaly
[ +17 ms] executing: [/home/rodrigo/Downloads/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +22 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] 0b8abb4724aa590dd0f429683339b1e045a1594d
[ ] executing: [/home/rodrigo/Downloads/flutter/] git describe --match v*.*.* --first-parent --long --tags
[ +4 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ ] v1.12.13+hotfix.8-0-g0b8abb472
[ +5 ms] executing: [/home/rodrigo/Downloads/flutter/] git rev-parse --abbrev-ref --symbolic #{u}
[ +4 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic #{u}
[ ] origin/stable
[ ] executing: [/home/rodrigo/Downloads/flutter/] git ls-remote --get-url origin
[ +4 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +39 ms] executing: [/home/rodrigo/Downloads/flutter/] git rev-parse --abbrev-ref HEAD
[ +5 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] stable
[ +89 ms] executing: /home/rodrigo/Android/Sdk/platform-tools/adb devices -l
[ +9 ms] Exit code 0 from: /home/rodrigo/Android/Sdk/platform-tools/adb devices -l
[ ] List of devices attached
emulator-5554 device product:sdk_gphone_x86_arm model:AOSP_on_IA_Emulator device:generic_x86_arm transport_id:1
[ +20 ms] /home/rodrigo/Android/Sdk/platform-tools/adb -s emulator-5554 shell getprop
[ +29 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ +2 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +36 ms] Found plugin here_sdk at /home/rodrigo/Documentos/plugins/here_sdk/
[ +212 ms] Found plugin here_sdk at /home/rodrigo/Documentos/plugins/here_sdk/
[ +55 ms] Generating /home/rodrigo/Documentos/projects/flutter_here/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[ +33 ms] ro.hardware = ranchu
[ +26 ms] Using hardware rendering with device AOSP on IA Emulator. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
[ +14 ms] Launching lib/main.dart on AOSP on IA Emulator in debug mode...
[ +5 ms] executing: /home/rodrigo/Android/Sdk/build-tools/29.0.3/aapt dump xmltree /home/rodrigo/Documentos/projects/flutter_here/build/app/outputs/apk/app.apk AndroidManifest.xml
[ +6 ms] Exit code 0 from: /home/rodrigo/Android/Sdk/build-tools/29.0.3/aapt dump xmltree /home/rodrigo/Documentos/projects/flutter_here/build/app/outputs/apk/app.apk AndroidManifest.xml
[ ] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
A: package="com.example.flutter_here" (Raw: "com.example.flutter_here")
A: platformBuildVersionCode=(type 0x10)0x1c
A: platformBuildVersionName=(type 0x10)0x9
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x15
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1d
E: uses-permission (line=14)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
E: uses-feature (line=16)
A: android:glEsVersion(0x01010281)=(type 0x11)0x20000
E: uses-permission (line=18)
A: android:name(0x01010003)="android.permission.ACCESS_NETWORK_STATE" (Raw: "android.permission.ACCESS_NETWORK_STATE")
E: uses-permission (line=19)
A: android:name(0x01010003)="android.permission.READ_EXTERNAL_STORAGE" (Raw: "android.permission.READ_EXTERNAL_STORAGE")
E: uses-permission (line=20)
A: android:name(0x01010003)="android.permission.WRITE_EXTERNAL_STORAGE" (Raw: "android.permission.WRITE_EXTERNAL_STORAGE")
E: application (line=22)
A: android:label(0x01010001)="flutter_here" (Raw: "flutter_here")
A: android:icon(0x01010002)=#0x7f080000
A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
E: meta-data (line=28)
A: android:name(0x01010003)="com.here.sdk.access_key_id" (Raw: "com.here.sdk.access_key_id")
A: android:value(0x01010024)="gi43CjcxO0sNH_4FbU-fgQ" (Raw: "gi43CjcxO0sNH_4FbU-fgQ")
E: meta-data (line=31)
A: android:name(0x01010003)="com.here.sdk.access_key_secret" (Raw: "com.here.sdk.access_key_secret")
A: android:value(0x01010024)="goEsOTCw2Y0k6Qt1bVdK_UHt5x4AWkpXfqPIBXUSJZp88GPG6FipsoWFa7zQu9kZBdGsfxeUUxk-DOIAU5-tyQ" (Raw: "goEsOTCw2Y0k6Qt1bVdK_UHt5x4AWkpXfqPIBXUSJZp88GPG6FipsoWFa7zQu9kZBdGsfxeUUxk-DOIAU5-tyQ")
E: activity (line=35)
A: android:theme(0x01010000)=#0x7f0a0000
A: android:name(0x01010003)="com.example.flutter_here.MainActivity" (Raw: "com.example.flutter_here.MainActivity")
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
E: intent-filter (line=42)
E: action (line=43)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=45)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
E: meta-data (line=52)
A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
A: android:value(0x01010024)=(type 0x10)0x2
E: provider (line=57)
A: android:name(0x01010003)="com.here.sdk.engine.InitProvider" (Raw: "com.here.sdk.engine.InitProvider")
A: android:exported(0x01010010)=(type 0x12)0x0
A: android:authorities(0x01010018)="com.example.flutter_here.com.here.sdk.engine.InitProvider" (Raw: "com.example.flutter_here.com.here.sdk.engine.InitProvider")
[ +5 ms] executing: /home/rodrigo/Android/Sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[ +15 ms] Exit code 0 from: /home/rodrigo/Android/Sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[ ] --------- beginning of main
04-30 16:00:42.725 I/GnssLocationProvider( 1951): WakeLock released by handleMessage(REPORT_SV_STATUS, 0, com.android.server.location.GnssLocationProvider$SvStatusInfo#273242d)
[ +4 ms] executing: /home/rodrigo/Android/Sdk/platform-tools/adb version
[ ] executing: /home/rodrigo/Android/Sdk/platform-tools/adb -s emulator-5554 logcat -v time -T 04-30 16:00:42.725
[ +17 ms] Android Debug Bridge version 1.0.41
Version 30.0.0-6374843
Installed as /home/rodrigo/Android/Sdk/platform-tools/adb
[ +2 ms] executing: /home/rodrigo/Android/Sdk/platform-tools/adb start-server
[ +12 ms] Building APK
[ +13 ms] Running Gradle task 'assembleDebug'...
[ +1 ms] gradle.properties already sets `android.enableR8`
[ +2 ms] Using gradle from /home/rodrigo/Documentos/projects/flutter_here/android/gradlew.
[ +8 ms] executing: /snap/android-studio/88/android-studio/jre/bin/java -version
[ +47 ms] Exit code 0 from: /snap/android-studio/88/android-studio/jre/bin/java -version
[ ] openjdk version "1.8.0_212-release"
OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
OpenJDK 64-Bit Server VM (build 25.212-b4-5784211, mixed mode)
[ +3 ms] executing: [/home/rodrigo/Documentos/projects/flutter_here/android/] /home/rodrigo/Documentos/projects/flutter_here/android/gradlew -Pverbose=true -Ptarget=/home/rodrigo/Documentos/projects/flutter_here/lib/main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root -Ptarget-platform=android-x86 assembleDebug
[ +942 ms] > Task :app:compileFlutterBuildDebug UP-TO-DATE
[ ] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[ ] > Task :app:preBuild UP-TO-DATE
[ ] > Task :app:preDebugBuild UP-TO-DATE
[ ] > Task :here_sdk:preBuild UP-TO-DATE
[ ] > Task :here_sdk:preDebugBuild UP-TO-DATE
[ +88 ms] > Task :here_sdk:packageDebugRenderscript NO-SOURCE
[ ] > Task :app:checkDebugManifest UP-TO-DATE
[ ] > Task :here_sdk:compileDebugAidl NO-SOURCE
[ ] > Task :app:compileDebugAidl NO-SOURCE
[ ] > Task :app:compileDebugRenderscript NO-SOURCE
[ ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[ ] > Task :app:cleanMergeDebugAssets
[ ] > Task :app:mergeDebugShaders UP-TO-DATE
[ ] > Task :app:compileDebugShaders UP-TO-DATE
[ ] > Task :app:generateDebugAssets UP-TO-DATE
[ ] > Task :here_sdk:mergeDebugShaders UP-TO-DATE
[ +103 ms] > Task :here_sdk:compileDebugShaders UP-TO-DATE
[ ] > Task :here_sdk:generateDebugAssets UP-TO-DATE
[ ] > Task :here_sdk:packageDebugAssets UP-TO-DATE
[ +191 ms] > Task :app:mergeDebugAssets
[ +102 ms] > Task :app:copyFlutterAssetsDebug
[ ] > Task :app:mainApkListPersistenceDebug UP-TO-DATE
[ ] > Task :app:generateDebugResValues UP-TO-DATE
[ ] > Task :app:generateDebugResources UP-TO-DATE
[ ] > Task :here_sdk:generateDebugResValues UP-TO-DATE
[ ] > Task :here_sdk:compileDebugRenderscript NO-SOURCE
[ ] > Task :here_sdk:generateDebugResources UP-TO-DATE
[ ] > Task :here_sdk:packageDebugResources UP-TO-DATE
[ ] > Task :app:mergeDebugResources UP-TO-DATE
[ ] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[ +1 ms] > Task :here_sdk:checkDebugManifest UP-TO-DATE
[ ] > Task :here_sdk:processDebugManifest UP-TO-DATE
[ ] > Task :app:processDebugManifest UP-TO-DATE
[ +93 ms] > Task :here_sdk:parseDebugLibraryResources UP-TO-DATE
[ +1 ms] > Task :here_sdk:generateDebugRFile UP-TO-DATE
[ ] > Task :app:processDebugResources UP-TO-DATE
[ ] > Task :here_sdk:generateDebugBuildConfig UP-TO-DATE
[ ] > Task :app:processDebugJavaRes NO-SOURCE
[ ] > Task :here_sdk:processDebugJavaRes NO-SOURCE
[ ] > Task :here_sdk:compileDebugKotlin UP-TO-DATE
[ ] > Task :here_sdk:javaPreCompileDebug UP-TO-DATE
[ ] > Task :here_sdk:compileDebugJavaWithJavac UP-TO-DATE
[ ] > Task :here_sdk:bundleLibCompileDebug UP-TO-DATE
[ ] > Task :app:compileDebugKotlin UP-TO-DATE
[ ] > Task :app:javaPreCompileDebug UP-TO-DATE
[ ] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[ ] > Task :app:compileDebugSources UP-TO-DATE
[ ] > Task :here_sdk:bundleLibResDebug UP-TO-DATE
[ ] > Task :app:mergeDebugJavaResource UP-TO-DATE
[ +97 ms] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[ +2 ms] > Task :here_sdk:bundleLibRuntimeDebug UP-TO-DATE
[ ] > Task :here_sdk:createFullJarDebug UP-TO-DATE
[ ] > Task :app:validateSigningDebug UP-TO-DATE
[ ] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[ ] > Task :app:mergeExtDexDebug UP-TO-DATE
[ ] > Task :app:transformClassesWithDexBuilderForDebug UP-TO-DATE
[ ] > Task :app:mergeLibDexDebug UP-TO-DATE
[ ] > Task :app:mergeProjectDexDebug UP-TO-DATE
[ ] > Task :app:signingConfigWriterDebug UP-TO-DATE
[ ] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[ ] > Task :here_sdk:mergeDebugJniLibFolders UP-TO-DATE
[ ] > Task :here_sdk:mergeDebugNativeLibs UP-TO-DATE
[ ] > Task :here_sdk:stripDebugDebugSymbols UP-TO-DATE
[ ] > Task :here_sdk:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[ ] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[ ] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[ ] Compatible side by side NDK version was not found.
[ ] > Task :app:packageDebug UP-TO-DATE
[ ] > Task :app:assembleDebug UP-TO-DATE
[ ] > Task :here_sdk:extractDebugAnnotations UP-TO-DATE
[ ] > Task :here_sdk:mergeDebugGeneratedProguardFiles UP-TO-DATE
[ ] > Task :here_sdk:mergeDebugConsumerProguardFiles UP-TO-DATE
[ ] > Task :here_sdk:prepareLintJarForPublish UP-TO-DATE
[ ] > Task :here_sdk:mergeDebugJavaResource UP-TO-DATE
[ ] > Task :here_sdk:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[ ] > Task :here_sdk:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[ ] > Task :here_sdk:bundleDebugAar UP-TO-DATE
[ ] > Task :here_sdk:compileDebugSources UP-TO-DATE
[ ] > Task :here_sdk:assembleDebug UP-TO-DATE
[ ] BUILD SUCCESSFUL in 1s
[ ] 60 actionable tasks: 3 executed, 57 up-to-date
[ +327 ms] Running Gradle task 'assembleDebug'... (completed in 2,0s)
[ +772 ms] calculateSha: LocalDirectory: '/home/rodrigo/Documentos/projects/flutter_here/build/app/outputs/apk'/app.apk
[ +74 ms] calculateSha: reading file took 73us
[ +992 ms] calculateSha: computing sha took 992us
[ +3 ms] ✓ Built build/app/outputs/apk/debug/app-debug.apk.
[ +2 ms] executing: /home/rodrigo/Android/Sdk/build-tools/29.0.3/aapt dump xmltree /home/rodrigo/Documentos/projects/flutter_here/build/app/outputs/apk/app.apk AndroidManifest.xml
[ +9 ms] Exit code 0 from: /home/rodrigo/Android/Sdk/build-tools/29.0.3/aapt dump xmltree /home/rodrigo/Documentos/projects/flutter_here/build/app/outputs/apk/app.apk AndroidManifest.xml
[ ] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
A: package="com.example.flutter_here" (Raw: "com.example.flutter_here")
A: platformBuildVersionCode=(type 0x10)0x1c
A: platformBuildVersionName=(type 0x10)0x9
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x15
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1d
E: uses-permission (line=14)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
E: uses-feature (line=16)
A: android:glEsVersion(0x01010281)=(type 0x11)0x20000
E: uses-permission (line=18)
A: android:name(0x01010003)="android.permission.ACCESS_NETWORK_STATE" (Raw: "android.permission.ACCESS_NETWORK_STATE")
E: uses-permission (line=19)
A: android:name(0x01010003)="android.permission.READ_EXTERNAL_STORAGE" (Raw: "android.permission.READ_EXTERNAL_STORAGE")
E: uses-permission (line=20)
A: android:name(0x01010003)="android.permission.WRITE_EXTERNAL_STORAGE" (Raw: "android.permission.WRITE_EXTERNAL_STORAGE")
E: application (line=22)
A: android:label(0x01010001)="flutter_here" (Raw: "flutter_here")
A: android:icon(0x01010002)=#0x7f080000
A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
E: meta-data (line=28)
A: android:name(0x01010003)="com.here.sdk.access_key_id" (Raw: "com.here.sdk.access_key_id")
A: android:value(0x01010024)="gi43CjcxO0sNH_4FbU-fgQ" (Raw: "gi43CjcxO0sNH_4FbU-fgQ")
E: meta-data (line=31)
A: android:name(0x01010003)="com.here.sdk.access_key_secret" (Raw: "com.here.sdk.access_key_secret")
A: android:value(0x01010024)="goEsOTCw2Y0k6Qt1bVdK_UHt5x4AWkpXfqPIBXUSJZp88GPG6FipsoWFa7zQu9kZBdGsfxeUUxk-DOIAU5-tyQ" (Raw: "goEsOTCw2Y0k6Qt1bVdK_UHt5x4AWkpXfqPIBXUSJZp88GPG6FipsoWFa7zQu9kZBdGsfxeUUxk-DOIAU5-tyQ")
E: activity (line=35)
A: android:theme(0x01010000)=#0x7f0a0000
A: android:name(0x01010003)="com.example.flutter_here.MainActivity" (Raw: "com.example.flutter_here.MainActivity")
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
E: intent-filter (line=42)
E: action (line=43)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=45)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
E: meta-data (line=52)
A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
A: android:value(0x01010024)=(type 0x10)0x2
E: provider (line=57)
A: android:name(0x01010003)="com.here.sdk.engine.InitProvider" (Raw: "com.here.sdk.engine.InitProvider")
A: android:exported(0x01010010)=(type 0x12)0x0
A: android:authorities(0x01010018)="com.example.flutter_here.com.here.sdk.engine.InitProvider" (Raw: "com.example.flutter_here.com.here.sdk.engine.InitProvider")
[ +1 ms] Stopping app 'app.apk' on AOSP on IA Emulator.
[ ] executing: /home/rodrigo/Android/Sdk/platform-tools/adb -s emulator-5554 shell am force-stop com.example.flutter_here
[ +34 ms] executing: /home/rodrigo/Android/Sdk/platform-tools/adb -s emulator-5554 shell pm list packages com.example.flutter_here
[ +28 ms] package:com.example.flutter_here
[ +3 ms] executing: /home/rodrigo/Android/Sdk/platform-tools/adb -s emulator-5554 shell cat /data/local/tmp/sky.com.example.flutter_here.sha1
[ +17 ms] 9ab23403ff0c762c433cd3a7a243744e53f20f38
[ ] Latest build already installed.
[ ] AOSP on IA Emulator startApp
[ +1 ms] executing: /home/rodrigo/Android/Sdk/platform-tools/adb -s emulator-5554 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points true com.example.flutter_here/com.example.flutter_here.MainActivity
[ +38 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.flutter_here/.MainActivity (has extras) }
[ ] Waiting for observatory port to be available...
[ +209 ms] D/FlutterActivity( 7946): Using the launch theme as normal theme.
[ +1 ms] D/FlutterActivityAndFragmentDelegate( 7946): Setting up FlutterEngine.
[ ] D/FlutterActivityAndFragmentDelegate( 7946): No preferred FlutterEngine was provided. Creating a new FlutterEngine for this FlutterFragment.
[ +121 ms] D/FlutterActivityAndFragmentDelegate( 7946): Attaching FlutterEngine to the Activity that owns this Fragment.
[ +99 ms] D/FlutterView( 7946): Attaching to a FlutterEngine: io.flutter.embedding.engine.FlutterEngine#1b88b6d
[ ] D/FlutterActivityAndFragmentDelegate( 7946): Executing Dart entrypoint: main, and sending initial route: /
[ +384 ms] Observatory URL on device: http://127.0.0.1:45099/lkoQI_f1Zyw=/
[ +2 ms] executing: /home/rodrigo/Android/Sdk/platform-tools/adb -s emulator-5554 forward tcp:0 tcp:45099
[ +14 ms] 38075
[ ] Forwarded host port 38075 to device port 45099 for Observatory
[ +11 ms] Connecting to service protocol: http://127.0.0.1:38075/lkoQI_f1Zyw=/
[ +74 ms] Fail to connect to service protocol: http://127.0.0.1:38075/lkoQI_f1Zyw=/: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:38075/lkoQI_f1Zyw=/ws
[ +3 ms] "flutter run" took 5.564ms.
Can you try switching to flutter beta channel? I had some major issues with Flutter 1.12 (stable) as well that went away when I switched to 1.17 (beta)
$ flutter channel beta
$ flutter upgrade
$ flutter clean
You can always go back to stable with:
$ flutter channel stable
$ flutter upgrade
$ flutter clean
For me the demo application from Github (https://github.com/heremaps/here-sdk-examples/tree/master/examples/latest/explore/flutter/hello_map) and another application I created myself based on the demo application were both building and running fine on iOS Device and on Android Simulator with the following settings:
Flutter (Channel beta, v1.17.0)
Android Emulator with Pixel 3 API 29 (6GB disc, 512mb SD, rest default)
Note 1: On Android Emulator I noticed some map rendering issues, which seem caused by Emulator.
Note 2: Running it on iOS Simulator requires the latest Mac OS, therefore I was not able to test this.
I recommend you try it again after upgrading to Flutter Beta with the GitHub Hello-World sample app on a real device (as issue might be caused
by our Android Emulator)
Update:
Also ensure to follow the documentation. E.g. the plugin is using Platform Views which require your application to opt-in as this Flutter feature is still beta (at least on iOS). E.g. remember to set io.flutter.embedded_views_preview = YES in your info.plist file.

CloudFormation Template not able to install R related packages

I am trying to create an EC2 instance through CloudFormation template where I am trying to install Zeppelin,Spark & R as shown here...now I want to install R related packages..so in the "Install" section,my template looks as follows:
"AWS::CloudFormation::Init" : {
"configSets" : {
"InstallAndRun" : [ "Install", "Configure" ]
},
"Install" : {
"packages" : {
"yum" : {
"git" : [],
"java-1.7.0-openjdk-devel.x86_64": [],
"R R-devel": [],
"libpng" : [],
"libpng-devel" : [],
"curl curl-devel" : [],
"libxml2 libxml2-devel" : []
}
},
But it is only able to install git & java....i saw in the logs where the error message was "Unhandled exception during build: Yum does not have libxml2 libxml2-devel available for installation" ..so what needs to be done for that ?? What are the packages required for installing R via CloudFormation ??
You are using invalid syntax. Each yum package needs to be specified separately, so change:
"R R-devel": [],
"curl curl-devel" : [],
"libxml2 libxml2-devel" : []
to something like:
"R": [],
"R-devel": [],
"curl": [],
"curl-devel": [],
"libxml2": [],
"libxml2-devel": []
This is probably because these packages are not in the base yum repo. You can find them in the EPEL yum repo. Try passing --enablerepo=epel when you install these packages.

Nginx-passenger RVM cookbook chef

Unable to setup nginx-passenger module using chef-solo.. Phusion passenger compile issue.
cookbook 'rvm', '~> 0.9.2'
cookbook 'nginx', '~> 2.7.4'
i have gone through solutions in other similar threads,, but no success yet... any help is highly appreciated..
My Configuration
{
"name": "nginx-server",
"description": "Nginx server",
"default_attributes": {
"rvm": {
"default_ruby":"ruby-2.1.2",
"gems": {
"2.1.2": [
{"name": "bundler"},
{"name": "passenger"},
{"name": "rake"}
]
}
},
"nginx": {
"version": "1.4.1",
"dir" : "/etc/nginx",
"log_dir" : "/var/log/nginx",
"binary": "/opt/nginx-1.4.1/sbin",
"user" : "www-data",
"init_style" : "init",
"source" :{
"modules" : [
"nginx::http_stub_status_module",
"nginx::http_gzip_static_module",
"nginx::passenger"
]
},
"passenger" : {
"version": "3.0.21",
"ruby" : "/usr/local/rvm/rubies/ruby-2.1.2/bin/ruby",
"root" : "/usr/local/rvm/gems/ruby-2.1.2/gems/passenger-3.0.21"
}
}
},
"json_class": "Chef::Role",
"run_list": [
"rvm::system",
"rvm::gem_package",
"nginx::source",
"monit_configs-tlq::nginx"
],
"chef_type": "role",
"override_attributes": {
}
}
Error message: Phusion Passenger support files are not yet compiled. Compiling them for you
adding module in /usr/local/rvm/gems/ruby-2.1.2/gems/passenger-3.0.21/ext/nginx
*** The Phusion Passenger support files are not yet compiled. Compiling them for you... ***
*** Running 'rake nginx RELEASE=yes' in /usr/local/rvm/gems/ruby-2.1.2/gems/passenger-3.0.21/ext/nginx... ***
STDERR: /opt/chef/embedded/bin/rake:9:in `require': no such file to load -- rubygems (LoadError)
from /opt/chef/embedded/bin/rake:9
---- End output of "bash" "/tmp/chef-script20141016-27177-1eqrpme" ----
Ran "bash" "/tmp/chef-script20141016-27177-1eqrpme" returned 1
[2014-10-16T20:45:43+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
ERROR: RuntimeError: chef-solo failed. See output above.
Any idea to solve this,, will be of great help... :)
Many Thanks
Dave
The problem is that you are trying to use the ruby binary from RVM but your path is still setup to use other scripts from the Chef omnibus install. The trace shows rake running the the omnibus folder but ruby from RVM. Fix the PATH environment variable used for the bash recipe or source the RVM shell config in the bash code before running rake. This will likely require forking the above cookbooks unless they have explicit support for each other.

Resources