本主题描述 importURLMappings 命令产生的错误的恢复过程。
如果运行 importURLMappings 时发生错误,那么您可以检查 JazzInstallDir/server/repotools-jts_importURLMappings.log 文件。
如果您发现原始映射文件中缺少某个条目(例如,其中一个 CLM 应用程序的“源/目标”对),请执行下列步骤:
...
source=https://myOriginalUrl
target=https://myTargetUrlWithATypo
...
source=https://myTargetUrlWithATypo
target=https://myCorrectTargetUrl
此过程与前一节相似,但是要稍微复杂一些,这是因为您必须分别执行两个纠正映射。假定您的原始映射文件中具有以下条目:
...
source=https://myOriginalUrlWithATypo
target=https://myTargetUrl
...
source=https://myTargetUrl
target=dummy://aDummyUrl
source=https://myOriginalUrl
target=https://myTargetUrl
请勿试图将这些映射组合在一个文件中。必须分别应用上述纠正映射,以便系统可以明确纠正它自身。
例如,您的起始位置为如下所示:
...
source=https://myTargetUrl
target=https://mySourceUrl
...
要补救这种情况,您将需要遵循一般恢复规则。问题是这样一个映射表示 https://myTargetUrl 处的应用程序也位于 https://mySourceUrl。因为这是您的应用程序已经存在于的位置,所以它引入了无法撤销的歧义性。
请更正错误,然后再次运行 importURLMappings。
不支持在集群中进行服务器重命名。对于重命名的脱机和联机部分,Jazz™ Team Server 和 CLM 应用程序服务器必须保持不建立集群。
已开始进行升级,但是尚未完成。在完成联机升级之前就尝试进行重命名,通常就会产生此错误。RM 会进行联机迁移,必须在完成脱机升级之后才运行联机迁移。请完成联机升级。有关详细信息,请参阅roadmap_clm_upgrade.html。请关闭服务器,然后再次尝试运行 importURLMappings。
此警告表明映射事件文件未包含任何新映射。如果两次导入了同一个映射文件,或者未更新原来生成的映射事件文件以指定目标 URL,可能就会发生这种情况。请确认映射文件参数指向正确的文件,并验证文件内容。
importURLMappings 日志中存在由 CRJAZ2197E 消息表明的错误;或者,当您在运行 importURLMappings 之后启动服务器时,出现了 CRJAZ2197E 消息。
此消息表明 The public URI for this server has already been set to https://jts.source.example.org:9443/jts.It cannot be changed to https://jts.target.example.org:9443/jts after the server has been configured. If the server has moved to a new location at https://jts.target.example.org:9443/jts, follow the instructions to rename the server.
每当 importURLMappings 失败时,它会将 JTS teamserver.properties 中的 URL 还原为其原始值。如果未还原为其原始值,那么您可以手动更新 teamserver.properties,使其包含原始 URL,然后重新运行 importURLMappings 或者重新启动服务器。