zepgram / magento2-fast-vm

Optimal vagrant developer box for Magento2. Folders synced by nfs/rsync. This box includes Magento developer utilities.
MIT License
110 stars 35 forks source link

Magento composer installer problem: Could not delete #48

Closed Vikwip closed 4 years ago

Vikwip commented 4 years ago

Hello,

I'm currently stuck during the Magento installation process because of the magento-composer-installer plugin. I also did a system installation and then used the following command from the magento devdocs, but I always get the same error:

composer --no-ansi --no-interaction install --no-progress --prefer-dist --optimize-autoloader

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
    Finished: success: 0, skipped: 0, failure: 334, total: 334
Package operations: 460 installs, 0 updates, 0 removals
  - Installing magento/magento-composer-installer (0.1.13): Loading from cache
Plugin installation failed, rolling back
  - Removing magento/magento-composer-installer (0.1.13)

  [RuntimeException]
  Could not delete /home/vagrant/magento/magento2/vendor/magento/magento-composer-installer/src/MagentoHackathon:

I'm using Windows 10 as host machine.

Composer 1.9.2 PHP 7.2 Vagrant 2.2.6 Virtual Box 6.0.16

Do you have any idea how to resolve that error?

Thanks

zepgram commented 4 years ago

Yes it's an issue with NFS. You must fallback to "default" for mount option.

Le ven. 24 janv. 2020 à 16:31, Viktor notifications@github.com a écrit :

Hello,

I'm currently stuck during the Magento installation process because of the magento-composer-installer plugin. I also did a system installation and then used the following command from the magento devdocs https://devdocs.magento.com/cloud/before/before-setup-env-2_clone.html, but I always get the same error:

composer --no-ansi --no-interaction install --no-progress --prefer-dist --optimize-autoloader

Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Finished: success: 0, skipped: 0, failure: 334, total: 334 Package operations: 460 installs, 0 updates, 0 removals

  • Installing magento/magento-composer-installer (0.1.13): Loading from cache Plugin installation failed, rolling back
  • Removing magento/magento-composer-installer (0.1.13)

    [RuntimeException] Could not delete /home/vagrant/magento/magento2/vendor/magento/magento-composer-installer/src/MagentoHackathon:

I'm using Windows 10 as host machine.

Composer 1.9.2 PHP 7.2 Vagrant 2.2.6 Virtual Box 6.0.16

Do you have any idea how to resolve that error?

Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zepgram/magento2-fast-vm/issues/48?email_source=notifications&email_token=AD4BLLSNF2WWUGRJRUAX4RTQ7MCTJA5CNFSM4KLH4HH2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IIRTLSA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD4BLLQW26WCRSQOACVANQLQ7MCTJANCNFSM4KLH4HHQ .

Vikwip commented 4 years ago

Thanks for your response. However mount was actually already set to "default" before launching vagrant.

Otherwise Ive had another error during the pre-installation process:

PS C:\windows\system32> Add-MpPreference -ExclusionProcess winnfsd.exe

Add-MpPreference : Fehler beim Vorgang: 0x800106ba. Vorgang: MpPreference. Ziel: ConfigListExtension. In Zeile:1 Zeichen:1 + Add-MpPreference -ExclusionProcess winnfsd.exe + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (MSFT_MpPreference:root\Microsoft\...FT_MpPreference) [Add-MpPreference], CimException + FullyQualifiedErrorId : HRESULT 0x800106ba,Add-MpPreference

Add-MpPreference : Fehler beim Vorgang: 0x%1!x! In Zeile:1 Zeichen:1 + Add-MpPreference -ExclusionProcess winnfsd.exe + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (MSFT_MpPreference:root\Microsoft\...FT_MpPreference) [Add-MpPreference], CimException + FullyQualifiedErrorId : HRESULT 0x800106ba,Add-MpPreference

Would there be a connection with my current issue?

zepgram commented 4 years ago

Yep, try to follow the beginning of this tutorial : https://onilab.com/blog/install-magento-2-on-localhost-a-windows-10-guide/ It should solve your issue to turn on virtualization.

Le ven. 24 janv. 2020 à 19:09, Viktor notifications@github.com a écrit :

Thanks for your response. However mount was actually already set to "default" before launching vagrant.

Otherwise Ive had another error during the pre-installation process:

PS C:\windows\system32> Add-MpPreference -ExclusionProcess winnfsd.exe

Add-MpPreference : Fehler beim Vorgang: 0x800106ba. Vorgang: MpPreference. Ziel: ConfigListExtension. In Zeile:1 Zeichen:1

  • Add-MpPreference -ExclusionProcess winnfsd.exe
  • CategoryInfo : NotSpecified: (MSFT_MpPreference:root\Microsoft...FT_MpPreference) [Add-MpPreference], CimException
  • FullyQualifiedErrorId : HRESULT 0x800106ba,Add-MpPreference

