Hardware: Dedicated Server on Online.net YunoHost version: 11.2.10.3 I have access to my server : Access to everything Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no If yes, please explain:
Description of my issue
I had install PRESTASHOP with yunohost apps. And I don’t know HOW, but this apps takes 42s to load ! Here is an example page : Rotor pour pompe Pond Eco Plus E 20.000
I had check with prestashop support, and after 1 week, the reason isn’t prestashop itself, but it seems to be Yunohost. Maybe a redirect error or something ? I don’t know what to check in order to see that.
I just tested at home, with Firefox and Chromium, on Linux, and I can see no problem loading your page.
When you do your tests on other networks, is it with your computer or with other people’s computer ?
If it is always exactly the same time, this is more than strange, and it may me think the problem is in the user’s computer, not serverside.
If it was serverside, the time would not be exactly the same.
We also have ask PrestaShop community to check that, to know if it’s a PRESTA or YUNOHOST issue. Our PrestAshop guy told us that the website was INCREDIBLY SLOW, and this is not a PrestaShop issue.
So, we are 3 to have this problem, and I don’t understand why you haven’t. That’s insane.
Did you try to put something into the basket ? (Try to add)
Once something is in my cart, I can reproduce the problem, 42.87s to load a page.
(Not always the same time, 2nd page is 41.31s)
So, yes, you have a problem.
And debugging it will not be fun
(I have absolutely 0 knowledge about prestashop)
You should try to see in it’s doc if it is possible to debug to have a timeline of what takes time to process, maybe it is stuck somewhere reading a cookie, or requesting a database, or reading a file, or anything
I tried in a new browser, the wait starts once something have been added in the cart.
The cookie do not changes, so I think my browser do not know why it is so long.
The strange thing is that the long part is waiting for the server to aknowledge the request, then the content download is pretty fast.
OH !
I have found this in my logs :
<br />
<b>Warning</b>: ftp_nlist(): Connection timed out in <b>/var/www/prestashop/modules/nkmgls/nkmgls.php</b> on line <b>2307</b><br />
<br />
<b>Warning</b>: ftp_pasv(): Connection timed out in <b>/var/www/prestashop/modules/nkmgls/nkmgls.php</b> on line <b>2309</b><br />
<br />
<b>Warning</b>: ftp_nlist(): Connection timed out in <b>/var/www/prestashop/modules/nkmgls/nkmgls.php</b> on line <b>2310</b><br />
<br />
<b>Warning</b>: ftp_close(): Connection timed out in <b>/var/www/prestashop/modules/nkmgls/nkmgls.php</b> on line <b>2335</b><br />
<br />
<b>Warning</b>: ftp_nlist(): Connection timed out in <b>/var/www/prestashop/modules/nkmgls/nkmgls.php</b> on line <b>2307</b><br />
<br />
<b>Warning</b>: ftp_pasv(): Connection timed out in <b>/var/www/prestashop/modules/nkmgls/nkmgls.php</b> on line <b>2309</b><br />
<br />
<b>Warning</b>: ftp_nlist(): Connection timed out in <b>/var/www/prestashop/modules/nkmgls/nkmgls.php</b> on line <b>2310</b><br />
<br />
<b>Warning</b>: ftp_close(): Connection timed out in <b>/var/www/prestashop/modules/nkmgls/nkmgls.php</b> on line <b>2335</b><br />
<br />
<b>Warning</b>: unlink(/var/www/prestashop/modules/nkmgls/import/tbzipdeltimes_20240320.csv): No such file or directory in <b>/var/www/prestashop/modules/nkmgls/nkmgls.php</b> on line <b>2337</b><br />
{"dropdown":"\n<!-- begin module:leofeature\/views\/templates\/front\/drop_down.tpl -->\n<!-- begin \/var\/www\/prestashop\/modules\/leofeature\/views\/templates\/front\/drop_down.tpl -->\t\t\t<div class=\"leo-dropdown-cart-content clearfix\">\n\t\t\t<div class=\"leo-dropdown-list-item-warpper\">\n\t\t\t\t<ul class=\"leo-dropdown-list-item\"><li style=\"width: 265px; height: 115px\" class=\"leo-dropdown-cart-item clearfix first last\">\t\t\t\t\t\t\n\t\t\t\t\t\t\t<div class=\"leo-cart-item-img\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"label\" href=\"https:\/\/afloredeau.com\/shop\/index.php?id_product=3008&rewrite=chasseur-de-herons-chats-sans-risques&controller=product\" title=\"BIRD&CAT PROTECTOR\"><img class=\"img-fluid\" src=\"https:\/\/afloredeau.com\/shop\/img\/p\/4\/2\/7\/5\/4275-small_default.jpg\" alt=\"BIRD&CAT PROTECTOR\" title=\"BIRD&CAT PROTECTOR\"\/><\/a>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<\/div>\t\t\t\t\t\t\n\t\t\t\t\t\t\t<div class=\"leo-cart-item-info\">\t\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"product-name\"><a class=\"label\" href=\"https:\/\/afloredeau.com\/shop\/index.php?id_product=3008&rewrite=chasseur-de-herons-chats-sans-risques&controller=product\" title=\"BIRD&CAT PROTECTOR\">BIRD&CAT PROTECTOR<\/a><\/div>\n\t\t\t\t\t\t\t\t<div class=\"product-price\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <div class=\"current-price\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"price\">39,99\u00a0\u20ac<\/span>\n\t\t\t\t\t\t\t\t\t <\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"product-quantity\"><span class=\"lablel\">Quantit\u00e9<\/span>: 1<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<a class=\"leo-remove-from-cart\"\t\t\t\t\t\n\t\t\t\t\t\t\t\thref=\"javascript:void(0)\"\t\t\t\t\t\n\t\t\t\t\t\t\t\ttitle=\"Retirer du panier\" \n\t\t\t\t\t\t\t\tdata-link-url=\"https:\/\/afloredeau.com\/shop\/index.php?controller=cart&delete=1&id_product=3008&id_product_attribute=0&token=b86860ce6a1599d9fa65bb3a28b8ac39\"\n\t\t\t\t\t\t\t\tdata-id-product = \"3008\"\n\t\t\t\t\t\t\t\tdata-id-product-attribute = \"0\"\n\t\t\t\t\t\t\t\tdata-id-customization = \"\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<i class=\"material-icons\"><\/i>\n\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"leo-dropdown-overlay\">\n\t\t\t\t\t\t\t\t<div class=\"leo-dropdown-cssload-speeding-wheel\"><\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"leo-dropdown-additional\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/li><\/ul>\n\t\t\t<\/div>\n\t\t\t<div class=\"leo-dropdown-bottom\">\n\t\t\t\t\t\t\t<div class=\"leo-dropdown-total\" data-cart-total=\"1\">\n\t\t\t\t\t<div class=\"leo-dropdown-cart-subtotals\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"products clearfix\">\n\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6 col-xl-6\">\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"label\">Sous-total<\/span>\n\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6 col-xl-6\">\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"value\">39,99\u00a0\u20ac<\/span>\n\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"shipping clearfix\">\n\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6 col-xl-6\">\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"label\">Livraison<\/span>\n\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6 col-xl-6\">\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"value\">gratuit<\/span>\n\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tax clearfix\">\n\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6 col-xl-6\">\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"label\">Taxes incluses<\/span>\n\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6 col-xl-6\">\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"value\">6,66\u00a0\u20ac<\/span>\n\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"leo-dropdown-cart-total clearfix\">\n\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t<div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6 col-xl-6\">\n\t\t\t\t\t\t\t\t<span class=\"label\">Total<\/span>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6 col-xl-6\">\n\t\t\t\t\t\t\t\t<span class=\"value\">39,99\u00a0\u20ac<\/span>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<!-- add Spent X to get free ship in checkout page Leotheme -->\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<!-- end -->\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"leo-cart-dropdown-action clearfix\">\n\t\t\t\t\t<a class=\"cart-dropdow-button cart-dropdow-viewcart btn btn-primary btn-outline\" href=\"\/\/afloredeau.com\/shop\/index.php?controller=cart&action=show\">Voir le panier<\/a>\n\t\t\t\t\t<a class=\"cart-dropdow-button cart-dropdow-checkout btn btn-primary btn-outline\" href=\"https:\/\/afloredeau.com\/shop\/index.php?controller=order\">Check-out<\/a>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\t<!-- end \/var\/www\/prestashop\/modules\/leofeature\/views\/templates\/front\/drop_down.tpl -->\n<!-- end module:leofeature\/views\/templates\/front\/drop_down.tpl -->\n","modal":"","notification":""}
It’s in my javascript log, but it is talking about things missing on your server, and according to the method names, there is a ftp involved, could it be the cause of the delay ?
edit : the last line is REALLY long, and really different of the rest, do not ignore it.