Skip to content

Authentication failures using Spanner with appengine:run for App Engine Standard J8 #2155

Closed

Description

@jabubake

Auth errors using both plugins in
mvn appengine:run : http://mvnrepository.com/artifact/com.google.cloud.tools/appengine-maven-plugin/1.3.1
mvn appengine:devserver : https://mvnrepository.com/artifact/com.google.appengine/appengine-maven-plugin/1.9.53

IAM Errors on creating, querying :
- com.google.cloud.spanner.SpannerException: PERMISSION_DENIED: io.grpc.StatusRuntimeException: PERMISSION_DENIED: Access denied. Missing IAM permission: spanner.databases.create.

  • com.google.cloud.spanner.SpannerException: PERMISSION_DENIED: io.grpc.StatusRuntimeException: PERMISSION_DENIED: Access denied. Missing IAM permission: spanner.sessions.create.

I've verified within the servlet that GOOGLE_APPLICATION_CREDENTIALS exists and is valid.
Same code works fine when using the Jetty Plugin mvn jetty:run

Activity

  1. jabubake commented on Jun 15, 2017

    @jabubake
    ContributorAuthor
  2. changed the title [-]Authentication failures using Spanner with `appengine:run` locally for App Engine Standard J8[/-] [+]Authentication failures using Spanner with `appengine:run` for App Engine Standard J8[/+] on Jun 15, 2017
  3. garrettjonesgoogle commented on Jul 17, 2017

    @garrettjonesgoogle
    Contributor

    @jabubake is there any chance this is related to #2209 ?

  4. added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    on Aug 7, 2017
  5. lesv commented on Sep 20, 2017

    @lesv
    Contributor

    I've done this, but I may have added the IAM permission to the app engine service account. Could you retest this and we may need to document on Doug's new page.

  6. neozwu commented on Sep 21, 2017

    @neozwu
    Contributor

    I tested some spanner sample code on GAE 8 today and with right IAM it should work now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: spannerIssues related to the Spanner API.authpriority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.running on app enginetype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions