在新鲜的Laravel安装上执行ERR_INCOMPLETE_CHUNKED_ENCODING [英] ERR_INCOMPLETE_CHUNKED_ENCODING on a fresh Laravel install

查看:323
本文介绍了在新鲜的Laravel安装上执行ERR_INCOMPLETE_CHUNKED_ENCODING的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



该页面显示空白,并在控制台中显示:


$ b


(失败)net :: ERR_INCOMPLETE_CHUNKED_ENCODING


hello view that thatYou've arrived。



我的服务器是Debian Wheezy,配有ISPConfig,Apache 2.2和PHP 5.4

有没有人知道我该如何解决这个问题?

解决方案

在运行nginx的Ubuntu 14.04 Vagrant框中遇到同样的问题。该网站是一个Laravel 5,有一天令人惊讶地开始抛出这些错误。

阅读此评论后:
https://github.com/barryvdh/laravel-debugbar/issues/262#issuecomment-74385850



我检查了我的 /var/log/nginx/vagrant.com-error.log.1 并看到:


1020#0:* 774 open()/ var / lib / nginx / fastcgi / 3/03/0000000033 (13:权限被拒绝),客户端:192.168.56.1,服务器:192.168.56.102.xip.io,请求:GET / _debugbar / assets / javascript?1423122680 HTTP / 1.1,上游:fastcgi:// 127.0.0.1:9000,主持人:我的主人,引用者: http:// url / that / failed


双击我的Vagrant box nginx lib目录权限 ll / var / lib /


drwx r-xr-x 7 root root 4096 feb 9 11:28 nginx /


...其中内部使用 www-data user: ll / var / lib / nginx /


drwx ------ 12 www-data root 4096 may 5 13:32 fastcgi /


所以我跑了:


chown -R www-data:www-data / var / lib / nginx

Chrome中的错误消失了。

只要在这里发布以注意解决方案,去链接的原始评论。


This only happens on Google Chrome and Chromium with a fresh install of Laravel.

The page shows blank and in the console it says:

(failed) net::ERR_INCOMPLETE_CHUNKED_ENCODING

Instead of the default hello view that which says "You have arrived."

My server is Debian Wheezy with ISPConfig, Apache 2.2 and PHP 5.4

Does anybody knows how can I fix this?

解决方案

Had the same problem on a Ubuntu 14.04 Vagrant box running nginx. The site is a Laravel 5 that one day surprisingly started throwing those errors.

After reading this comment: https://github.com/barryvdh/laravel-debugbar/issues/262#issuecomment-74385850

I've checked my /var/log/nginx/vagrant.com-error.log.1 and saw:

[crit] 1020#0: *774 open() "/var/lib/nginx/fastcgi/3/03/0000000033" failed (13: Permission denied) while reading upstream, client: 192.168.56.1, server: 192.168.56.102.xip.io, request: "GET /_debugbar/assets/javascript?1423122680 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "my-host", referrer: "http://url/that/fails"

Double-checked my Vagrant box nginx lib directory permissions ll /var/lib/

drwxr-xr-x 7 root root 4096 feb 9 11:28 nginx/

... where internally was using www-data user: ll /var/lib/nginx/

drwx------ 12 www-data root 4096 may 5 13:32 fastcgi/

So I ran:

chown -R www-data:www-data /var/lib/nginx

And the error in Chrome disappeared.

Just posting here to notice the solution, even all the credits should go to the linked original comment.

这篇关于在新鲜的Laravel安装上执行ERR_INCOMPLETE_CHUNKED_ENCODING的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