Welcome! Log In Create A New Profile

Advanced

Re: nginx: [crit] pread() "/opt/nginx" failed (21: Is a directory)

All files from this thread

File Name File Size   Posted by Date  
image001.gif 530 bytes open | download Gray, Steve, Wipro 04/27/2012 Read message
Maxim Dounin
April 30, 2012 07:40AM
Hello!

On Fri, Apr 27, 2012 at 09:59:15PM -0400, Gray, Steve, Wipro wrote:

>
> Hi,
> I am using nginx 1.0.15 running on Solaris 10. When I issue my
> "/opt/nginx/sbin/nginx -s stop" command, I get this error
> "nginx: [crit] pread() "/opt/nginx" failed (21: Is a
> directory)". The funny thing is that I can issue
> "/opt/nginx/sbin/nginx" to start nginx and get no errors. Nginx
> starts okay. I can also issue "/opt/nginx/sbin/nginx -V or v"
> and get no errors. The "nginx: [crit] pread() "/opt/nginx"
> failed (21: Is a directory)" error happens when I issue the
> command with the "-s stop|reload|quit|reopen" options.
> My configure argument is --prefix=/opt/nginx. Has anyone seen
> this or know why this is happening? Let me know if you need any
> more information from me.

The message suggests you have pid (either in config via
http://nginx.org/r/pid or with --pid-path configure argument) set
to "/opt/nginx". The fact that nginx starts is actually strange
though. Could you please provide "nginx -V" output and full
config used?

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx: [crit] pread() "/opt/nginx" failed (21: Is a directory) Attachments

Gray, Steve, Wipro April 27, 2012 10:02PM

Re: nginx: [crit] pread() "/opt/nginx" failed (21: Is a directory)

Maxim Dounin April 30, 2012 07:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 144
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