Hello
Last Monday we found out some of the scheduled jobs we had for the weekend had failed because, as for the error, there was some kind of issue with project’s SCM Update:
Traceback (most recent call last): File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/main/tasks.py”, line 1376, in run self.pre_run_hook(self.instance, private_data_dir) File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/main/tasks.py”, line 1869, in pre_run_hook raise RuntimeError(msg) RuntimeError: The project revision for this job template is unknown due to a failed update.
When we checked the latest project synchronization, it seemed to be true. We are synchronizing to BitBucket and apparently it underwent some maintenance works that same weekend:
TASK [update project using git] ************************************************
11:00:28
7
fatal: [localhost]: FAILED! => {“changed”: false, “cmd”: [“/usr/bin/git”, “fetch”, “–tags”, “origin”], “msg”: “Failed to download remote objects and refs: Bitbucket is currently unavailable:\n- The system is unavailable while maintenance is being performed.\n- Bitbucket is unavailable while it is being backed up\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n”}
I was wondering if there is any configuration that could be set to avoid jobs failing if project can’t be synchronized and it was synchronized before (other than just synchronizing the project manually), or this could be a bug that is solved in newer AWX versions (this screenshots are from AWX 15 but we are migrating to newer versions soon)
Thanks!
BR,
Ana