Error 502 Bad gateway with prestashop

I have a error in /var/log/apache2/error.log

This error appears in the prestashop checkout when more than 2 products are added and when you are a new customer.
The people of the module tell me that it is a server error and this is what appears in the error.log file at the same time that this error appears in the browser. (attached printscreen)

I appreciate your help friends, since I have looked everywhere for someone to fix it but nothing.
We can even pay for a consultation to correct the problem.

[Thu Apr 22 01:17:08.884244 2021] [proxy_fcgi:error] [pid 20759:tid 139717190330112] [client 139.59.215.60:0] AH01071: Got error 'Primary script unknown'
[Thu Apr 22 01:17:09.040919 2021] [proxy_fcgi:error] [pid 20759:tid 139717207115520] [client 139.59.215.60:0] AH01071: Got error 'Primary script unknown'
[Thu Apr 22 01:17:09.371548 2021] [proxy_fcgi:error] [pid 20759:tid 139716913501952] [client 139.59.215.60:0] AH01071: Got error 'Primary script unknown'
[Thu Apr 22 01:17:09.534145 2021] [proxy_fcgi:error] [pid 20758:tid 139717198722816] [client 139.59.215.60:0] AH01071: Got error 'Primary script unknown'
[Thu Apr 22 03:44:46.259068 2021] [proxy_fcgi:error] [pid 20759:tid 139717081290496] [client 45.155.205.27:0] AH01071: Got error 'Primary script unknown'
[Thu Apr 22 05:55:33.837895 2021] [proxy_fcgi:error] [pid 20759:tid 139716544419584] [client 45.155.205.27:0] AH01071: Got error 'Primary script unknown'
[Thu Apr 22 11:19:30.356139 2021] [proxy_fcgi:error] [pid 20758:tid 139716577957632] [client 45.155.205.27:0] AH01071: Got error 'Primary script unknown'
[Thu Apr 22 15:19:33.590939 2021] [proxy_fcgi:error] [pid 20759:tid 139717064505088] [client 45.155.205.27:0] AH01071: Got error 'Primary script unknown'
[Thu Apr 22 19:26:19.115294 2021] [proxy_fcgi:error] [pid 20759:tid 139717207115520] [client 103.116.27.132:0] AH01071: Got error 'Primary script unknown'
[Thu Apr 22 22:00:15.056279 2021] [proxy_fcgi:error] [pid 20759:tid 139717198722816] [client 45.155.205.27:0] AH01071: Got error 'Primary script unknown'
[Fri Apr 23 00:20:18.414197 2021] [proxy_fcgi:error] [pid 20758:tid 139717047719680] [client 45.155.205.27:0] AH01071: Got error 'Primary script unknown'
[Fri Apr 23 04:36:30.038920 2021] [proxy_fcgi:error] [pid 20758:tid 139717190330112] [client 45.155.205.27:0] AH01071: Got error 'Primary script unknown'
[Fri Apr 23 06:25:40.301673 2021] [proxy_fcgi:error] [pid 20759:tid 139717072897792] [client 104.248.58.156:0] AH01071: Got error 'Primary script unknown'
[Fri Apr 23 07:43:51.758316 2021] [proxy_fcgi:error] [pid 20759:tid 139717312567040] [client 13.53.208.18:0] AH01071: Got error 'Primary script unknown'
[Fri Apr 23 09:32:09.182435 2021] [proxy_fcgi:error] [pid 20759:tid 139716921894656] [client 45.155.205.27:0] AH01071: Got error 'Primary script unknown'
[Fri Apr 23 10:48:00.737167 2021] [proxy_fcgi:error] [pid 20759:tid 139717312567040] [client 34.251.241.226:0] AH01071: Got error 'Primary script unknown'
[Fri Apr 23 12:11:06.693722 2021] [proxy_fcgi:error] [pid 20759:tid 139717198722816] [client 35.180.147.121:0] AH01071: Got error 'Primary script unknown'
[Fri Apr 23 12:13:22.581575 2021] [proxy_fcgi:error] [pid 20759:tid 139716552812288] [client 18.229.73.207:0] AH01071: Got error 'Primary script unknown'
[Fri Apr 23 12:19:02.960564 2021] [proxy_fcgi:error] [pid 20759:tid 139716930287360] [client 18.231.94.162:0] AH01071: Got error 'Primary script unknown'

Check the time out in Apache2 and Nginx

Excuse me, I don’t know what you mean by the time out? if you want the nginx error.log file I will send it to you.

