Welcome! Log In Create A New Profile

Advanced

Re: nginx serving corrupt images

All files from this thread

File Name File Size   Posted by Date  
image.png 46.7 KB open | download Dan Swaney 02/23/2023 Read message
image.png 46.7 KB open | download Saint Michael 02/23/2023 Read message
image.png 276 KB open | download Saint Michael 02/23/2023 Read message
image.png 109.2 KB open | download Saint Michael 02/23/2023 Read message
image.png 46.7 KB open | download Dan Swaney 02/23/2023 Read message
image.png 276 KB open | download Dan Swaney 02/23/2023 Read message
image.png 109.2 KB open | download Dan Swaney 02/23/2023 Read message
image.png 46.7 KB open | download Saint Michael 02/23/2023 Read message
image.png 276 KB open | download Saint Michael 02/23/2023 Read message
image.png 109.2 KB open | download Saint Michael 02/23/2023 Read message
image.png 46.7 KB open | download Dan Swaney 02/23/2023 Read message
image.png 276 KB open | download Dan Swaney 02/23/2023 Read message
image.png 109.2 KB open | download Dan Swaney 02/23/2023 Read message
image.png 188.7 KB open | download Dan Swaney 02/23/2023 Read message
image.png 46.7 KB open | download Saint Michael 02/23/2023 Read message
image.png 276 KB open | download Saint Michael 02/23/2023 Read message
image.png 109.2 KB open | download Saint Michael 02/23/2023 Read message
image.png 188.7 KB open | download Saint Michael 02/23/2023 Read message
image.png 46.7 KB open | download Dan Swaney 02/23/2023 Read message
image.png 276 KB open | download Dan Swaney 02/23/2023 Read message
image.png 109.2 KB open | download Dan Swaney 02/23/2023 Read message
image.png 188.7 KB open | download Dan Swaney 02/23/2023 Read message
Maxim Dounin
February 22, 2023 07:18PM
Hello!

On Wed, Feb 22, 2023 at 02:46:29PM -0500, Saint Michael wrote:

> It's not a misconfiguration, is a huge bug.
> A wasted two days of sleep for something that is 100% a bug.
> Please read here:
> https://laracasts.com/discuss/channels/general-discussion/homestead-nginx-serving-wrong-images-and-only-cut-in-the-middle
> He mentions the same exact problem and also he points to
> https://tech.blog.aknin.name/2011/11/04/nginxgzip-module-might-silently-corrupt-data-upon-backend-failure/
> where the author says that Niginx will not fix it.
> So he already tried he was rebuffed.

The fun fact is that the referenced article doesn't state "will
not fix", but rather "not a top priority". Further, proper error
propagation is available in nginx for about 10 years now, since
2013 (http://hg.nginx.org/nginx/rev/d3eab5e2df5f, nginx 1.5.3).
Quoting CHANGES:

*) Change: now after receiving an incomplete response from a backend
server nginx tries to send an available part of the response to a
client, and then closes client connection.

As long as nginx have an information about an error, it will
preserve this information and propagate it to the client.

Also note that it is only expected to make a difference if you are
using nginx as a proxy, not to directly serve files. And only in
case of errors. That is, if you are seeing the behaviour
described, it might be a good idea to focus on the errors in the
first place.

I don't think it's anyhow related though, as switching gzip off
and back on, as seems to be "the fix" described in the first link,
is not going to help with anything. The important part is likely
"restarted the server", so I would rather assume that "the server"
(not sure if it refers to nginx or the whole server) was using an
incorrect configuration and/or was out of some resources, and
restart fixed it.

Summing the above, if you want to find out what goes wrong in your
case - you may want to provide more details. If you don't, nobody
will be able to do it, unfortunately.

The most basic thing I would recommend in the first place is to
look into nginx error log, it is likely to contain important
information if something goes wrong.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

FAQ Suggestions

iaw4 February 18, 2023 08:30PM

Re: FAQ Suggestions

nanaya February 19, 2023 01:28AM

Private location does not work

Saint Michael February 19, 2023 01:54AM

Re: Private location does not work

Francis Daly February 19, 2023 08:20AM

Re: Private location does not work

Saint Michael February 19, 2023 09:36AM

Re: Private location does not work

unclepieman February 19, 2023 10:34PM

Re: Private location does not work

