Hello, when I am trying to make tutor images build openedx it go to 62/65 then crashed …
tutor images build openedx
Building image docker.io/overhangio/openedx:17.0.0-indigo
docker buildx build --tag=docker.io/overhangio/openedx:17.0.0-indigo --output=type=docker --cache-from=type=registry,ref=docker.io/overhangio/openedx:17.0.0-indigo-cachtrator/.local/share/tutor/env/build/openedx
[+] Building 60.0s (62/65)
=> [internal] load build definition from Dockerfile
=> => transferring dockerfile: 11.68kB
=> [internal] load .dockerignore
=> => transferring context: 2B
=> resolve image config for docker.io/docker/dockerfile:1
=> CACHED docker-image://docker.io/docker/dockerfile:1@sha256:ac85f380a63b13dfcefa89046420e1781752bab202122f8f50032edf31be0021
=> [internal] load metadata for docker.io/powerman/dockerize:0.19.0
=> [internal] load metadata for docker.io/library/ubuntu:20.04
=> importing cache manifest from docker.io/overhangio/openedx:17.0.0-indigo-cache
=> [internal] load build context
=> => transferring context: 6.03kB
=> FROM docker.io/powerman/dockerize:0.19.0@sha256:a34158d699e065609fc845e7cdc1e070f185afdbca317fe4931aaea04818f8bf
=> [minimal 1/2] FROM docker.io/library/ubuntu:20.04@sha256:bb1c41682308d7040f74d103022816d41c50d7b0c89e9d706a74b4e548636e54
=> git://github.com/openedx/openedx-i18n.git#release/quince
=> CACHED [minimal 2/2] RUN --mount=type=cache,target=/var/cache/apt,sharing=locked --mount=type=cache,target=/var/lib/apt,sharing=locked apt update && apt
=> CACHED [production 1/30] RUN --mount=type=cache,target=/var/cache/apt,sharing=locked --mount=type=cache,target=/var/lib/apt,sharing=locked apt update &
=> CACHED [production 2/30] RUN if [ "1000" = 0 ]; then echo "app user may not be root" && false; fi
=> CACHED [production 3/30] RUN useradd --no-log-init --home-dir /openedx --create-home --shell /bin/bash --uid 1000 app
=> CACHED [production 4/30] COPY --link --from=docker.io/powerman/dockerize:0.19.0 /usr/local/bin/dockerize /usr/local/bin/dockerize
=> CACHED [code 1/3] RUN mkdir -p /openedx/edx-platform && git clone https://github.com/openedx/edx-platform.git --branch open-release/quince.1 --depth 1 /openedx/
=> CACHED [code 2/3] WORKDIR /openedx/edx-platform
=> CACHED [code 3/3] RUN git config --global user.email "tutor@overhang.io" && git config --global user.name "Tutor"
=> CACHED [edx-platform 1/1] COPY --from=code /openedx/edx-platform /
=> CACHED [production 5/30] COPY --chown=app:app --from=edx-platform / /openedx/edx-platform
=> CACHED [locales 1/2] ADD --keep-git-dir=true https://github.com/openedx/openedx-i18n.git#release/quince /tmp/openedx-i18n
=> CACHED [locales 2/2] RUN mkdir --parents /openedx/locale && mv /tmp/openedx-i18n/edx-platform/locale /openedx/locale/contrib && rm -rf /tmp/openedx-i18n/
=> CACHED [production 6/30] COPY --chown=app:app --from=locales /openedx/locale /openedx/locale
=> CACHED [python 1/4] RUN --mount=type=cache,target=/var/cache/apt,sharing=locked --mount=type=cache,target=/var/lib/apt,sharing=locked apt update && apt
=> CACHED [python 2/4] RUN git clone https://github.com/pyenv/pyenv /opt/pyenv --branch v2.3.29 --depth 1
=> CACHED [python 3/4] RUN /opt/pyenv/bin/pyenv install 3.8.18
=> CACHED [python 4/4] RUN /opt/pyenv/versions/3.8.18/bin/python -m venv /openedx/venv
=> CACHED [production 7/30] COPY --chown=app:app --from=python /opt/pyenv /opt/pyenv
=> CACHED [python-requirements 1/8] RUN --mount=type=cache,target=/var/cache/apt,sharing=locked --mount=type=cache,target=/var/lib/apt,sharing=locked apt updat
=> CACHED [python-requirements 2/8] RUN --mount=type=cache,target=/openedx/.cache/pip,sharing=shared pip install setuptools==68.2.2 pip==23.2.1. wheel==0.41.2
=> CACHED [python-requirements 3/8] RUN --mount=type=bind,from=edx-platform,source=/requirements/edx/base.txt,target=/openedx/edx-platform/requirements/edx/base.txt
=> CACHED [python-requirements 4/8] RUN --mount=type=cache,target=/openedx/.cache/pip,sharing=shared pip install django-redis==5.4.0 uwsgi==2.0.22
=> CACHED [python-requirements 5/8] RUN pip install "openedx-scorm-xblock>=17.0.0,<18.0.0"
=> CACHED [python-requirements 6/8] RUN --mount=type=cache,target=/openedx/.cache/pip,sharing=shared pip install 'git+https://github.com/openedx/xblock-lti-consume
=> CACHED [python-requirements 7/8] RUN --mount=type=cache,target=/openedx/.cache/pip,sharing=shared pip install 'git+https://github.com/open-craft/openedx-ltistor
=> CACHED [python-requirements 8/8] RUN --mount=type=cache,target=/openedx/.cache/pip,sharing=shared pip install 'git+https://github.com/open-craft/xblock-poll.git
=> CACHED [production 8/30] COPY --chown=app:app --from=python-requirements /openedx/venv /openedx/venv
=> CACHED [production 9/30] COPY --chown=app:app --from=python-requirements /mnt /mnt
=> CACHED [nodejs-requirements 1/4] RUN pip install nodeenv==1.8.0
=> CACHED [nodejs-requirements 2/4] RUN nodeenv /openedx/nodeenv --node=16.14.0 --prebuilt
=> CACHED [nodejs-requirements 3/4] WORKDIR /openedx/edx-platform
=> CACHED [nodejs-requirements 4/4] RUN --mount=type=bind,from=edx-platform,source=/package.json,target=/openedx/edx-platform/package.json --mount=type=bind,from=e
=> CACHED [production 10/30] COPY --chown=app:app --from=nodejs-requirements /openedx/nodeenv /openedx/nodeenv
=> CACHED [production 11/30] COPY --chown=app:app --from=nodejs-requirements /openedx/edx-platform/node_modules /openedx/node_modules
=> CACHED [production 12/30] RUN ln -s /openedx/node_modules /openedx/edx-platform/node_modules
=> CACHED [production 13/30] WORKDIR /openedx/edx-platform
=> CACHED [production 14/30] RUN pip install -e .
=> CACHED [production 15/30] RUN mkdir -p /openedx/config ./lms/envs/tutor ./cms/envs/tutor
=> CACHED [production 16/30] COPY --chown=app:app revisions.yml /openedx/config/
=> CACHED [production 17/30] COPY --chown=app:app settings/lms/*.py ./lms/envs/tutor/
=> CACHED [production 18/30] COPY --chown=app:app settings/cms/*.py ./cms/envs/tutor/
=> CACHED [production 19/30] RUN mkdir /openedx/locale/user
=> CACHED [production 20/30] COPY --chown=app:app ./locale/ /openedx/locale/user/locale/
=> CACHED [production 21/30] RUN cd /openedx/locale/user && django-admin compilemessages -v1
=> CACHED [production 22/30] RUN ./manage.py lms --settings=tutor.i18n compilejsi18n
=> CACHED [production 23/30] RUN ./manage.py cms --settings=tutor.i18n compilejsi18n
=> CACHED [production 24/30] COPY --chown=app:app ./bin /openedx/bin
=> CACHED [production 25/30] RUN chmod a+x /openedx/bin/*
=> CACHED [production 26/30] RUN openedx-assets xmodule && openedx-assets npm && openedx-assets webpack --env=prod && openedx-assets common
=> CACHED [production 27/30] COPY --chown=app:app ./themes/ /openedx/themes/
=> ERROR [production 28/30] RUN openedx-assets themes && openedx-assets collect --settings=tutor.assets && rdfind -makesymlinks true -followsymlinks true /open
------
> [production 28/30] RUN openedx-assets themes && openedx-assets collect --settings=tutor.assets && rdfind -makesymlinks true -followsymlinks true /openedx/sta
6.829 Compiling lms sass assets from theme /openedx/themes/indigo...
6.829 Compiling Sass: lms/static/sass -> /openedx/themes/indigo/lms/static/css
6.829 with Sass lookup path: common/static
6.829 with Sass lookup path: common/static/sass
6.829 with Sass lookup path: node_modules/@edx
6.829 with Sass lookup path: node_modules
6.829 with Sass lookup path: /openedx/themes/indigo/lms/static/sass/partials
6.829 with Sass lookup path: lms/static/sass/partials
6.829 with Sass lookup path: lms/static/sass
6.829 rtlcss /openedx/themes/indigo/lms/static/css/bootstrap/lms-main.css /openedx/themes/indigo/lms/static/css/bootstrap/lms-main-rtl.css
6.943 rtlcss: Warning! No config present, using defaults.
7.021 Saving: /openedx/themes/indigo/lms/static/css/bootstrap/lms-main-rtl.css
7.156 rtlcss /openedx/themes/indigo/lms/static/css/discussion/lms-discussion-bootstrap.css /openedx/themes/indigo/lms/static/css/discussion/lms-discussion-bootstrap-rtl
7.274 rtlcss: Warning! No config present, using defaults.
7.334 Saving: /openedx/themes/indigo/lms/static/css/discussion/lms-discussion-bootstrap-rtl.css
8.439 Compiling Sass: /openedx/themes/indigo/lms/static/sass -> /openedx/themes/indigo/lms/static/css
8.439 with Sass lookup path: common/static
8.439 with Sass lookup path: common/static/sass
8.439 with Sass lookup path: node_modules/@edx
8.439 with Sass lookup path: node_modules
8.439 with Sass lookup path: /openedx/themes/indigo/lms/static/sass/partials
8.439 with Sass lookup path: lms/static/sass/partials
8.439 with Sass lookup path: lms/static/sass
8.439 Sass dir '/openedx/themes/indigo/lms/static/certificates/sass' does not exists, skipping sass compilation for '/openedx/themes/indigo'
8.439 Compiling Sass: xmodule/assets -> /openedx/themes/indigo/lms/static/css
8.439 with Sass lookup path: common/static
8.439 with Sass lookup path: common/static/sass
8.439 with Sass lookup path: node_modules/@edx
8.439 with Sass lookup path: node_modules
8.439 with Sass lookup path: /openedx/themes/indigo/lms/static/sass/partials
8.439 with Sass lookup path: /openedx/themes/indigo/cms/static/sass/partials
8.439 with Sass lookup path: lms/static/sass/partials
8.439 with Sass lookup path: cms/static/sass/partials
8.439 with Sass lookup path: lms/static/sass
8.439 with Sass lookup path: cms/static/sass
8.439 Compiling cms sass assets from theme /openedx/themes/indigo...
8.439 Compiling Sass: xmodule/assets -> /openedx/themes/indigo/cms/static/css
8.439 with Sass lookup path: common/static
8.439 with Sass lookup path: common/static/sass
8.439 with Sass lookup path: node_modules/@edx
8.439 with Sass lookup path: node_modules
8.439 with Sass lookup path: /openedx/themes/indigo/lms/static/sass/partials
8.439 with Sass lookup path: /openedx/themes/indigo/cms/static/sass/partials
8.439 with Sass lookup path: lms/static/sass/partials
8.439 with Sass lookup path: cms/static/sass/partials
8.439 with Sass lookup path: lms/static/sass
8.439 with Sass lookup path: cms/static/sass
8.747 python manage.py lms --settings=tutor.assets collectstatic --noinput > /dev/null
55.11 Traceback (most recent call last):
55.11 File "manage.py", line 106, in <module>
55.11 execute_from_command_line([sys.argv[0]] + django_args)
55.11 File "/openedx/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
55.11 utility.execute()
55.11 File "/openedx/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 413, in execute
55.11 self.fetch_command(subcommand).run_from_argv(self.argv)
55.11 File "/openedx/venv/lib/python3.8/site-packages/django/core/management/base.py", line 354, in run_from_argv
55.11 self.execute(*args, **cmd_options)
55.11 File "/openedx/venv/lib/python3.8/site-packages/django/core/management/base.py", line 398, in execute
55.11 output = self.handle(*args, **options)
55.11 File "/openedx/venv/lib/python3.8/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 187, in handle
55.11 collected = self.collect()
55.11 File "/openedx/venv/lib/python3.8/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 128, in collect
55.11 for original_path, processed_path, processed in processor:
55.11 File "/openedx/venv/lib/python3.8/site-packages/require/storage.py", line 175, in post_process
55.11 for path in super_class.post_process(paths, dry_run, **options):
55.11 File "/openedx/edx-platform/openedx/core/djangoapps/theming/storage.py", line 293, in post_process
55.11 yield from super_class.post_process(paths.copy(), dry_run, **options)
55.11 File "/openedx/venv/lib/python3.8/site-packages/pipeline/storage.py", line 42, in post_process
55.11 yield from super_class.post_process(
55.11 File "/openedx/venv/lib/python3.8/site-packages/django/contrib/staticfiles/storage.py", line 399, in post_process
55.11 yield from super().post_process(*args, **kwargs)
55.11 File "/openedx/venv/lib/python3.8/site-packages/django/contrib/staticfiles/storage.py", line 231, in post_process
55.11 for name, hashed_name, processed, _ in self._post_process(paths, adjustable_paths, hashed_files):
55.11 File "/openedx/venv/lib/python3.8/site-packages/django/contrib/staticfiles/storage.py", line 288, in _post_process
55.11 content = pattern.sub(converter, content)
55.11 File "/openedx/edx-platform/openedx/core/djangoapps/theming/storage.py", line 196, in converter
55.11 matched = matches["matched"]
55.11 KeyError: 'matched'
55.97 Traceback (most recent call last):
55.97 File "/openedx/bin/openedx-assets", line 218, in <module>
55.97 main()
55.97 File "/openedx/bin/openedx-assets", line 89, in main
55.97 args.func(args)
55.97 File "/openedx/bin/openedx-assets", line 157, in run_collect
55.97 assets.collect_assets(args.systems, args.settings)
55.97 File "/openedx/edx-platform/pavelib/assets.py", line 606, in collect_assets
55.97 sh(django_cmd(sys, settings, "collectstatic --noinput {logfile_str}".format(
55.97 File "/openedx/venv/lib/python3.8/site-packages/paver/shell.py", line 60, in sh
55.97 return dry(command, runpipe)
55.97 File "/openedx/venv/lib/python3.8/site-packages/paver/easy.py", line 15, in dry
55.97 return func(*args, **kw)
55.97 File "/openedx/venv/lib/python3.8/site-packages/paver/shell.py", line 55, in runpipe
55.97 raise BuildFailure("Subprocess return code: %d" % p.returncode)
55.97 paver.tasks.BuildFailure: Subprocess return code: 1
------
Dockerfile:224
--------------------
223 | COPY --chown=app:app ./themes/ /openedx/themes/
224 | >>> RUN openedx-assets themes \
225 | >>> && openedx-assets collect --settings=tutor.assets \
226 | >>> # De-duplicate static assets with symlinks
227 | >>> && rdfind -makesymlinks true -followsymlinks true /openedx/staticfiles/
228 |
--------------------
ERROR: failed to solve: process "/bin/sh -c openedx-assets themes && openedx-assets collect --settings=tutor.assets && rdfind -makesymlinks true -followsymlinksstaticfiles/" did not complete successfully: exit code: 1
Error: Command failed with status 1: docker buildx build --tag=docker.io/overhangio/openedx:17.0.0-indigo --output=type=docker --cache-from=type=registry,ref=docker.io/edx:17.0.0-indigo-cache /home/administrator/.local/share/tutor/env/build/openedx
Any suggestions ?
after a time on Dockerfile when I comments lines between 225-229 builkd works … but how to resolve this little issue inside dockerfile ??
RUN openedx-assets themes
&& openedx-assets collect --settings=tutor.assets
# De-duplicate static assets with symlinks
&& rdfind -makesymlinks true -followsymlinks true /openedx/staticfiles/
ok found how to resolve it … all goes to the issue with theme … it was needed to be disabled on plugins … then tadaaa . code finished