Dubbo异常 Can not lock the registry cache file解决方案
跑了很久的服务突然启动报错:
[DUBBO] Failed to save registry store file, cause: Can not lock the registry cache file /root/.dubbo/dubbo-registry-xx.xx.xx.xx.cache, ignore and retry later, maybe multi java process use the file, please config: dubbo.registry.file=xxx.properties, dubbo version: 2.8.4, current host: xx.xx.xx.xx
java.io.IOException: Can not lock the registry cache file /root/.dubbo/dubbo-registry-xx.xx.xx.xx.cache, ignore and retry later
分析:
Dubbo本地缓存服务列表默认采用的文件,会根据注册中心自动在当前用户目录下生成一个缓存文件。
默认地址:/root/.dubbo/dubbo-registry-xx.xx.xx.xx.cache
场景:再同一台机器上最近增加了一些Dubbo服务,导致多个进程去抢占默认的这个服务列表所在文件的读写权限。
解决:
分出一些服务配置不同的文件地址即可:
dubbo.registry.file=/path
Dubbo异常 Can not lock the registry cache file解决方案相关推荐
- Dubbo异常: Can not lock the registry cache file解决方案
跑了很久的服务突然启动报错: [DUBBO] Failed to save registry store file, cause: Can not lock the registry cache fi ...
- 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 ...
- 【Can not lock the registry cache file】同一台机器部署多个dubbo应用(配置文件相同)
大家好,我是烤鸭: 场景是: 多个项目(配置文件相同)部署同一个服务器,部署的代码大部分相同.(具体原因是同一个项目的不同分支部署了两次) 启动之后,一直在报这个错误: [WARN] [2019-05 ...
- 解决 waiting for file lock on package cache lock
解决 waiting for file lock on package cache lock PS F:\rustprj\guessing_game> cargo runBlocking wai ...
- 编码踩坑——dubbo异常“Service not found“
今天接到一个开发任务,需要在工程A的原dubbo接口上新增一个方法来支持业务需求,于是分分钟CTRL+C/V完成了开发任务,准备自测:自测方法是首先本地打新的二方SNAPSHOT包,然后启动应用,准备 ...
- 解决springboot整合dubbo中No provider available from registry 127.0.0.1:2181 for service x.x.x on consumer
解决springboot整合dubbo中No provider available from registry 127.0.0.1:2181 for service x.x.x on consumer ...
- Rust 常见问题之一:Blocking waiting for file lock on package cache
Rust学习 今天开始学习Rust,根据官网步骤,安装,Rust+vs code. 前面的测试都还好,到了cargo build 这一步, cargo build 一直提示Blocking waiti ...
- rust:错误处理 Blocking waiting for file lock on package cache
编译程序的时候出现下面的错误信息: Blocking waiting for file lock on package cache 方法是,删除上面这个缓存文件.
- 密码错误频繁登录引发的“library cache lock”或“row cache lock”等待
密码错误频繁登录引发的"library cache lock"或"row cache lock"等待 对于正常的系统,由于密码的更改,可能存在某些被遗漏的客户端 ...
最新文章
- 【转】Flask安装
- 大道至简:软件工程实践者的思想——第七、八章感想
- 小程序中Cannot read property ‘setData‘ of undefined问题的解决
- flowable 配置自定义表单_Flowable用代码自定义流程
- 论文笔记(SocialGCN: An Efficient Graph Convolutional Network based Model for Social Recommendation)
- Java面试题:1-100之间的数,被放在数组a[99]中,有一个数没有包含在其中,用java代码找出这个数...
- 数字智能新时代,IT基础设施,Are you ready?
- 今天看到了和我男朋友不一样的程序员!好帅哦!
- jquery 后代元素_在jQuery中查找元素的所有后代
- HTTP协议详解 (转)
- 教你如何与电脑病毒打游击
- 【实用】MAC电脑如何进行截图,mac下QQ截图工具的用法
- 《ANSYS Workbench有限元分析实例详解(静力学)》——2.5 Windows界面相应操作
- CNN手写汉字识别参数调整
- 在任意文件夹下以管理员的身份运行powershell
- (一)淘宝首页的代码(周六一天敲出来的)html结构展示
- 英华特在创业板提交注册:拟募资约5亿元,股权结构较为分散
- easywechat6获取微信用户信息(基于公众号)
- openmediavault安装
- 麻球繁衍(Tribbles 概率dp)
热门文章
- 上半年精选300篇Python文章,推荐你收藏~
- None和nan、NaN、NAN
- 项目部署六---阿里云申请免费ssl证书并安装
- 聊一聊B端和C端产品的区别
- 解决警告:Unable to preventDefault inside passive event listener due to target being treated as passive.
- 深入了解passive-interface
- long类型强转成int类型解析
- 将时间转换成16进制Unix时间戳
- 复杂度应对之道 - COLA应用架构
- request_standard_resources