Saint Michael February 19, 2023 10:56PM

Re: Private location does not work

unclepieman February 19, 2023 11:00PM

Re: Private location does not work

Saint Michael February 19, 2023 11:26PM

Re: Private location does not work

unclepieman February 19, 2023 11:54PM

Re: Private location does not work

Saint Michael February 20, 2023 12:06AM

Re: Private location does not work

Francis Daly February 20, 2023 07:36AM

Re: Private location does not work

unclepieman February 20, 2023 01:22PM

Re: Private location does not work

Saint Michael February 20, 2023 02:46PM

foreach does not work

Saint Michael February 21, 2023 02:24AM

foreach does not work

Saint Michael February 21, 2023 02:26AM

Re: foreach does not work

Sergey A. Osokin February 21, 2023 10:30AM

nginx serving corrupt images

Saint Michael February 22, 2023 10:58AM

Re: nginx serving corrupt images

Saint Michael February 22, 2023 02:04PM

Re: nginx serving corrupt images

Saint Michael February 22, 2023 02:06PM

Re: nginx serving corrupt images

Sergey A. Osokin February 22, 2023 02:34PM

Re: nginx serving corrupt images

Saint Michael February 22, 2023 02:48PM

Re: nginx serving corrupt images

Maxim Dounin February 22, 2023 07:18PM

Re: nginx serving corrupt images

Saint Michael February 22, 2023 07:38PM

Re: nginx serving corrupt images

Maxim Dounin February 22, 2023 09:30PM

Re: nginx serving corrupt images

Saint Michael February 22, 2023 09:32PM

Re: nginx serving corrupt images

Maxim Dounin February 22, 2023 09:50PM

Re: nginx serving corrupt images

Saint Michael February 22, 2023 10:52PM

RE: nginx serving corrupt images

Reinis Rozitis February 23, 2023 06:34AM

Re: nginx serving corrupt images

Maxim Dounin February 23, 2023 08:04AM

Re: nginx serving corrupt images

Saint Michael February 23, 2023 08:16AM

Re: nginx serving corrupt images

Maxim Dounin February 23, 2023 09:18AM

Re: nginx serving corrupt images Attachments

Dan Swaney February 23, 2023 06:16PM

Re: nginx serving corrupt images Attachments

Saint Michael February 23, 2023 07:24PM

Re: nginx serving corrupt images Attachments

Dan Swaney February 23, 2023 08:12PM

Re: nginx serving corrupt images Attachments

Saint Michael February 23, 2023 09:28PM

Re: nginx serving corrupt images Attachments

Dan Swaney February 23, 2023 09:34PM

Re: nginx serving corrupt images

Maxim Dounin February 23, 2023 10:28PM

Re: nginx serving corrupt images

Dan Swaney February 23, 2023 10:36PM

Re: nginx serving corrupt images

Maxim Dounin February 23, 2023 11:14PM

Re: nginx serving corrupt images

Saint Michael February 23, 2023 11:28PM

Re: nginx serving corrupt images

Saint Michael February 23, 2023 11:48PM

Re: nginx serving corrupt images Attachments

Saint Michael February 23, 2023 10:32PM

Re: nginx serving corrupt images Attachments

Dan Swaney February 23, 2023 10:42PM

Re: nginx serving corrupt images

Dan Swaney February 23, 2023 06:24PM

Re: nginx serving corrupt images

Saint Michael February 23, 2023 06:34PM

Re: nginx serving corrupt images

Saint Michael February 23, 2023 06:36PM

Re: nginx serving corrupt images

Maxim Dounin February 23, 2023 09:44PM

Re: FAQ Suggestions

iaw4 February 19, 2023 08:52PM

Re: FAQ Suggestions

nanaya February 20, 2023 02:12AM

Re: FAQ Suggestions

Francis Daly February 19, 2023 08:38AM

Re: FAQ Suggestions

iaw4 February 19, 2023 08:52PM

Re: FAQ Suggestions

Francis Daly February 20, 2023 07:08AM

Re: FAQ Suggestions --- mapping to file, not folder?

iaw4 February 22, 2023 12:46PM

Re: FAQ Suggestions --- mapping to file, not folder?

Sergey A. Osokin February 22, 2023 01:06PM

Re: FAQ Suggestions --- mapping to file, not folder?

Francis Daly February 22, 2023 04:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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