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

Helm deployed Studio release-3.8 suffers from config file etc/studio-api.yaml, field File.SqliteDbFilePath is not set #702

Closed
qiuchen001 opened this issue Dec 8, 2023 · 4 comments
Labels
affects/none PR/issue: this bug affects none version. process/fixed Process of bug severity/none Severity of bug type/bug Type: something is unexpected

Comments

@qiuchen001
Copy link

qiuchen001 commented Dec 8, 2023

Studio版本:release-3.8

复现步骤:

  1. git clone https://github.com/vesoft-inc/nebula-studio.git
  2. cd nebula-studio
  3. helm upgrade --install my-studio --set service.type=NodePort --set service.port={30070} deployment/helm

现象:
pod将会报错,日志为:config file etc/studio-api.yaml, field File.SqliteDbFilePath is not set
对应的configmap为:
a59d2c229bbd0bce34b0a503ff0b9c9

@wey-gu wey-gu changed the title Helm 部署 Studio release-3.8 出现pod报错: config file etc/studio-api.yaml, field File.SqliteDbFilePath is not set Helm deployed Studio release-3.8 suffers from config file etc/studio-api.yaml, field File.SqliteDbFilePath is not set Dec 8, 2023
@wey-gu wey-gu added the type/bug Type: something is unexpected label Dec 8, 2023
@github-actions github-actions bot added affects/none PR/issue: this bug affects none version. severity/none Severity of bug labels Dec 8, 2023
@huaxiabuluo
Copy link
Contributor

Studio版本:release-3.8

复现步骤:

  1. git clone https://github.com/vesoft-inc/nebula-studio.git
  2. cd nebula-studio
  3. helm upgrade --install my-studio --set service.type=NodePort --set service.port={30070} deployment/helm

现象: pod将会报错,日志为:config file etc/studio-api.yaml, field File.SqliteDbFilePath is not set 对应的configmap为: a59d2c229bbd0bce34b0a503ff0b9c9

看起来是比较早期某个版本的 mater 代码?

@nekomeowww
Copy link
Contributor

Pod 将会报错,日志为:config file etc/studio-api.yaml, field File.SqliteDbFilePath is not set

values.yaml 里面的镜像版本改过吗?3.8 的话应该没有这个错误了才对

image:
  pullPolicy: IfNotPresent
  nebulaStudio:
    name: vesoft/nebula-graph-studio
    version: v3.8.0

3.7 确实是会有这样的问题:

File struct {
UploadDir string
TasksDir string
SqliteDbFilePath string
TaskIdPath string
}

另外图里面还在用 Type: "mysql",如果是测试用的部署的话,应该得切换到 sqlite3 才能让它正常运作

@nekomeowww
Copy link
Contributor

@qiuchen001 重新拉一下 git 仓库的更新,修改一下

# The database backend, either "mysql", "sqlite3".
Type: "mysql"

的 Type 到 sqlite3

然后重新原地执行

helm install nebula-studio --namespace nebula .

应该就能用了。

记得部署之后的 Service 也检查一下,如果需要 NodePort 类型的 Service 需要直接访问的话可以用

kubectl expose <deployment> --name=<name> --type=NodePort

暴露一下。

cc @huaxiabuluo @wey-gu 应该可以关掉 Issue 了

@wey-gu
Copy link
Contributor

wey-gu commented Jan 5, 2024

太强了,感谢 @nekomeowww !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/none PR/issue: this bug affects none version. process/fixed Process of bug severity/none Severity of bug type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

4 participants