codespace fails to build . builds locally #50251
-
The devcontainer in my repo fails to build. Yet, it build locally on my Windows 10 PC. I find the log files to be overwhelming. I am attempting to get the code space running on an Edge browser. I have attached the log file. What is the best way to debug this? There is an overwhelming amount of text in the log files where I uploaded to this location. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
Yep getting the exact same error as of this morning. Was working last night perfectly fine but logged in today and can no longer build in a codespace:
I checked through your creation.log and found the exact same error code related to docker-compose... something's fishy here Quick edit: just to clarify this works fine when building to a local dev container like @solarslurpi stated as well |
Beta Was this translation helpful? Give feedback.
-
After a bit more searching looks like something going on with the devcontainer.json features Had features disabled on my local devcontainer and it succeeded. Re-added them to the devcontainer like so:
and received this error:
|
Beta Was this translation helpful? Give feedback.
-
Thank you.
…On Thu, Mar 16, 2023 at 10:26 AM Austin Bailey ***@***.***> wrote:
Opened this issue <https://github.com/devcontainers/features/issues/494>
on devcontainer/features to see if we can get a true resolution.
Unfortunately for me I need the features in my dev environment
—
Reply to this email directly, view it on GitHub
<#50251 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABIAGH6PTEADOQZ352DNXITW4NEMTANCNFSM6AAAAAAV5O6YZE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@solarslurpi I think the issue is coming from your
|
Beta Was this translation helpful? Give feedback.
-
For anyone that finds this later, super weird issue - posted what my ultimate fix was here. Must have been a spec or parsing change with the devcontainer.json because I had an environmental variable that was causing the failure when the features were installed. |
Beta Was this translation helpful? Give feedback.
@solarslurpi I think the issue is coming from your
docker-compose
config where it's referencing anenv_file
that doesn't exist in the repo. Can you try removing that line? I suspect that file exists locally which is why it builds fine on your machine, but since it's not checked into the repo, it fails to build on another machine.https://github.com/solarslurpi/mastoplaytime/blob/bfeaa8dfad116325cfc6726ce0931917d6ee1d8d/.devcontainer/docker-compose.yml#L39
docker-compose
is erroring withCouldn't find env file: /var/lib/docker/codespacemount/workspace/mastoplaytime/config/.env