Struggle to deploy a new Rails application (Litestream + Tigris) - Tigris

Struggle to deploy a new Rails application (Litestream + Tigris)

fly launch is failing for me.

This has worked before, I’m wondering if something is off.

Here is the application I’m trying to deploy.

Repository: somaliska_svenska_kompis_klubben – a project for contributing to its development.

In what fashion is it failing? Do you perhaps get an error? If so, would you put the error here?

Error creating Tigris object storage: input:3: createAddOn domain name is required

createAddOn domain name is one error

No machines in group app, launching a new machine
WARN failed to release lease for machine 148e32edb70d58 [app]: lease not found

-------
✖ Failed: timeout reached waiting for health checks to pass for machine 148e32edb70d58: failed to get VM 148e32edb70d58: Get "https://ap…
-------
Error: timeout reached waiting for health checks to pass for machine 148e32edb70d58: failed to get VM 148e32edb70d58: Get "https://api.machines.dev/v1/apps/somaliska-svenska-kompis-klubben/machines/148e32edb70d58": net/http: request canceled

See https://fly.io/docs/rails/getting-started/existing/#common-initial-deployment-issues for suggestions on how to resolve common deployment issues.

Fly logs

2025-04-07T20:32:00Z app … clean, 15/64512 files, 8799/258048 blocks
… Mounting /dev/vdc at /data uid:1000 gid:1000 chmod 0755
… Resized /data to 1056964608 bytes
… Preparing to run: `/rails/bin/docker-entrypoint ./bin/rake litestream:run ./bin/rails server`
… [fly api proxy] listening at /.fly/api
… Machine started in ~1.2 s
… SSH listening on [fdaa:…]:22
… litestream version=v0.3.13
… ERROR: bucket required for s3 replica
… Main child exited with code: 1
… Starting clean up.
… Unmounting /dev/vdc from /data
… WARN: could not unmount /rootfs: EINVAL
… reboot: Restarting system
… Cycle repeats several times until restart limit is hit
… machine has reached its max restart count of 10

I’m using Ruby on Rails with SQLite as the database; I have had success deploying it in the past.

Any idea what the problem can be?

This has worked out-of-the-box in the past.

What does fly secrets list show? I recently added support for automatic backups of SQLite3 databases to Tigris using Litestream. The intent was that you could opt out by either unsetting or never setting BUCKET_NAME, but that may not be working correctly.

It looks like there were two problems, one of which has already been fixed:

Cannot create new Tigris bucket

I am unable to create a new storage bucket through either the UI ( Sign in to Your Account · Fly) or CLI. UI error: There was an error creating your bucket. Please try again. CLI error: Error: input:3: createAddOn domain name is required.

You should be able to run fly storage create, then fly deploy and be up and running.

Thanks, this is client work. First time building a prototype using Ruby on Rails for that; I learned RoR through the book Agile Web Development and it’s an honour having the author of that book responding back to me. Even today, that book is still a phenomenal programming resource and the hardcover always sits on my desk.

$ fly secrets list
NAME                DIGEST              CREATED AT
RAILS_MASTER_KEY    4511f03f6d8aae33    10h15m ago

It works fine now.