Why does Magento 2.0.2 freeze on a tier prices import?

import
import-prices
tier-price
price

(William Hudson Copeland) #1

Any advise how to fix import freezes upon clicking the verification button on advanced price import in magento 2.0.2


(Dmitry Fedyuk) #2

“Freezing” usually a sign on a JavaScript or AJAX error. See how to diagnose it: How to diagnose Magento 2 errors


(William Hudson Copeland) #3

Please see the error message Godaddy team is seeing below. Do you know if there are any known issues with the script? It is failing as soon as you hit the verify data button. You don’t even get to the actual import option.

PHP Fatal error: Maximum execution time of 60 seconds exceeded in /home/distdesigns/public_html/vendor/magento/framework/Image/Adapter/Gd2.php on line 362


PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 29556 bytes) in /home/distdesigns/public_html/vendor/magento/framework/Image/Adapter/Gd2.php on line 435

We can increase the PHP memory limit and execution time, however these are already very high limits. If your script is using over 512MB and/or 60 seconds to run, there is likely something wrong with the script. We recommend your or your Magento developer review this to see why its using so much memory and taking so long to run. If you do want us to increase your limits, please reply back with what you would like the memory limit and time out set to. Please understand that the memory limit is per PHP processes, not PHP as a whole, so setting this so high can take down the site if multiple instances of this PHP processes are running and maxing out the memory limit.


(Dmitry Fedyuk) #4

We can increase the PHP memory limit and execution time, however these are already very high limits. If your script is using over 512MB and/or 60 seconds to run, there is likely something wrong with the script.

They are wrong because the prices import can require much more time than 60 seconds, and more RAM than 512 megabytes.

See:


(William Hudson Copeland) #5

I have adjusted the memory and timeout based on your recommendations but still freezes. Are others in the community version having the same issue?


(Dmitry Fedyuk) #6

What exact error message now do you have?


(William Hudson Copeland) #7

JQMIGRATE: Logging is active
http://www.distdesigns.org/ao4bmvcr/admin/import/validate/key/046364bb14aaa…0edd2ce6d0813fe3399cd09a2ffe6b8503554e9fee63432/?form_key=JExsw4NNjjR5lyoS Failed to load resource: the server responded with a status of 503 (Service Unavailable)


(William Hudson Copeland) #8

validation.js:168 POST http://www.distdesigns.org/ao4bmvcr/admin/import/validate/key/046364bb14aaa…0edd2ce6d0813fe3399cd09a2ffe6b8503554e9fee63432/?form_key=JExsw4NNjjR5lyoS 503 (Service Unavailable)$.widget._submit @ validation.js:168(anonymous function) @ jquery-ui-1.9.2.js:432proxy @ jquery.js:556handle @ jquery.validate.js:75(anonymous function) @ jquery.validate.js:95jQuery.event.dispatch @ jquery.js:4624elemData.handle @ jquery.js:4292jQuery.event.trigger @ jquery.js:4533jQuery.event.trigger @ jquery-migrate.js:493(anonymous function) @ jquery.js:5235jQuery.extend.each @ jquery.js:384jQuery.fn.jQuery.each @ jquery.js:137jQuery.fn.extend.trigger @ jquery.js:5234$.widget._submit @ form.js:195(anonymous function) @ jquery-ui-1.9.2.js:432proxy @ jquery.js:556jQuery.event.dispatch @ jquery.js:4624elemData.handle @ jquery.js:4292jQuery.event.trigger @ jquery.js:4533jQuery.event.trigger @ jquery-migrate.js:493(anonymous function) @ jquery.js:5235jQuery.extend.each @ jquery.js:384jQuery.fn.jQuery.each @ jquery.js:137jQuery.fn.extend.trigger @ jquery.js:5234varienImport.postToFrame @ (index):459onclick @ (index):282


(Dmitry Fedyuk) #9

How to diagnose «503 Service Unavailable»?