Http 504 error prestashop

504 gateway time-out error in Prestashop can occur due to proxy timeout values, DNS issues and more. Here are the top reasons for this error and it's fixes.

Everyone expects their websites to work smoothly.

But, this situation may change anytime and your website may show unexpected errors.

One such error is 504 gateway time-out on your Prestashop website.

At Bobcares, we help customers resolve website errors as part of our Dedicated Support Services.

Today, we’ll discuss the top 6 reasons for this error and how we fix them.

504 gateway time-out in Prestashop – What this means?

Website owners usually face this error when installing a new version of Prestashop, updating a new product from backoffice, etc.

Firstly, our Support Experts enable Prestashop debug mode from backoffice. This helps us to know if there is any other underlying error message.

For example, in Prestashop 1.5.3 -1.6, we enable it by adding the below parameter in the file config/defines.inc.php.

define('_PS_MODE_DEV_', true);

Similarly, in Prestashop 1.4 – 1.5.3, we enable debug mode by adding the below parameter in the file config/config.inc.php.

@ini_set('display_errors', 'on');

And, once we’re done with the troubleshooting, we’ll disable error reporting, because leaving debug mode enabled can give unpredictable results to visitors.

504 gateway time-out in Prestashop – Causes & Fixes

Now, let’s see the main reasons for this error and how our Support Engineers fix them.

1) Client side issues

Misconfigurations at the client side can result in “504 gateway time-out error in Prestashop”. It can be due to various reasons like:

  • Improper browser settings or browser cache.
  • Temporary problems with the network devices such as modems, routers, etc.
  • Incorrect proxy settings in the browser or application.
  • Network issues at the ISP end.
How we fix?

Our Support Engineers make customers test these things to confirm that there are no problems at the client side.

  • Double check the browser settings and ask them to access their Prestashop application after clearing the browser cache.
  • Try to load from another browser or from incognito window.
  • Restart network devices such as router, modem, etc. and confirm that they have been configured correctly.
  • Review the proxy settings used in the browser or user’s application.
  • Check if there is any problems with their ISP.

If everything works fine, then we do the rest of the checks to identify the issues at the server side.

2) Proxy timeout values

Proxy errors are not always due to insufficient resources. It’s also possible that the proxy has been configured incorrectly. As a result, the proxy server times out before processing the request. Similarly, complex and long running scripts which takes longer time to complete the execution also results in this error.

For example, we’ve seen instances where website throws 504 gateway time-out error in Prestashop with Nginx configured as the reverse proxy.

How we fix?

Our Support Engineers solve this timeout problem by tweaking certain values in the proxy or the web server configuration file. For instance, we adjust the following parameters in the Nginx reverse proxy configuration file nginx.conf to increase the timeout values.

proxy_connect_timeout
proxy_send_timeout
proxy_read_timeout
send_timeout

Similarly, for servers with Nginx and FastCGI(PHP-FPM), our Support Experts resolve this problem by adjusting the parameter max_execution_time in php.ini and request_terminate_timeout  in www.conf files. In addition to that, we adjust the following parameters in the Nginx file.


fastcgi_send_timeout
fastcgi_read_timeout

Most importantly, we restart the necessary services such as nginx, php-fpm to bring the changes into effect.

[Need to adjust the proxy settings on your server? Our experienced Server Administrators can help you.]

3) DNS issues

Similarly, 504 gateway time-out prestashop errors can sometimes be a result of incorrect DNS settings. It can be at the server side or the at client side. Let’s first check the issues that can happen at server side.

DNS changes are often required after domain migration, hosting provider switch, etc. So, it’s important to wait for the DNS changes to propagate globally. So, when the customer browses the website or perform updates during the propagation period, timeout error may occur.

That’s why, our Support Engineers reduce the TTL values during migration, inorder to reduce the propagation delay period.

Likewise, the DNS caching issues at the client side can also lead to this error. The DNS cache on the user’s system stores records of all the recent visits. And, if the DNS cache contain old records, it’ll throw errors.

How we fix?

Here, our Support Experts check if the DNS propagation period is complete using the dig command.

dig +trace domain.com

