During gitrunner setup using MobaXterm terminal, we encountered a few issues which we resolved through careful debugging and adjustments:
Missing entrypoint.sh Error
When we first attempted to run the container, we received an error stating: entrypoint.sh: No such file or directory. We confirmed the file existed in the correct path, but the issue persisted. Upon inspection, we realized the problem was due to Windows-style line endings (\\r\\n) introduced when the file was edited on a Windows system. To resolve this:
sed -i 's/\\r$//' entrypoint.sh to convert the file to Unix line endings.chmod +x entrypoint.sh.Container Failed with βMust not run with sudoβ
Another error occurred indicating the GitHub Actions runner must not run as the root user. This was due to the user: root line present in the docker-compose.yaml file. To fix this:
user: root line in the docker-compose.yaml.docker-compose up -d --build.<aside> πΉ
We had many failed attempts before we succesfully connected our Kubernetes repo to ArgoCD
</aside>
π Attempt 1: Connect GitHub Repo via HTTPS
In Argo CD dashboard:
HTTPS
defaultThe_Cloud_Squad)β Connection FAILED
β οΈ Troubleshooting Attempt 1
π Attempt 2: Switch to SSH Authentication
π Generate SSH Key Pair
Open terminal (Git Bash or VS Code):
mkdir ~/.ssh/argocd-keys
cd ~/.ssh/argocd-keys
ssh-keygen -t ed25519 -C "[email protected]"