You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Single server deploy. Postgres is installed on the main OS (ubuntu). Rails app deployed with kamal, web and worker.
App working correctly and connecting to the database server.
The app requires connecting to external services. This does not seem to work. Times out.
I thought maybe firewall issue with the hosting provider, or on the server itself. But I am able to curl successfully when I SSH into the server. Only inside the docker it blocks all outgoing connections.
Any ideas?
❯ kamal app exec -i --reuse -r web bash
rairailsroot@148:/rails# rails c
Loading production environment (Rails 7.0.7.2)
irb(main):001:0> res = HTTParty.get "https://www.google.com"
/usr/local/lib/ruby/3.2.0/net/http.rb:1271:in `initialize': Failed to open TCP connection to www.google.com:443 (execution expired) (Net::OpenTimeout)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Single server deploy. Postgres is installed on the main OS (ubuntu). Rails app deployed with kamal, web and worker.
App working correctly and connecting to the database server.
The app requires connecting to external services. This does not seem to work. Times out.
I thought maybe firewall issue with the hosting provider, or on the server itself. But I am able to
curl
successfully when I SSH into the server. Only inside the docker it blocks all outgoing connections.Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions