Skip to content

Failed async course content export to git (course id: CourseLocator('MITx', '5.12r_12', '2025_Spr... #2909

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sentry-io bot opened this issue Jan 17, 2025 · 3 comments

Comments

@sentry-io
Copy link

sentry-io bot commented Jan 17, 2025

Is this a settings error in the course, or the app, or something else?

Sentry Issue: OPENEDX-RESIDENTIAL-3N2

Failed async course content export to git (course id: CourseLocator('MITx', '5.12r_12', '2025_Spring', None, None)): GitExportError('Unable to push changes.  This is usually because the remote repository cannot be contacted')
@pdpinch
Copy link
Member

pdpinch commented Apr 25, 2025

@marslanabdulrauf can you take a look at this and maybe fix it along with the other work on export to git?

@marslanabdulrauf
Copy link
Contributor

@marslanabdulrauf can you take a look at this and maybe fix it along with the other work on export to git?

yeah sure. I will look into it and try to fix it along with https://github.com/mitodl/hq/issues/6962

@marslanabdulrauf
Copy link
Contributor

When a course is published without any actual changes, the git-auto-export process attempts to commit updates, but fails due to the absence of changes. The error originates from the git commit -a -m {commit_msg} command here, which returns an error when there’s nothing new to commit.

The exception is already being logged in the OpenedX git_export_utils

Possible solutions:

  1. Pre-check for changes before running the commit command in openedX git_export_util.

  2. Skip the exception -- not recommended, as this may hide legitimate errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants