Synchronizing git mirror repository error : Shell command failed with exception.
Elastic Application Runtime (TAS)
Spring Cloud Services ( SCS)
Authentication failure reported in the mirror service logs.
To fetch the mirror service logs ssh to the SCS deployment and check the respective log file for the errors.
bosh -d p_spring-cloud-services-xxxxxxxxxxx ssh spring-cloud-services/xxxxxxxxxxx
sudo -i
cd /var/vcap/sys/log/mirror-service
vim mirror-service.stdout.log
2026-03-22T07:09:51.606Z INFO 6 --- [ctor-http-nio-1] i.p.s.c.mirrorservice.mirrors.ShellUtil :
Running shell command: git remote set-url origin https://[REDACTED:REDACTED]@gitlab.devsecops.xxxxx.com/servicesdelivery/informationapis/api-config-server
2026-03-22T07:09:51.610Z INFO 6 --- [ctor-http-nio-1] i.p.s.c.mirrorservice.mirrors.ShellUtil : Running shell command: git fetch origin
2026-03-22T07:09:51.778Z INFO 6 --- [ctor-http-nio-1] i.p.s.c.mirrorservice.mirrors.ShellUtil : remote: HTTP Basic: Access denied. If a password was provided for Git authentication, the password was incorrect or you're required to use a token instead of a password. If a token was provided, it was either incorrect, expired, or improperly scoped. See https://gitlab.devsecops.xxxxx.com/help/topics/git/troubleshooting_git.md#error-on-git-fetch-http-basic-access-denied
2026-03-22T07:09:51.778Z INFO 6 --- [ctor-http-nio-1] i.p.s.c.mirrorservice.mirrors.ShellUtil : fatal: Authentication failed for 'https://gitlab.devsecops.xxxxxx.com/servicesdelivery/informationapis/api-config-server/'
2026-03-22T07:09:51.778Z ERROR 6 --- [ctor-http-nio-1] i.p.s.c.m.refresh.RefreshExecutor : Error refreshing mirror [/var/vcap/store/mirror/492b955d34dec5ce18da6dd5d8b27085/api-config-server] : Error occurred updating local repository mirror at /var/vcap/store/mirror/492b955d34dec5ce18da6dd5d8b27085/api-config-server: Shell command failed with exception
Note** If you are using password for the authentication kindly validate the correct password is in use else, If the authentication is done via access token kindly check the validity of the access token used for authentication.
The access token for the GitLab repository is expired and needed to be regenerated. Once it is updated, the synchronization mirror will start working.