If not, we’ll ask the customer to check after the DNS propagation period. If there are any DNS resolution errors, we’ll fix them immediately.

Similarly, if we identify that the issue is on the client side, we’ll help the customers to clear their local DNS cache. For example, we use the below command to clear the DNS cache in Windows.

ipconfig /flushdns

4) Server issues

The next step is to check whether the problem lies at the server side. We’ve seen instance where the server becomes unresponsive due to heavy load. It can be due to ongoing DDOS attack, heavy website traffic, a compromised server, application bugs causing resource outages, etc.

Sometimes, the web server which handles the incoming requests become too slow due to performance problems or heavy traffic. Similarly, network problems between the proxy server and the web server can cause delays in getting response for HTTP requests.

How we fix?

Our Support Experts check the server and identify the abused resource. We then find out which service is abusing the resource. At this point, we identify the user who owns the malicious script or software. Finally, we remove or disable this abusive script.

Similarly, if we find there are no enough resources in the server to process the valid incoming requests, the only solution is to upgrade the resources on the server.

For slow web servers, our Server experts optimize web server and tweak it’s configuration parameters to solve the problem.

[Need help in resolving the frequent load issues on your server? Click here and get one of our Server Experts to fix it for you.]

5) Issues with CDN

Website owners use CDNs(Content Delivery Network) to serve contents faster. However, if it’s not properly configured, it can result in errors. The common errors that we’ve seen are the IP address of the website not set in CDN, firewall blocking CDN, etc.

How we fix?

Our Support Experts verify if CDN is creating problems by temporarily disabling the CDN service for the domain. If the website worked well, we’ll review the CDN settings and correct the misconfiguration.

6) Website configuration issues

Last but not least, Prestashop configuration issues can also lead to this error.

In other words, corrupted databases, faulty extensions or themes, incorrect configuration can always create problems.

How we fix?

Firstly, our Support Experts check the database logs to identify the corrupted databases. Once identified, we repair the database using the mysqlcheck command. Also, we always backup the database before making any changes.

mysqlcheck -r DATABASE

Replace DATABASE with original database name.

Similarly, we’ll disable each of the themes/extensions one by one to identify the faulty one. If the website works fine, we upload a fresh copy of the theme/extension. If not, then only the theme developer can fix it.

[Need to recover the corrupted database on your server? We can help you here.]

Conclusion

In short, 504 gateway time-out in Prestashop can occur due to proxy timeout values, DNS issue and more. Today, we’ve discussed the top 6 reasons for this error and how our Dedicated Engineers fix them.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = «owonCMyG5nEQ0aD71QM»;

My installation meets all of the requires shown by phppsinfo.php.

The issue is the time that the installation takes. On my development system, the Fast CGI interface had a default execution time limit of 60 seconds although my PHP max_execution_time was 90 seconds. The Fast CGI timeout was the error reported. On a shared hosting package at, say, hostgator.com (where I managed multiple websites), it is possible to modify the php.ini file, but not the Apache/PHP interface timeout. So my concern is that the installation time may be exceeded for other users who are using shared hosting packages where they cannot increase the execution time limit of the web server/PHP interface.

Although I am able to engineer a workaround on my development system, others may not be able to do so. So the open issue, I think, is whether the installation is taking longer than expected and can that time be reduced so that installation on shared hosting packages is more likely to work. Until those questions have been answered, I’d recommend leaving the issue open, but at a low priority.

From: khouloudbelguith <notifications@github.com>
Sent: Monday, February 18, 2019 12:15 AM
To: PrestaShop/PrestaShop <PrestaShop@noreply.github.com>
Cc: ivordurham <ivor.durham@ivor.cc>; Mention <mention@noreply.github.com>
Subject: Re: [PrestaShop/PrestaShop] PS 1.7.5 database initialization fails with 504 Gateway Timeout error (#12599)

Hi @ivordurham <https://github.com/ivordurham> ,

Thanks for your report.
To install PrestaShop, we need to set memory_limit to «128M», it is required, you can follow this link <https://www.prestashop.com/en/system-requirements> .
Also, you can follow this link: https://github.com/PrestaShop/php-ps-info
phppsinfo file provides an equivalent to the phpinfo() function that reports PrestaShop Requirements information about the PHP/MySQL/Apache environment and offers suggestions for improvement.

1. Upload the file to the server. You should upload your file to the exact directory you want to test. Typically, this will be your httpdocs (/var/www/vhosts/example.com/httpdocs/) directory, although you can upload it to any subdirectory on your server as well. Use FTP to upload the file.
2. Visit the page in your browser. If you uploaded it to your html directory, you should now visit http://www.example.com/phppsinfo.php, replacing example.com with your own domain name.
3. Now you can view all of the information about PHP for your server for that particular directory.

About your issue, since it is fixed, can I close the issue?
Thanks!


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#12599 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AGSbYDXNN1F4MMj09vuh-E4gbcfk6QdAks5vOmEQgaJpZM4a-kEK> . <https://github.com/notifications/beacon/AGSbYC67jzxEy_acaVQsWfhEeSKkoCr9ks5vOmEQgaJpZM4a-kEK.gif>

‘504 gateway time-out’ in Prestashop – Here’s how to fix it

Everyone expects their websites to work smoothly.

But, this situation may change anytime and your website may show unexpected errors.

One such error is 504 gateway time-out on your Prestashop website.

At Bobcares, we help customers resolve website errors as part of our Dedicated Support Services.

Today, we’ll discuss the top 6 reasons for this error and how we fix them.

504 gateway time-out in Prestashop – What this means?

Website owners usually face this error when installing a new version of Prestashop, updating a new product from backoffice, etc.

Firstly, our Support Experts enable Prestashop debug mode from backoffice. This helps us to know if there is any other underlying error message.

For example, in Prestashop 1.5.3 -1.6, we enable it by adding the below parameter in the file config/defines.inc.php.

Similarly, in Prestashop 1.4 – 1.5.3, we enable debug mode by adding the below parameter in the file config/config.inc.php.

And, once we’re done with the troubleshooting, we’ll disable error reporting, because leaving debug mode enabled can give unpredictable results to visitors.

504 gateway time-out in Prestashop – Causes & Fixes

Now, let’s see the main reasons for this error and how our Support Engineers fix them.

1) Client side issues

Misconfigurations at the client side can result in “504 gateway time-out error in Prestashop”. It can be due to various reasons like:

  • Improper browser settings or browser cache.
  • Temporary problems with the network devices such as modems, routers, etc.
  • Incorrect proxy settings in the browser or application.
  • Network issues at the ISP end.
How we fix?

Our Support Engineers make customers test these things to confirm that there are no problems at the client side.

  • Double check the browser settings and ask them to access their Prestashop application after clearing the browser cache.
  • Try to load from another browser or from incognito window.
  • Restart network devices such as router, modem, etc. and confirm that they have been configured correctly.
  • Review the proxy settings used in the browser or user’s application.
  • Check if there is any problems with their ISP.

If everything works fine, then we do the rest of the checks to identify the issues at the server side.

2) Proxy timeout values

Proxy errors are not always due to insufficient resources. It’s also possible that the proxy has been configured incorrectly. As a result, the proxy server times out before processing the request. Similarly, complex and long running scripts which takes longer time to complete the execution also results in this error.

For example, we’ve seen instances where website throws 504 gateway time-out error in Prestashop with Nginx configured as the reverse proxy.

How we fix?

Our Support Engineers solve this timeout problem by tweaking certain values in the proxy or the web server configuration file. For instance, we adjust the following parameters in the Nginx reverse proxy configuration file nginx.conf to increase the timeout values.

Similarly, for servers with Nginx and FastCGI(PHP-FPM), our Support Experts resolve this problem by adjusting the parameter max_execution_time in php.ini and request_terminate_timeout in www.conf files. In addition to that, we adjust the following parameters in the Nginx file.

Most importantly, we restart the necessary services such as nginx, php-fpm to bring the changes into effect.

[Need to adjust the proxy settings on your server? Our experienced Server Administrators can help you.]

3) DNS issues

