Michael
Michael
RRailway
Created by greyoxide on 12/26/2023 in #✋|help
Getting memory errors when I try to interact with ActiveRecord models
Seeing the same thing here, however it's working on my machine when I access the railway shell and use rails console, however my colleague is seeing these memalloc errors and are seeing the same error ( FATAL: no PostgreSQL user name specified in startup packet) pop into the observability panel. Did anyone here manage to find a fix/workaround? We're using the same version of Railway CLI, and our system environments are a match as well.
18 replies
RRailway
Created by Michael on 1/23/2024 in #✋|help
Healthcheck failing - Ruby on Rails
Hello future traveller. If you find your Ruby on Rails application failing your health check, remember to exclude your healthcheck path from your enforced SSL paths, see the below rails docs: https://edgeapi.rubyonrails.org/classes/ActionDispatch/SSL.html Which will tell you to put something like this in your environment file (e.g. production.rb) if that link is broken:
config.ssl_options = { redirect: { exclude: -> request { /healthcheck/.match?(request.path) } } }
config.ssl_options = { redirect: { exclude: -> request { /healthcheck/.match?(request.path) } } }
19 replies
RRailway
Created by Michael on 1/23/2024 in #✋|help
Healthcheck failing - Ruby on Rails
Nice, that did the trick! I'll confirm whether it was the enforcing of SSL or my header middleware and will get back to this thread with the answer. Will get you a coffee in the meantime
19 replies
RRailway
Created by Michael on 1/23/2024 in #✋|help
Healthcheck failing - Ruby on Rails
Hmm an interesting thought. It's a pretty stock-standard rails app - so I don't have anything too fancy. I do enforce access over SSL, and have a middleware that allows clients to pass a header requesting for a response format, but it doesn't require that header. I'll try turning off force SSL and my header middleware and will retry a deploy.
19 replies
RRailway
Created by Michael on 1/23/2024 in #✋|help
Healthcheck failing - Ruby on Rails
No description
19 replies
RRailway
Created by Michael on 1/23/2024 in #✋|help
Healthcheck failing - Ruby on Rails
No description
19 replies
RRailway
Created by Michael on 1/23/2024 in #✋|help
Healthcheck failing - Ruby on Rails
No description
19 replies
RRailway
Created by Michael on 1/23/2024 in #✋|help
Healthcheck failing - Ruby on Rails
In my rails routes, the path is set as so: get "up" => "rails/health#show", :as => :rails_health_check In Railway, I'm primarily setting it to '/up'
19 replies
RRailway
Created by Michael on 1/23/2024 in #✋|help
Healthcheck failing - Ruby on Rails
I should mention that I have tried both 'up' and '/up'. Neither appears to work
19 replies