duandan5471 2018-08-01 21:28
浏览 278

nginx laravel让504网关超时

I keep getting 504 gateway time out error on nginx php7.0 ubuntu 16.04 for my laravel 5.3 website.

My suspicion whereHas query is the problem. When I commented out the query, it seems working fine. the query

Item::with('image', 'brand', 'currency')->where('display', '>=', 3)->whereHas('catitems', function($query){
                $query->where('catitems.id', 5);
            })->inRandomOrder()->take(6)->get();

any idea whats wrong here?

my vultr vps spec is 1GB RAM, 1 Core.

This is the error log

recv() failed (104: Connection reset by peer) while reading response header from upstream

this is my buffer config

fastcgi_buffers 8 128k;
fastcgi_buffer_size 128k;

Any idea how to solve this?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 素材场景中光线烘焙后灯光失效
    • ¥15 请教一下各位,为什么我这个没有实现模拟点击
    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 保护模式-系统加载-段寄存器