Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You are already using S3 as your media file storage backend! #60

Open
rudracomputech opened this issue Sep 21, 2018 · 8 comments
Open

Comments

@rudracomputech
Copy link

Hi,
I have followed all installation instructions and after running command php bin/magento s3:storage:export it shows the list of moving files but nothing is uploading to amazon s3 bucket and when I try to again run the command it give me below error
You are already using S3 as your media file storage backend!
Please help

@pranavgaikwad
Copy link

@rudracomputech Consider posting error log. That would help understand the problem.

@n0kit31
Copy link

n0kit31 commented Oct 24, 2018

I think error that @rudracomputech described occurs because s3 storage is enable. Please do following steps and let us know if it helps?

  1. php bin/magento s3:storage:disable
  2. php bin/magento s3:storage:export
  3. php bin/magento s3:storage:enable

If you have correct url in Magento configuration for you media files set, all media should be loaded now from s3.

@n0kit31
Copy link

n0kit31 commented Nov 2, 2018

After week later I don't see point why I cannot export my media files when storage is enabled?
Can anyone explain it to me please?

@23ankit
Copy link

23ankit commented Nov 3, 2018

My catalog product cache All images are not getting uploaded to S3 when i am exporting images to S3.

@n0kit31
Copy link

n0kit31 commented Nov 3, 2018

@23ankit are caches in media/catalog directory?

@23ankit
Copy link

23ankit commented Nov 14, 2018

Yes caches is there in media/catalog directory but when i export images to S3 all the images are not getting exported.

@lracicot
Copy link
Contributor

I had the same error message, and it turns out that if you have the extension enabled in your config.php, there is no way to enable/disable it or to export images.

Config:

media_storage_configuration' => [
  'media_storage' => '2',
  ...
]

@lracicot
Copy link
Contributor

A few suggestions:

  1. Remove the check at https://github.com/thaiphan/magento2-s3/blob/master/Console/Command/StorageExportCommand.php#L111. However, I don't know the implications for that diff, maybe the plugin author could have a better opinion on this.
  2. Create a new command called reexport that exports local files even if the extension is already enabled. This would be a safe fix, but might be futile if solution 1 could work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants