Skip to content

Upgrade to 2.0.4 with 1100 products loses graphic files #3964

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

Closed
joebusby opened this issue Apr 1, 2016 · 8 comments
Closed

Upgrade to 2.0.4 with 1100 products loses graphic files #3964

joebusby opened this issue Apr 1, 2016 · 8 comments

Comments

@joebusby
Copy link

joebusby commented Apr 1, 2016

Steps to reproduce

Add 1100 configurable products with .png product pictures in Magento 2.0.2 and the upgrade to 2.0.3 worked fine, but the upgrade to 2.0.4 does not.

Expected result

Graphics should show up for products

Actual result

No graphics appear on the new site, missing in both the frontend and backend.

All graphics that were in ./pub/media/catalog/product are now in ./pub/media/tmp/catalog/product and all of the sub-directories of ./pub/media/catalog/product are now in ./pub/media/tmp/catalog/product

I tried upgrading with the cache cleared and disabled to no avail. Any troubleshooting ideas would be appreciated. I will attempt to move the files to the old (before upgrade) structure and see if that helps.

Magento 2 on OpenVZ with multiple cores
Debian 8
PHP Version 5.6.17-0+deb8u1

@mazhalai
Copy link
Contributor

mazhalai commented Apr 1, 2016

@joebusby Have you checked file permissions of pub/media folder?

@joebusby
Copy link
Author

joebusby commented Apr 1, 2016

Yes, permissions are correct before and after the upgrade. (I will double check). I tried both firefox and chrome also

@joebusby
Copy link
Author

joebusby commented Apr 2, 2016

I have tried several times with correct permissions, and clearing the browser and magento caches. No good. It turns out I have 2100 products. I will see if things work after removing a lot of products and post again.

@gagaxj
Copy link

gagaxj commented Apr 2, 2016

I have the same issue with only 5 products.

@joebusby
Copy link
Author

joebusby commented Apr 4, 2016

Reducing the product number did not seem to help.

Upon closer inspection, only the product images I have added end up in /pub/media/tmp/catalog/product all the "sample data" products end up in /pub/media/catalog/product despite that I removed the sample products a while back. (maybe this is normal) Removing the product appears to not remove the images associated.

Should we be able to upgrade from 2.0.2 to 2.0.4 directly?

Something may have changed with the upgrade process. I restored an old backup of 2.0.2 and it failed to upgrade to 2.0.3 despite it working the first time I attempted it when 2.0.3 was first released

@robfico
Copy link
Contributor

robfico commented Apr 4, 2016

We saw the same issue with an upgrade from 2.0.2 to 2.0.3. Original 2.0 install was with sample data. Sample products and images were originally deleted. After upgrading, all product images were missing.

@joebusby
Copy link
Author

joebusby commented Apr 5, 2016

#robfico that's the problem I have. I just upgraded anyway, and will re-attach the images on 2100 products one by one since generating > 150 configured products with images does not work. See you next week. (grin).

@joebusby joebusby closed this as completed Apr 5, 2016
@dmitrii-fediuk
Copy link

#4054, #3951

magento-engcom-team pushed a commit that referenced this issue Apr 1, 2019
- Added test to check dependencies between modules in Declarative Schema
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

5 participants