Deploy shopify (Remix) app on fly.io server

Topic summary

A developer successfully built and deployed a Shopify Remix app on fly.io with Prisma and Postgres, but the application won’t run—it loads constantly without becoming accessible.

Key Technical Details:

  • App uses @shopify/shopify-app-remix package with Prisma/Postgres database
  • Postgres database created and attached on fly.io
  • Build completes successfully, but runtime fails

Error Pattern from Logs:

  • Machine starts but proxy cannot connect after 15 attempts
  • System waits for machine to be reachable on 0.0.0.0:8081
  • Machine exits with code 0 and restarts
  • Logs show reversed/garbled text in some entries

Suggested Troubleshooting:

  • Verify port configuration in shopify.web.toml
  • Check network configurations and firewall settings
  • Review docker-entrypoint.sh script and environment variables
  • Confirm fly.io API connectivity

Status: Multiple users report experiencing the same constant loading issue. No confirmed solution has been provided yet. The discussion remains open with users seeking help.

Summarized with AI on November 6. AI used: claude-sonnet-4-5-20250929.

I have created a Shopify application using shopify-app-remix package, which is mentioned in the official documentation of Shopify. Now I want to deploy this application on the server. I used fly.io, which is also mentioned in the Shopify documentation. For my Shopify app, I used Prisma with a Postgres database. I have also created a postgrace database on fly.io with the help of this documentation and attached it to my application. My app is successfully built and deployed on fly.io but is not running. It is constantly loading. I have mentioned the fly.io machine logs below. And also attached my fly.toml file as a screenshot. Can someone please see my issue?

2024-02-07T12:05:32.344 app[148ed727f93de8] den [info] INFO Preparing to run: `docker-entrypoint.sh node` as root

2024-02-07T12:05:32.353 app[148ed727f93de8] den [info] INFO [fly api proxy] listening at /.fly/api

2024-02-07T12:05:32.355 app[148ed727f93de8] den [info] 2024/02/07 12:05:32 listening on [fdaa:6:b09:a7b:15c:8976:9a82:2]:22 (DNS: [fdaa::3]:53)

2024-02-07T12:05:32.442 runner[148ed727f93de8] den [info] Machine started in 595ms

2024-02-07T12:05:33.354 app[148ed727f93de8] den [info] INFO Main child exited normally with code: 0

2024-02-07T12:05:33.354 app[148ed727f93de8] den [info] INFO Starting clean up.

2024-02-07T12:05:33.355 app[148ed727f93de8] den [info] WARN hallpass exited, pid: 316, status: signal: 15 (SIGTERM)

2024-02-07T12:05:33.360 app[148ed727f93de8] den [info] 2024/02/07 12:05:33 listening on [fdaa:6:b09:a7b:15c:8976:9a82:2]:22 (DNS: [fdaa::3]:53)

2024-02-07T12:05:33.445 proxy[148ed727f93de8] den [info] machine started in 1.602390375s

2024-02-07T12:05:34.355 app[148ed727f93de8] den [info] [ 2.363003] reboot: Restarting system

2024-02-07T12:05:34.520 runner[148ed727f93de8] den [info] machine exited with exit code 0, not restarting

2024-02-07T12:05:40.864 proxy[148ed727f93de8] den [info] waiting for machine to be reachable on 0.0.0.0:8081 (waited 7.418556817s so far)

2024-02-07T12:05:46.867 proxy[148ed727f93de8] den [info] waiting for machine to be reachable on 0.0.0.0:8081 (waited 13.421951594s so far)

2024-02-07T12:05:52.805 proxy[148ed727f93de8] den [info] waiting for machine to be reachable on 0.0.0.0:8081 (waited 19.36011226s so far)

2024-02-07T12:05:57.808 proxy[148ed727f93de8] den [error] failed to connect to machine: gave up after 15 attempts (in 24.362882318s)

2024-02-07T12:05:58.064 proxy[e2865373c17658] den [info] Starting machine

2024-02-07T12:05:58.259 app[e2865373c17658] den [info] [ 0.057848] PCI: Fatal: No config space access function found

2024-02-07T12:05:58.477 app[e2865373c17658] den [info] INFO Starting init (commit: bfa79be)...

2024-02-07T12:05:58.548 app[e2865373c17658] den [info] INFO Preparing to run: `docker-entrypoint.sh node` as root

2024-02-07T12:05:58.557 app[e2865373c17658] den [info] INFO [fly api proxy] listening at /.fly/api

2024-02-07T12:05:58.560 app[e2865373c17658] den [info] 2024/02/07 12:05:58 listening on [fdaa:6:b09:a7b:15c:54aa:4c7e:2]:22 (DNS: [fdaa::3]:53)

Did you also set the port in shopify.web.toml?

Also can you post your shopify.server.js?

We’ve identified some performance issues with your app on the Fly.io platform, resulting in constant loading or connectivity disruptions. To address these concerns, we recommend the following actions:

Check Network Configurations:
Ensure that network configurations and firewall settings are set up correctly for seamless communication with the Fly.io platform.

Configure the Application:
Double-check the application’s configuration settings, including the docker-entrypoint.sh script and environment variables, to ensure completeness and accuracy.

I have reviewed the machine logs mentioned in the email and found that there might be an issue with the connectivity of the Fly.io API. It appears that this connectivity problem may be impacting our app’s performance. Can you please check if the API is functioning properly?

Should you have any questions or require assistance, please let me know. We’re here to help you resolve any technical issues you may face.

Thank you for your attention to this matter.

this is happening to me as well. constantly loading. any fixes known?

Hello

I am also facing issue when deploy shopify remix app on fly.io server.
can anyone help me with that?

Thanks!!