by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Spencer Gibb
    @spencergibb
    i can get the whole exception
    Spencer Gibb
    @spencergibb
    Stacktrace
    
    java.lang.IllegalStateException: Unstarted application context org.springframework.boot.test.context.assertj.AssertableApplicationContext[startupFailure=org.springframework.beans.factory.BeanCreationException] failed to start
        at org.springframework.cloud.gcp.autoconfigure.firestore.GcpFirestoreEmulatorAutoConfigurationTests.lambda$testAutoConfigurationDisabled$1(GcpFirestoreEmulatorAutoConfigurationTests.java:66)
        at org.springframework.cloud.gcp.autoconfigure.firestore.GcpFirestoreEmulatorAutoConfigurationTests.testAutoConfigurationDisabled(GcpFirestoreEmulatorAutoConfigurationTests.java:65)
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'firestoreGrpcStub' defined in org.springframework.cloud.gcp.autoconfigure.firestore.GcpFirestoreAutoConfiguration$FirestoreReactiveAutoConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.google.firestore.v1.FirestoreGrpc$FirestoreStub]: Factory method 'firestoreGrpcStub' threw exception; nested exception is java.io.IOException: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
        at org.springframework.cloud.gcp.autoconfigure.firestore.GcpFirestoreEmulatorAutoConfigurationTests.testAutoConfigurationDisabled(GcpFirestoreEmulatorAutoConfigurationTests.java:65)
    Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.google.firestore.v1.FirestoreGrpc$FirestoreStub]: Factory method 'firestoreGrpcStub' threw exception; nested exception is java.io.IOException: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
        at org.springframework.cloud.gcp.autoconfigure.firestore.GcpFirestoreEmulatorAutoConfigurationTests.testAutoConfigurationDisabled(GcpFirestoreEmulatorAutoConfigurationTests.java:65)
    Caused by: java.io.IOException: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
        at org.springframework.cloud.gcp.autoconfigure.firestore.GcpFirestoreEmulatorAutoConfigurationTests.testAutoConfigurationDisabled(GcpFirestoreEmulatorAutoConfigurationTests.java:65)
    
    Standard Output
    
    2020-04-29 14:53:09.432 [main] WARN  o.s.c.g.c.DefaultCredentialsProvider - No core credentials are set. Service-specific credentials (e.g., spring.cloud.gcp.pubsub.credentials.*) should be used if your app uses services that require credentials.
    java.io.IOException: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
        at com.google.auth.oauth2.DefaultCredentialsProvider.getDefaultCredentials(DefaultCredentialsProvider.java:134)
        at com.google.auth.oauth2.GoogleCredentials.getApplicationDefault(GoogleCredentials.java:119)
        at com.google.auth.oauth2.GoogleCredentials.getApplicationDefault(GoogleCredentials.java:91)
        at com.google.api.gax.core.GoogleCredentialsProvider.getCredentials(GoogleCredentialsProvider.java:67)
        at org.springframework.cloud.gcp.core.DefaultCredentialsProvide
    Mike Eltsufin
    @meltsufin
    None of the integration tests should run on Jenkins. The fact that they're running, means that we haven't guarded them correctly. We'll look into it.
    Spencer Gibb
    @spencergibb
    thanks
    Mike Eltsufin
    @meltsufin
    Can you try now? We've merged some fixes into master.
    Spencer Gibb
    @spencergibb
    it runs on commits
    previous two failed because of timeouts, another is running now
    Mike Eltsufin
    @meltsufin
    ok
    Spencer Gibb
    @spencergibb
    15:27:08 [WARNING] The requested profile "integration" could not be activated because it does not exist.
    15:27:08 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on project spring-cloud-gcp-autoconfigure: There are test failures.
    15:27:08 [ERROR] 
    15:27:08 [ERROR] Please refer to /opt/jenkins/data/workspace/spring-cloud-gcp-master-ci/spring-cloud-gcp-autoconfigure/target/surefire-reports for the individual test results.
    15:27:08 [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
    15:27:08 [ERROR] The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
    15:27:08 [ERROR] Command was /bin/sh -c cd /opt/jenkins/data/workspace/spring-cloud-gcp-master-ci/spring-cloud-gcp-autoconfigure && /opt/jenkins/data/tools/hudson.model.JDK/jdk8/jdk8u242-b08/jre/bin/java -Xms512m -Xmx512m -jar /opt/jenkins/data/workspace/spring-cloud-gcp-master-ci/spring-cloud-gcp-autoconfigure/target/surefire/surefirebooter8584766599733985121.jar /opt/jenkins/data/workspace/spring-cloud-gcp-master-ci/spring-cloud-gcp-autoconfigure/target/surefire 2020-04-29T19-19-45_220-jvmRun1 surefire6552173577966896357tmp surefire_124939491256990973031tmp
    15:27:08 [ERROR] Error occurred in starting fork, check output in log
    15:27:08 [ERROR] Process Exit Code: 143
    15:27:08 [ERROR] Crashed tests:
    15:27:08 [ERROR] org.springframework.cloud.gcp.autoconfigure.datastore.GcpDatastoreAutoConfigurationTests
    15:27:08 [ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
    15:27:08 [ERROR] Command was /bin/sh -c cd /opt/jenkins/data/workspace/spring-cloud-gcp-master-ci/spring-cloud-gcp-autoconfigure && /opt/jenkins/data/tools/hudson.model.JDK/jdk8/jdk8u242-b08/jre/bin/java -Xms512m -Xmx512m -jar /opt/jenkins/data/workspace/spring-cloud-gcp-master-ci/spring-cloud-gcp-autoconfigure/target/surefire/surefirebooter8584766599733985121.jar /opt/jenkins/data/workspace/spring-cloud-gcp-master-ci/spring-cloud-gcp-autoconfigure/target/surefire 2020-04-29T19-19-45_220-jvmRun1 surefire6552173577966896357tmp surefire_124939491256990973031tmp
    15:27:08 [ERROR] Error occurred in starting fork, check output in log
    15:27:08 [ERROR] Process Exit Code: 143
    15:27:08 [ERROR] Crashed tests:
    15:27:08 [ERROR] org.springframework.cloud.gcp.autoconfigure.datastore.GcpDatastoreAutoConfigurationTests
    15:27:08 [ERROR]     at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:669)
    15:27:08 [ERROR]     at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:282)
    15:27:08 [ERROR]     at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:245)
    15:27:08 [ERROR]     at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1183)
    15:27:08 [ERROR]     at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1011)
    15:27:08 [ERROR]     at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:857)
    15:27:08 [ERROR]     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
    15:27:08 [ERROR]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    15:27:08 [ERROR]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
    15:27:08 [ERROR]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
    15:27:08 [ERROR]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
    15:27:08 [ERROR]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
    15:27:08 [ERROR]     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
    15:27:08 [ERROR]     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
    Elena Felder
    @elefeint
    I am going to merge a PR to trigger another build -- I am curious if the new failure will be in the same place. JVM crashing is... odd
    Spencer Gibb
    @spencergibb
    yeah
    Elena Felder
    @elefeint
    merged
    Spencer Gibb
    @spencergibb
    same error
    Elena Felder
    @elefeint
    do you know when the build last passed?
    Spencer Gibb
    @spencergibb
    Apr 15, 2020 4:31 PM
    Daniel Zou
    @dzou
    Hey Spencer, I will try to reproduce locally; i think the answer to the issue is in the log file that gets produced (the line Error occurred in starting fork, check output in log) but unfortunately the error is not outputted to console.
    Is there any special configuration for the Jenkins CI or is it roughly equivalent to try running the build on a clean container instance?
    Spencer Gibb
    @spencergibb
    nothing out of the ordinary
    Elena Felder
    @elefeint
    Could you keep an eye on the latest build? I pushed a hail Mary
    Sorry, not sure what timezone you are in; happy to pick it up tomorrow, too
    Spencer Gibb
    @spencergibb
    3 green builds!
    Elena Felder
    @elefeint
    excellent. We managed to introduce two issues in a week and a half, huh. The last issue was a wild mockito trying to instrument the process and failing on some systems but not others.
    Prakash A
    @aponmyway_twitter
    Anyboby working on Spring GCP Config / GCP Runtime Configuration
    Mike Eltsufin
    @meltsufin
    @aponmyway_twitter What's your question about it?
    Prakash A
    @aponmyway_twitter
    @meltsufin How to create variables in bulk
    Mike Eltsufin
    @meltsufin
    @aponmyway_twitter If I remember correctly, we do not have any support for creating variables. You have to do it through gcloud CLI or the API directly.
    Also, since the runtime config API is still BETA, I would instead recommend considering the Secrets Manager. It can serve a similar purpose with more security and access control.
    Artem Bilan
    @artembilan
    Thanks
    Elena Felder
    @elefeint
    let me remember how to log in to SO
    Prakash A
    @aponmyway_twitter
    @meltsufin there are gcloud command and api available for creating variable, one at a time. Looking for bulk update.
    Mike Eltsufin
    @meltsufin
    @aponmyway_twitter I'm not aware of a bulk option. I guess you have to use a loop.
    Spencer Gibb
    @spencergibb
    master builds failing
    GcpSpannerEmulatorAutoConfigurationTests.testEmulatorAutoConfigurationEnabledCustomHostPort after 20 ms
        GcpSpannerEmulatorAutoConfigurationTests.testEmulatorAutoConfigurationDisabled after 14 ms
        GcpSpannerEmulatorAutoConfigurationTests.testEmulatorAutoConfigurationEnabled after 15 ms
    can provide stack traces if wanted
    Mike Eltsufin
    @meltsufin
    we'll take a look. it must not be guarded correctly
    Spencer Gibb
    @spencergibb
    :+1:
    Mike Eltsufin
    @meltsufin
    Can you paste the causing exception please?
    Spencer Gibb
    @spencergibb
    java.lang.IllegalStateException: Unstarted application context org.springframework.boot.test.context.assertj.AssertableApplicationContext[startupFailure=org.springframework.beans.factory.UnsatisfiedDependencyException] failed to start
        at org.springframework.cloud.gcp.autoconfigure.spanner.GcpSpannerEmulatorAutoConfigurationTests.lambda$testEmulatorAutoConfigurationEnabledCustomHostPort$1(GcpSpannerEmulatorAutoConfigurationTests.java:52)
        at org.springframework.cloud.gcp.autoconfigure.spanner.GcpSpannerEmulatorAutoConfigurationTests.testEmulatorAutoConfigurationEnabledCustomHostPort(GcpSpannerEmulatorAutoConfigurationTests.java:51)
    Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'spannerKeyIdConverter' defined in org.springframework.cloud.gcp.autoconfigure.spanner.GcpSpannerAutoConfiguration$SpannerKeyRestSupportAutoConfiguration: Unsatisfied dependency expressed through method 'spannerKeyIdConverter' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cloud.gcp.autoconfigure.spanner.GcpSpannerAutoConfiguration$CoreSpannerAutoConfiguration': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.gcp.autoconfigure.spanner.GcpSpannerAutoConfiguration$CoreSpannerAutoConfiguration]: Constructor threw exception; nested exception is java.io.IOException: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
        at org.springframework.cloud.gcp.autoconfigure.spanner.GcpSpannerEmulatorAutoConfigurationTests.testEmulatorAutoConfigurationEnabledCustomHostPort(GcpSpannerEmulatorAutoConfigurationTests.java:51)
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cloud.gcp.autoconfigure.spanner.GcpSpannerAutoConfiguration$CoreSpannerAutoConfiguration': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.gcp.autoconfigure.spanner.GcpSpannerAutoConfiguration$CoreSpannerAutoConfiguration]: Constructor threw exception; nested exception is java.io.IOException: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
        at org.springframework.cloud.gcp.autoconfigure.spanner.GcpSpannerEmulatorAutoConfigurationTests.testEmulatorAutoConfigurationEnabledCustomHostPort(GcpSpannerEmulatorAutoConfigurationTests.java:51)
    Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.gcp.autoconfigure.spanner.GcpSpannerAutoConfiguration$CoreSpannerAutoConfiguration]: Constructor threw exception; nested exception is java.io.IOException: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
        at org.springframework.cloud.gcp.autoconfigure.spanner.GcpSpannerEmulatorAutoConfigurationTests.testEmulatorAutoConfigurationEnabledCustomHostPort(GcpSpannerEmulatorAutoConfigurationTests.java:51)
    Caused by: java.io.IOException: The Application Default Credentials are not available. They are available if running in Google Compute Engine. O
    Olga Maciaszek-Sharma
    @OlgaMaciaszek
    Hi all, we have a Jenkins job that builds SC GCP against jdk 14, which has been failing on:
    09:01:51 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project spring-cloud-gcp-pubsub: Compilation failure
    09:01:51 [ERROR] /opt/jenkins/data/workspace/spring-cloud-openjdk14-spring-cloud-gcp-master-ci/spring-cloud-gcp-pubsub/src/main/java/org/springframework/cloud/gcp/pubsub/support/converter/PubSubMessageConverter.java:[46,15] An unhandled exception was thrown by the Error Prone static analysis plugin.
    09:01:51 [ERROR]      Please report this at https://github.com/google/error-prone/issues/new and include the following:
    09:01:51 [ERROR]   
    09:01:51 [ERROR]      error-prone version: 2.3.2
    09:01:51 [ERROR]      BugPattern: TypeParameterUnusedInFormals
    09:01:51 [ERROR]      Stack Trace:
    09:01:51 [ERROR]      java.lang.NoSuchFieldError: bound
    09:01:51 [ERROR]       at com.google.errorprone.bugpatterns.TypeParameterUnusedInFormals.matchMethod(TypeParameterUnusedInFormals.java:73)
    09:01:51 [ERROR]       at com.google.errorprone.scanner.ErrorProneScanner.visitMethod(ErrorProneScanner.java:890)
    09:01:51 [ERROR]       at com.google.errorprone.scanner.ErrorProneScanner.visitMethod(ErrorProneScanner.java:146)
    09:01:51 [ERROR]       at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:916)
    09:01:51 [ERROR]       at jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
    09:01:51 [ERROR]       at com.google.errorprone.scanner.Scanner.scan(Scanner.java:83)
    09:01:51 [ERROR]       at com.google.errorprone.scanner.Scanner.scan(Scanner.java:43)
    09:01:51 [ERROR]       at jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:90)
    09:01:51 [ERROR]       at jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
    09:01:51 [ERROR]       at jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
    09:01:51 [ERROR]       at jdk.compiler/com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:187)
    09:01:51 [ERROR]       at com.google.errorprone.scanner.ErrorProneScanner.visitClass(ErrorProneScanner.java:588)
    09:01:51 [ERROR]       at com.google.errorprone.scanner.ErrorProneScanner.visitClass(ErrorProneScanner.java:146)
    09:01:51 [ERROR]       at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:823)
    09:01:51 [ERROR]       at jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
    09:01:51 [ERROR]       at com.google.errorprone.scanner.Scanner.scan(Scanner.java:83)
    09:01:51 [ERROR]       at com.google.errorprone.scanner.Scanner.scan(Scanner.java:43)
    09:01:51 [ERROR]       at jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
    09:01:51 [ERROR]       at jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
    09:01:51 [ERROR]       at jdk.compiler/com.sun.source.util.TreeScanner.visitCompilationUnit(TreeScanner.java:144)
    09:01:51 [ERROR]       at com.google.errorprone.scanner.ErrorProneScanner.visitCompilationUnit(ErrorProneScanner.java:603)
    09:01:51 [ERROR]       at com.google.errorprone.scanner.ErrorProneScanner.visitCompilationUnit(ErrorProneScanner.java:146)
    09:01:51 [ERROR]       at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:603)
    09:01:51 [ERROR]       at jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:56)
    09:01:51 [ERROR]       at com.google.errorprone.scanner.Scanner.scan(Scanner.java:65)
    09:01:51 [ERROR]       at com.google.errorprone.scanner.ErrorProneScannerTransformer.apply(ErrorProneScannerTransformer.java:43)
    09:01:51 [ERROR]       at com.google.errorprone.ErrorProneAnalyzer.finished(ErrorProneAnalyzer.java:151)
    09:01:51 [ERROR]       at jdk.compiler/com.sun.tools.javac.api.MultiTaskListener.finished(MultiTaskListener.java:132)
    09:01:51 [ERROR]       at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1423)
    09:01:51 [ERROR]       at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1370)
    09:01:51 [ERROR]       at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:959)
    09:01:51 [ERROR]       at jdk.compiler/com.sun.
    Elena Felder
    @elefeint
    sorry, missed this message. I think gitter forgot to send summaries
    although this does answer the question I came to gitter to answer... You are releasing Hoxton SR?
    Mike Eltsufin
    @meltsufin
    @spencergibb Are you doing the release today? We have a critical issue with our Trace integration due to some breakage when upgrading to Sleuth 2.2.3. Can we hold the release a bit?
    Elena Felder
    @elefeint
    It looks like @OlgaMaciaszek is doing the releasew
    Spencer Gibb
    @spencergibb
    It can wait, we haven't started
    @meltsufin how long do you need?
    Mike Eltsufin
    @meltsufin
    we might need a new release of zipkin-gcp
    Spencer Gibb
    @spencergibb
    I am almost positive adrian is done for the night, so we'll hold off until tomorrow
    Mike Eltsufin
    @meltsufin
    is that ok by you all?
    Spencer Gibb
    @spencergibb
    not a problem