-
Notifications
You must be signed in to change notification settings - Fork 827
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
Rails server spams log due to getsockopt(2) TCP_INFO ENOPROTOPT #1982
Comments
It looks like the TCP_INFO option on the linux getsockopt(2) is not supported at this point. Please see: TCP Options TCP_INFO (since Linux 2.4) |
@ArsalanDotMe - Thanks for reporting the issue and the detailed information. Very helpful. Yes, we don't need the whole trace. You have already provided the relevant pieces. I can confirm that WSL currently does not implement the TCP_INFO socket option. I have opened a task at our end to track this. Thanks again for trying WSL and providing feedback. |
Just wanted to add that I got a similar log from PHP-FPM 5.6. ~ one line per second is written in |
+1 |
1 similar comment
+1 |
Can someone share clear (and if possible targeted) repro steps for this? I am looking into it right now and need that for validation. |
I'm happy to provide more detailed reproduction steps, but looking at the first message in the thread, what do you think is missing in detail to reproduce the error? I tried to provide exact version numbers and steps for all software involved. |
@ArsalanDotMe - Thanks. Yes, the first thread does provide the exact versions, but I was hoping to get exact instructions since I am not familiar with rails. That way, I can copy paste the instructions for the repro and focus on fixing the issue. |
The guide I followed is this one: https://gorails.com/setup/windows/10 You don't need to setup mysql or postgres, otherwise the guide is the same. |
Hy @sunilmut , Here is a example repo where all you need is to install and run (or if you have both ruby and bundler all you need is to start the app). I met with this too and the problem is about a yet not implemented socket protocol. |
👍 Results in |
@ArsalanDotMe Could you try repro'ing on a recent Insiders build? I am running build 17364, and cannot repro your scenario - all looks good to me! I installed rvm using DigitalOcean's instructions, and then installed rails, and created a new rails templated site using Please let us know if your issue persists. |
I think this got picked up with #393 #68. AFAIK, Rails has worked for a while (there would be more noise if it didn't). Best @sunilmut weigh in on the status of |
Yep - difficult to know if this is upstream or WSL now supporting TCP_INFO - what say you @sunilmut? 😁 |
This is still not supported in Redstone 4. A quick test with Python
shows
|
Since #2090 was duped to here and closed, I'll note that for me php7.1-fpm is still generating a once per second log entry: FPM is otherwise working but it'd be nice if there was a fix for this nuisance. Anyone have a good workaround? |
Thanks @brucek2 and @Yay295 for confirming. So @sunilmut - You don't from any practical standpoint have to wait on the NT tcp stack people to implement this. The feature wasn't forthcoming from them in April of 2017, and it probably isn't forthcoming in 2018 either. Just let There is a decent backgrounder on |
I'm seeing:
Every second (although not since changing |
The ruby unicorn web server is definitely not working right per: |
We’re investigating approaches to address this issue and will report back when we have something concrete to share. Will update this thread at that time with details! |
Awesome @tara-raj , if you need any help testing I am happy to flick whatever switches I need to run bleeding edge wsl. |
I'm happy to test as well. Ran into this with nginx and a ruby sinatra app. |
So to resume:
Waiting for more support, as Unicorn is just a way to laucnh multiple rails server for performance, for the dev, I removed the dependency on Unicorn in file Gemfile, uninstall unicorn using WSL is very promising, very exciting so good luck guys and thanks :-) |
Unicorn is still not working for me, ruby 2.4.0 rails 4.2.8 |
Which windows version has this been solved? I got a way to skip the error for PHP working for 1803. Use unix socket instead of tcp https://www.nginx.com/resources/wiki/start/topics/examples/phpfcgi/ & fastcgi_buffering off However, a proper fix to tcp should be done since other applications relies on TCP_INFO. |
Any update on this one?
|
strongly recommend just closing this issue as "is fixed with WSL2, will not be fixed with WSL1" No point carrying it around forever. |
It would be nice if it were fixed in WSL1 though. |
@SamSaffron why? Did Microsoft announced WSL1 as abandoned, deprecated product already? As far as I remember when announcing WSL2, they said both wsl1 and wsl2 would be maintained. I'd like to see msft continuing to make wsl1 as complete as possible, which means implementing |
You're right. In fact there are even official exceptions for using WSL 1 rather than WSL 2 But to answer the question:
|
well if existing valid issue about wsl1 keep getting closed with |
My hardware has driver problem with recent windows 10 releases so I am using wsl1. I hope they get it fixed there. |
@jobs-git Install Update KB4566116 for Windows 10 1909 and set wsl to version 2. Then you can continue your work. |
I was having a similar issue with WSL: my rails s was working I was getting the following error whenever I send a Get request:
I struggle a lot for fixing that issue even I try the above solution but that didn't work either. at last, I found a simple solution that I need to update my Pum from 3.8 to 3.12+ and it works perfectly for me. |
Microsoft Windows [Version 10.0.15063]
Clean installed rails 5.0.2 on Ruby 2.4.0 through rebenv 1.1.0-2-g4f8925a.
Went into a directory owned by Windows. Created a new project and started the server with
rails s
. The command was extremely slow to start and once it showed the following output, I made a simple GET request to localhost:3000.On making the GET request, the following error showed up.
I don't know if strace of this command will be useful as it keeps continuously spitting out lines at the speed of light. Never exits.
The relevant error-throwing line from puma seems to be
The text was updated successfully, but these errors were encountered: