sofastack / sofa-registry

SOFARegistry is a production-level, low-latency, high-availability service registry powered by Ant Financial.
https://www.sofastack.tech/sofa-registry/docs/Home
Apache License 2.0
648 stars 243 forks source link

registry-parent中是不是忘了加nexus-staging-maven-plugin , #318

Open homehe opened 1 year ago

homehe commented 1 year ago

Describe the bug

A clear and concise description of what the bug is.

Expected behavior

Actual behavior

Steps to reproduce

Minimal yet complete reproducer code (or GitHub URL to code)

Environment

NickNYU commented 1 year ago

@homehe 问下具体的报错场景可否发一下,谢谢

homehe commented 1 year ago

就win系统直接下载最新代码, 导入pom, 会提示上面的不存在. 我加上去以后就可以了, 但是部署的时候又遇到一个问题,
[root@cm1 ~]# curl http://localhost:9615/health/check {"success":true,"message":"MetaServerBoot sessionRegisterServer:true, dataRegisterServerStart:true, otherMetaRegisterServerStart:true, httpServerStart:true, role:leader, warmuped:true, leader:172.18.0.1, meta-servers:[META-Node{172.18.0.1,region=null,dc=DefaultDataCenter}]"}[root@cm1 ~]# curl http://localhost:9622/health/check {"success":true,"message":"DataServerBoot severForSession:true, severForDataSync:true, httpServer:true, schedulerStarted:true"}[root@cm1 ~]# curl http://localhost:9622/health/check {"success":true,"message":"DataServerBoot severForSession:true, severForDataSync:true, httpServer:true, schedulerStarted:true"}[root@cm1 ~]# curl http://localhost:9622/health/check http://localhost:9603/health/check -bash: http://localhost:9603/health/check: 没有那个文件或目录

9603 这个端口的检查提示不存在. 创建的表 因为mysql数据库是5.7.25 ,所以改了两个表的创建时间 not nulll 改了为null , 这应该没有影响吧.

还有可能是哪里问题呢?

nocvalight commented 1 year ago
  1. nexus-staging-maven-plugin的问题,欢迎提一个pr进行修复。
  2. mysql的版本问题,master的create_table.sql,在mysql 5.7以及8.0中都进行了验证,环境是在本地电脑直接基于docker安装mysql进行验证,详见:https://github.com/sofastack/sofa-registry/issues/303 。可以看看建表报错是不是可以提供更多的信息?
homehe commented 1 year ago

image 查到问题在哪里了,我用的sql语句是 https://github.com/sofastack/sofa-registry/releases/download/v6.1.9/registry-all.tgz 这个包里的,和原代码的有一点区别.

nocvalight commented 1 year ago

image 查到问题在哪里了,我用的sql语句是 https://github.com/sofastack/sofa-registry/releases/download/v6.1.9/registry-all.tgz 这个包里的,和原代码的有一点区别.

感谢反馈,这个create_table.sql 是在6.1.9版本release之后才修复的,目前修复代码是在master上;我们近期release一个新版本包含这个create_table.sql的修复。 再次感谢问题的反馈。