@Than0s this is most likely not the same trouble. Your screenshot is truncated but it shows a Rails trace indicating the app crashed (the root cause is unfortunately not visible in the screenshot; it would be further down). This is why you see the proxy saying the application is not responding (sure thing, because it crashed).
Thank you for the quick response @roadmr , i dont really understand why the app is crushing though, i scaled it to the size of two gb on a shared CPU. For more infor here is my fly.toml file
when i deploy this is the response also note i used fly deploy --local-only
--> Pushing image done
image: registry.fly.io/kwasio:deployment-01H822V3TF23PVAENNVHS000ZG
image size: 339 MB
Watch your deployment at https://fly.io/apps/kwasio/monitoring
Provisioning ips for kwasio
Dedicated ipv6: 2a09:8280:1::4e:5a0a
Shared ipv4: 66.241.125.145
Add a dedicated ipv4 with: fly ips allocate-v4
Creating 1GB volume 'data' for process group 'app'. Use 'fly vol extend' to increase its size
This deployment will:
* create 1 "app" machine
No machines in group app, launching a new machine
Machine 91850eea2e0e83 [app] update finished: success
WARNING The app is not listening on the expected address and will not be reachable by fly-proxy.
You can fix this by configuring your app to listen on the following addresses:
- 0.0.0.0:3000
Found these processes inside the machine with open listening sockets:
PROCESS | ADDRESSES
-----------------*----------------------------------------
/.fly/hallpass | [fdaa:2:c72d:a7b:d6e9:a2f6:29d2:2]:22
Finished launching new machines
NOTE: The machines for [app] have services with 'auto_stop_machines = true' that will be stopped when idling
You said you can run the project locally; how are you doing this? with rails server?
Something you can try is building the docker image locally (you have a Dockerfile, so basically just docker build . and then do docker run on the built image. I’ve found this is a good reproduction of how the application will run on Fly.io, and it’s likely you’ll get the same “NameError” problem, and then you can work on fixing it locally such that the docker image runs correctly.
Sure using rails server, so with the LetterOpenerWeb
group :development do
# Use console on exceptions pages [https://github.com/rails/web-console]
gem "web-console"
# Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler]
# gem "rack-mini-profiler"
# Speed up commands on slow machines / big apps [https://github.com/rails/spring]
# gem "spring"
end
gem 'letter_opener'
Initially it was inside the development do, so i removed it out, and ran bundle install again but it was not preventing me from running the app locally.
I will try build the dockerfile test it locally and try again to see if the is still persistent
After really trying for a long time running my docker image locally i am running into issue
C:\Users\user\ror\64635>docker run 9a3f8db57a96ca0267924843cce54cb5f6062ba49fa73ed0ebf2d2b7f4725caf
Missing encryption key to decrypt file with. Ask your team for your master key and write it to /rails/config/master.key or put it in the ENV['RAILS_MASTER_KEY'].
if i refresh the whole procces i end up with same error
=> ERROR [build 7/7] RUN SECRET_KEY_BASE=DUMMY ./bin/rails assets:precompile