guardian / typerighter

Even if you’re the right typer, couldn’t hurt to use Typerighter!
Apache License 2.0
276 stars 12 forks source link

Failed to get instance id from ec2 metadata service: Unable to contact EC2 metadata service. #157

Open quedogf94 opened 3 years ago

quedogf94 commented 3 years ago

Didn't see in the instructions where I should include the instance id of the ec2 metadata service.

(base) ITLSTS-MN-4226H:typerighter rditlsts$ ./script/start Docker Compose is now in the Docker CLI, try docker compose up

Creating network "typerighter_default" with the default driver Creating typerighter-rule-manager ... done

up to date, audited 497 packages in 2s

3 vulnerabilities (2 moderate, 1 high)

To address all issues, run: npm audit fix

Run npm audit for details.

rule-manager-client@1.0.0 build webpack --config ./conf/webpack.prod.config.js

[webpack-cli] Compilation finished asset rule-manager-app.js 185 KiB [emitted] [minimized] (name: app) 2 related assets orphan modules 38.6 KiB [orphan] 11 modules runtime modules 668 bytes 3 modules modules by path ./node_modules/ 541 KiB modules by path ./node_modules/@guardian/ 357 KiB 9 modules modules by path ./node_modules/@emotion/ 52.5 KiB 3 modules modules by path ./node_modules/react/ 6.7 KiB 2 modules modules by path ./node_modules/react-dom/ 117 KiB 2 modules modules by path ./node_modules/scheduler/ 5.12 KiB ./node_modules/scheduler/index.js 198 bytes [built] [code generated] ./node_modules/scheduler/cjs/scheduler.production.min.js 4.92 KiB [built] [code generated] ./node_modules/object-assign/index.js 2.06 KiB [built] [code generated] ./node_modules/@babel/runtime/helpers/inheritsLoose.js 223 bytes [built] [code generated] modules by path ./src/ 4.13 KiB ./src/index.tsx 1.34 KiB [built] [code generated] ./src/components/App.tsx 2.79 KiB [built] [code generated] webpack 5.11.1 compiled successfully in 6748 ms [info] Loading project definition from /Users/rditlsts/ERDC_PROJECTS/typerighter/project/project [info] Loading settings for project typerighter-build from plugins.sbt ... [info] Loading project definition from /Users/rditlsts/ERDC_PROJECTS/typerighter/project [info] Loading settings for project root from build.sbt ... [info] Set current project to typerighter (in build file:/Users/rditlsts/ERDC_PROJECTS/typerighter/) [info] Compiling 1 Scala source to /Users/rditlsts/ERDC_PROJECTS/typerighter/apps/common-lib/target/scala-2.12/classes ...

--- (Running the application, auto-reloading is enabled) ---

(Server started, use Enter to stop and go back to the console...)

