-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting Errno::ETIMEDOUT #745
Comments
@mmaauu Are you using latest webpacker? |
We just released 3.0.1, consider upgrading and see if it fixes the problem. You are not running webpack-dev-server though, right? |
Thanks @gauravtiwari for your response, I've updated the gem ( $ bundle show webpacker I'm just trying to install webpacker gem to start using it with react, I'm not using webpack-dev-server. |
@mmaauu Thanks for confirming. Not sure why it's proxying to dev server then. Can you share your example on github please? |
Looks like we might need to rescue from webpacker/lib/webpacker/dev_server.rb Lines 8 to 13 in fb8dd8c
Side note: It's unfortunate if |
@javan I've made an example, same issue, please check this: |
Same issue here, had it on 3.0 and now 3.0.1 using default config. I was previously using a separate dev server process but was attempting to use the new 3.x functionality that doesn't require it. On the frontend, when I try to load |
@mmaauu Just cloned your repo and everything seems to be running fine. @javan Yeah, make sense or we increase the timeout? @swrobel Are you using windows? If you are not running dev server then the on-demand compiler should compile and rails server should serve assets for you. Just make sure your webpacker.yml has |
I am on macOS and as I said I’m using the default config so yes it has compile true |
I'm experiencing the same thing on the High Sierra beta 9. Adding This takes about 2 seconds to raise an error on High Sierra when the webpack dev server is off: In the In my app I'm adding a monkey patch to have |
Completely forgot that I'm on High Sierra beta as well. |
Does it work when |
If |
Not sure, but that would be ideal. Could look into writing a tmp file when |
I guess we just need to catch
@Bramjetten What's the size of your app? |
This could also be related to:
i.e. |
In addition to rescuing >> Socket.tcp('localhost', 3035, connect_timeout: 1).close
=> nil
>> Socket.tcp('localhost', 3035, connect_timeout: 0.1).close
=> nil
>> Socket.tcp('localhost', 3035, connect_timeout: 0.0001).close
=> nil
>> Socket.tcp('localhost', 3035, connect_timeout: 0.000001).close
Errno::ETIMEDOUT: Operation timed out - user specified timeout I suggest changing it from |
That looks like the way to go. In my tests I saw that |
Hi @gauravtiwari! I can't find the issue to make it work, I'm running on windows 7, do you have any idea? Thanks!! |
Curious why High Sierra hits a timeout ( |
Same for other port numbers. Same for everything I give curl actually. Ruby was carried over.
… Op 4 sep. 2017 om 18:43 heeft Javan Makhmali ***@***.***> het volgende geschreven:
Curious why High Sierra hits a timeout (Errno::ETIMEDOUT) vs. connection refused (Errno::ECONNREFUSED) on Sierra. Can you try higher port numbers (4XXX, 5XXX, etc) and see if that changes anything? Did you install Ruby after upgrading your OS or did it carry over from Sierra?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Any change if you reinstall |
Tested the same code on another Mac running Sierra (10.12.6) and it's working just fine so this definitely seems to be a High Sierra issue. |
@mmaauu Did you ever find a solution to this for Windows? I have the same problem on Windows 10. |
@BrianTatum, I've changed this into the webpacker/lib/webpacker/dev_server.rb, I added this line, hope this helps.
|
This was fixed in #753, but hasn't been released yet. You can use it now by pointing your Gemfile to |
@javan Looks like that did fix it in it Windows 10. Thanks!! What is your schedule for releasing versions? |
Had the same issue on High Sierra and |
I just upgraded to high sierra on mac. Stuff was running before. Now get the above mentioned error. My Environment is a bit of a cludge. Currently running rails 5.1.3. react_on_rails 9 or 10, and ruby 2.4.2. I need to do a clean reconstruction to be sure of what I have. I worry about interaction between react_on_rails gem and the changing way rails is doing this. Aside from this problem version skew issues may remain. We need some clean set up docs for react_on_rails 9 vs 10. |
|
Thanks. I made a few changes in versions (react_on_rails to 9, ruby to 2.3.4) and it comes up. |
👍 |
- Upgraded because of: rails/webpacker#745
I had the same issue in Windows (WSL-Ubuntu 16.04) and running |
Hi! I've added the webpacker gem, after bundle install with the gem, I run rails s and I'm getting this error, I can't figure out what's going on.
Thanks!
Puma caught this error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. - user specified timeout (Errno::ETIMEDOUT) c:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/socket.rb:61:in `connect_internal' c:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/socket.rb:139:in `connect' c:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/socket.rb:636:in `block in tcp' c:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/socket.rb:231:in `each' c:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/socket.rb:231:in `foreach' c:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/socket.rb:626:in `tcp' c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/webpacker-3.0.0/lib/webpacker/dev_server.rb:9:in `running?' c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/webpacker-3.0.0/lib/webpacker/dev_server_proxy.rb:7:in `rewrite_response' c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/rack-proxy-0.6.2/lib/rack/proxy.rb:57:in `call' c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.1.3/lib/rails/engine.rb:522:in `call' c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/puma-3.10.0/lib/puma/configuration.rb:225:in `call' c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/puma-3.10.0/lib/puma/server.rb:605:in `handle_request' c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/puma-3.10.0/lib/puma/server.rb:437:in `process_client' c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/puma-3.10.0/lib/puma/server.rb:301:in `block in run' c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/puma-3.10.0/lib/puma/thread_pool.rb:120:in `block in spawn_thread'
The text was updated successfully, but these errors were encountered: