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

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

Open
homehe opened this issue Apr 13, 2023 · 5 comments
Open

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

homehe opened this issue Apr 13, 2023 · 5 comments

Comments

@homehe
Copy link

homehe commented Apr 13, 2023

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:
@NickNYU
Copy link
Contributor

NickNYU commented Apr 14, 2023

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

@homehe
Copy link
Author

homehe commented Apr 14, 2023

就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
Copy link
Member

  1. nexus-staging-maven-plugin的问题,欢迎提一个pr进行修复。
  2. mysql的版本问题,master的create_table.sql,在mysql 5.7以及8.0中都进行了验证,环境是在本地电脑直接基于docker安装mysql进行验证,详见:Use create_Table.sql failed to build the database #303 。可以看看建表报错是不是可以提供更多的信息?

@homehe
Copy link
Author

homehe commented Apr 14, 2023

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

@nocvalight
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants