Comments (14)
你这个似乎是选举leader没有成功,nacos-1.nacos-headless.default.svc.cluster.local. 这个域名是根域名,应该是你的版本过高,之前有小伙伴提过pr解决过这个问题的,你可以看下日志,是否是因为这个原因导致选举不成功的
from nacos-k8s.
你这个似乎是选举leader没有成功,nacos-1.nacos-headless.default.svc.cluster.local. 这个域名是根域名,应该是你的版本过高,之前有小伙伴提过pr解决过这个问题的,你可以看下日志,是否是因为这个原因导致选举不成功的
我看过日志的确是没有leader。
naming-raft.log:
no leader is available now!
你说的这个pr具体是什么操作,另外你说的看日志是nacos.log吗?
nacos.log报错如下:
` ERROR Unexpected error occurred in scheduled task.
java.lang.IllegalStateException: unable to find local peer: nacos-0.nacos-headless.default.svc.cluster.local.:8848, all peers: [nacos-0.nacos-headless.default.svc.cluster.local:8848, nacos-1.nacos-headless.default.svc.cluster.local:8848]
`
from nacos-k8s.
是的 就这个原因 可以看下这个pr #50
from nacos-k8s.
是的 就这个原因 可以看下这个pr #50
我按照这个pr修改了源目录里的peer/plugin.sh
然后重新部署kubectl apply -f deploy/nacos/nacos-pvc-nfs.yaml
pod运行后查看仍然有问题
查看绑定的存储卷nacos0-pv的plugin.sh,发现并没有被修改
难道说,和镜像 nacos/nacos-peer-finder-plugin有关
那么,麻烦更新下这个镜像
或者说得我得手动修改各个nacos节点的plugin.sh ?
from nacos-k8s.
我重新更新下peerfinder镜像,稍等
from nacos-k8s.
我重新更新下peerfinder镜像,稍等
感谢
我还有点疑问
这个镜像为什么不用更轻便的alpine基础镜像而要使用centos ?
集群外的应用或k8s中的其他pod要使用注册功能时的服务器地址推荐怎么写?
nacos-0.nacos-headless.default.svc.cluster.local:8848感觉有些啰嗦
from nacos-k8s.
可以看下另外一个分支的ingress的功能,我做了个简单的例子,算是抛砖引玉,如果用云的话,aws 可以使用alb 阿里云应该用的nginx ingress做的
from nacos-k8s.
可以了 重新更新下peerfinder的镜像再试下吧
from nacos-k8s.
可以了 重新更新下peerfinder的镜像再试下吧
仍然不行:
naming-raft.log:
no leader is available now!
nacos.log:
`2019-08-07 15:59:05,945 ERROR Responding with unauthorized error. Message - Full authentication is required to access this resource
2019-08-07 15:59:05,952 ERROR Responding with unauthorized error. Message - Full authentication is required to access this resource
2019-08-07 15:59:50,742 INFO [capacityManagement] start correct usage
2019-08-07 15:59:50,758 INFO [capacityManagement] end correct usage, cost: 0s
2019-08-07 15:59:50,837 WARN clearConfigHistory start
`
pod内hosts和curl结果如下:
`sh-4.2# cat /etc/hosts
Kubernetes-managed hosts file.
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
fe00::0 ip6-mcastprefix
fe00::1 ip6-allnodes
fe00::2 ip6-allrouters
172.20.3.70 nacos-0.nacos-headless.default.svc.cluster.local nacos-0
sh-4.2# curl GET "http://localhost:8848/nacos/v1/ns/raft/state"
curl: (6) Could not resolve host: GET; Unknown error
server is STARTING now, please try again later!`
from nacos-k8s.
这不是选举的问题了,这是访问权限问题,不是k8s的问题,第一把readless和另外一个检查从配置ymal里面去掉,有没有选举成功你要看下日志
from nacos-k8s.
这不是选举的问题了,这是访问权限问题,不是k8s的问题,第一把readless和另外一个检查从配置ymal里面去掉,有没有选举成功你要看下日志
果然可以了!!!
这两个健康检查有什么影响吗?怎么修改?
from nacos-k8s.
可以试着把健康检查增加延迟启动时间解决,或者去掉也行,这两个健康检查目前确实用处不大
from nacos-k8s.
可以试着把健康检查增加延迟启动时间解决,或者去掉也行,这两个健康检查目前确实用处不大
ok,我再研究研究,多谢解答
from nacos-k8s.
那就先关掉这个issue吧
from nacos-k8s.
Related Issues (20)
- nacos和微服务偶尔出现nacos-headless服务命无法解析 HOT 1
- nacos集群节点down,导致微服务pod重启 HOT 3
- nacos operator error: exec /manager: exec format error HOT 2
- Nacos Pod takes up a lot of memory cache
- nacos-peer-finder-plugin 镜像支持arm服务器部署 HOT 1
- 认证授权的地方没有示例,导致从2.0.x版本升级到2.1.x用户切换不丝滑 HOT 6
- Please update the nacos-operator version of the image
- status":501,"error
- How to build a bundle image?
- nacos k8s部署方式 期望修改配置管理->历史版本的保存时间(现在默认 30 天)
- How to set environment variables in Nacos Operator? HOT 1
- nacos v2.1.0版本修改用户密码 报authorization failed! HOT 1
- 官方能把 chart 发布到 helm hub 仓库吗
- 啥时候支持达梦、人大金仓等国产数据库? HOT 1
- Nacos 搭建集群后访问nacos报错no message available,日志报错:ERROR CONSOLE java.lang.IllegalStateException: can not find peer: 172.17.0.6:8848
- 如何离线部署nacos-k8s呢? HOT 1
- Invocation of init method failed; nested exception is ErrCode:500, ErrMsg:Nacos Server did not start because dumpservice bean construction failure : No DataSource set HOT 1
- 使用某存储nacos报错
- nacos缩容pod无法正常启动
- 使用 Postgresql HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nacos-k8s.