Similarly, 504 gateway time-out prestashop errors can sometimes be a result of incorrect DNS settings. It can be at the server side or the at client side. Let’s first check the issues that can happen at server side.

DNS changes are often required after domain migration, hosting provider switch, etc. So, it’s important to wait for the DNS changes to propagate globally. So, when the customer browses the website or perform updates during the propagation period, timeout error may occur.

That’s why, our Support Engineers reduce the TTL values during migration, inorder to reduce the propagation delay period.

Likewise, the DNS caching issues at the client side can also lead to this error. The DNS cache on the user’s system stores records of all the recent visits. And, if the DNS cache contain old records, it’ll throw errors.

How we fix?

Here, our Support Experts check if the DNS propagation period is complete using the dig command.

If not, we’ll ask the customer to check after the DNS propagation period. If there are any DNS resolution errors, we’ll fix them immediately.

Similarly, if we identify that the issue is on the client side, we’ll help the customers to clear their local DNS cache. For example, we use the below command to clear the DNS cache in Windows.

4) Server issues

The next step is to check whether the problem lies at the server side. We’ve seen instance where the server becomes unresponsive due to heavy load. It can be due to ongoing DDOS attack, heavy website traffic, a compromised server, application bugs causing resource outages, etc.

Sometimes, the web server which handles the incoming requests become too slow due to performance problems or heavy traffic. Similarly, network problems between the proxy server and the web server can cause delays in getting response for HTTP requests.

How we fix?

Our Support Experts check the server and identify the abused resource. We then find out which service is abusing the resource. At this point, we identify the user who owns the malicious script or software. Finally, we remove or disable this abusive script.

Similarly, if we find there are no enough resources in the server to process the valid incoming requests, the only solution is to upgrade the resources on the server.

For slow web servers, our Server experts optimize web server and tweak it’s configuration parameters to solve the problem.

[Need help in resolving the frequent load issues on your server? Click here and get one of our Server Experts to fix it for you.]

5) Issues with CDN

Website owners use CDNs(Content Delivery Network) to serve contents faster. However, if it’s not properly configured, it can result in errors. The common errors that we’ve seen are the IP address of the website not set in CDN, firewall blocking CDN, etc.

How we fix?

Our Support Experts verify if CDN is creating problems by temporarily disabling the CDN service for the domain. If the website worked well, we’ll review the CDN settings and correct the misconfiguration.

6) Website configuration issues

Last but not least, Prestashop configuration issues can also lead to this error.

In other words, corrupted databases, faulty extensions or themes, incorrect configuration can always create problems.

How we fix?

Firstly, our Support Experts check the database logs to identify the corrupted databases. Once identified, we repair the database using the mysqlcheck command. Also, we always backup the database before making any changes.

Replace DATABASE with original database name.

Similarly, we’ll disable each of the themes/extensions one by one to identify the faulty one. If the website works fine, we upload a fresh copy of the theme/extension. If not, then only the theme developer can fix it.

[Need to recover the corrupted database on your server? We can help you here.]

Conclusion

In short, 504 gateway time-out in Prestashop can occur due to proxy timeout values, DNS issue and more. Today, we’ve discussed the top 6 reasons for this error and how our Dedicated Engineers fix them.

Источник

PS 1.7.5 database initialization fails with 504 Gateway Timeout error #12599

Comments

ivordurham commented Feb 15, 2019

Describe the bug
PS 1.7.5 installation fails with a 504 Gateway Timeout on Fedora 29, PHP 7.2.14, Apache 2.4.38, MariaDB 10.3.11

To Reproduce
Download prestashop_1.7.5.0.zip and unpack in HOME/new_shop
Visit https://x.x.x/HOME/new_shop
Follow steps through local database setup (127.0.0.1) and test database connection successfully.
Click Next.
Long delay stuck at 12% followed by 504 Gateway Timeout error.

Screenshots
PS Error & phpMyAdmin configuration block:


Additionnal information
PrestaShop version: 1.7.5
PHP version: 7.2.14
MariaDB version: 10.3.11

A total of 227 tables were created in the database (ps_access through ps_zone_shop), but all tables appear to be empty, including ps_configuration so I’m not sure it is even getting as far as loading sample product information.

