Recently I’ve been trying to scale my app to two regions, but am having trouble with writing data to the volume of the new region.
- I added a volume with matching name to the
fly scale count 2
- Saw in
flyctl logsthat my app is unable to create/read a Sqlite database on the volume upon launching.
The weird bit is it works absolutely fine in the original region I deployed to (
ams), and has done so for the last four months. My app uses the
heroku/buildpacks:20 builder, could anything have changed under my feet?
better-sqlite3 doesn’t give me much more information than
SqliteError: unable to open database file.