ddev: Composer TYPO3 commands error, when mutagen enabled

Is there an existing issue for this?

  • I have searched the existing issues

Run a Diagnostic and Paste Link Here

https://gist.github.com/lukasdoerr/be134a6c3b76eaa78ccb2ab98bdedc3d I have also tried to fix it with this issue: https://github.com/drud/ddev/issues/3384

  • System Info (Because i use WSL-2)

OS Name: Microsoft Windows 10 Pro OS Version: 10.0.19044 N/A Build 19044 OS Manufacturer: Microsoft Corporation OS Configuration: Standalone Workstation OS Build Type: Multiprocessor Free Registered Owner: Lukas Registered Organization: Original Install Date: 27/08/2022, 00:39:51 System Boot Time: 29/08/2022, 12:48:03 System Manufacturer: To Be Filled By O.E.M. System Model: To Be Filled By O.E.M. System Type: x64-based PC Processor(s): 1 Processor(s) Installed. [01]: AMD64 Family 23 Model 113 Stepping 0 AuthenticAMD ~3600 Mhz System Locale: en-gb;English (United Kingdom) Input Locale: de;German (Germany) Time Zone: (UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna Total Physical Memory: 16.310 MB

Current Behavior

When i want to update/install/dump-autoload via ddev composer command, every command failes due to missing permissions in typo3cms command.

So i want to dump the autoload from my ext. in TYPO3. i run: ddev composer dump-autoload i get this back: `lukas@DESKTOP-NKGIEV8:/mnt/d/DDEV/typo3test$ ddev composer dump-autoload Generating autoload files

typo3cms install:fixfolderstructure sh: 1: typo3cms: Permission denied Script typo3cms install:fixfolderstructure handling the typo3-cms-scripts event returned with error code 126 Script @typo3-cms-scripts was called via post-autoload-dump composer [dump-autoload] failed, composer command failed: exit status 126. stderr=`

Also caching is very bad rn, i can delete the cache via TYPO3, disable caching… but when i want to change values in my self-written extension, the values are still cached. Only if i stop ddev or restart it (Without mutagen) it flushes the cache and shows the new value.

I have to disable mutagen and restart ddev to be able to use my composer commands:

ddev config --mutagen-enabled=false You are reconfiguring the project at /mnt/d/DDEV/typo3test. The existing configuration will be updated and replaced. Generating AdditionalConfiguration.php file for database connection. Configuration complete. You may now run 'ddev start'. lukas@DESKTOP-NKGIEV8:/mnt/d/DDEV/typo3test$ ddev restart

But the problem then is, that the page and TYPO3 loads so slow, i can get a coffee in that time.

Expected Behavior

I should be able to install/update/flush extensions with mutagen enabled. And the cache should be flushed, when resetting cache via TYPO3 backend + ddev composer dump-autoload

Steps To Reproduce

Using Windows Docker WSL-2

  1. Create a DDEV TYPO3 v11(main) image
  2. Install it via ddev composer
  3. Enable mutagen
  4. Try to command: ddev composer install whatever:extension or ddev composer dump-autoload

Anything else?

Keep in mind, that it works flawless when mutagen is disabled. I have also tried it directly on linux (Ubuntu Server 22.04 LTS) but it is not happening there.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

Let’s keep it open. I think the official DDEV TYPO3 installation instructions on typo3.com don’t work either with mutagen, but I can’t find them right now.