Version Control is unable to change repo URL.
search cancel

Version Control is unable to change repo URL.

book

Article ID: 378655

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

A user wants to change the repo listed in UC_CLIENT_SETTINGS -> REMOTE_REPOSITORY_URL however, despite changing the URL, the REST process shows that it is still connecting to the old repo.

20240606/081506.264 - 43     U00045015 The previous error was caused by 'org.eclipse.jgit.api.errors.InvalidRemoteException: "Invalid remote: origin"' at 'org.eclipse.jgit.api.FetchCommand.call():221'.
20240606/081506.264 - 43     U00045015 The previous error was caused by 'org.eclipse.jgit.errors.NoRemoteRepositoryException: "[email protected]:automic/automic.git: ERROR: Repository not found.
20240606/081506.264 - 43     "' at 'org.eclipse.jgit.transport.TransportGitSsh.cleanNotFound():201'.
20240606/081506.264 - 43     U00003620 Routine 'com.automic.rest.provider.BaseExceptionMapper' forces trace because of error.

Cause

Only a branch switch is possible within the same repo. This is only possible through a manual clean-up & reinitialization. The UC_REPO table links the client with the branch name and the commit (often a hash) — that is repo_version column in the table.

Resolution

In order to re-initialize the version control you would have to:



  1. Remove the entry from the UC_REPO table for the client

  2. Delete the folder from ae-filesystem that matches the client number

  3. Change the value in UC_CLIENT_SETTINGS

  4. Logoff/logon in AWI so the new repo settings are used.

  5. Initialize from scratch.