Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derby cluster mode can‘t ’ login default console #8526

Closed
Arvinzhu opened this issue Jun 6, 2022 · 6 comments
Closed

Derby cluster mode can‘t ’ login default console #8526

Arvinzhu opened this issue Jun 6, 2022 · 6 comments
Labels
status/duplicate This issue or pull request already exists

Comments

@Arvinzhu
Copy link

Arvinzhu commented Jun 6, 2022

Describe the bug
I deployed a three-node cluster on a Machine on a CentOS 7.6 system using the nacos 2.1.0 version. Using the derby built-in database, the default console login failure occurs. This is not the case with a single node。

我使用nacos2.1.0 版本在CentOS7.6系统的机器上部署了一个三节点的集群。使用derby 内置数据库,开启登录鉴权,出现了默认的控制台登录失败的现象。而单节点则无此现象。

Expected behavior
现象如下:

image

Desktop (please complete the following information):

  • OS: CentOS 7.6
  • Version Nacos 2.1.0
  • Start Command: sh bin/startup.sh -p embedded

application.propertites
I have only modified the following configuration items, the other information has not been modified

### Default web context path:
server.servlet.contextPath=/nacos
### Default web server port:
server.port=33461
nacos.inetutils.ip-address=192.x.x.7
### Metrics for prometheus
management.endpoints.web.exposure.include=*
### The auth system to use, currently only 'nacos' and 'ldap' is supported:
nacos.core.auth.system.type=nacos

### If turn on auth system:
nacos.core.auth.enabled=true

cluster.conf

#2022-06-06T20:07:05.113
192.x.x.7:33461
192.x.x.8:33461
192.x.x.9:33461

谁能告诉我问题在哪里或者如何正确部署derby模式的nacos集群吗 ? 非常感谢
Can anyone tell me where the problem is or how to properly deploy a nacos cluster in derby mode? Thank you very much

@onewe
Copy link
Collaborator

onewe commented Jun 7, 2022

这个问题在最新的版本已经修复了,目前有以下3种解决方案

解决方案:

  1. 不使用集群模式
  2. 使用mysql
  3. 使用最新的nacos源码自己打包

关闭鉴权或许有用也可以试一试

@Arvinzhu
Copy link
Author

Arvinzhu commented Jun 7, 2022

@onewe 你好,麻烦再问一下:
我使用IDEA打包nacos 2.1.0源码,使用得到的nacos-server-2.1.0.tar.gz 部署derby模式的nacos集群,还是一样的现象。
能麻烦你详细 描述 第三种 使用最新的nacos源码自己打包 具体是怎么操作的吗?

@onewe
Copy link
Collaborator

onewe commented Jun 7, 2022

@Arvinzhu 你用的哪个分支? 最新的在 develop 分支

@onewe
Copy link
Collaborator

onewe commented Jun 7, 2022

#8304
相关PR

@Arvinzhu
Copy link
Author

Arvinzhu commented Jun 7, 2022

@onewe 我使用的是 tags 2.1.0

@onewe
Copy link
Collaborator

onewe commented Jun 7, 2022

不要使用 tag 就用 develop 分支代码, 用develop分支代码打包的时候 记得要修改一个配置,不然会启动不起来,是昨天升级 spring
boot 版本导致的 #8528

@KomachiSion KomachiSion added the status/duplicate This issue or pull request already exists label Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants