APIM 1.8.0에서 APIM 2.1.0으로 마이그레이션 중이며 마이그레이션 도구 중 하나에 문제가 있습니다. 당연히 마이그레이션 가이드에 설명 된 단계를 따르고 있습니다. https://docs.wso2.com/display/AM210/Upgrading+from+the+Previous+Release
내 OS는 Windows 7 Enterprise x64, Java-Oracle JDK 7u67, DB-MySQL 5.7, 사용자 저장소-LDAP입니다.
나는 WSO2 신원 서버 5.1.0 마이그레이션 클라이언트 (다운로드 org.wso2.carbon.is.migrate.client-5.1.0-migration.zip
SHA1을 : ece8ff9a33167751268d205293cc1404fbe4c567
)에서 docs.wso2.com/download/attachments/50518205/org.wso2.carbon.is.migrate.client-5.1.0-migration.zip?version=2&modificationDate=1470811755000&api=v2
(7 단계) 이상 metioned 가이드에 설명 된대로.
그런 다음 압축을 풀고 필요한 DB 스크립트를 디렉토리 APIM_2.1.0_HOME/dbscripts/
(7-a, 7-b 단계)에 넣고 JAR 파일을 디렉토리 APIM_2.1.0_HOME/repository/components/dropins/
(7-c 단계)에 넣습니다 .
그 후 명령으로 APIM 인스턴스를 시작하는 IS 마이그레이션 클라이언트를 사용하여 ID 및 사용자 저장소 DB를 마이그레이션하려고 할 때 (9 단계)
wso2server.bat -Dmigrate -DmigrateIdentityDB -Dcomponent=identity
아무 일도 일어나지 않는 것 같습니다.
이 클라이언트에 대한 로거를 다음과 APIM_2.1.0_HOME/repository/conf/log4j.properties
같이 구성했습니다.
log4j.logger.org.wso2.carbon.is.migration=DEBUG
그러나 마이그레이션 구성 요소가 성공적으로 활성화되었음을 알려주는 두 개의 DEBUG 행만 로그에 나타납니다.
INFO {org.wso2.carbon.databridge.core.internal.DataBridgeDS} - Successfully deployed Agent Server {org.wso2.carbon.databridge.core.internal.DataBridgeDS}
DEBUG {org.wso2.carbon.is.migration.client.internal.ISMigrationServiceComponent} - Setting RealmService to WSO2 IS Migration component {org.wso2.carbon.is.migration.client.internal.ISMigrationServiceComponent}
DEBUG {org.wso2.carbon.is.migration.client.internal.ISMigrationServiceComponent} - WSO2 IS migration bundle is activated {org.wso2.carbon.is.migration.client.internal.ISMigrationServiceComponent}
INFO {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} - Configured Registry in 63ms {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService}
또한에서 클라이언트의 소스 코드 github.com/wso2/product-is/tree/v5.1.0/modules/migration/migration-5.0.0_to_5.1.0/wso2-is-migration-client
, 특히 위에서 언급 한 마이그레이션 가이드 (4 단계)에서 제공 한 다른 마이그레이션 클라이언트의 유사한 클래스와는 달리 실제로는 아무것도하지 않는 클래스 org.wso2.carbon.is.migration.client.internal.ISMigrationServiceComponent
및 메서드를 살펴 보았습니다 .activate(ComponentContext context)
github.com/wso2/product-apim/blob/v2.1.0/modules/distribution/resources/migration/wso2-api-migration-client/src/main/java/org/wso2/carbon/apimgt/migration/client/internal/APIMMigrationServiceComponent.java
마지막으로 커밋 중 하나에서 관련 코드가 제거되었음을 확인했습니다. " 팩에서 마이그레이션 제거 및 스크립트 변경 추가 " https://github.com/wso2/product-is/pull/362/files#diff-789b1c66c0ca3e073080a2b8e6c27834L49
그래서 내 질문은 다음과 같습니다.
어떤 종류의 도움을 주시면 감사하겠습니다.
마이그레이션 문서의 문제였습니다. 이제 문서가 변경되었습니다. 1.8.0에서 2.0.0으로 마이그레이션 한 다음 2.1.0으로 마이그레이션해야합니다.
https://docs.wso2.com/display/AM210/Upgrading+from+the+Previous+Release#8910
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다