question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The case of the disappearing GCP metadata-server

See original GitHub issue

I was browsing the logs as the service starts, as I want to ensure it uses GCP for backups, and I saw:

app-analytics-db-0 postgres 2020-12-20 14:16:08,259 - bootstrapping - INFO - Figuring out my environment (Google? AWS? Openstack? Local?)
app-analytics-db-0 postgres 2020-12-20 14:16:08,264 - bootstrapping - INFO - Could not connect to 169.254.169.254, assuming local Docker setup
app-analytics-db-0 postgres 2020-12-20 14:16:08,265 - bootstrapping - INFO - No meta-data available for this provider
app-analytics-db-0 postgres 2020-12-20 14:16:08,265 - bootstrapping - INFO - Looks like your running local
app-analytics-db-0 postgres 2020-12-20 14:16:08,299 - bootstrapping - INFO - Configuring bootstrap

However;

$ k exec app-analytics-db-0 -c postgres -- curl -v --silent http://169.254.169.254
* Rebuilt URL to: http://169.254.169.254/
*   Trying 169.254.169.254...
* TCP_NODELAY set
* Connected to 169.254.169.254 (169.254.169.254) port 80 (#0)
> GET / HTTP/1.1
> Host: 169.254.169.254
> User-Agent: curl/7.58.0
> Accept: */*
>
computeMetadata/
< HTTP/1.1 200 OK
< content-type: application/text
< metadata-flavor: Google
< server: envoy
< date: Sun, 20 Dec 2020 14:18:23 GMT
< content-length: 17
< x-envoy-upstream-service-time: 0
<
{ [17 bytes data]
* Connection #0 to host 169.254.169.254 left intact

The server is there and responding. Why would Spilo say otherwise?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
CyberDem0ncommented, Jan 6, 2021

wal_gs_bucket should set WAL_GS_BUCKET and from there Spilo builds the WALE_GS_PREFIX: https://github.com/zalando/spilo/blob/master/postgres-appliance/scripts/configure_spilo.py#L731-L749

In case if WALE_GS_PREFIX happened to be set as environment, Spilo will use it directly

0reactions
hafcommented, Jan 6, 2021

I’m closing because there’s no negative effect of the reported issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting OS Login | Compute Engine Documentation
This document describes how to troubleshoot OS Login using the metadata server. For information about setting up OS Login or for step-by-step instructions, ......
Read more >
Get compute metadata from app engine, got 404 page not ...
thanks. update. I can get project-id from metadata server correctly. Here is the code: const METADATA_PROJECT_ID_URL ...
Read more >
How/why would ALL our Google Cloud Platform Service ...
How/why would ALL our Google Cloud Platform Service account keys suddenly disappear/be deleted? Ask Question. Asked 3 years, 7 months ago.
Read more >
ssh keys disappear from the instance
Due to these daemons user accounts and ssh keys are synced with metadata server and the VM instance. As such, the recommended method...
Read more >
How Cymulate Discovered an Abuse Risk in GCP
My goal was to find a vulnerability in the GCP layer. ... GCP Metadata Server. Short explanation about GCP metadata: VM Metadata -...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found