compose-dev-env icon indicating copy to clipboard operation
compose-dev-env copied to clipboard

Exit status 17: backend: no such file or directory

Open nileshtrivedi opened this issue 4 years ago • 7 comments

While trying to load this commit as a Dev Environment with Docker Desktop 4.2.0 (70708) on Mac OS 11.6, I get this non-intermittent failure:

Detecting main repo language...
Detected 'Go' as the main repository language.
could not find /var/folders/1f/wfpcf_k14gx_kx8sxsw3473m0000gn/T/volume-compose-dev-env-charming_wright/proxy/var/folders/1f/wfpcf_k14gx_kx8sxsw3473m0000gn/T/volume-compose-dev-env-charming_wright/proxy: stat /var/folders/1f/wfpcf_k14gx_kx8sxsw3473m0000gn/T/volume-compose-dev-env-charming_wright/proxy/var/folders/1f/wfpcf_k14gx_kx8sxsw3473m0000gn/T/volume-compose-dev-env-charming_wright/proxy: no such file or directory
exit status 17

This is reproducible even with clicking the link under "Try running a sample" on the dashboard: image

Although, this time it complained about a different folder missing:

Detected 'Go' as the main repository language.
could not find /var/folders/1f/wfpcf_k14gx_kx8sxsw3473m0000gn/T/volume-compose-dev-env-pensive_wozniak/backend/var/folders/1f/wfpcf_k14gx_kx8sxsw3473m0000gn/T/volume-compose-dev-env-pensive_wozniak/backend: stat /var/folders/1f/wfpcf_k14gx_kx8sxsw3473m0000gn/T/volume-compose-dev-env-pensive_wozniak/backend/var/folders/1f/wfpcf_k14gx_kx8sxsw3473m0000gn/T/volume-compose-dev-env-pensive_wozniak/backend: no such file or directory
exit status 17

nileshtrivedi avatar Nov 15 '21 09:11 nileshtrivedi

Hello @nileshtrivedi

Compose v1 and v2 behave differently , I'll try to figure out what should be the right behaviour and propose a PR to fix that. By the way the issue isn't in this sample, and you can fix this, for the moment, by turning off the use of Compose V2 in Docker Desktop

compose-v2

glours avatar Nov 15 '21 10:11 glours

A fix has been merged this morning, the sample should run fine with Compose V2 in the next release of Docker Desktop (maybe 4.3.0)

glours avatar Nov 16 '21 10:11 glours

Still see the same issue with Docker Desktop v4.3.0(71786) and Docker Compose v2.2.1. Tested both "Use Docker Compose V2" checked and unchecked. Same error message:

Preparing to clone inside a volume
Installing credential helpers... done
Cloning into '/code'...
remote: Enumerating objects: 63, done.
remote: Counting objects: 100% (63/63), done.remote: Counting objects:  47% (30/63)remote: Counting objects:  17% (11/63)remote: Counting objects:  11% (7/63)
remote: Compressing objects: 100% (49/49), done.remote: Compressing objects:  83% (41/49)
remote: Total 63 (delta 19), reused 40 (delta 10), pack-reused 0
Receiving objects: 100% (63/63), 15.62 KiB | 533.00 KiB/s, done.Receiving objects:  87% (55/63)Receiving objects:  50% (32/63)Receiving objects:  33% (21/63)
Resolving deltas: 100% (19/19), done.
Detecting main repo language...
Detected 'Go' as the main repository language.
Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /var/folders/g9/96m0c6rx2297y5f13b8kbg9m009nff/T/volume-compose-dev-env-peaceful_chatelet

ranmocy avatar Dec 10 '21 23:12 ranmocy

Still getting this error on Ubuntu 22.04:

Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /tmp/volume-compose-dev-env-clever_ishizaka

Screenshot_20220517_175336

The Enable Docker Compose V1/V2 compatibility mode option is enabled:

Screenshot_20220517_180234-1

Docker Desktop version is 4.8.1 (78998):

Screenshot_20220517_181049

GoshaFighten avatar May 17 '22 15:05 GoshaFighten

I have the exact same issue

didiercapozzi avatar May 25 '22 07:05 didiercapozzi

It worked as expected for me using latest Docker Desktop (v4.10.1).

jrhorn424 avatar Jul 19 '22 21:07 jrhorn424

Add "/tmp" folder to Settings/Resources/File sharing, if you meet problem like me: "Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /tmp/volume-compose-dev-env-romantic_brown"

zzhouj avatar Aug 16 '22 06:08 zzhouj