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

获取开发目录失败 #443

Closed
hxp0618 opened this issue May 17, 2022 · 9 comments
Closed

获取开发目录失败 #443

hxp0618 opened this issue May 17, 2022 · 9 comments
Labels
bug Something isn't working

Comments

@hxp0618
Copy link

hxp0618 commented May 17, 2022

建议先去浏览下文档和部署常见问题
快速开始
部署常见问题

image

image
image

bug场景描述
获取开发目录失败,已经确认多次是否租户没有绑定队列的问题,但是好像并不是这个问题导致的,测试了yarn组件是正常的,后台没有异常日志,也没有调用接口的请求,所以我也不知道怎么排查了
bug日志信息或数据信息

bug相关代码

提示的异常或者没有达到的效果

@hxp0618 hxp0618 added the bug Something isn't working label May 17, 2022
@hxp0618
Copy link
Author

hxp0618 commented May 17, 2022

我不能理解,我用master重新部署了一套,集群配置、测试连通了,租户绑定了,但是出现了新问题,一直提示集群未绑定
image
image
image

@QAQ-Jun
Copy link
Contributor

QAQ-Jun commented May 17, 2022

可以查看下console_cluster_tenant这个表的数据么,因为现在看是代码用租户ID去查询这个表数据时,没有查询到

@hxp0618
Copy link
Author

hxp0618 commented May 17, 2022

可以查看下console_cluster_tenant这个表的数据么,因为现在看是代码用租户ID去查询这个表数据时,没有查询到
有数据,我按这个issue :#228 简单排查了一下,但是没有找到问题
image

@QAQ-Jun
Copy link
Contributor

QAQ-Jun commented May 17, 2022

你那边方便debug么,我现在看代码逻辑也是没问题,方便的话可以跟下
com.dtstack.taier.develop.service.develop.impl.BatchCatalogueService beforeGetCatalogue 这个方法,如果不方便,我再看看是不是哪里逻辑有问题

@hxp0618
Copy link
Author

hxp0618 commented May 17, 2022

beforeGetCatalogue
有值d的,
image
image
这个是查询语句查出来的值以及对应的集群信息
image
image

@QAQ-Jun
Copy link
Contributor

QAQ-Jun commented May 17, 2022

我现在看你最后一张图片的name属性是???,看看develop_catalogue是表中的数据乱码了么

@QAQ-Jun
Copy link
Contributor

QAQ-Jun commented May 17, 2022

我刚本地复现了下,流程是没有问题的,所以肯定是哪里的数据存在了问题

@hxp0618
Copy link
Author

hxp0618 commented May 17, 2022

我刚本地复现了下,流程是没有问题的,所以肯定是哪里的数据存在了问题

确实是编码问题,数据库连接我一开始用的拉下来的配置
image
出现了数据乱码,改成这个后 characterEncoding=UTF-8 ,重新创建租户生效
image

@QAQ-Jun
Copy link
Contributor

QAQ-Jun commented May 17, 2022

👌 解决问题了就行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants