Closed ksz2013 closed 8 years ago
Hello,
I tried to update through the setup wizard and got the exact same problem, I then tried to rollback and it got stuck... (but that's an other matter)
Then I tried using composer in bash, so here is what I did: I changed the composer.json in the root directory of Magento 2 and modified the line:
"magento/product-community-edition": "2.0.0"
to
"magento/product-community-edition": "2.0.1",
I ran composer update. It downloaded all the packages until it got to magento2-base where I got the error mentioned above. Then I went and created an empty .gitignore file and ran composer update again. here are the errors that followed:
[ErrorException]
Source /var/www/magento2/vendor/magento/magento2-base/dev/tests/integration/.gitignore does not exist
[ErrorException]
Source /var/www/magento2/vendor/magento/magento2-base/dev/tests/integration/tmp does not exist
[ErrorException]
Source /var/www/magento2/vendor/magento/magento2-base/dev/tests/functional/.gitignore does not exist
[ErrorException]
Source /var/www/magento2/vendor/magento/magento2-base/dev/tests/js/JsTestDriver/.gitignore does not exist
[ErrorException]
Source /var/www/magento2/vendor/magento/magento2-base/dev/tests/api-functional/.gitignore does not exist
[ErrorException]
Source /var/www/magento2/vendor/magento/magento2-base/dev/tests/unit/tmp does not exist
[ErrorException]
Source /var/www/magento2/vendor/magento/magento2-base/dev/tests/unit/.gitignore does not exist
[ErrorException]
Source /var/www/magento2/vendor/magento/magento2-base/dev/tests/static/.gitignore does not exist
[ErrorException]
Source /var/www/magento2/vendor/magento/magento2-base/app/design/frontend/Magento does not exist
[ErrorException]
Source /var/www/magento2/vendor/magento/magento2-base/app/design/adminhtml/Magento does not exist
After creating the missing files and directories it finally finished the update:
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Removing magento/magento2-base (2.0.0)
- Installing magento/magento2-base (2.0.1)
Downloading: 100%
Writing lock file
Generating autoload files
Finally I ran the following commands:
php ./bin/magento cache:clean
php ./bin/magento setup:upgrade
Apparently, That did the trick.
Not sure what the problem was :/ hope this helps
Regards
Thanks for feedback,
Basically you had to manually create all those .gitignore files. I can try to do that as well but wouldn't do it as they are in the vendor, but my question is if this would be needed to be done before each upgrade, or something was just messed up on my installation.
Thanks,
@fperrin87 where did you create the empty .gitignore? at /var/www/magento2/vendor/magento/magento2-base/dev/tests/integration/.gitignore ?
Yes, and all the other places I mentioned in my reply on the post. Some were just directories missing
Exact same problem here. Why is the installation asking for .gitignore files on a non git installation?
Just tried it and it didn't ask for gitignore files, composer update ran flawlessly after changing "magento/product-community-edition" to 2.0.1 so it's not happening all the time.
@jahvi Good to know, go figure why it happens on some installs and not other...
@miguelbalparda git or non git installation I don't see why the update would need the .gitignore files to begin with... what's stranger are the last two errors asking for frontend/Magento and adminhtml/Magento directories
We have created ticket MAGETWO-48256 to investigate.
Hi @ksz2013, what kind of OS do you have? Can you please list files from directories: dev/tests/integration/ and vendor/magento/magento2-base/dev/tests/integration/ ?
If you have linux command can be: $ ls -la vendor/magento/magento2-base/dev/tests/integration/ $ ls -la dev/tests/integration/
Hi @ksz2013, @fperrin87 how did you install 2.0.0? It is composer based or ZIP archive?
Just to add a little bit more of information. First I've got a 2.0.0 installed using Composer. The upgrade fails. The console says that it was a problem with package "magento/product-community-edition": "2.0.1". Then I've made a fresh install of 2.0.0 from zip. After that I've tried to update to 2.0.1 with Web Setup Manager and I've got the same error. Until now I haven't been able to perform a complete upgrade.
@vancoz I've installed Magento from the archive: Magento-CE-2.0.0+Samples.tar.gz I had run the composer update successfully before though
Had an even more fun thing happen when I tried to upgrade - got the same problem as in the original issue, but when i went to go rollback, bin/magento
had been deleted, and so I am a little stuck. Good times :-/
Edit: This may have been an issue with the server I am on, and not necessarily Magento. I fixed things by running composer manually
Hi @barbanet @fperrin87 the issue is localized and fixed, please follow this instructions http://devdocs.magento.com/guides/v2.0/release-notes/tech_bull_201-upgrade.html and let us know in case of issues.
@SharpenedSpoon unfortunately this is Magento issue, sorry about that. Looks like you have CLI access, so please follow this instruction http://devdocs.magento.com/guides/v2.0/release-notes/tech_bull_201-upgrade.html#resolution2
Thank you.
@vancoz Thank you! They update went just fine using both Composer and the Setup Wizard. :)
Hi,
I have the following error when trying to uprgade:
The backups were created properly but on the final Upgrade step I get this message. Here is the full log from the upgrade. Can you give me a hint or help please, Is there another way to try the upgrade?
Thanks in advance,