Attempts to run the upgrade_additions.sh script on Gitweb or Gerrit results in the message "The Git adapter public URL could not be determined from <path>/oslcConfig.js."
You upgraded the Git adapter from version 1.0 to 1.1. You then upgraded the Git adapter from version 1.1 to 220.127.116.11. During the upgrade from 1.1 to 18.104.22.168 you ran the upgrade_additions.sh script. The script aborted with the message:
The Git adapter public URL could not be determined from <path>/oslcConfig.js. You may have specified a gitweb server that has already been upgraded or an incorrect gitweb server location. Confirm that you have specified the correct gitweb server location and try the upgrade again. Aborting.
This issue is identified as a product defect.
Resolving the problem
- Open the oslcConfig.js file in the static directory of the Gitweb installation directory or the Gerrit installation directory.
- Replace the text adapted-project with logical-adapter on the OSLC.GIT.LogicalAdapterURL entry.
- Save the file.
- Run the upgrade_addition.sh script in the static directory on the Gitweb or the Gerrit installation directory.
- Continue your software upgrade following the steps in the Upgrading the adapter software documentation topic.