Invalid token JSON from metadata

2,205 views
Skip to first unread message

Choon-Chern Lim

unread,
Jan 6, 2020, 12:31:55 AM1/6/20
to Forseti Security Discussion
Hello,

I'm currently doing the Google Cloud Shell Walkthrough from https://forsetisecurity.org/docs/latest/setup/install.html .

When I run "terraform apply" on Step 6, I get the following error:-

===========
module.forseti-install-simple.module.server_rules.data.template_file.main[20]: Refreshing state...
module.forseti-install-simple.module.server_rules.data.template_file.main[5]: Refreshing state...
module.forseti-install-simple.module.cloudsql.data.google_compute_network.cloudsql_private_network: Refreshing state...

Error: Error reading Network Not Found : default: Get https://www.googleapis.com/compute/v1/projects/xxxxxxxxxxx/global/networks/default?alt=json&prettyPrint=false: oauth2/google: invalid token JSON from metadata: EOF

  on .terraform/modules/forseti-install-simple/forseti-security-terraform-google-forseti-1ef45bf/modules/cloudsql/main.tf line 30, in data "google_compute_network" "cloudsql_private_network":
  30: data "google_compute_network" "cloudsql_private_network" {
===========
  
When I click on the link, I'm seeing this error:-

===========
{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "required",
    "message": "Login Required",
    "locationType": "header",
    "location": "Authorization"
   }
  ],
  "code": 401,
  "message": "Login Required"
 }
}  
===========

I did run "gcloud auth login" successfully based on Step 1.

How do I fix this error?

Thank you.

Henry Chang

unread,
Jan 23, 2020, 5:42:10 PM1/23/20
to Choon-Chern Lim, Forseti Security Discussion
Hi Choon-Chern,

Can you give a little more detail on how you are doing the deployment?
  • Did you do the deployment via the cloud shell walk-through?
  • Are you doing the deployment some other way?
  • Did you make any changes to the terraform configurations manually?
Thanks!

--
You received this message because you are subscribed to the Google Groups "Forseti Security Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss+u...@forsetisecurity.org.
To view this discussion on the web visit https://groups.google.com/a/forsetisecurity.org/d/msgid/discuss/d0992e1b-dd04-4bc8-9dc9-6fcc2b08852e%40forsetisecurity.org.

Gregg Kowalski

unread,
Feb 25, 2020, 9:21:32 AM2/25/20
to Henry Chang, Choon-Chern Lim, Forseti Security Discussion
Hello,

I think you have probably gotten past this issue by now, but just wanted to check. Do you still need assistance here? There was an issue with the setup script, which was updated and the Cloud Shell tutorial button on the Forseti Terraform repo is working now.


Gregg

Choon-Chern Lim

unread,
Feb 25, 2020, 9:38:20 AM2/25/20
to Forseti Security Discussion, hen...@forsetisecurity.org, choonc...@gmail.com
Yes, we can go ahead and close this thread. Thank you.
To unsubscribe from this group and stop receiving emails from it, send an email to dis...@forsetisecurity.org.

--
You received this message because you are subscribed to the Google Groups "Forseti Security Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dis...@forsetisecurity.org.
Reply all
Reply to author
Forward
0 new messages