2021/04/18 04:07:45 [crit] 30969#30969: *16633370 SSL_do_handshake() failed (SSL:     error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 184.105.247.195, server: 51.255.215.221:443
2021/04/18 04:42:06 [crit] 30969#30969: *16637727 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 104.131.181.99, server: 54.38.177.24:443
2021/04/18 06:00:26 [crit] 30969#30969: *16643245 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 64.62.197.32, server: 54.38.177.24:443
2021/04/18 23:47:44 [crit] 8493#8493: *16885112 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 192.241.218.49, server: 51.255.215.221:443
2021/04/18 23:48:32 [crit] 8493#8493: *16885297 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 192.241.219.222, server: 54.38.177.24:443
2021/04/19 03:32:31 [crit] 8493#8493: *17224940 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 184.105.139.67, server: 51.255.215.221:443
2021/04/19 04:53:46 [crit] 8493#8493: *17232519 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 184.105.247.254, server: 54.38.177.24:443
2021/04/19 11:08:35 [crit] 18803#18803: *17285373 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 35.203.252.146, server: 51.255.215.221:443
2021/04/19 13:24:08 [crit] 18803#18803: *17326806 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 104.131.181.99, server: 51.255.215.221:443
2021/04/19 13:36:48 [crit] 18803#18803: *17330955 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 46.101.28.88, server: 51.255.215.221:443
2021/04/19 15:52:52 [crit] 18803#18803: *17361618 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 143.110.183.111, server: 54.38.177.24:443
2021/04/19 18:50:15 [crit] 18803#18803: *17407505 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 71.6.135.131, server: 51.255.215.221:443
2021/04/19 20:57:34 [crit] 18803#18803: *17434141 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 125.64.94.130, server: 51.255.215.221:443
2021/04/19 21:17:31 [crit] 18803#18803: *17439124 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 18.27.197.252, server: 54.38.177.24:443
2021/04/20 02:18:49 [crit] 18803#18803: *17500068 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 192.241.218.25, server: 51.255.215.221:443
2021/04/20 02:22:41 [crit] 18803#18803: *17500409 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 192.241.221.22, server: 54.38.177.24:443
2021/04/20 08:16:19 [crit] 27953#27953: *17826220 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 65.49.20.66, server: 54.38.177.24:443
2021/04/20 08:30:19 [crit] 27953#27953: *17828857 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 184.105.247.252, server: 51.255.215.221:443
2021/04/20 17:49:38 [crit] 18323#18323: *17938825 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 165.227.76.114, server: 54.38.177.24:443
2021/04/20 23:06:49 [crit] 18323#18323: *18021900 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 107.178.231.240, server: 51.255.215.221:443
2021/04/21 04:34:05 [crit] 18323#18323: *18375874 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 184.105.139.67, server: 54.38.177.24:443
2021/04/21 07:12:16 [crit] 18323#18323: *18389515 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 184.105.247.196, server: 51.255.215.221:443
2021/04/21 09:09:41 [crit] 11255#11255: *18400389 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 104.131.181.99, server: 51.255.215.221:443
2021/04/21 09:20:07 [crit] 11255#11255: *18403594 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 192.241.218.128, server: 51.255.215.221:443
2021/04/22 07:21:35 [crit] 20494#20494: *18964825 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 216.218.206.69, server: 51.255.215.221:443
2021/04/22 08:42:18 [crit] 901#901: *18977137 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 184.105.247.252, server: 54.38.177.24:443
2021/04/22 10:14:56 [crit] 901#901: *18994154 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 45.154.255.147, server: 54.38.177.24:443
2021/04/22 10:49:34 [crit] 901#901: *19001602 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 192.241.219.22, server: 51.255.215.221:443
2021/04/22 10:56:15 [crit] 901#901: *19002268 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 192.241.214.122, server: 54.38.177.24:443
2021/04/22 12:11:18 [crit] 901#901: *19017498 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 107.178.239.197, server: 51.255.215.221:443
2021/04/22 23:45:34 [crit] 901#901: *19183268 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 212.111.40.79, server: 51.255.215.221:443
2021/04/22 23:47:58 [crit] 901#901: *19183975 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 176.58.119.34, server: 51.255.215.221:443
2021/04/23 02:53:16 [crit] 901#901: *19506281 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 46.101.120.104, server: 54.38.177.24:443
2021/04/23 04:50:22 [crit] 901#901: *19512196 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 125.64.94.136, server: 54.38.177.24:443
2021/04/23 05:46:02 [crit] 901#901: *19514899 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 134.209.121.121, server: 54.38.177.24:443
2021/04/23 07:28:44 [crit] 901#901: *19521049 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 216.218.206.66, server: 54.38.177.24:443
2021/04/23 09:10:50 [crit] 31148#31148: *19540538 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 92.154.95.236, server: 54.38.177.24:443
2021/04/23 12:38:18 [crit] 7712#7712: *19582060 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 35.203.245.148, server: 54.38.177.24:443
2021/04/23 12:38:18 [crit] 7713#7713: *19582065 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 35.203.245.149, server: 54.38.177.24:443

Thank you very much for your help

and hestiacp/apache2.conf at 27dcc0849cffb1491861d89922f6f21a6f3da8bb · hestiacp/hestiacp · GitHub

1 Like

Nginx.conf
proxy_connect_timeout 60s;

Apache2.conf
Timeout 30

Increase Apache2 config timeout 30 to 60 and you should be fine

Sorry, but the same error, i write the two in 60 and later 120, and nothing.
What i can do?

What is the way for a paid support to solve this error?

We officially don’t offer paid support how ever send me a Direct message. And I am able to have a look for a fee.

Issue has been solved:

*16305872 upstream sent too big header while reading response header from upstream,

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.