Add-MpPreference : Fehler beim Vorgang: 0x%1!x! In Zeile:1 Zeichen:1

  • Add-MpPreference -ExclusionProcess winnfsd.exe
  • CategoryInfo : NotSpecified: (MSFT_MpPreference:root\Microsoft...FT_MpPreference) [Add-MpPreference], CimException
  • FullyQualifiedErrorId : HRESULT 0x800106ba,Add-MpPreference

Would there be a connection with my current issue?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/zepgram/magento2-fast-vm/issues/48?email_source=notifications&email_token=AD4BLLTQ7IGIXGVEC5N4A7DQ7MVEXA5CNFSM4KLH4HH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ3TUSA#issuecomment-578239048, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD4BLLUPXNAPPCVF22P3LS3Q7MVEXANCNFSM4KLH4HHQ .

Vikwip commented 4 years ago

Mmmm...Okay thanks for the link, but virtualization was actually already turned on in my BIOS settings.

zepgram commented 4 years ago

Oups, ok then you should try rsync just for install. And then fallback to default after your composer installation.

Le ven. 24 janv. 2020 à 21:25, Viktor notifications@github.com a écrit :

Mmmm...Okay thanks for the link, but virtualization was actually already turned on in my BIOS settings.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/zepgram/magento2-fast-vm/issues/48?email_source=notifications&email_token=AD4BLLSR5N5MLM2OLXQKEX3Q7NFEVA5CNFSM4KLH4HH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ37RUY#issuecomment-578287827, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD4BLLQKBVGBPONX54XA73TQ7NFEVANCNFSM4KLH4HHQ .

Vikwip commented 4 years ago

Hi zepgram,

Thanks, it worked this time! I put rsync instead of default in the mount setting and I didn't get the error. Do I have to use rsync just for composer installation?

zepgram commented 4 years ago

Yep on windows10 sometimes there is an issue with mounted files and specially with composer install. Once it's done and rsync back has been correctly completed you can fallback to default mount, it should work correctly.

Vikwip commented 4 years ago

Okay thank you again for your explanations. Let me ask you one more question :) Should I install WinNFSd software on my computer, in order to avoid the winnfsd.exe error?

zepgram commented 4 years ago

If OS is correctly detected, the plugin "winnfsd" is supposed to be installed: https://github.com/zepgram/magento2-fast-vm/blob/master/Vagrantfile#L26 Could you run vagrant plugin install vagrant-winnfsd and tell me the result ? If it's already installed then you should try to install the software directly.

Vikwip commented 4 years ago

I guess that the plugin wasn't yet installed on my machine:

> cd .\magento2-fast-vm\ > vagrant plugin install vagrant-winnfsd Installing the 'vagrant-winnfsd' plugin. This can take a few minutes... Installed the plugin 'vagrant-winnfsd (1.4.0)'!

zepgram commented 4 years ago

It should work now :)

Le dim. 26 janv. 2020 à 20:20, Viktor notifications@github.com a écrit :

I guess that the plugin wasn't yet installed on my machine:

cd .\magento2-fast-vm\ vagrant plugin install vagrant-winnfsd Installing the 'vagrant-winnfsd' plugin. This can take a few minutes... Installed the plugin 'vagrant-winnfsd (1.4.0)'!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/zepgram/magento2-fast-vm/issues/48?email_source=notifications&email_token=AD4BLLQTZ3Q7GAPMOR2DQ5LQ7XPBDA5CNFSM4KLH4HH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ53TGY#issuecomment-578533787, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD4BLLX2ZVO7243RHNDCRQ3Q7XPBDANCNFSM4KLH4HHQ .

Vikwip commented 4 years ago

Hi, Mmmm....I still got the same error while running the Add-MpPreference command.

zepgram commented 4 years ago

Well the error code "0x800106ba" indicates an issue with windows defender. According to Google, this error is prompted when windows defender could not be started.

Do you have windows defender turned on ?

Le lun. 27 janv. 2020 à 08:42, Viktor notifications@github.com a écrit :

Hi, Mmmm....I still got the same error while running the Add-MpPreference command.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/zepgram/magento2-fast-vm/issues/48?email_source=notifications&email_token=AD4BLLXC6QEUCOOVBAIVPTTQ72F6ZA5CNFSM4KLH4HH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ6SIKY#issuecomment-578626603, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD4BLLUTTQR3CM4AMIEMVB3Q72F6ZANCNFSM4KLH4HHQ .

Vikwip commented 4 years ago

Yes, windows defender is turned on and seems to nomally work.

Vikwip commented 4 years ago

I also work on my work computer, (I've admin access on it). Maybe some settings are still restricted on it.

Vikwip commented 4 years ago

Hello zepgram, Is this command Add-MpPreference -ExclusionProcess winnfsd.exe really necessary anyway? I don't think it's really blocking to continue the installation process.

zepgram commented 4 years ago

Hi Vikwip, it's necessary if you have NFS mount issues with Windows, otherwise you can skip it.

Vikwip commented 4 years ago

Hi zepgram, Okay, thanks for your explanations again. I use for the moment rsync to mount my machine, in order to avoid problems with composer. I can close the issue.