#Valet not working.

46 messages · Page 1 of 1 (latest)

swift meteor
#

Browser (Safari and Firefox) says:
"The connection was reset
The connection to the server was reset while the page was loading."

Tried uninstalling/reinstalling php, nginx, dnsmasq according to this link, to no avail:

https://stackoverflow.com/questions/37135711/laravel-valet-not-working

sonic bane
#

What Valet version are you running? Have you tried re-installing Valet completely?

swift meteor
#

3.1.1

#

3.1.11

#

Tried removing globally with composer.

sonic bane
#

Without luck I assume, since there is a newer version available.

swift meteor
#

composer global remove valet returns:

valet is not required in your composer.json and has not been removed
./composer.json has been updated
Running composer update valet
Loading composer repositories with package information
Package "valet" listed for update is not locked.
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files
17 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
No security vulnerability advisories found
#

Wait, so I need to update through composer?

sonic bane
#

valet uninstall

swift meteor
#

Does this look right?

YOU ARE ABOUT TO UNINSTALL Nginx, PHP, Dnsmasq and all Valet configs and logs.
Are you sure you want to proceed? y
Removing certificates for all Secured sites...
No sites to unsecure. You may list all servable sites or links by running valet parked or valet links.
Removing Nginx and configs...
Stopping nginx...
Removing Dnsmasq and configs...
Stopping dnsmasq...
Removing loopback customization...
Removing Valet configs and customizations...
Removing PHP versions and configs...

In Process.php line 434:
                                                  
  The process has been signaled with signal "9".  
                                                  

uninstall [--force]
#

I did the wall of text manual uninstall last time. I guess that didn't work.

sonic bane
#

That looks better than what you've tried before, haha.

#

So valet is not available anymore in your CLI?

swift meteor
#

$ valet

/opt/homebrew/bin/valet: line 10: php: command not found
/opt/homebrew/bin/valet: line 20: php: command not found
/opt/homebrew/bin/valet: line 10: php: command not found
/opt/homebrew/bin/valet: line 20: php: command not found
/opt/homebrew/bin/valet: line 106: php: command not found
#

I'll rm -rf that dir.

sonic bane
#

You could try the --force flag first

#

valet uninstall --force

swift meteor
#

I had to do that to get it to uninstall.

#

It just prints the "we're not doing anything without force, here's a wall of text about how to manually uninstall".

#

Without --force.

sonic bane
#

Gotcha

#

You could also just try to follow the installation instructions again.

swift meteor
#

K.

swift meteor
#
Once Valet is installed, try pinging any *.test domain on your terminal using a command such as ping foobar.test. If Valet is installed correctly you should see this domain responding on 127.0.0.1.
#

Nope.

#

Request timeout.

#

Version shows 3.2.2 now.

#

But no responses.

#

It still has my old parks and links as well.

sonic bane
#

What if you change the tld to something else, just to rule out theres not something else messing with that:

$ valet tld testing
$ ping somedomain.testing
swift meteor
#

Changed domain successfully.
Requests timeout.

#

It's not hitting nginx, I don't beleive. There are no logs in ~/.config/valet/Log/nginx-error.log

vital hearth
#

What's it resolving to? If it resolves correctly it's probably nginx that's not starting like something else is using the port. If the host doesn't resolve it's a dns issue, which could mean Dnsmasq isn't running, or you're connected to a VPN (or adblock thing) that skips the local dns server entirely

swift meteor
#

Doesn't resolve.
127.0.0.1 kubernetes.docker.internal
is in my hosts file. Would that do it?
It's below the normal line:
127.0.0.1 localhost
No ad block on Safari, no extensions or vpn at all.

sonic bane
#

You have docker running

#

You can't have both Valet and Docker running at the same time, since they both run on port 80 by default.

swift meteor
#

Thanks!
I'll tinker later tonight. Gotta run.
Thank you SO MUCH Arko.

sonic bane
#

Oh wait, thats your hosts file

#

But yeah make sure that Docker is not running

swift meteor
#

Yes. I may have docker running though. I'll check later.

vital hearth
#

Yeah, sounds like something else is running, preventing Valet to properly start. I think Valet has a status command that shows if the services are running

swift meteor
#

Still not connecting.
Uninstalled docker completely.
Checked port 80 via: lsof -i -P
Nothing is listening execpt nginx.
There are several instances of nginx on 80 in the list.. not sure if that's normal:

nginx     88363 megauser    7u  IPv4 0xdf975e900f11881b      0t0  TCP localhost:80 (LISTEN)
nginx     88364 megauser    7u  IPv4 0xdf975e900f11881b      0t0  TCP localhost:80 (LISTEN)
nginx     88365 megauser    7u  IPv4 0xdf975e900f11881b      0t0  TCP localhost:80 (LISTEN)
nginx     88366 megauser    7u  IPv4 0xdf975e900f11881b      0t0  TCP localhost:80 (LISTEN)
nginx     88367 megauser    7u  IPv4 0xdf975e900f11881b      0t0  TCP localhost:80 (LISTEN)
nginx     88368 megauser    7u  IPv4 0xdf975e900f11881b      0t0  TCP localhost:80 (LISTEN)
nginx     88369 megauser    7u  IPv4 0xdf975e900f11881b      0t0  TCP localhost:80 (LISTEN)
nginx     88370 megauser    7u  IPv4 0xdf975e900f11881b      0t0  TCP localhost:80 (LISTEN)
#

Working through valet diagnose currently.

#

.... and I see nothing problematic... *sigh

swift meteor
#

Found a tip on SO to add 127.0.0.1 site.test to the hosts file.
Seems to work now.

vital hearth