sofa-registry icon indicating copy to clipboard operation
sofa-registry copied to clipboard

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

Open homehe opened this issue 2 years ago • 5 comments

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

  • SOFARegistry version:
  • JVM version (e.g. java -version):
  • OS version (e.g. uname -a):
  • Maven version:
  • IDE version:

homehe avatar Apr 13 '23 07:04 homehe

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

NickNYU avatar Apr 14 '23 02:04 NickNYU

就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 , 这应该没有影响吧.

还有可能是哪里问题呢?

homehe avatar Apr 14 '23 02:04 homehe

  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 。可以看看建表报错是不是可以提供更多的信息?

nocvalight avatar Apr 14 '23 02:04 nocvalight

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

homehe avatar Apr 14 '23 02:04 homehe

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的修复。 再次感谢问题的反馈。

nocvalight avatar Apr 14 '23 06:04 nocvalight