I had previously initialized PS 1.7.5 successfully under Fedora 28 with PHP 7.2 and the latest MariaDB version, but recently upgraded to the latest Fedora release. Then I needed to start my PrestaShop installation over again in preparation for converting/re-implementing a PrestaShop 1.4 installation. This time I could not complete the installation. None of my previous MariaDB, Apache or php.ini files have been modified since before the upgrade from Fedora 28 to Fedora 29.

The text was updated successfully, but these errors were encountered:

ivordurham commented Feb 16, 2019

My default Apache installation apparently uses the Fast CGI proxy. I have been able to evade the timeout issue by creating an Apache configuration file: /etc/httpd/conf.d/custom.conf which contains

This doubles the default timeout of 60s. I have not tried to narrow down how much extra time is actually needed.

However, anyone trying to install PrestaShop on a shared hosting package may not have the option of changing the timeout. It would be far better to evade this issue in the first place.

khouloudbelguith commented Feb 18, 2019

Thanks for your report.
To install PrestaShop, we need to set memory_limit to «128M», it is required, you can follow this link.
Also, you can follow this link: https://github.com/PrestaShop/php-ps-info
phppsinfo file provides an equivalent to the phpinfo() function that reports PrestaShop Requirements information about the PHP/MySQL/Apache environment and offers suggestions for improvement.

  1. Upload the file to the server. You should upload your file to the exact directory you want to test. Typically, this will be your httpdocs (/var/www/vhosts/example.com/httpdocs/) directory, although you can upload it to any subdirectory on your server as well. Use FTP to upload the file.
  2. Visit the page in your browser. If you uploaded it to your html directory, you should now visit http://www.example.com/phppsinfo.php, replacing example.com with your own domain name.
  3. Now you can view all of the information about PHP for your server for that particular directory.

About your issue, since it is fixed, can I close the issue?
Thanks!

