Skip to content

504 Gateway timeout #730

@claystation

Description

@claystation

Hello,

I am trying to get Valet working on my new Mac Mojave 10.14.3.

I installed PHP 7.2 through Homebrew (As 7.3 is having difficulties with xDebug).
I linked it and added it to the path.

php -v

PHP 7.2.15 (cli) (built: Feb  7 2019 20:10:03) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans
    with Zend OPcache v7.2.15, Copyright (c) 1999-2018, by Zend Technologies

Installing valet with valet install

Stopping nginx...
Installing nginx...
[nginx] is not installed, installing it now via Brew... 🍻
Installing nginx configuration...
Installing nginx directory...
Updating PHP configuration...
Restarting php@7.2...
Installing dnsmasq...
[dnsmasq] is not installed, installing it now via Brew... 🍻
Restarting dnsmasq...
Valet is configured to serve for TLD [.test]
Restarting nginx...

Valet installed successfully!

I linked my project:

+--------------+-----+--------------------------+-----------------------------------------------------+
| Site         | SSL | URL                      | Path                                                |
+--------------+-----+--------------------------+-----------------------------------------------------+
| application |     | http://application.test | /Users/claystation/development/laravel/application |
+--------------+-----+--------------------------+-----------------------------------------------------+

But visiting https://application.test gives me a Gateway timeout. It was working before a reboot (after a lot of fiddling with every aspect (brew/valet/php). I do not want to have the common solution of raising timeout limits. Because that can never be a problem for loading a simple laravel app on my local computer. I have no clue where to look else or what to do. I tried reinstall everything. (Php by my self and nginx/dnsmasq through valet install). I am new to OSX so, if i am missing something obvious, please forgive me.

Some extra information:

brew services list

Name    Status  User    Plist
dnsmasq started root    /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
mariadb started claystation /Users/claystation/Library/LaunchAgents/homebrew.mxcl.mariadb.plist
nginx   started root    /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
php@7.2 started root    /Library/LaunchDaemons/homebrew.mxcl.php@7.2.plist

cat ~/.config/valet/Log/nginx-error.log

2019/02/13 10:51:22 [error] 56174#0: *1 upstream timed out (60: Operation timed out) while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/Users/claystation/.config/valet/valet.sock", host: "application.test"

cat /usr/local/var/log/php-fpm.log

[13-Feb-2019 10:49:57] NOTICE: fpm is running, pid 54208
[13-Feb-2019 10:49:57] NOTICE: ready to handle connections

ps aux | grep fpm

claystation          54225   0.0  0.0  4524688   1184   ??  S    10:49AM   0:00.00 /usr/local/opt/php@7.2/sbin/php-fpm --nodaemonize
claystation          54224   0.0  0.2  4541536  28204   ??  S    10:49AM   0:00.32 /usr/local/opt/php@7.2/sbin/php-fpm --nodaemonize
root                 54208   0.0  0.1  4524688  15176   ??  Ss   10:49AM   0:00.07 /usr/local/opt/php@7.2/sbin/php-fpm --nodaemonize
claystation          56833   0.0  0.0  4268060    820 s004  S+   11:02AM   0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn fpm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions