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

hzero-admin服务启动失败 #24

Open
hjxy2012 opened this issue Sep 25, 2022 · 4 comments
Open

hzero-admin服务启动失败 #24

hjxy2012 opened this issue Sep 25, 2022 · 4 comments

Comments

@hjxy2012
Copy link

按照文档中说明,配置了相关中间件,导入数据库。先启动hzero-register,然后在启动hzero-admin和hzero-config过程中均报错,其中hzero-admin部分报错如下:

image

开发环境为m1 mac,jdk 1.8。

附上全部日志如下:
hzero-admin.log

@fcppl
Copy link

fcppl commented Sep 26, 2022

您好:
在最开始提示“未找到该服务”,是因为在服务启动过程会请求hzero-admin的接口。 在hzero-admin服务中有做一些服务初始化的操作。 在初始化路由信息时,会用discoveryClient获取服务实例信息,此时服务还没有启动完成,服务实例是可能获取不到的,会提示“未找到该服务”的错误。 但是这个错误在服务启动完成后,当discoveryClient能获取到服务实例信息时,就不会报错了。
在日志的后面有“PermissionRefreshService#innerRefresh(String,String) failed and no fallback available.”的报错。 原因是因为在初始化接口权限信息时,会调用hzero-iam刷新权限的接口。 把hzero-iam服务启动起来,就不会有问题了

@hjxy2012
Copy link
Author

谢谢回复!按照您提供的思路,把其他服按顺序启动,发现hzero-iam服务还是启动不起来,其他正常。

image

image

image

@fcppl
Copy link

fcppl commented Sep 27, 2022

您好:
iam启动报的这个错,看下配置文件 前缀为 hzero.admin.client下的配置。 如果您没有改动过。 麻烦提供下详细的日志和脱敏后的配置文件,我在判断下您那边的问题。

@hjxy2012
Copy link
Author

非常感谢您的回复!按照您的提示,检查了iam服务,注意到我之前因为iam无法启动所以增加了application.properties配置如下:
eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false
重新拉取代码然后运行bash命令就好了,非常感谢!汉得的代码写的不错,文档也很丰富,点赞!

image

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

2 participants