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

setup:install fails with empty database #1347

Closed
kassner opened this issue Jun 8, 2015 · 7 comments
Closed

setup:install fails with empty database #1347

kassner opened this issue Jun 8, 2015 · 7 comments
Labels
bug report Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Progress: needs update

Comments

@kassner
Copy link
Contributor

kassner commented Jun 8, 2015

Hi,

The command bin/magento setup:install fails when running integration tests directly with phpunit -c dev/tests/integration:

PHP Fatal error:  Cannot instantiate interface Magento\Framework\Config\CacheInterface in /var/www/lib/internal/Magento/Framework/ObjectManager/Factory/Dynamic/Developer.php on line 75

This should work running directly from PHPUnit instead of bin/magento dev:tests:run integration? Because the latter does not allow to specify which tests I want to run.

I'm using 0.74.0-beta12 and the dev:tests:run is working as expected, but running from PHPUnit works only after I ran the entire suite at least once.

Thanks!

@kassner kassner changed the title setup:uninstall fails with empty database setup:install fails with empty database Jun 8, 2015
@mazhalai
Copy link
Contributor

mazhalai commented Jun 8, 2015

@kassner We are unable to reproduce this problem. Can you tell us steps to reproduce it? Can you try again after deleting the dev/tests/integration/tmp folder.

@kassner
Copy link
Contributor Author

kassner commented Jun 8, 2015

@mazhalai can you try using this Dockerfile?

After build, just cd to /var/www/magento2-0.74.0-beta12 and run vendor/bin/phpunit -c dev/tests/integration/

@mazhalai
Copy link
Contributor

mazhalai commented Jun 8, 2015

@kassner
Copy link
Contributor Author

kassner commented Jun 8, 2015

@mazhalai

This file is used only for build the Docker image. I've added a readme with steps to reproduce.

@mazhalai
Copy link
Contributor

mazhalai commented Jun 9, 2015

Thank you @kassner. We have created ticket MAGETWO-38482 to fix this issue.

@vpelipenko vpelipenko added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Jun 10, 2015
magento-team pushed a commit that referenced this issue Jun 19, 2015
vancoz pushed a commit that referenced this issue Jun 19, 2015
@vpelipenko
Copy link
Contributor

@kassner, this issue is fixed and available in 0.74.0-beta14. Please, confirm, that it works for you.

@kassner
Copy link
Contributor Author

kassner commented Jun 23, 2015

@vpelipenko looks good now, thank you!

@kassner kassner closed this as completed Jun 23, 2015
VitaliyBoyko pushed a commit to VitaliyBoyko/magento2 that referenced this issue Jun 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Progress: needs update
Projects
None yet
Development

No branches or pull requests

3 participants