Issue:
Git Project stopped working.
The error below was recorded, where the Project document in the Projects view is trying to connect to master, but the error is showing it trying another lowerbranch instead.
With RedHat support, the following actions were performed for resolution. Since the error is a bit bizarre, use these instructions with a train-car of salt.
Error Message:
fatal: [localhost]: FAILED! => {"changed": false; "cmd": ["/usr/bin/git", "fetch", "--tags", "origin", "refs/heads/":refs/remotes/origin/*"], "msg": "Failed to download remote objects and refs: From https://github.mydomain.dom/foldername/reponame\n ![rejected] BRANCH -> origin/BRANCH (non-fast-forward)\n ...
The BRANCH is an incorrect testing branch instead of the master branch.
For example, it should say master -> origin/master, not lowerbranch -> origin/lowerbranch
Troubleshooting / Resolution:
1. SSH into the controller's /var/lib/awx/projects/ folder and locate the project by its ID and name.
$ ssh myadminid@aapcontroller.mindwatering.net
<enter password>
$ sudo su -
or
$ pbrun su -
<enter password>
# cd /var/lib/awx/projects
Notes:
- The projects have the following syntax: _NN__project_name.
- - The folder has an underline prefix and double underline between the number and the name, and an underline between words (replacing spaces in the project name).
- - example: _10__vRA_L2
- If you have multiple AAP controller nodes, repeat and remove the folder in all the nodes.
- When the project syncs in step 2 below, not all the nodes will sync and replace the folder at this time. It depends on which controller is given the task.
2. Backup the current project folder:
# mv ./_10__vRA_L2 /users/myadminid/
Note:
There is also a _10__vRA_L2.lock file, but we were not required to move that out of the way.
3. Sync the project back in the UI.
Web Browser --> aapcontroller.mindwatering.net
<login>
Resources (left menu twistie) --> Projects (left menu option) --> locate the project row, e.g. vRA_L2, click the Sync icon in the view, confirm successful.
Note:
- The project sync job log will show two warnings about the /var/lib/awx/projects/_10__vRA_L2/collections and _10__vRA_L2 roles missing, but underneath, not log that they were synched/created afterwards. This is expected, and fine, unless the sync job is not successful.
previous page
|