[info] Compiling 1 Scala source to /Users/rditlsts/ERDC_PROJECTS/typerighter/apps/common-lib/target/scala-2.12/classes ... [info] Compiling 1 Scala source to /Users/rditlsts/ERDC_PROJECTS/typerighter/apps/checker/target/scala-2.12/classes ... [warn] c.g.AppIdentity$ - Failed to get instance id from ec2 metadata service: Unable to contact EC2 metadata service. software.amazon.awssdk.core.exception.SdkClientException: Unable to contact EC2 metadata service. at software.amazon.awssdk.core.exception.SdkClientException$BuilderImpl.build(SdkClientException.java:98) at software.amazon.awssdk.regions.internal.util.EC2MetadataUtils.getItems(EC2MetadataUtils.java:400) at software.amazon.awssdk.regions.internal.util.EC2MetadataUtils.getItems(EC2MetadataUtils.java:432) at software.amazon.awssdk.regions.internal.util.EC2MetadataUtils.getItems(EC2MetadataUtils.java:432) at software.amazon.awssdk.regions.internal.util.EC2MetadataUtils.getItems(EC2MetadataUtils.java:432) at software.amazon.awssdk.regions.internal.util.EC2MetadataUtils.getData(EC2MetadataUtils.java:378) at software.amazon.awssdk.regions.internal.util.EC2MetadataUtils.getData(EC2MetadataUtils.java:374) at software.amazon.awssdk.regions.internal.util.EC2MetadataUtils.fetchData(EC2MetadataUtils.java:472) at software.amazon.awssdk.regions.internal.util.EC2MetadataUtils.fetchData(EC2MetadataUtils.java:462) at software.amazon.awssdk.regions.internal.util.EC2MetadataUtils.getInstanceId(EC2MetadataUtils.java:140) [info] c.g.AppIdentity$ - Detected the following AppIdentity: DevIdentity(typerighter-checker) [info] c.g.c.ConfigurationLoader$ - Fetching configuration for DevIdentity(typerighter-checker) [error] c.g.AppIdentity$ - Failed to identify the regionName of the instance software.amazon.awssdk.core.exception.SdkClientException: Unable to contact EC2 metadata service. at software.amazon.awssdk.core.exception.SdkClientException$BuilderImpl.build(SdkClientException.java:98) at software.amazon.awssdk.regions.internal.util.EC2MetadataUtils.getItems(EC2MetadataUtils.java:400) at software.amazon.awssdk.regions.internal.util.EC2MetadataUtils.getItems(EC2MetadataUtils.java:432) at software.amazon.awssdk.regions.internal.util.EC2MetadataUtils.getItems(EC2MetadataUtils.java:432) at software.amazon.awssdk.regions.internal.util.EC2MetadataUtils.getItems(EC2MetadataUtils.java:432) at software.amazon.awssdk.regions.internal.util.EC2MetadataUtils.getData(EC2MetadataUtils.java:378) at software.amazon.awssdk.regions.internal.util.EC2MetadataUtils.getData(EC2MetadataUtils.java:374) at software.amazon.awssdk.regions.internal.util.EC2MetadataUtils.getEC2InstanceRegion(EC2MetadataUtils.java:287) at com.gu.AppIdentity$.$anonfun$region$2(AppIdentity.scala:107) at scala.util.Try$.apply(Try.scala:213) [info] c.g.c.SSMConfigurationLocation - Attempting to load configuration from SSM for path = /DEV/flexible/typerighter-checker and region = eu-west-1 [error] p.a.h.DefaultHttpErrorHandler -

! @7kd141nh7 - Internal server error, for (GET) [/] ->

