Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while building docker images in a first time setup. #32965

Closed
mehedikhan72 opened this issue Aug 9, 2023 · 5 comments
Closed

Error while building docker images in a first time setup. #32965

mehedikhan72 opened this issue Aug 9, 2023 · 5 comments

Comments

@mehedikhan72
Copy link

mehedikhan72 commented Aug 9, 2023

The issue and related discussions are here

@kdmccormick you should give this a look.

@feanil
Copy link
Contributor

feanil commented Aug 9, 2023

@mehedikhan72 I think linking to the discussion is good but can you please provide the full context and steps to re-produce the issue in the ticket here. We should summarize the info rather than require everyone to read the full discussion.

@mehedikhan72
Copy link
Author

mehedikhan72 commented Aug 10, 2023

Sure thing @feanil!

The following errors occur when building docker images in a first time setup

ERROR: failed to solve: process "/bin/sh -c npm clean-install --no-audit --registry=$NPM_REGISTRY" did not complete successfully: exit code: 127
Error: Command failed with status 1: docker buildx build --tag=openedx-dev:16.0.3 --output=type=docker --target=development --build-arg=APP_USER_ID=1000 --cache-from=type=registry,ref=openedx-dev:16.0.3-cache --build-context=edx-platform=/home/teflon/Open-Source/openEdx/edx-platform /home/teflon/.local/share/tutor/env/build/openedx

This error seems to be caused by this line in package.json.

How to reproduce this:

  • Stop any existing running docker containers for openEdx
  • Pull the current master branch
  • run tutor config save
  • rebuild the images with tutor images build openedx-dev

You should see the build error in a while. If you can't, you can explicitly follow this first time installation

As mentioned above, for more details about the error, visit the discussion

@kdmccormick
Copy link
Member

@mehedikhan72 What is the output of tutor --version in your environment?

@mehedikhan72
Copy link
Author

@kdmccormick it's tutor, version 16.0.3

@kdmccormick
Copy link
Member

@mehedikhan72 Each stable Tutor release is meant to work with the corresponding Open edX release. For Tutor 16.x.x, that's Olive. These stable Tutor releases not designed to respond to breaking changes on Open edX master.

If you want to run the master branch of Open edX repos, you need to use Tutor Nightly instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants