大家好,我是烤鸭:

场景是:

多个项目(配置文件相同)部署同一个服务器,部署的代码大部分相同。(具体原因是同一个项目的不同分支部署了两次)

启动之后,一直在报这个错误:

[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.propertiesat 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.propertiesat 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.propertiesat 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)

解决办法:

改其中一个项目的 registry 的 file 属性

dubbo:application:id: xxx_testname: xxx_testregistry:address: zookeeper://localhost:2181file: ${catalina:home}/dubbo-registry/dubbo-registry:propertiesscan:base-packages: com.test

【Can not lock the registry cache file】同一台机器部署多个dubbo应用(配置文件相同)相关推荐

  1. Dubbo异常 Can not lock the registry cache file解决方案

    跑了很久的服务突然启动报错: [DUBBO] Failed to save registry store file, cause: Can not lock the registry cache fi ...

  2. Can not lock the registry cache file C:\Users\username.dubbo\dubbo-registry-1*.2*.2*.1*.cache

    异常信息 java.io.IOException: Can not lock the registry cache file C:\Users\username.dubbo\dubbo-registr ...

  3. Dubbo异常: Can not lock the registry cache file解决方案

    跑了很久的服务突然启动报错: [DUBBO] Failed to save registry store file, cause: Can not lock the registry cache fi ...

  4. 解决 waiting for file lock on package cache lock

    解决 waiting for file lock on package cache lock PS F:\rustprj\guessing_game> cargo runBlocking wai ...

  5. Rust 常见问题之一:Blocking waiting for file lock on package cache

    Rust学习 今天开始学习Rust,根据官网步骤,安装,Rust+vs code. 前面的测试都还好,到了cargo build 这一步, cargo build 一直提示Blocking waiti ...

  6. rust:错误处理 Blocking waiting for file lock on package cache

    编译程序的时候出现下面的错误信息: Blocking waiting for file lock on package cache 方法是,删除上面这个缓存文件.

  7. Rust引入外部包,VsCode引入失败,Blocking waiting for file lock on package cache lock

    引入外部包出错的解决方法 VsCode导入包后一直转圈 首先要停掉Rust server Ctrl + Shift + P 快捷键,输入Stop那个,停掉服务 改用命令行,像这样 可以看到它说 Blo ...

  8. Shareplex 错误 can't open or read object cache file

    2019独角兽企业重金招聘Python工程师标准>>> Shareplex 是一款数据复制软件,功能和性能都还不错,最近在安装中,遇到如下问题,解决后将记录总结成此篇,以便以后查询. ...

  9. 密码错误频繁登录引发的“library cache lock”或“row cache lock”等待

    密码错误频繁登录引发的"library cache lock"或"row cache lock"等待 对于正常的系统,由于密码的更改,可能存在某些被遗漏的客户端 ...

最新文章

  1. express中的bin/www文件详解
  2. C# 禁止用户关掉对话框的方法
  3. shared_ptr四宗罪
  4. RN学习(一)——创建第一个RN项目
  5. 为什么Spring Boot推荐使用logback-spring.xml来替代logback.xml来配置logback日志的问题分析...
  6. matlab如何预测数据,matlab预测数据
  7. vsftpd配置不同用户不同目录
  8. 15个简单的JS编码标准让你的代码更整洁
  9. php 读取脸型,基于OpenCV的PHP图像人脸检测识别技术
  10. 腾达路由器设置成中继模式
  11. iOS分享到WhatsApp
  12. 23王道——层次遍历、非递归中序遍历
  13. PADS 导入cadence dsn文件,同步pads layout
  14. VBA IE对象的操作方法
  15. 大数据与云计算网课答案
  16. [ Flowable ] 与modeler流程设计器整合教程
  17. 【嵌入式Linux应用】初步移植MQTT到Ubuntu和Linux开发板
  18. 网易云音乐评论和歌词爬取
  19. 如何理解向量组的秩和矩阵的秩
  20. MySQL之悲观锁场景举例

热门文章

  1. 前端学习(3148):react-hello-react之getSnapBeforeUpdate
  2. 前端学习(3123):react-hello-react之props的基本使用
  3. [html] 你知道微信端的浏览器内核是什么吗?
  4. [html] 跨域通信有哪些方式?
  5. 13攻击行为是天生的
  6. 工作228:小程序学习2开始布局页面2
  7. 前端学习(2685):重读vue电商网站6之如何重置表单
  8. 工作199:获取接口token
  9. 前端学习(2552):vue简介
  10. spring mvc学习(20):RequestHeader(获取请求头中某一部分值)