simonw / covid-19-datasette

Deploys a Datasette instance of COVID-19 data from Johns Hopkins CSSE and the New York Times
https://covid-19.datasettes.com/
61 stars 6 forks source link

covid-19.datasettes.com serving same content as cdc-vaccination-history.datasette.io #28

Open simonw opened 2 years ago

simonw commented 2 years ago

Reported here: https://twitter.com/mullender/status/1481689689018880003

Did the covid datasette go offline? https://covid-19.datasettes.com/covid

simonw commented 2 years ago

https://covid-19.datasettes.com/-/databases.json confirms only the cdc.db database is connected:

[
  {
    "name": "cdc",
    "path": "cdc.db",
    "size": 243044352,
    "is_mutable": false,
    "is_memory": false,
    "hash": "6ef56caef05bcdd551041bf4943587202e4dfd78d10c311baa9368959227f9e2"
  }
]
simonw commented 2 years ago

Here's the problem: https://covid-19.datasettes.com/ is currently showing the data from https://github.com/simonw/cdc-vaccination-history / https://cdc-vaccination-history.datasette.io/ - I think I may be re-using a service name somewhere.

simonw commented 2 years ago

https://github.com/simonw/cdc-vaccination-history/blob/main/.github/workflows/scrape.yml uses --service cdc-vaccination-history

https://github.com/simonw/covid-19-datasette/blob/main/.github/workflows/scheduled.yml uses --service covid-19

Maybe I messed up the DNS settings or domain settings in Cloud Run?

simonw commented 2 years ago

They look correct in the "Domain mappings" panel: https://console.cloud.google.com/run/domains?project=datasette-222320

image
simonw commented 2 years ago

It's not the domain mapping: https://covid-19-j7hipcg4aq-uc.a.run.app/ is the underlying Cloud Run instance for covid-19 and it, too, is serving the the CDC data right now.

simonw commented 2 years ago

I have no idea how this could have happened. I'm re-running the workflow at https://github.com/simonw/covid-19-datasette/actions/workflows/scheduled.yml to see if that fixes this (with a fresh deploy), but I'd really like to understand the root cause of this. Could it be a weird Cloud Run bug?

simonw commented 2 years ago

Filed a bug report with Cloud Run here: https://issuetracker.google.com/issues/214373195

simonw commented 2 years ago

https://covid-19.datasettes.com/ and https://covid-19-j7hipcg4aq-uc.a.run.app/ are showing the correct things again now - running the deploy again fixed it. I'd really love to know what happened to cause this though!

mullender commented 2 years ago

Thanks for addressing this mysterious issue so quickly! This data is really helpful.