I found some examples using release_command so I’m trying it myself. Should I expect that my secrets will be available as environment variables to the release command? It doesn’t seem to work.
I’m attempting to use it as so:
Since I need to run this before I can launch my app, I’m not able to use fly ssh console -C in this case.
Each process gets it’s own VM. As you can see, we’re still working out the kinks between process groups and release tasks. We should have them added to docs pretty soon though.
I think we found the bug. New secrets aren’t making it to release tasks since release tasks are based on the previous config. We need to figure out how to handle it. In the mean time it’ll work if you deploy again.
I have a bit of a chicken-and-egg, because I need to run rails db:setup before I can successfully deploy the app. But I understand the behavior now, and was able to deploy a dummy image to get the environment setup first.
Now I’m running into an issue with process groups + mounts. Is there a way to enable mounts for just one process?
I’m still seeing issues with regions and my processes. Now that I added this sidekiq process, I see it coming up in Brazil for some reason instead of IAD like my volumes and rails process.
I ran this but it didn’t seem to help. It tried to come up in sjc and failed due to missing env secrets. Then it tried in mad and booted up there.
2021-10-28T00:55:18.070 app[aecbbf5a] mad [info] 2021-10-28T00:55:18.069Z pid=510 tid=2it2 WARN: Your Redis network connection is performing extremely poorly.
2021-10-28T00:55:18.070 app[aecbbf5a] mad [info] Last RTT readings were [98501, 98655, 98489, 98673, 98569], ideally these should be < 1000.
2021-10-28T00:55:18.070 app[aecbbf5a] mad [info] Ensure Redis is running in the same AZ or datacenter as Sidekiq.
I think that OTP_SECRET may not have been applied to your job at all, perhaps after a rollback or something. I think things getting rolled back are putting the thing in an inconsistent state. Give me a sec and I’ll see if I can clean it up.
Instances
ID PROCESS VERSION REGION DESIRED STATUS HEALTH CHECKS RESTARTS CREATED
dafd4583 rails 23 iad run running 2 total, 2 passing 0 17m55s ago
d2c59705 sidekiq 23 iad run running 0 17m55s ago
fly logs could use a way to filter by process group. Right now they all appear as “app”