Rails App loading But not Connecting to localhost 300

    => Booting Puma
    => Rails 6.1.3.1 application starting in development
    => Run `bin/rails server --help` for more startup options
    Puma starting in single mode...
    * Puma version: 5.2.2 (ruby 2.6.0-p0) ("Fettisdagsbulle")
    *  Min threads: 5
    *  Max threads: 5
    *  Environment: development
    *          PID: 4749
    * Listening on http://0.0.0.0:3000
Use Ctrl-C to stop

I am trying to load my ruby on rails pages but the app is stuck here
No errors
The page would not load when I try to access localhost:3000
or even if I bind any other port
I am not sure what could be wrong

It’s unclear from the post what could be wrong in rails. In rails, you have controller mapped to routes, in the controller/views/helpers/etc., one can just put sleep for an infinite sleep, or maybe an infinite loop, or maybe an exception is raised and getting rescued and retried - in all these cases your browser will not load the page. There could be other million possibilities as well, and it’s just very hard to assume what the problem is without looking at the source code.

Hi Joan, please open your terminal and write ping 127.0.0.1:3000 or ping localhost:3000
Maybe your problem is your firewall.

Hello SouravGoswami, thank you for your response
I was able to fix it, I am using WSL and it turns out doing a cold boot on my Windows did the trick!

Hello fego, thank you for your response
I was able to fix it, I am using WSL and it turns out doing a cold boot on my Windows did the trick!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs