Skip to content
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

Bug: HTTP requests hang and page doesn't load #21

Open
3 tasks done
InToSSH opened this issue Nov 16, 2020 · 0 comments
Open
3 tasks done

Bug: HTTP requests hang and page doesn't load #21

InToSSH opened this issue Nov 16, 2020 · 0 comments

Comments

@InToSSH
Copy link

InToSSH commented Nov 16, 2020

Basic info

Windows 10 Build WSL Distro WSL Verson PHP Version Valet version
20H2 Ubuntu 20.04.1 1 7.4.12 1.0.6
  • I've checked the issue queue and could not find anything similar to my bug.
  • I'm on the latest version of valet-wsl (valet --version): <Valet-wsl-Version>
  • I've run valet install after updating and before submitting my issue/feature.

What is the problem?
I followed the guide, installed everything. The set up seems to be working, but I can get only about 1 of 5 requests in the browser to load, others seem to hang and eventually time out.
Also checking the PHP log I get this line every second:

[16-Nov-2020 01:33:35] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)

What was supposed to happen?
Page should load

What actually happened?
Request hang up

How to reproduce this?
Installed Ubuntu WSL. Followed the Valet-WSL guide. Ran valet install and then valet link in the project repo. Opened browser, tried to load the page. First one usually loads fine, other ones hang. Only after about five reloads the page actually loads up.
When I tried the same setup with WSL 2 all is working just fine, however in WSL 2 there is a problem with slow FS speeds when project is stored on Windows FS.

What is the solution?

Sources
This problem seems to be related to these issues:
https://stackoverflow.com/questions/46286420/php7-0-fpm-extremly-slow-on-ubuntu-windows-subsystem-linux
microsoft/WSL#2100
https://www.issacc.com/solution-to-nginx-php-fpm-issues-on-windows-subsystem-for-linux-wsl/
However I checked the valet settings and all seems to be set correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant