thaiphan / magento2-s3

Use Amazon S3 as the file storage solution for your Magento 2 application
MIT License
142 stars 96 forks source link

Product listing becomes extremly slow after enabling #75

Open SzabKel opened 5 years ago

SzabKel commented 5 years ago

I used a fresh magento 2.3 and installed the addon as stated in the wiki. Everything seemed to work during the installation (I set the base url too) at first, but later I found out none of the images were uploaded. during export. I disabled the extension and set the correct setting for the bucket, than re-enabled s3. Files were uploaded as expected.

The product listing in the admin page became extremely slow, it takes around 15-45 seconds to list a page with 100 records (and only one of the records has a thumbnail set). Before enable, the listing worked quite fast, 1-5sec.

I checked the /var/log/system.log and I get a lot of errors like this when I open Catalog->Product:

[2019-03-25 10:51:41] 
main.CRITICAL: Error executing "GetObject" on "https://....-files.s3.eu-central-1.amazonaws.com/catalog/product/"; 
AWS HTTP error: Client error: `GET https://......s3.eu-central-1.amazonaws.com/catalog/product/` resulted in a `404 Not Found` response:
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message> (truncated...)
 NoSuchKey (client): The specified key does not exist. - <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>catalog/product/</Key><RequestId>9E....0D</RequestId><HostId>d3pq.....E3/YpIok3mNA=</HostId></Error> [] []

Version: 2.3.0 OS: Ubuntu 18.04 Server: nginx

makhnovskiy commented 5 years ago

Getting same issue!