Repository navigation
fix: make xqueue app dir traversable so automated jobs can source xqu… - #394
Merged
Merged
Conversation
rahulkanneri-2u
approved these changes
Oct 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
xqueue/prod-edx-queued_submissions_to_cloudwatchJenkins job started failing on the current prod xqueue instance:The job SSHes in as
xqueue_mgmt_commandsand runs. /edx/app/xqueue/xqueue_envas that user. Only the followingmanage.pycall goes throughsudo -u www-data.xqueue_envis already0644(see "setup the app env file"), so the file mode is not the problem. The parent directory is:/edx/app/xqueueis thexqueueuser's home directory. Theadd_userrole creates it withuseradd, and no playbook sets a mode on it.useraddcreates home directories as0755. On jammy,HOME_MODEdefaults to0750, which givesdrwxr-x--- xqueue:www-data.xqueue_mgmt_commandsis not inwww-data, so it cannot enter the directory to read the file.This lines up with xqueue moving to jammy in #386.
Change
Add a task to the xqueue role that sets
{{ xqueue_app_dir }}to0755, so the directory is set up the same way on focal and jammy.