I had installed Tutor install palm release with Tutor local launch and it installed successfully
as well as all plugins like a forum, Carin, and much more all work fine also.
but when I try to install it using dev it shows me errors when it comes from line 30/95.
pip install "tutor[full]==16.0.2"
after this, I just hit tutor dev launch but after some time facing errors.
---> 1f2f762e8aef
Step 30/95 : RUN pip install -r /openedx/edx-platform/requirements/edx/base.txt
---> Running in b0d5203865e8
ERROR: Could not open requirements file: [Errno 2] No such file or directory: '/openedx/edx-platform/requirements/edx/base.txt'
[notice] A new release of pip is available: 23.0.1 -> 23.1.2
[notice] To update, run: pip install --upgrade pip
The command '/bin/sh -c pip install -r /openedx/edx-platform/requirements/edx/base.txt' returned a non-zero code: 1
Error: Command failed with status 1: docker build --tag=openedx-dev:16.0.2 --target=development --build-arg=APP_USER_ID=1000 --cache-from=type=registry,ref=openedx-dev:16.0.2-cache /home/yagnesh/tvm-palm2/env/build/openedx
so is it any issue in for local development installations because it works fine with tutor local launch and facing issues while installing the same release but with tutor dev launch.
This is very strange! Your config looks normal. I don’t know why /openedx/edx-platform/requirements/base.txt would be missing.
My best guess is Docker has cached part of the dev image, and for some reason, the cached version is missing base.txt. I recommend running:
# This make sure that no dev containers are running,
# so that we can clear the dev image cache.
tutor dev stop
# OPTIONAL: Running this will start your local containers,
# which ensures that they will NOT be deleted by pruning
# in the next step. You can skip this if you are OK with having
# to re-build your local images in the future.
tutor local start -d
# This deletes all unused images and cache layers.
docker image prune -af
# Try launching again, now that the image cache is cleared
tutor dev launch
hello @kmccormick ,I following your suggest steps still same issue
tutor dev stop
⚠️ Failed to enable plugin 'mfe': plugin 'mfe' is not installed.
docker compose -f /home/yagnesh/tvm-palm16/env/local/docker-compose.yml -f /home/yagnesh/tvm-palm16/env/dev/docker-compose.yml --project-name tutor_dev stop
after that, I hit docker image prune -af its clear that some unused images.
then again hit tutor dev launch but i facing issue
Step 30/95 : RUN pip install -r /openedx/edx-platform/requirements/edx/base.txt
---> Running in 441cf3878f3f
ERROR: Could not open requirements file: [Errno 2] No such file or directory: '/openedx/edx-platform/requirements/edx/base.txt'
[notice] A new release of pip is available: 23.0.1 -> 23.1.2
[notice] To update, run: pip install --upgrade pip
The command '/bin/sh -c pip install -r /openedx/edx-platform/requirements/edx/base.txt' returned a non-zero code: 1
Error: Command failed with status 1: docker build --tag=openedx-dev:16.0.2 --target=development --build-arg=APP_USER_ID=1000 --cache-from=type=registry,ref=openedx-dev:16.0.2-cache /home/yagnesh/tvm-palm16/env/build/openedx
[v16.0.2@tvm-palm16] yagnesh@DSK-DEL-00001:~/tvm-palm16$
I also check my docker version and composer here is it
Docker Compose version v2.6.1 Docker version 20.10.21
Just gussing here, it might be the case that the BuildKit engine of docker is not enabled by default for. you, to force using with tutor try:
DOCKER_BUILDKIT=1 tutor config save
DOCKER_BUILDKIT=1 tutor images build openedx
If this fixes the issue, either upgrade your docker version or you can force it to be enabled without the env variable check the doc BuildKit | Docker Documentation
@ghassan, thank you for your valuable time and effort. I tried as u suggested.
[v16.0.2@tvm-palm16] yagnesh@DSK-DEL-00001:~/tvm-palm16/env$ DOCKER_BUILDKIT=1 tutor config save
Configuration saved to /home/yagnesh/tvm-palm16/config.yml
Environment generated in /home/yagnesh/tvm-palm16/env
when hit DOCKER_BUILDKIT=1 tutor images build openedx it shows me an error.
Error: Command failed with status 125: docker buildx build --tag=docker.io/overhangio/openedx:16.0.2 --output=type=docker --cache-from=type=registry,ref=docker.io/overhangio/openedx:16.0.2-cache /home/yagnesh/tvm-palm16/env/build/openedx
this is my docker and docker composer version. might still need to upgrade for Lettest.
if anyone has to face this issue related to palm while installing please upgrade your docker and docker composer. Here is my versions and the issue is resolved.
It’s difficult to find the exact root cause without the full output of the docker build command. I strongly suspect that the Docker version is not the culprit. If someone can still reproduce the issue I’d love to have the full log.
To be clear: the minimum required version of Docker has not changed, but it is recommended that users upgrade Docker to the latest stable version. (same as for all software…)