Issue in tutor palm release with tuotr dev launch while installing

hello everyone I hope u are doing well.

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.

thanks :blush:

1 Like

@Yagnesh Could you show the contents of your config.yml file, located under tutor config printroot?

hello @kmccormick here is my config.yml file

CMS_HOST: studio.local.overhang.io
CMS_OAUTH2_SECRET: ElHuDVYAnlVhqyvaW20phddz
CONTACT_EMAIL: contact@local.overhang.io
ENABLE_HTTPS: false
ID: L9FMPLVCMPmHZSyDBWu9a7YW
JWT_RSA_PRIVATE_KEY: '-----BEGIN RSA PRIVATE KEY-----

  MIIEowIBAAKCAQEAo79p0acfjp0y3AiMeDu6AGLhq8r6g3fulq4O/KGojEfBgi2l

  K3GcQu1HgHq18yD5ENNRr/IgEg/iz5ft8LR4EahMBUbDAj8SljD1Y3au8ghtT441

  rtxgaDtuU/a5D0aicKpb9m4friLQY1qVd6aNJSroV237OCYL2VpetSvaGoxAKycv

  At+HyzfsvITzzZkhyhJ8kUOIiKszRf557h+N+fDTN456xv28XHZJpgzFMiOLQQFW

  ICl57Yre0B7QXmmVYFp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0VS+UEfoutdYYeI0J2todUCyrEAlJZrrlmm

  LczagfMfSM5bfuUYHX/3sOLg2ihHQETejoYgttOnTNWOJafFEs26SlgB9YkyemOv

  S/SB9QKBgCTn06z4W5EaW/wrzOTC/ZWR6+gHCrFgJkE0Y0iID6+cZdk7rB0Bz2us

  ojRX6AyWyg5mszZ4G+m1uNVjGHDWUBbTHbN87dTOZS5oLIJ5TQ4sKnw2oktrvQp7

  btSf0zb6o4c9EtKqRxlUENVl7kZ23Vu41IKbKVZwAAx8IIT0NzVI

  -----END RSA PRIVATE KEY-----'
LANGUAGE_CODE: en
LMS_HOST: local.overhang.io
MYSQL_ROOT_PASSWORD: mRk9QVyo
OPENEDX_MYSQL_PASSWORD: 98IkImjP
OPENEDX_SECRET_KEY: oDMWYZP9yGfOXAXcicrKjekP
PLATFORM_NAME: My Open edX
PLUGINS:
- mfe
PLUGIN_INDEXES:
- https://overhang.io/tutor/main

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
1 Like

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

I have exactly the same issue when I run the command tutor images build openedx to install the indigo theme.

Just like @M_M here:

1 Like

maybe this file comes with the edx-platform repository when it gets cloned.

Neither there is an error in the cloned step and later in the same Dockerfile it is not able to get Base.txt

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

Hope it fixes it for you.

2 Likes

@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.

@Yagnesh according to the official docs, your Docker version is OK, but it is possible they are wrong. Try upgrading Docker and seeing if that helps.

Contrary to the docs, Docker Compose doesn’t need to be separately installed, since Tutor now uses the builtin docker compose subcommand.

For what it is worth, I am running Docker 24.0.3. @M_M , what version of Docker do you have installed?

1 Like

@kmccormick Yes, I will upgrade my docker version and check.

1 Like

I had exactly the same version of docker as @Yagnesh, under Debian Bookworm then I updated to the latest version following this doc: Install Docker Engine on Debian | Docker Documentation.

Now it works fine. On my side it’s solved. Thank you @kmccormick!

Glad we could help. Thank you everyone who reported the problem! @Yagnesh , I assume this will work for you, but let me know if it doesn’t.

I’ve asked Régis on this PR which Docker version we should update the docs to recommend.

1 Like

@kmccormick, thanks for your support and help.

It is resolved after upgrading the docker.Yes, we need to change the documents as well.

1 Like

hello everyone from the community.

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.

Docker version 24.0.4

Docker Compose version v2.6.1

1 Like

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.

I have eventually back to the old version. Will share info when come back to this again.

For the record, there was a bug in the Tutor templates that affected users in non-BuildKit mode. This bug will be addressed by this PR: fix: improve support of non-buildkit Docker build by regisb · Pull Request #880 · overhangio/tutor · GitHub

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…)

1 Like