Coder Social home page Coder Social logo

Comments (10)

hilja avatar hilja commented on April 27, 2024 3

I struggled with region issues a lot, but managed to solve it with help from fly community. Turns out I was just overcomplicating things myself.

You don’t need to set the FLY_REGION or PRIMARY_REGION or --region=<region>, just define primary_region = "<region>" in your fly.toml and let fly set those env vars.

This could be documented better though :)

from indie-stack.

hilja avatar hilja commented on April 27, 2024 1

@MichaelDeBoey Either setting primary_region in fly.toml or using the simplified deployment strategy removed this issue.

from indie-stack.

jvazquez441 avatar jvazquez441 commented on April 27, 2024 1

I got the same issue with the regions following the README tutorial. I applied the primary_region in the fly.toml file and all worked perfectly when redeployed. Definitely this need to be added or mentioned on the indie-stack README.

from indie-stack.

MichaelDeBoey avatar MichaelDeBoey commented on April 27, 2024

@hilja Will this be fixed if you apply the same changes as I did in #225?

from indie-stack.

korzewski avatar korzewski commented on April 27, 2024

I had the same issue today. Was able to solve it by adding primary_region to fly.toml

kill_signal = "SIGINT"
kill_timeout = 5
processes = [ ]
primary_region = "waw" // <-- this line

[experimental]
allowed_public_ports = [ ]

Github actions was marked as crashed, due to:

Error: timeout reached waiting for healthchecks to pass for machine...

But when I checked it on fly.io, it actually seems to work as expected. After re-run, it's deployed properly (green)

from indie-stack.

MichaelDeBoey avatar MichaelDeBoey commented on April 27, 2024

using the simplified deployment strategy

@hilja Can you elaborate on what you mean by that?

from indie-stack.

hilja avatar hilja commented on April 27, 2024

@MichaelDeBoey Referring to this PR #225

from indie-stack.

MichaelDeBoey avatar MichaelDeBoey commented on April 27, 2024

@hilja Since we're now using that simplified deployment strategy out of the box, I'm going to close this PR

from indie-stack.

nicolasrenon avatar nicolasrenon commented on April 27, 2024

I know this issue has been closed, but AFAIK the PR mentioned above did not fix the problem.
I'm using the latest version of the stack and I ran into the exact same failure in Github Actions > Deploy.

Not sure why, it seems like it expected dfw region in my case. When running the fly volumes create command, fly asks what region we want for the volume (I picked lax). Either the fly.toml needs to include primary_region or there should be some additional documentation on the README about this.

from indie-stack.

adamklingbaum avatar adamklingbaum commented on April 27, 2024

I know this issue has been closed, but AFAIK the PR mentioned above did not fix the problem. I'm using the latest version of the stack and I ran into the exact same failure in Github Actions > Deploy.

Not sure why, it seems like it expected dfw region in my case. When running the fly volumes create command, fly asks what region we want for the volume (I picked lax). Either the fly.toml needs to include primary_region or there should be some additional documentation on the README about this.

Same issue for me.

from indie-stack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.