Welcome! Log In Create A New Profile

Advanced

[alert] 4418#0: *99024 pread() read only 0 of 32768 from

Posted by Dark 
[alert] 4418#0: *99024 pread() read only 0 of 32768 from
October 16, 2016 12:50PM
Hi,

I have a problem today with one of my servers that are handing a live streaming app.

The error log look like this :

2016/10/16 16:50:38 [alert] 4418#0: *98869 pread() read only 0 of 32768 from "/mnt/ID/720/7200.ts" while sending response to client, client: xxx.xxx.xxx.xxx, server: nginx04, request: "GET /ID/720/7200.ts HTTP/1.1", host: "nginx04", referrer: "https://xxxxx.xx"

I found that some people say that i have to disable open_file_cache, but if i read the manual of nginx this option is disable default.
But in my nginx.conf i dont have the line at all, so are the open_file_cache enable if there is just nothing in my nginx.conf file that are contains open_file_cache?

I using a own compile version of nginx version :
nginx/1.8.1

Kind regards



Edited 2 time(s). Last edit at 10/16/2016 12:54PM by Dark.
Re: [alert] 4418#0: *99024 pread() read only 0 of 32768 from
October 16, 2016 02:40PM
Maybe the default is 'on'
See also http://mailman.nginx.org/pipermail/nginx/2013-November/041146.html

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: [alert] 4418#0: *99024 pread() read only 0 of 32768 from
October 16, 2016 02:55PM
Syntax: open_file_cache off;
open_file_cache max=N [inactive=time];
Default: open_file_cache off;
Context: http, server, location

Default is off so somewhere you must have enabled it, or just force it off.

There might be other OS situations/configurations that do such things beneath nginx which causes the same thing.

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: [alert] 4418#0: *99024 pread() read only 0 of 32768 from
October 16, 2016 03:48PM
How can i see if it on? I have search for grep -r "open_file_cache" . inside my nginx config folder and there is no hit at all.

Is there any option to get a print of the running configuration live ?



Edited 1 time(s). Last edit at 10/16/2016 03:51PM by Dark.
Re: [alert] 4418#0: *99024 pread() read only 0 of 32768 from
October 16, 2016 05:16PM
nginx -T

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: [alert] 4418#0: *99024 pread() read only 0 of 32768 from
October 17, 2016 01:57AM
That command is not working out well!

nginx -T
nginx: invalid option: "T"
Re: [alert] 4418#0: *99024 pread() read only 0 of 32768 from
October 17, 2016 02:21AM
here is my compile line:

nginx version: nginx/1.8.1
built by gcc 4.9.2 (Debian 4.9.2-10)
built with OpenSSL 1.0.1k 8 Jan 2015 (running with OpenSSL 1.0.1t 3 May 2016)
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2' --with-ld-opt=-Wl,-z,relro --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_spdy_module --with-http_sub_module --with-http_xslt_module --with-mail --with-mail_ssl_module --add-module=/usr/src/ngx_devel_kit-0.2.19 --add-module=/usr/src/lua-nginx-module-0.10.0
Re: [alert] 4418#0: *99024 pread() read only 0 of 32768 from
October 17, 2016 03:26AM
Options:
-?,-h : this help
-v : show version and exit
-V : show version and configure options then exit
-t : test configuration and exit
-T : test configuration, dump it and exit

1.8 is pretty old.

---
nginx for Windows http://nginx-win.ecsds.eu/
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 259
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready