# Problem with Solaris

**URL:** <https://www.ruby-forum.com/t/problem-with-solaris/198117>\
**Category:** NGINX\
**Created:** [October 26, 2010, 3:56pm UTC](https://www.ruby-forum.com/t/problem-with-solaris/198117 "2010-10-26T15:56:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![okkezSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Post date:** [October 26, 2010, 3:56pm UTC](https://www.ruby-forum.com/t/problem-with-solaris/198117/1 "2010-10-26T15:56:44Z")

</div>

Hello,

I just came to this old problem :  
readv() failed (22: Invalid argument) while reading upstream  
Running nginx 0.8.52 on Solaris10

I have seen a message from 2008 that spoke about that, but it seems that  
the bug is not yet resolved.  
Or is there any workaround ?

Thanks in advance…

f.g.

–  
Frdric Goudal  
Service Informatique  
ENSEIRB-MATMECA / IPB  
Tel : +33 556 84 23 11  
Fax: +33 556 37 20 23

---

<div class="post-metadata">

**Author:** ![SSFrSSdSSric\_Goudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ce73a5/32.png) [@SSFrSSdSSric\_Goudal](https://www.ruby-forum.com/u/SSFrSSdSSric_Goudal)\
**Post date:** [October 26, 2010, 9:17pm UTC](https://www.ruby-forum.com/t/problem-with-solaris/198117/2 "2010-10-26T21:17:34Z")

</div>

Hello!

On Tue, Oct 26, 2010 at 03:55:38PM +0200, Frédéric Goudal wrote:

> Hello,
> 
> I just came to this old problem :  
> readv() failed (22: Invalid argument) while reading upstream  
> Running nginx 0.8.52 on Solaris10
> 
> I have seen a message from 2008 that spoke about that, but it seems that the bug  
> is not yet resolved.  
> Or is there any workaround ?

The only thread I see in archives is this one (in Russian):

> **[solaris readv() error](http://mailman.nginx.org/pipermail/nginx-ru/2008-March/016620.html)**

There Igor explains that there are two possible causes:

1. (An unknown) bug in nginx.

2. Known problem in Solaris which sets errno to EINVAL (instead of  
ECONNRESET as others do and POSIX requires) when connection is  
reset by peer (i.e. your backend).

I believe (2) is much more probable (read: check your backend).

If you think that cause is (1) you may want to provide more  
debugging info, see here:

> **[GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki...](https://github.com/nginxinc/nginx-wiki)**
>
> ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com

Maxim D.

---

<div class="post-metadata">

**Author:** ![SSFrSSdSSric\_Goudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ce73a5/32.png) [@SSFrSSdSSric\_Goudal](https://www.ruby-forum.com/u/SSFrSSdSSric_Goudal)\
**Post date:** [October 26, 2010, 10:06pm UTC](https://www.ruby-forum.com/t/problem-with-solaris/198117/3 "2010-10-26T22:06:35Z")

</div>

I agree, I have found the same message.

The disturbing thing is that, while trying to dig a bit more, the last  
time I launched nginx, the bug did not appear.

I know that Solaris is not a trendy platform… but… I have no other  
solution.

It’s strange that nobody else use that OS 🙂

Well… I guess I have to dig by myself… or is there anybody wanting  
to help ? Even in trying to correct the bug ?

f.g.

Le 26 oct. 2010 21:16, Maxim D. a crit :

> > I have seen a message from 2008 that spoke about that, but it seems that the  
> > bug is not yet resolved.
> 
> 1. Known problem in Solaris which sets errno to EINVAL (instead of  
> Maxim D.
> 
> * * *
> 
> nginx mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [mailman.nginx.org archive](http://nginx.org/mailman/listinfo/nginx)

–  
Frdric Goudal  
Service Informatique  
ENSEIRB-MATMECA / IPB  
Tel : +33 556 84 23 11  
Fax: +33 556 37 20 23

---

<div class="post-metadata">

**Author:** ![SSFrSSdSSric\_Goudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ce73a5/32.png) [@SSFrSSdSSric\_Goudal](https://www.ruby-forum.com/u/SSFrSSdSSric_Goudal)\
**Post date:** [October 26, 2010, 10:57pm UTC](https://www.ruby-forum.com/t/problem-with-solaris/198117/4 "2010-10-26T22:57:29Z")

</div>

Le 26 oct. 2010 22:23, Bryan Horstmann-Allen a crit :

> |  
> | Well… I guess I have to dig by myself… or is there anybody wanting to  
> help ? Even in trying to correct the bug ?
> 
> I use nginx on Solaris 10 and have no had this problem, that I recall. I use  
> the NetBSD pkgsrc ports tree; you might want to see their patches directory to  
> see if there’s anything relevant.
> 
> The only thing off the top of my head I can think of… have you set “sendfile  
> on;”?

I had it on first than removed it on second as I saw it could cause a  
problem.  
But than… it seemed I still had the problem.  
Ok I started over and I did not found the problem again. So maybe an  
error from me ?

Do you know why sendfile on can cause the problem ?

f.g.

–  
Frdric Goudal  
Service Informatique  
ENSEIRB-MATMECA / IPB  
Tel : +33 556 84 23 11  
Fax: +33 556 37 20 23

---

<div class="post-metadata">

**Author:** ![SSFrSSdSSric\_Goudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ce73a5/32.png) [@SSFrSSdSSric\_Goudal](https://www.ruby-forum.com/u/SSFrSSdSSric_Goudal)\
**Post date:** [October 26, 2010, 10:24pm UTC](https://www.ruby-forum.com/t/problem-with-solaris/198117/5 "2010-10-26T22:24:48Z")

</div>

±-----------------------------------------------------------------------------  
| On 2010-10-26 22:04:56, Fr?d?ric Goudal wrote:  
|  
| I agree, I have found the same message.  
|  
| The disturbing thing is that, while trying to dig a bit more, the last time I  
launched nginx, the bug did not appear.  
|  
| I know that Solaris is not a trendy platform… but… I have no other solution.  
|  
| It’s strange that nobody else use that OS 🙂  
|  
| Well… I guess I have to dig by myself… or is there anybody wanting to help  
? Even in trying to correct the bug ?

I use nginx on Solaris 10 and have no had this problem, that I recall. I  
use  
the NetBSD pkgsrc ports tree; you might want to see their patches  
directory to  
see if there’s anything relevant.

## The only thing off the top of my head I can think of… have you set “sendfile on;”?

bdha  
cyberpunk is dead. long live cyberpunk.
