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
Switching to EE not working #162
Comments
Hi Jordan, I looked this over, per your request. Only two things stand out to me, and they may be insignificant: I get the same error about env.php during init.project.sh. I spent some time trying to figure out what the source of the problem is, but I decided that I could disregard it because the script completed and after that error line the status printed was "magento installed successfully" or whatever. The other thing I noticed is that you said "Ran bash init_project.sh from ..\vagrant-magento with PHPStorm closed" which makes me wonder if it was closed at the time but had been used to open the project prior to running init_project.sh. The reason I wondered about that is because of this line from readme.md: ":warning: Do not open it in PhpStorm until Good luck. |
I deliberately did not open PhpStorm or the |
@jordangottlieb-ych thank you for such a detailed description of your issue. RabbitMQ error that you are experiencing is caused by the fact that Magento codebase is still CE, which does not support RabbitMQ (RabbitMQ related CLI options are supported by EE only). When you try to switch to EE on Windows the algorithm is following:
As a workaround you can just copy EE codebase on top of CE codebase and do But it really seems that build-ee.php tool does not work as expected on your instance. |
We are trying to set up local M2 EE dev environments on Windows 10 workstations to support our new manged M2 ECE instance. All commands below were run using Git Bash as Admin.
Install Steps
hostmanager
,vbguest
andhost-shell
pluginscore.autocrlf false
,core.eol LF
anddiff.renamelimit 5000
globalsgit@github.com:paliarush/magento2-vagrant-for-developers.git
intoC:\Users\JordanG\Documents\Source\Magento
..\vagrant-magento\etc\config.yaml.dist
toconfig.yaml
and configured EE repository url to point to M2 ECE dev master git, CE repository url to point to our forked M2 CE repo,composer_prefer_source: 1
and upped memory and cpus..\vagrant-magento\etc\composer\auth.json.dist
toauth.json
and configured GitHub personal access token and Magento public and private access keysvb.gui=true
in Vagrantfile to avoid issues with VirtualBox on Windows 10bash init_project.sh
from..\vagrant-magento
with PHPStorm closedInstall Results
Only one error logged, in cache flushing step:
Can't remove /var/www/magento2ce/app/etc/env.php: Text file busy, skipping file.
M2 CE storefront and admin sites working:
EE directory populated with correct source from M2 ECE AWS dev master Git repo:
C:\Users\JordanG\Documents\Source\Magento\vagrant-magento\magento2ce\magento2ee
So all is well up to this point.
Switching to EE
C:\Users\JordanG\Documents\Source\Magento\vagrant-magento
Unregistered VCS root detected. The directory C:\Users\JordanG\Documents\Source\Magento\vagrant-magento is under Git, but is not registered in the Settings.
bash m-switch-to-ee
with PhpStorm openWARNING: > [Action Required] Wait while Magento2 code is uploaded in PhpStorm and press any key to continue...
Not sure how long to wait... nothing seems to be happening in PhpStorm... wait 10-15 minutes...Front end now shows setup page:
Switching to EE results in error
A quick search reveals RabbitMQ may not be properly installed/configured on the VM?
Per official docs, --amqp-host is:
Switching to EE "without" RabbitMQ results in error
C:\Users\JordanG\Documents\Source\Magento\vagrant-magento\scripts\guest\m-reinstall
bash m-switch-to-ee -f
with PhpStorm openOne error logged:
Front end now displays:
Last-ditch efforts
Tried flushing cache with
bash m-bin-magento cache:flush
but got error:Tried flushing cache with
bash m-clear-cache
- got one error:Seems like it worked because custom module in app/code that was committed to M2 ECE AWS dev master Git repo is installed in the admin site:
But vagrant is still not switched to the EE source cloned from ECE repo. The admin sites show different versions and have all different menu options available:
Tried
recompiling: bash m-bin-magento setup:di:compile
- that fails:Tried re-deploying static content:
bash m-bin-magento setup:static-content:deploy
- works but vagrant is still not in EE 'mode'On VM, apache2 sites-enabled does't point to EE dir... bad sign?
<VirtualHost *:80> DocumentRoot "/var/www/magento2ce" ServerName magento2.vagrant129 <Directory "/var/www/magento2ce"> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> ErrorLog "${APACHE_LOG_DIR}/error.log" CustomLog "${APACHE_LOG_DIR}/access.log" common </VirtualHost>
Next steps?
Clearly there are some RabbitMQ issues when switching to EE, but there also seems to be some other things going wrong under the hood here. Are there any steps here where we're doing something wrong or out of order? Any feedback would be greatly appreciated!!!
Thank you!
The text was updated successfully, but these errors were encountered: