# \#rails

**URL:** https://community.fly.io/tag/rails/30.md

[Latest](https://community.fly.io/latest.md) · [Categories](https://community.fly.io/categories.md) · [Tags](https://community.fly.io/tags.md)

---

## [\[PC01\] instance refused connection. is your app listening on 0.0.0.0:3000?](https://community.fly.io/t/pc01-instance-refused-connection-is-your-app-listening-on-0-0-0-0-3000/27704)

<div class="topic-metadata">

**Author:** [@mohamednabil](https://community.fly.io/u/mohamednabil)\
**Replies:** 7\
**Last updated:** [April 25, 2026, 7:30pm UTC](https://community.fly.io/t/pc01-instance-refused-connection-is-your-app-listening-on-0-0-0-0-3000/27704 "2026-04-25T19:30:41Z")

</div>

I have this error always appear in logs but doesn’t affect the running of server. but I am not sure why this one appear. this part of my logs 00:14:12=\> Booting Puma 00:14:12=\> Rails 8.0.4 application starting in prod…

---

## [Silent TCP connection drops to managed Postgres cause indefinite hangs](https://community.fly.io/t/silent-tcp-connection-drops-to-managed-postgres-cause-indefinite-hangs/27429)

<div class="topic-metadata">

**Author:** [@ghiculescu](https://community.fly.io/u/ghiculescu)\
**Replies:** 2\
**Last updated:** [March 26, 2026, 5:08am UTC](https://community.fly.io/t/silent-tcp-connection-drops-to-managed-postgres-cause-indefinite-hangs/27429 "2026-03-26T05:08:36Z")

</div>

We’re running a Rails app with SolidQueue (PostgreSQL-backed job queue) on Fly.io in the Sydney region. Our worker process maintains a persistent connection to managed Postgres (direct endpoint, not PgBouncer) and polls …

---

## [Can't connect to Rails console through Fly.io](https://community.fly.io/t/cant-connect-to-rails-console-through-fly-io/27305)

<div class="topic-metadata">

**Author:** [@glyonbossay](https://community.fly.io/u/glyonbossay)\
**Replies:** 10\
**Last updated:** [March 7, 2026, 8:46pm UTC](https://community.fly.io/t/cant-connect-to-rails-console-through-fly-io/27305 "2026-03-07T20:46:16Z")

</div>

bin/rails fly:console fly ssh console --pty -C “/rails/bin/rails console” --app lokal-production Error: ssh: can’t build tunnel for lokal: websocket: failed to WebSocket dial: failed to send handshake request: Get “htt…

---

## [Persistent connection errors to rubygems.org during bundle install with Depot](https://community.fly.io/t/persistent-connection-errors-to-rubygems-org-during-bundle-install-with-depot/27162)

<div class="topic-metadata">

**Author:** [@blueberry](https://community.fly.io/u/blueberry)\
**Replies:** 2\
**Last updated:** [February 27, 2026, 6:23am UTC](https://community.fly.io/t/persistent-connection-errors-to-rubygems-org-during-bundle-install-with-depot/27162 "2026-02-27T06:23:10Z")

</div>

Issue Summary I’m experiencing persistent connection failures to rubygems.org when deploying a Rails app using Depot builder. The build fails during bundle install with connection reset errors. Environment App region: …

---

## [Running \`fly console\` does not connect for a few days now](https://community.fly.io/t/running-fly-console-does-not-connect-for-a-few-days-now/27123)

<div class="topic-metadata">

**Author:** [@wcsw](https://community.fly.io/u/wcsw)\
**Replies:** 1\
**Last updated:** [February 12, 2026, 7:16pm UTC](https://community.fly.io/t/running-fly-console-does-not-connect-for-a-few-days-now/27123 "2026-02-12T19:16:11Z")

</div>

I used to just run e. g. \`fly console –vm-memory 768\` and it spun up a machine and connected to it. Since a few days, it spins up a machine and apparently connects, but I don’t get a console at all. \`\`\` $ fly console -…

---

## [release command failing due to database name being nil](https://community.fly.io/t/release-command-failing-due-to-database-name-being-nil/26792)

<div class="topic-metadata">

**Author:** [@jamesoneill997](https://community.fly.io/u/jamesoneill997)\
**Replies:** 2\
**Last updated:** [January 11, 2026, 11:29pm UTC](https://community.fly.io/t/release-command-failing-due-to-database-name-being-nil/26792 "2026-01-11T23:29:58Z")

</div>

I have an app that’s attached to a postgres cluster as a primary database. This connection works fine and I’ve had no issues with that. However, I’ve recently tried to add a 2nd instance that I wish to serve database-bac…

---

## [Recommended concurrency limits for a Rails app using websockets](https://community.fly.io/t/recommended-concurrency-limits-for-a-rails-app-using-websockets/26738)

<div class="topic-metadata">

**Author:** [@vitobotta](https://community.fly.io/u/vitobotta)\
**Replies:** 2\
**Last updated:** [January 4, 2026, 6:34pm UTC](https://community.fly.io/t/recommended-concurrency-limits-for-a-rails-app-using-websockets/26738 "2026-01-04T18:34:53Z")

</div>

Hi all. My Rails uses ActionCable for websockets and each Fly machine has 3 Puma workers with 5 threads each. Websockets are used a lot and and realtime features are among the most important features of the app. Each W…

---

## [The machines are suspended](https://community.fly.io/t/the-machines-are-suspended/26649)

<div class="topic-metadata">

**Author:** [@toersg](https://community.fly.io/u/toersg)\
**Replies:** 0\
**Last updated:** [December 17, 2025, 2:15am UTC](https://community.fly.io/t/the-machines-are-suspended/26649 "2025-12-17T02:15:39Z")

</div>

servers are down. similar events on gcp

---

## [Starting today I found a lot of PU02 errors in the logs](https://community.fly.io/t/starting-today-i-found-a-lot-of-pu02-errors-in-the-logs/26535)

<div class="topic-metadata">

**Author:** [@alejandro963](https://community.fly.io/u/alejandro963)\
**Replies:** 2\
**Last updated:** [December 2, 2025, 11:54am UTC](https://community.fly.io/t/starting-today-i-found-a-lot-of-pu02-errors-in-the-logs/26535 "2025-12-02T11:54:50Z")

</div>

2025-11-28T19:12:20Z app\[e784e771b29ed8\] dfw \[info\]I, \[2025-11-28T19:12:20.009498 #654\] INFO – : \[60ad5cd9-ae71-4ce6-8a29-e3fe8bf67ac8\] Completed 200 OK in 25ms (Views: 9.6ms | ActiveRecord: 6.5ms (6 queries, 0 cached) …

---

## [Machines API deployment failing — kernel panic in NRT and SIN regions](https://community.fly.io/t/machines-api-deployment-failing-kernel-panic-in-nrt-and-sin-regions/26355)

<div class="topic-metadata">

**Author:** [@jedi](https://community.fly.io/u/jedi)\
**Replies:** 5\
**Last updated:** [October 31, 2025, 11:16am UTC](https://community.fly.io/t/machines-api-deployment-failing-kernel-panic-in-nrt-and-sin-regions/26355 "2025-10-31T11:16:49Z")

</div>

Hi Fly.io team, I’m deploying machines using the Fly Machines API, and I’m currently experiencing repeated failures when launching machines in the Tokyo (nrt) and Singapore (sin) regions. Here’s what I’m seeing: Dur…

---

## [Rails deploy fails with EOF errors](https://community.fly.io/t/rails-deploy-fails-with-eof-errors/26188)

<div class="topic-metadata">

**Author:** [@CitizenAbacus](https://community.fly.io/u/CitizenAbacus)\
**Replies:** 6\
**Last updated:** [October 16, 2025, 5:33pm UTC](https://community.fly.io/t/rails-deploy-fails-with-eof-errors/26188 "2025-10-16T17:33:31Z")

</div>

Hi, all, thanks in advance for any help. I’m trying my hand at Ruby-on-Rails for the first time. I have an app that is working in my local Docker. Based on the Rails ‘getting-started’ guide I did fly launch and kept the…

---

## [Intermittent timeouts connecting to Salesforce from DFW region](https://community.fly.io/t/intermittent-timeouts-connecting-to-salesforce-from-dfw-region/26042)

<div class="topic-metadata">

**Author:** [@mintotsai](https://community.fly.io/u/mintotsai)\
**Replies:** 2\
**Last updated:** [September 26, 2025, 10:42pm UTC](https://community.fly.io/t/intermittent-timeouts-connecting-to-salesforce-from-dfw-region/26042 "2025-09-26T22:42:12Z")

</div>

Hi Fly team, My Rails app is intermittently failing to connect to Salesforce (login.salesforce.com) from Fly. The errors are: Faraday::ConnectionFailed (Failed to open TCP connection to login.salesforce.com:443 (execut…

---

## [Separate specs for cron and app server, but deploy not working](https://community.fly.io/t/separate-specs-for-cron-and-app-server-but-deploy-not-working/25894)

<div class="topic-metadata">

**Author:** [@eve](https://community.fly.io/u/eve)\
**Replies:** 2\
**Last updated:** [September 23, 2025, 8:38pm UTC](https://community.fly.io/t/separate-specs-for-cron-and-app-server-but-deploy-not-working/25894 "2025-09-23T20:38:37Z")

</div>

Hi, I want to separate the specs for my cron jobs and my app server. I tried configuring this in fly.toml, but the deployment doesn’t seem to work properly. When I check the Deployments section in the dashboard, it loo…

---

## [does rails' multi db works with HA and global replication?](https://community.fly.io/t/does-rails-multi-db-works-with-ha-and-global-replication/25877)

<div class="topic-metadata">

**Author:** [@luizkowalski](https://community.fly.io/u/luizkowalski)\
**Replies:** 0\
**Last updated:** [September 9, 2025, 9:01pm UTC](https://community.fly.io/t/does-rails-multi-db-works-with-ha-and-global-replication/25877 "2025-09-09T21:01:04Z")

</div>

I haven’t tried this yet because I don’t want to break production, but I wonder if anyone has done this: HA will give you one primary and n replicas: ID STATE ROLE REGION CHECKS IMAGE …

---

## [Failed to open TCP connection](https://community.fly.io/t/failed-to-open-tcp-connection/25685)

<div class="topic-metadata">

**Author:** [@sky-biib](https://community.fly.io/u/sky-biib)\
**Replies:** 7\
**Last updated:** [August 22, 2025, 7:42am UTC](https://community.fly.io/t/failed-to-open-tcp-connection/25685 "2025-08-22T07:42:45Z")

</div>

Hi all, I have a rails application and I’m encountering this error quite frequently these couple of days. I’ve already increased the number of instances and changed to use performance type instance but I still can’t figu…

---

## [Fly Deploy Error](https://community.fly.io/t/fly-deploy-error/25582)

<div class="topic-metadata">

**Author:** [@dev-g](https://community.fly.io/u/dev-g)\
**Replies:** 3\
**Last updated:** [August 8, 2025, 1:30am UTC](https://community.fly.io/t/fly-deploy-error/25582 "2025-08-08T01:30:31Z")

</div>

Hello everyone, Can someone help me resolve this issue: Error: failed to fetch an image or build from source: error building: failed to solve: process "/bin/sh -c bundle install && bundle exec bootsnap precompile -…

---

## [Application deploys successfully but seeing this in deploy messages: WARNING The app is not listening on the expected address](https://community.fly.io/t/application-deploys-successfully-but-seeing-this-in-deploy-messages-warning-the-app-is-not-listening-on-the-expected-address/25359)

<div class="topic-metadata">

**Author:** [@Yardboy](https://community.fly.io/u/Yardboy)\
**Replies:** 8\
**Last updated:** [July 15, 2025, 3:49pm UTC](https://community.fly.io/t/application-deploys-successfully-but-seeing-this-in-deploy-messages-warning-the-app-is-not-listening-on-the-expected-address/25359 "2025-07-15T15:49:36Z")

</div>

My application deploys successfully. Tonight I am trying to add service and machine checks to my config files but having no luck - they always fail. I noticed the error below in the deploy responses, which I guess explai…

---

## [How do I run rake tasks?](https://community.fly.io/t/how-do-i-run-rake-tasks/25273)

<div class="topic-metadata">

**Author:** [@DaveMcMartin](https://community.fly.io/u/DaveMcMartin)\
**Replies:** 2\
**Last updated:** [July 3, 2025, 12:03pm UTC](https://community.fly.io/t/how-do-i-run-rake-tasks/25273 "2025-07-03T12:03:52Z")

</div>

I trying to migrate my files from Tigris to Cloudflare R2 but whenever I run my migration task it fails… Below is my task # frozen\_string\_literal: true namespace :active\_storage do desc "Migrate blobs from Tigris to…

---

## [Postgres Database Host Name not found by Rails application](https://community.fly.io/t/postgres-database-host-name-not-found-by-rails-application/25105)

<div class="topic-metadata">

**Author:** [@gideonbrimleaf](https://community.fly.io/u/gideonbrimleaf)\
**Replies:** 11\
**Last updated:** [June 14, 2025, 2:17pm UTC](https://community.fly.io/t/postgres-database-host-name-not-found-by-rails-application/25105 "2025-06-14T14:17:27Z")

</div>

Hello, I am encountering the following error without changes to my rails application in the logs: ActiveRecord::DatabaseConnectionError (There is an issue connecting with your hostname: top2.nearest.of.\<my-app-db\>.inte…

---

## [Connectivity issues from LHR?](https://community.fly.io/t/connectivity-issues-from-lhr/25099)

<div class="topic-metadata">

**Author:** [@luctus](https://community.fly.io/u/luctus)\
**Replies:** 2\
**Last updated:** [June 12, 2025, 11:25am UTC](https://community.fly.io/t/connectivity-issues-from-lhr/25099 "2025-06-12T11:25:48Z")

</div>

Hey there! My app is hosted in LHR. It has the basic “Sign in with Google” and it also consumes the Google Analytics API. It has been working perfectly fine for more than 1 year but today all the connections to Google …

---

## [First deploy failed because of git submodule, now stuck](https://community.fly.io/t/first-deploy-failed-because-of-git-submodule-now-stuck/24934)

<div class="topic-metadata">

**Author:** [@nathanpalmer](https://community.fly.io/u/nathanpalmer)\
**Replies:** 9\
**Last updated:** [May 28, 2025, 2:08pm UTC](https://community.fly.io/t/first-deploy-failed-because-of-git-submodule-now-stuck/24934 "2025-05-28T14:08:19Z")

</div>

Hello, We’re investigating some other platforms right now and I’ve used Fly.io on another project and wanted to see how well it works with this one. However, the first build failed because I think it didn’t checkout the…

---

## [Concurrency hard limit not respected?](https://community.fly.io/t/concurrency-hard-limit-not-respected/24969)

<div class="topic-metadata">

**Author:** [@zakthompson](https://community.fly.io/u/zakthompson)\
**Replies:** 3\
**Last updated:** [May 27, 2025, 6:10am UTC](https://community.fly.io/t/concurrency-hard-limit-not-respected/24969 "2025-05-27T06:10:51Z")

</div>

Hi there, everyone! We’re experiencing some weird behaviour around load-balancing/concurrency that I’m hoping somebody has some insight about. We were noticing that occasionally our Rails app was throttled due to going…

---

## [deploy times out](https://community.fly.io/t/deploy-times-out/24751)

<div class="topic-metadata">

**Author:** [@alexwebgr](https://community.fly.io/u/alexwebgr)\
**Replies:** 4\
**Last updated:** [May 4, 2025, 6:26am UTC](https://community.fly.io/t/deploy-times-out/24751 "2025-05-04T06:26:21Z")

</div>

when deploy from my local machine Running order-notes release\_command: ./bin/rails db:prepare Starting machine ------- ✔ release\_command 286ee37be40398 completed successfully ------- ------- Updating existing machines…

---

## [Fly deploy via Github Actions fails - Rails 8 - Sqlite](https://community.fly.io/t/fly-deploy-via-github-actions-fails-rails-8-sqlite/24731)

<div class="topic-metadata">

**Author:** [@danwetherald](https://community.fly.io/u/danwetherald)\
**Replies:** 3\
**Last updated:** [May 1, 2025, 8:41pm UTC](https://community.fly.io/t/fly-deploy-via-github-actions-fails-rails-8-sqlite/24731 "2025-05-01T20:41:23Z")

</div>

When deploying on GH Actions we get this error. Everything from local fly deploy works just fine. Error: failed to fetch an image or build from source: error building: failed to solve: process "/bin/sh -c groupadd --sys…

---

## [Advice about SPA apps](https://community.fly.io/t/advice-about-spa-apps/24689)

<div class="topic-metadata">

**Author:** [@unsurpassable-indepe](https://community.fly.io/u/unsurpassable-indepe)\
**Replies:** 3\
**Last updated:** [April 28, 2025, 3:49am UTC](https://community.fly.io/t/advice-about-spa-apps/24689 "2025-04-28T03:49:24Z")

</div>

This has been my first time attempting to deploy an app on fly.io (well, I have been attempting to do this for over a week and, to be honest, I haven’t deployed a personal app in maybe 10 years so I’m sure things have ch…

---

## [Newbie question: how do I access my website?](https://community.fly.io/t/newbie-question-how-do-i-access-my-website/24697)

<div class="topic-metadata">

**Author:** [@AMax1](https://community.fly.io/u/AMax1)\
**Replies:** 7\
**Last updated:** [April 27, 2025, 8:35pm UTC](https://community.fly.io/t/newbie-question-how-do-i-access-my-website/24697 "2025-04-27T20:35:12Z")

</div>

Hello, I just launched and deployed my Rails app. Neither .fly.dev nor the shared IPv4 are getting me to my site. Also on deploy, it said: The app is not listening on the expected address and will not be reachable by f…

---

## [CD - Can't get the Github Branch Preview Workflow to work](https://community.fly.io/t/cd-cant-get-the-github-branch-preview-workflow-to-work/24618)

<div class="topic-metadata">

**Author:** [@Guled](https://community.fly.io/u/Guled)\
**Replies:** 1\
**Last updated:** [April 23, 2025, 9:12am UTC](https://community.fly.io/t/cd-cant-get-the-github-branch-preview-workflow-to-work/24618 "2025-04-23T09:12:46Z")

</div>

I have been following the guide here Git Branch Preview Environments on Github · Fly Docs For a basic Ruby on Rails application running SQLite3 & Tigris and I cannot really get it to work? Anyone else had success with …

---

## [502 on first request awakening a stopped Rails app](https://community.fly.io/t/502-on-first-request-awakening-a-stopped-rails-app/24641)

<div class="topic-metadata">

**Author:** [@quanrong](https://community.fly.io/u/quanrong)\
**Replies:** 4\
**Last updated:** [April 21, 2025, 10:23am UTC](https://community.fly.io/t/502-on-first-request-awakening-a-stopped-rails-app/24641 "2025-04-21T10:23:28Z")

</div>

I have a simple Rails app with scale to zero on a single machine. When the machine is started by a request, the first request always fails with a 502, seemingly because the app doesn’t start fast enough (but it’s a simpl…

---

## [First deploy - Docker fails on npm run build saying wrong Esbuild](https://community.fly.io/t/first-deploy-docker-fails-on-npm-run-build-saying-wrong-esbuild/24559)

<div class="topic-metadata">

**Author:** [@unsurpassable-indepe](https://community.fly.io/u/unsurpassable-indepe)\
**Replies:** 8\
**Last updated:** [April 11, 2025, 10:06pm UTC](https://community.fly.io/t/first-deploy-docker-fails-on-npm-run-build-saying-wrong-esbuild/24559 "2025-04-11T22:06:22Z")

</div>

Towards the end of the image building process, it fails on npm run build with this long Esbuild error (I only copied part of it). ERROR \[web client 6/6\] RUN npm run build CANCELED \[build 4/5\] COPY . . \[client 6/6\] RUN n…

---

## [Struggle to deploy a new Rails application (Litestream + Tigris)](https://community.fly.io/t/struggle-to-deploy-a-new-rails-application-litestream-tigris/24492)

<div class="topic-metadata">

**Author:** [@Guled](https://community.fly.io/u/Guled)\
**Replies:** 9\
**Last updated:** [April 8, 2025, 8:45am UTC](https://community.fly.io/t/struggle-to-deploy-a-new-rails-application-litestream-tigris/24492 "2025-04-08T08:45:38Z")

</div>

fly launch is failing for me This has worked before, I’m wondering if something off Here is the application I’m trying to deploy

[Next page](https://community.fly.io/tag/rails/30.md?match_all_tags=true&page=1&tags%5B%5D=rails)
