mtlynch / logpaste

A simple web service for storing text log files

Home Page:https://logpaste.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Restore fails on Google Cloud Run

mtlynch opened this issue · comments

Works fine in a local container, but fails for some reason on Google Cloud Run

+ litestream restore -v /app/data/store.db 
2021/02/22 15:11:08 /app/data/store.db(s3): starting restore: generation 68ce1ab8c28d0111, index 00000000-00000000 
2021/02/22 15:11:08 /app/data/store.db(s3): restoring snapshot 68ce1ab8c28d0111/00000000 to /app/data/store.db.tmp 
cannot restore wal: disk I/O error: invalid argument 

Cloud Run is actually the wrong solution because it kills the instance right after an HTTP call. We need it to run continuously so that the litestream service keeps replicating data.