前端间隔性报错:后端接口异常
浏览器审查,内容如下:
前端报错:Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODING
。
后端报错:
Caused by: java.io.IOException: Broken pipe
at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
at sun.nio.ch.IOUtil.write(IOUtil.java:65)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:469)
at org.apache.tomcat.util.net.NioChannel.write(NioChannel.java:142)
at org.apache.tomcat.util.net.NioBlockingSelector.write(NioBlockingSelector.java:118)
at org.apache.tomcat.util.net.NioSelectorPool.write(NioSelectorPool.java:167)
at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.doWrite(NioEndpoint.java:1360)
at org.apache.tomcat.util.net.SocketWrapperBase.doWrite(SocketWrapperBase.java:718)
at org.apache.tomcat.util.net.SocketWrapperBase.writeBlocking(SocketWrapperBase.java:538)
at org.apache.tomcat.util.net.SocketWrapperBase.write(SocketWrapperBase.java:482)
at org.apache.coyote.http11.Http11OutputBuffer$SocketOutputBuffer.doWrite(Http11OutputBuffer.java:632)
at org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:127)
at org.apache.coyote.http11.Http11OutputBuffer.doWrite(Http11OutputBuffer.java:229)
at org.apache.coyote.Response.doWrite(Response.java:614)
at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:358)
原因:
服务器上部署了多个nginx服务,由于查询的日志比较大,nginx需要写临时文件,nginx错误日志:
[crit] 28478#0: *6322 open() "/usr/local/nginx/proxy_temp/8/31/0000000318" failed (13: Permission denied) while reading upstream,
即没有/usr/local/nginx/proxy_temp 的权限,
解决:
chomod 777 /usr/local/nginx/proxy_temp
参考:
https://www.cnblogs.com/youcong/p/13828579.html
标签:load,resource,java,ERR,util,write,apache,org,net From: https://www.cnblogs.com/hillman01/p/17934391.html