无法升级到wso2 api 2.1到wso2 apim 2.6

问题描述 投票:1回答:1

我们将wso1 apim 2.1与prostgres一起使用docker容器并导入export war文件。我尝试通过下载最新版本(3.0)和api-import-export-3.0.0-m33.war进行升级,但无法加载import export war。因此,我尝试升级到apim 2.6.0,因为它可以与wso2am-2.6.0.zip和api-import-export-2.6.0-v2.war一起使用。将其更改为postgres db后,根据wso2文档,我更改了所有配置文件中的密码,信任库和密钥库。但是现在我遇到了错误。

ERROR:  relation "idn_oidc_scope" does not exist at character 23
ccc-api-db       | STATEMENT:  SELECT COUNT(ID) FROM IDN_OIDC_SCOPE WHERE TENANT_ID=$1
ccc-apim         | [2020-01-14 10:18:11,832] ERROR - OAuth2ServiceComponent Error while activating OAuth2ServiceComponent.
ccc-apim         | org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception: Error while loading the top scope id for the tenant: -1234
ccc-apim         |  at org.wso2.carbon.identity.openidconnect.dao.ScopeClaimMappingDAOImpl.hasScopesPopulated(ScopeClaimMappingDAOImpl.java:300)
ccc-apim         |  at org.wso2.carbon.identity.oauth2.internal.OAuth2ServiceComponent.activate(OAuth2ServiceComponent.java:98)
ccc-apim         |  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
ccc-apim         |  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
ccc-apim         |  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
ccc-apim         |  at java.lang.reflect.Method.invoke(Method.java:498)

ccc-api-db       | ERROR:  relation "mb_dtx_xid" does not exist at character 45
ccc-api-db       | STATEMENT:  SELECT FORMAT_CODE,BRANCH_ID,GLOBAL_ID FROM MB_DTX_XID
ccc-apim         | [2020-01-14 10:18:43,092] ERROR - ApplicationRegistry org.wso2.andes.kernel.AndesException: Error occurred while recovering DtxBranch 
ccc-apim         | [2020-01-14 10:18:43,093] ERROR - Main Exception during startup. Triggering shutdown 
ccc-apim         | org.wso2.andes.kernel.AndesException: Unable to initialise application registry
ccc-apim         |  at org.wso2.andes.server.Broker.startupImpl(Broker.java:307)
ccc-apim         |  at org.wso2.andes.server.Broker.startup(Broker.java:110)
ccc-apim         |  at org.wso2.andes.server.Main.startBroker(Main.java:217)
ccc-apim         |  at org.wso2.andes.server.Main.execute(Main.java:206)
ccc-apim         |  at org.wso2.andes.server.Main.<init>(Main.java:54)
ccc-apim         |  at org.wso2.andes.server.Main.main(Main.java:47)
ccc-apim         |  at org.wso2.carbon.andes.internal.QpidServiceComponent.startAndesBroker(QpidServiceComponent.java:396)

这些表不在apim 2.1中。它似乎是2.6的一部分。但我不确定这些错误,也不清楚租户-1234。

对此的任何帮助都会有所帮助。

还让我们知道apim 3.0与哪个版本的import / export war文件兼容?

wso2 wso2-am apim
1个回答
0
投票

APIM 2.6.0导入导出工具的兼容版本是“ api-import-export-2.6.0-v14.war” [1]。在APIM 3.0.0中,您可以按照本文档[2]进行操作。

[1]。https://docs.wso2.com/display/AM260/Migrating+the+APIs+to+a+Different+Environment[2]。 https://apim.docs.wso2.com/en/next/Learn/APIController/migrating-apis-to-different-environments/

© www.soinside.com 2019 - 2024. All rights reserved.