Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Ventior's avatar

Laravel Sail installation fails

After failing utterly at creating my own container for my laravel project (Permanently got "No such file or directory" or "getaddrinfo failed" errors and got tired). I've tried to resort to laravel sail for the setup.

I am now getting the following:

<3>WSL (51) ERROR: CreateProcessParseCommon:711: Failed to translate C:\Users\Name\Desktop\Laravel\example-app
<3>WSL (51) ERROR: CreateProcessParseCommon:757: getpwuid(0) failed 2
<3>WSL (51) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
<3>WSL (51) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files (x86)\Common Files\Oracle\Java\javapath
<3>WSL (51) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\system32...

Does anyone know any potential fix for this or an alternative fool-proof approach to set up my own container without using sail? At this point I probably wasted a whole day on fixing this and I'm tired boss...

0 likes
6 replies
MohamedTammam's avatar

Fixing for sail:

First delete the container sail down -v Then build it without cache sail build --no-cache The sail up -d and everything should be fine.

Ventior's avatar

@MohamedTammam That's the problem. Even that doesn't work. There seems to be a problem with WSL or the Sail Installation itself. Even in a blank project Sail doesn't work. Here is the error when trying sail down -v

<3>WSL (54) ERROR: CreateProcessParseCommon:711: Failed to translate C:\Users\Name\Desktop\Laravel\blog_new
<3>WSL (54) ERROR: CreateProcessParseCommon:757: getpwuid(0) failed 2
<3>WSL (54) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
<3>WSL (54) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files (x86)\Common Files\Oracle\Java\javapath
<3>WSL (54) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\system32...
MohamedTammam's avatar

@Ventior Delete the volume using docker application. And then run composer using

docker run --rm \
    -u "$(id -u):$(id -g)" \
    -v $(pwd):/opt \
    -w /opt \
    laravelsail/php82-composer:latest \
    composer install --ignore-platform-reqs

And then start from sail build --no-cache

Ventior's avatar
Ventior
OP
Best Answer
Level 1

It seems something was wrong with my installation. Sadly I haven't figured out what was the problem exactly. But freshly installing Docker and WSL2 alongside creating a new project fixed the problems for me.

Please or to participate in this conversation.