Cc: ivordurham ; Mention Subject: Re: [PrestaShop/PrestaShop] PS 1.7.5 database initialization fails with 504 Gateway Timeout error (#12599) Hi @ivordurham , Thanks for your report. To install PrestaShop, we need to set memory_limit to «128M», it is required, you can follow this link . Also, you can follow this link: https://github.com/PrestaShop/php-ps-info phppsinfo file provides an equivalent to the phpinfo() function that reports PrestaShop Requirements information about the PHP/MySQL/Apache environment and offers suggestions for improvement. 1. Upload the file to the server. You should upload your file to the exact directory you want to test. Typically, this will be your httpdocs (/var/www/vhosts/example.com/httpdocs/) directory, although you can upload it to any subdirectory on your server as well. Use FTP to upload the file. 2. Visit the page in your browser. If you uploaded it to your html directory, you should now visit http://www.example.com/phppsinfo.php, replacing example.com with your own domain name. 3. Now you can view all of the information about PHP for your server for that particular directory. About your issue, since it is fixed, can I close the issue? Thanks! — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub , or mute the thread .

khouloudbelguith commented Feb 19, 2019

Thanks for these clarifications.
I tried with nginx, I edited the file /etc/nginx/nginx.conf where I set fastcgi_read_timeout 120;
When I tried to install PS1751 for example, I have «504 Gateway Time-out»

But, if I edit the fastcgi_read_timeout 120; to fastcgi_read_timeout 600; => the shop is successfully installed
@marion what do you think?
Thanks!

Источник

Error 504 Gateway Time-out #19470

Comments

srn87 commented May 30, 2020

I am having problems when I try to run a script that what it does is import products from my provider and it does not finish running, I get a 504 ngnix error on the screen before it ends, the hosting provider tells me it has to do with the design of my web, what I do not explain is that I have uploaded the type of server with them and before I did not have that problem and now that I have better vps, I do not understand anything!

[Sat May 30 02:29:08.664801 2020] [authz_core:error] [pid 18527:tid 140695075485440] [client 66.249.79.190:57802] AH01630: client denied by server configuration: /var/www/vhosts/myweb/web/img/p/1/8/0/3/7 [Sat May 30 02:30:34.534789 2020] [authz_core:error] [pid 17910:tid 140695192983296] [client 66.249.79.190:57816] AH01630: client denied by server configuration: /var/www/vhosts/myweb.es/myweb/img/p/1/6/4/0/0 [Sat May 30 02:35:25.910697 2020] [authz_core:error] [pid 17912:tid 140695083878144] [client 66.249.79.190:57896] AH01630: client denied by server configuration: /var/www/vhosts/myweb/web/img/p/1/6/3/4/8 [Sat May 30 02:38:43.406929 2020] [proxy_fcgi:error] [pid 18527:tid 140695033521920] [client 79.154.179.211:58010] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught —> Smarty: 0():Missing ‘$template’ parameter Smarty: 0():Missing ‘$template’ parameter Smarty: 0():Missing ‘$template’ parameter

PD: i change «myweb» for my real web direction

  • PrestaShop version: 1.7.6.4
  • PHP version: 7.2.31

The text was updated successfully, but these errors were encountered:

Источник

Вообщем есть VPS на котором развернута связка php 5.4 + mysql + nginx.
Используется движок Prestashop 1.6.1.4.
При импорте товаров и категорий из CSV файла, примерно через 30 секунд возникает ошибка «504 Gateway Time-out».
Я так понимаю, что проблема в том, что скрипт перестает выполняться по таймауту.
Куда копать и как правильно решить проблему?

В файлах /etc/php5/cli/php.ini и cat /etc/php5/fpm/php.ini

max_execution_time = 3600

В файле /etc/nginx/nginx.conf

user www-data;
worker_processes 1;
worker_cpu_affinity 0101 1010;
timer_resolution 100ms;
worker_rlimit_nofile 8192;
worker_priority -10;
pid /run/nginx.pid;

events {
    worker_connections 2048;
    # multi_accept on;
}

http {

    ##
    # Basic Settings
    ##



    reset_timedout_connection on;
    client_header_timeout 3600 ;
    client_body_timeout 3600;

    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;
    keepalive_timeout 3600;
    proxy_connect_timeout 3600;
    proxy_send_timeout 3600;
    proxy_read_timeout 3600;
    send_timeout 3600;
    types_hash_max_size 2048;
    # server_tokens off;

    client_max_body_size 100m;

    # server_names_hash_bucket_size 64;
    # server_name_in_redirect off;

    include /etc/nginx/mime.types;
    default_type application/octet-stream;

    ##
    # SSL Settings
    ##

    ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
    ssl_prefer_server_ciphers on;

    ##
    # Logging Settings
    ##

    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;

    ##
    # Gzip Settings
    ##

    gzip on;
    gzip_disable "msie6";

    # gzip_vary on;
    # gzip_proxied any;
    # gzip_comp_level 6;
    # gzip_buffers 16 8k;
    # gzip_http_version 1.1;
    # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;

    ##
    # Virtual Host Configs
    ##

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;
}

Ответить Новая тема Новый опрос 

 504 Gateway Time-out


WebStar
Новичок
Сообщений: 69
Регистрация: 18-02-2011


16-03-2011 17:07

Привет. Импортирую товар а точнее обнолвяю его с CSV файла,всего 3 колонки, и то одни числа, как НУМЕРИК, 7 000 строк, таймаут обработки на сервер 1 минута.

сервак обваливаеться (( че делать

Вне форума

ПМ Отправить эл.сообщение 

Щелкните, и это сообщение будет добавлено в ваш ответ как цитата Цитировать этот ответ


YellowDuck


Профессионал
Сообщений: 1054
Откуда: Ярославль
Регистрация: 29-09-2009


16-03-2011 18:01

делать импорт на локалке, потом закидывать на сервер или купить хостинг удовлетворяющий потребностям

Вне форума

ПМ Отправить эл.сообщение 

Щелкните, и это сообщение будет добавлено в ваш ответ как цитата Цитировать этот ответ


WebStar
Новичок
Сообщений: 69
Регистрация: 18-02-2011


16-03-2011 19:12

на локалке не катит.
может подня на сераке max_execution_time ? бо там 30 по дефолту в конфиге.

Цитата:

proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 100m;
client_body_buffer_size 128k;
client_body_temp_path /usr/local/nginx/client_body_temp;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 16k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
proxy_temp_path /usr/local/nginx/proxy_temp 1 2;
}

все другое вот так вот. буфер номрально

Вне форума

ПМ Отправить эл.сообщение 

Щелкните, и это сообщение будет добавлено в ваш ответ как цитата Цитировать этот ответ


WebStar
Новичок
Сообщений: 69
Регистрация: 18-02-2011


16-03-2011 21:08

ок. Перефразирую кто-то заливал через импорт больше 3 тыс товара ? на хостинге. какие настройик на сревер ?

Вне форума

ПМ Отправить эл.сообщение 

Щелкните, и это сообщение будет добавлено в ваш ответ как цитата Цитировать этот ответ


VOPLI


Новичок
Сообщений: 27
Регистрация: 04-09-2009


17-03-2011 20:13

Знаю, вроде давным давно была такая проблема. Виноват хостинг. Престашоп генерирует большой длинны кукис и из-за этого выскакивает ошибка. Я в тех поддержку писал, они там что-то увеличивали (толи буфер толи мемори лимит) и всё работало.

Вне форума

ПМ Отправить эл.сообщение 

Щелкните, и это сообщение будет добавлено в ваш ответ как цитата Цитировать этот ответ


ors
Профессионал
Сообщений: 1885
Регистрация: 09-11-2009


17-03-2011 20:45

Выполение прерывается по max_execution_time. Вообще скрипт сам устанавливает нужное значение. Просто хостинг это игнорирует

Вне форума

ПМ Отправить эл.сообщение 

Щелкните, и это сообщение будет добавлено в ваш ответ как цитата Цитировать этот ответ


WebStar
Новичок
Сообщений: 69
Регистрация: 18-02-2011


17-03-2011 21:38

у меня есть возможность на хосте зделать настройку
поставли max_execution_time 90 сек .. но не вкладываемся (( может ище что то
наверно придется цсв резать на 3 куска

Вне форума

ПМ Отправить эл.сообщение 

Щелкните, и это сообщение будет добавлено в ваш ответ как цитата Цитировать этот ответ


WebStar
Новичок
Сообщений: 69
Регистрация: 18-02-2011


19-03-2011 21:38

есть ище какие то решения ?

У меня такая структура файла

категория;артикул товара; код товара; название; описание; цена; количество;

средний размер файла 700кб

Беда в том что файл нужно заливать раз в сутки с обновленным прайсом. Потому идеи с локальной загрузкой и выгрузкой через дамп базы в мир не канают.

Кто что может посоветовать ?

П.С. разделять файл импорта тоже не хорошо так как приходиться делить на 7 кусков по 1000 строк.

Может настраивать 1С перегонять парйс в 1С а отдуда модулем ОРСа по синхронизации 1С+Prestashop отдавать данные ? но там полный мрак с натсрйокой ище 1С ((

П.П.С а может ка то в AdminImport.php добавить какой то тайм аут допутсим 1000 строк залетело оноостанвоилось на паро секунд прервало исполнение, потмо снова .. я гдето такое видел в Joomla когда устанавливал большие компоненты

Сообщение было отредактировано WebStar в 19-03-2011 22:47 …

Вне форума

ПМ Отправить эл.сообщение 

Щелкните, и это сообщение будет добавлено в ваш ответ как цитата Цитировать этот ответ


WebStar
Новичок
Сообщений: 69
Регистрация: 18-02-2011


20-03-2011 07:42

пробелма решилась — влупили на серваке max_execution_time 600 и в конфиге ngnix тайаут подняли под потолок.

Вне форума

ПМ Отправить эл.сообщение 

Щелкните, и это сообщение будет добавлено в ваш ответ как цитата Цитировать этот ответ

Ответить Новая тема Новый опрос 

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Http 500 internal server error отсутствует rsa сертификат
  • Http 500 internal server error roblox studio
  • Http 500 internal server error iis
  • Http 500 internal error двач
  • Http 500 internal error dashchan

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии