我部署了WSO2IS 5.10.0的docker并安装了以下卷:
--volume /root/docker/wso2is/backup:/home/wso2carbon/wso2is-5.10.0/backup
--volume /root/docker/wso2is/dbscripts:/home/wso2carbon/wso2is-5.10.0/dbscripts
--volume /root/docker/wso2is/lib:/home/wso2carbon/wso2is-5.10.0/lib
--volume /root/docker/wso2is/solr:/home/wso2carbon/wso2is-5.10.0/solr
--volume /root/docker/wso2is/repository:/home/wso2carbon/wso2is-5.10.0/repository
--volume /root/docker/wso2is/resources:/home/wso2carbon/wso2is-5.10.0/resources
--volume /root/docker/wso2is/tmp:/home/wso2carbon/wso2is-5.10.0/tmp
--volume /root/docker/wso2is/updates:/home/wso2carbon/wso2is-5.10.0/updates
我的文件deployment.toml:
-rw-r--r-- 1 802 802 937 8 mars 2020 deployment.toml
[server]
hostname = "192.168.213.30"
node_ip = "192.168.213.30"
base_path = "https://$ref{server.hostname}:${carbon.management.port}"
[super_admin]
username = "admin"
password = "admin"
create_admin_account = true
[user_store]
type = "read_write_ldap_unique_id"
connection_url = "ldap://localhost:${Ports.EmbeddedLDAP.LDAPServerPort}"
connection_name = "uid=admin,ou=system"
connection_password = "admin"
base_dn = "dc=wso2,dc=org" #refers the base dn on which the user and group search bases will be generated
[database.identity_db]
type = "h2"
url = "jdbc:h2:./repository/database/WSO2IDENTITY_DB;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000"
username = "wso2carbon"
password = "wso2carbon"
[database.shared_db]
type = "h2"
url = "jdbc:h2:./repository/database/WSO2SHARED_DB;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000"
username = "wso2carbon"
password = "wso2carbon"
[keystore.primary]
file_name = "wso2carbon.jks"
password = "wso2carbon"
当我想通过Deployment.toml文件更新配置时,出现以下错误:
[2020-11-07 18:19:38,953] WARN {org.wso2.config.mapper.ConfigParser} - Configurations Changed in :repository/conf/deployment.toml
[2020-11-07 18:19:38,957] WARN {org.wso2.config.mapper.ConfigParser} - Overriding files in configuration directory /home/wso2carbon/wso2is-5.10.0
[2020-11-07 18:19:38,961] SEVERE {org.wso2.carbon.server.Main handleConfiguration} - Error while performing configuration changes
org.wso2.config.mapper.ConfigParserException: Error while deleting backup
at org.wso2.config.mapper.util.FileUtils.deleteDirectory(FileUtils.java:118)
at org.wso2.config.mapper.ConfigParser.backupConfigurations(ConfigParser.java:167)
at org.wso2.config.mapper.ConfigParser.deployAndStoreMetadata(ConfigParser.java:178)
at org.wso2.config.mapper.ConfigParser.parse(ConfigParser.java:127)
at org.wso2.carbon.server.Main.handleConfiguration(Main.java:231)
at org.wso2.carbon.server.Main.main(Main.java:103)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.wso2.carbon.bootstrap.Bootstrap.loadClass(Bootstrap.java:70)
at org.wso2.carbon.bootstrap.Bootstrap.main(Bootstrap.java:51)
您知道我应该如何进行吗?
谢谢您的帮助。
帕斯卡
答案 0 :(得分:0)
请参阅与您提供的堆栈跟踪相关的代码。
备份文件未删除。因此错误被抛出。
可能的原因可能是启动wso2服务器的用户没有权限。
答案 1 :(得分:0)
请检查 drwxr-xr-x
,则可以进行配置更新并启动服务器,而不会出现此错误。