Skip to content

Fix npm installation (permissions, caching) - #32946

Merged
timmc-edx merged 2 commits into
masterfrom
timmc/rm-root-owned
Aug 9, 2023
Merged

Fix npm installation (permissions, caching)#32946
timmc-edx merged 2 commits into
masterfrom
timmc/rm-root-owned

Conversation

@timmc-edx

Copy link
Copy Markdown
Contributor

This PR contains two commits:

To reproduce the error:

  1. Ensure that common/static/common/css/ in edx-platform is owned by root (use sudo chown -R root: ... if you're not already affected)
  2. Ensure that the cache will not be used (make a whitespace change to package.json in edx-platform -- or just let the second commit's change in how the hash is computed bust the cache for you!)
  3. Run make dev.destroy dev.pull.lms dev.provision in devstack.

Before this PR, the provisioning would fail after about 5 minutes. With these changes, it succeeds.

This should help avoid permissions errors for existing devstack users when
they re-provision.

Ticket: openedx-unsupported/devstack#1138
We're using `npm ci`, so the package-lock file is actually the more
important file to check for changes.

@rgraber rgraber left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@timmc-edx
timmc-edx merged commit e0cee84 into master Aug 9, 2023
@timmc-edx
timmc-edx deleted the timmc/rm-root-owned branch August 9, 2023 18:12
@edx-pipeline-bot

Copy link
Copy Markdown
Contributor

2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.

@edx-pipeline-bot

Copy link
Copy Markdown
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

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

Successfully merging this pull request may close these issues.

3 participants