WebFaction
Community site: login faq

I'm receiving a 502 from nginx using the standard "Manufacturers" module of PrestaShop (an e-commerce application), while other modules seem to be working fine.

Never had this kind of problem on standard apache hosts, on logs I'm finding "upstream sent too big header while reading response header from upstream".... any clue on why that's happening, or possible solutions?

asked 22 Oct '10, 05:32

htrex
51129
accept rate: 0%

edited 26 Oct '10, 06:40

This happens when your application is sending really large headers in it's response. 9 times out of 10 it's caused by setting huge cookies.

Do you happen to know what headers your application is sending?

(22 Oct '10, 06:03) David L ♦♦

No, I don't know which and how big are the headers used by PrestaShop, but found that this is happening using several features of a standard PrestaShop install.

Which is the default cookies size limit set for Webfaction? There's a chance to enlarge this limit without using a custom stack?

(26 Oct '10, 06:31) htrex

The Nginx header limit is 4 KB. You cannot enlarge this with a custom stack, as the responses from your custom stack will still go through the frontend Nginx server.

Apparently, the large cookies are a known problem in Prestashop: http://www.prestashop.com/forums/viewthread/71887/general_discussion/amount_of_cookies_sent_502_bad_gateway http://www.prestashop.com/forums/viewthread/30538/help_installation_upgrade/customer_login502_bad_gateway

The only solution I can suggest is to contact our support and request to move your account to our (older) Apache setup, as Apache does not limit the cookie size. Note that you will need to move your data on your own. We have a migration guide at http://docs.webfaction.com/user-guide/moving.html if you are interested.

permanent link

answered 26 Oct '10, 06:42

tie
1.4k13
accept rate: 44%

edited 26 Oct '10, 06:44

Thanks tie, think I'll stick to the newer nginx setup and move my Prestashop testing installs elsewhere instead.

(26 Oct '10, 08:17) htrex
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×21
×4
×3
×3

question asked: 22 Oct '10, 05:32

question was seen: 12,379 times

last updated: 26 Oct '10, 08:17

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM