みなさん、こんにちは、私はアヒル午前:
シーンは次のとおりです。
複数のプロジェクト(同じ構成ファイル)が同じサーバーを展開するために、同じコードを最も展開されています。(具体的な理由が展開され、同じプロジェクトの異なるブランチは二回あり)
開始後は、このエラーが報告されています:
[WARN] [2019-05-13 11:05:53,200] doSaveProperties(189) | [DUBBO] Failed to save registry store file, cause: Can not lock the registry cache file /root/.dubbo/dubbo-registry-etc_manage_web-172.17.33.68:2181.cache, ignore and retry later, maybe multi java process use the file, please config: dubbo.registry.file=xxx.properties, dubbo version: 2.6.2, current host: 172.17.33.68
java.io.IOException: Can not lock the registry cache file /root/.dubbo/dubbo-registry-etc_manage_web-172.17.33.68:2181.cache, ignore and retry later, maybe multi java process use the file, please config: dubbo.registry.file=xxx.properties
at com.alibaba.dubbo.registry.support.AbstractRegistry.doSaveProperties(AbstractRegistry.java:161)
at com.alibaba.dubbo.registry.support.AbstractRegistry$SaveProperties.run(AbstractRegistry.java:500)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
[WARN] [2019-05-13 11:05:53,200] doSaveProperties(189) | [DUBBO] Failed to save registry store file, cause: Can not lock the registry cache file /root/.dubbo/dubbo-registry-etc_manage_web-172.17.33.68:2181.cache, ignore and retry later, maybe multi java process use the file, please config: dubbo.registry.file=xxx.properties, dubbo version: 2.6.2, current host: 172.17.33.68
java.io.IOException: Can not lock the registry cache file /root/.dubbo/dubbo-registry-etc_manage_web-172.17.33.68:2181.cache, ignore and retry later, maybe multi java process use the file, please config: dubbo.registry.file=xxx.properties
at com.alibaba.dubbo.registry.support.AbstractRegistry.doSaveProperties(AbstractRegistry.java:161)
at com.alibaba.dubbo.registry.support.AbstractRegistry$SaveProperties.run(AbstractRegistry.java:500)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
[WARN] [2019-05-13 11:05:53,201] doSaveProperties(189) | [DUBBO] Failed to save registry store file, cause: Can not lock the registry cache file /root/.dubbo/dubbo-registry-etc_manage_web-172.17.33.68:2181.cache, ignore and retry later, maybe multi java process use the file, please config: dubbo.registry.file=xxx.properties, dubbo version: 2.6.2, current host: 172.17.33.68
java.io.IOException: Can not lock the registry cache file /root/.dubbo/dubbo-registry-etc_manage_web-172.17.33.68:2181.cache, ignore and retry later, maybe multi java process use the file, please config: dubbo.registry.file=xxx.properties
at com.alibaba.dubbo.registry.support.AbstractRegistry.doSaveProperties(AbstractRegistry.java:161)
at com.alibaba.dubbo.registry.support.AbstractRegistry$SaveProperties.run(AbstractRegistry.java:500)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
ソリューション:
プロジェクトの一つは、変更するには、レジストリのファイルの属性を
dubbo:
application:
id: xxx_test
name: xxx_test
registry:
address: zookeeper://localhost:2181
file: ${catalina:home}/dubbo-registry/dubbo-registry:properties
scan:
base-packages: com.test