play.api.UnexpectedException: Unexpected exception[Missing: merge of system properties,hardcoded value,application.conf @ file:/Users/rditlsts/ERDC_PROJECTS/typerighter/apps/checker/target/scala-2.12/classes/application.conf: 1,play/reference-overrides.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/play/play_2.12/2.8.0/play_2.12-2.8.0.jar!/play/reference-overrides.conf: 1,play/reference-overrides.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/play/play-akka-http-server_2.12/2.8.0/play-akka-http-server_2.12-2.8.0.jar!/play/reference-overrides.conf: 1,reference.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/play/play_2.12/2.8.0/play_2.12-2.8.0.jar!/reference.conf: 1,reference.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/play/play-ahc-ws_2.12/2.8.0/play-ahc-ws_2.12-2.8.0.jar!/reference.conf: 1,reference.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/play/play-ws-standalone_2.12/2.1.2/play-ws-standalone_2.12-2.1.2.jar!/reference.conf: 1,reference.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-serialization-jackson_2.12/2.6.1/akka-serialization-jackson_2.12-2.6.1.jar!/reference.conf: 1,reference.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/play/filters-helpers_2.12/2.8.0/filters-helpers_2.12-2.8.0.jar!/reference.conf: 1,reference.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-http-core_2.12/10.1.11/akka-http-core_2.12-10.1.11.jar!/reference.conf: 1,reference.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/play/play-server_2.12/2.8.0/play-server_2.12-2.8.0.jar!/reference.conf: 1,reference.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/play/play-ahc-ws-standalone_2.12/2.1.2/play-ahc-ws-standalone_2.12-2.1.2.jar!/reference.conf: 1,reference.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-actor-typed_2.12/2.6.1/akka-actor-typed_2.12-2.6.1.jar!/reference.conf: 1,reference.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/play/play-akka-http-server_2.12/2.8.0/play-akka-http-server_2.12-2.8.0.jar!/reference.conf: 1,reference.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-stream_2.12/2.6.1/akka-stream_2.12-2.6.1.jar!/reference.conf: 1,reference.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-actor_2.12/2.6.1/akka-actor_2.12-2.6.1.jar!/reference.conf: 1,reference.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/ssl-config-core_2.12/0.4.1/ssl-config-core_2.12-0.4.1.jar!/reference.conf: 1: No configuration setting found for key 'capi'] at play.core.server.DevServerStart$$anon$1.reload(DevServerStart.scala:210) at play.core.server.DevServerStart$$anon$1.get(DevServerStart.scala:141) at play.core.server.AkkaHttpServer.handleRequest(AkkaHttpServer.scala:296) at play.core.server.AkkaHttpServer.$anonfun$createServerBinding$1(AkkaHttpServer.scala:186) at akka.stream.impl.fusing.MapAsync$$anon$30.onPush(Ops.scala:1261) at akka.stream.impl.fusing.GraphInterpreter.processPush(GraphInterpreter.scala:541) at akka.stream.impl.fusing.GraphInterpreter.execute(GraphInterpreter.scala:423) at akka.stream.impl.fusing.GraphInterpreterShell.runBatch(ActorGraphInterpreter.scala:624) at akka.stream.impl.fusing.GraphInterpreterShell$AsyncInput.execute(ActorGraphInterpreter.scala:501) at akka.stream.impl.fusing.GraphInterpreterShell.processEvent(ActorGraphInterpreter.scala:599) Caused by: com.typesafe.config.ConfigException$Missing: merge of system properties,hardcoded value,application.conf @ file:/Users/rditlsts/ERDC_PROJECTS/typerighter/apps/checker/target/scala-2.12/classes/application.conf: 1,play/reference-overrides.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/play/play_2.12/2.8.0/play_2.12-2.8.0.jar!/play/reference-overrides.conf: 1,play/reference-overrides.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/play/play-akka-http-server_2.12/2.8.0/play-akka-http-server_2.12-2.8.0.jar!/play/reference-overrides.conf: 1,reference.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/play/play_2.12/2.8.0/play_2.12-2.8.0.jar!/reference.conf: 1,reference.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/play/play-ahc-ws_2.12/2.8.0/play-ahc-ws_2.12-2.8.0.jar!/reference.conf: 1,reference.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/play/play-ws-standalone_2.12/2.1.2/play-ws-standalone_2.12-2.1.2.jar!/reference.conf: 1,reference.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-serialization-jackson_2.12/2.6.1/akka-serialization-jackson_2.12-2.6.1.jar!/reference.conf: 1,reference.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/play/filters-helpers_2.12/2.8.0/filters-helpers_2.12-2.8.0.jar!/reference.conf: 1,reference.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-http-core_2.12/10.1.11/akka-http-core_2.12-10.1.11.jar!/reference.conf: 1,reference.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/play/play-server_2.12/2.8.0/play-server_2.12-2.8.0.jar!/reference.conf: 1,reference.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/play/play-ahc-ws-standalone_2.12/2.1.2/play-ahc-ws-standalone_2.12-2.1.2.jar!/reference.conf: 1,reference.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-actor-typed_2.12/2.6.1/akka-actor-typed_2.12-2.6.1.jar!/reference.conf: 1,reference.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/play/play-akka-http-server_2.12/2.8.0/play-akka-http-server_2.12-2.8.0.jar!/reference.conf: 1,reference.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-stream_2.12/2.6.1/akka-stream_2.12-2.6.1.jar!/reference.conf: 1,reference.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-actor_2.12/2.6.1/akka-actor_2.12-2.6.1.jar!/reference.conf: 1,reference.conf @ jar:file:/Users/rditlsts/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/ssl-config-core_2.12/0.4.1/ssl-config-core_2.12-0.4.1.jar!/reference.conf: 1: No configuration setting found for key 'capi' at com.typesafe.config.impl.SimpleConfig.findKeyOrNull(SimpleConfig.java:157) at com.typesafe.config.impl.SimpleConfig.findKey(SimpleConfig.java:150) at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:177) at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:189) at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:194) at com.typesafe.config.impl.SimpleConfig.getString(SimpleConfig.java:251) at play.api.ConfigLoader$.$anonfun$stringLoader$2(Configuration.scala:409) at play.api.ConfigLoader$.play$api$ConfigLoader$$$anonfun$apply$1(Configuration.scala:407) at play.api.ConfigLoader$$anonfun$apply$2.load(Configuration.scala:407) at play.api.Configuration.get(Configuration.scala:205)