From 99676a9484d52369f8b4a41d17d146b6744161b1 Mon Sep 17 00:00:00 2001 From: Tim McCormack Date: Wed, 9 Aug 2023 17:29:09 +0000 Subject: [PATCH 1/2] docs: Add copy-node-modules.sh note to troubleshooting page This introduces a "past problems" section, which we're looking at adding to in the future. That work will include details to help people do the "update and pull" step mentioned here. --- docs/troubleshoot_general_tips.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/troubleshoot_general_tips.rst b/docs/troubleshoot_general_tips.rst index 42843a7589..0329a78e6c 100644 --- a/docs/troubleshoot_general_tips.rst +++ b/docs/troubleshoot_general_tips.rst @@ -244,6 +244,25 @@ See `the github issue`_ to follow the work being done on the resolution. .. _the github issue: https://github.com/openedx/devstack/issues/1072 +Past problems (fixed) +===================== + +If you see any of the following issues, you'll need to update your repos and pull the latest images. + +Permission denied for copying studio-frontend JS & CSS during provisioning +-------------------------------------------------------------------------- + +During ``make dev.provision``, the edx-platform script ``copy-node-modules.sh`` would fail with the following output, or similar:: + + Copying studio-frontend JS & CSS from node_modules into vendor directories... + + read -r -d '' src_file + ++ find node_modules/@edx/studio-frontend/dist -type f -print0 + + [[ node_modules/@edx/studio-frontend/dist/accessibilityPolicy.min.css = *.css ]] + + cp --force node_modules/@edx/studio-frontend/dist/accessibilityPolicy.min.css common/static/common/css/vendor + cp: cannot remove 'common/static/common/css/vendor/accessibilityPolicy.min.css': Permission denied + +This issue was introduced on edx-platform master in July 2023 and was resolved in August 2023 (without becoming part of a named release). See https://github.com/openedx/devstack/issues/1138 for more details, including a workaround for those unable to upgrade their repos or images for some reason. + Starting From Scratch ===================== From f4930dfe718f85c01a9a42cce531733a2bbeb27c Mon Sep 17 00:00:00 2001 From: Tim McCormack Date: Wed, 9 Aug 2023 17:33:57 +0000 Subject: [PATCH 2/2] fixup! Fine, I'll remove the trailing space... --- docs/troubleshoot_general_tips.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/troubleshoot_general_tips.rst b/docs/troubleshoot_general_tips.rst index 0329a78e6c..bccf501acf 100644 --- a/docs/troubleshoot_general_tips.rst +++ b/docs/troubleshoot_general_tips.rst @@ -254,7 +254,7 @@ Permission denied for copying studio-frontend JS & CSS during provisioning During ``make dev.provision``, the edx-platform script ``copy-node-modules.sh`` would fail with the following output, or similar:: - Copying studio-frontend JS & CSS from node_modules into vendor directories... + Copying studio-frontend JS & CSS from node_modules into vendor directories... + read -r -d '' src_file ++ find node_modules/@edx/studio-frontend/dist -type f -print0 + [[ node_modules/@edx/studio-frontend/dist/accessibilityPolicy.min.css = *.css ]]