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

Fail to gemix cluster install ... cause that grafana:7.5.17 's download url is changed. throw exception: "Error: receiving status of 404 for url: https://dl.grafana.com/oss/release/grafana-enterprise-7.5.17.linux-amd64.tar.gz" #67

Open
Johnny-ZTSD opened this issue Dec 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Johnny-ZTSD
Copy link

Johnny-ZTSD commented Dec 20, 2024

Describe the bug(Bug 描述)

  • os : centos 7.9 Linux

  • arch: amd64

  • gemix : v1.0.1 or master

  • problem description :

Fail to gemix cluster install ... cause that grafana:7.5.17 's download url is changed. throw exception: "Error: receiving status of 404 for url: https://dl.grafana.com/oss/release/grafana-enterprise-7.5.17.linux-amd64.tar.gz"

To Reproduce(Bug 复现步骤)

No response

Expected behavior(期望结果)

GEMIX_MIRRORS_REPO=gitee.com gemix cluster install gemini-test v1.2.0 ./topology.yaml --user root

Screenshots(屏幕截图)

No response

Logs(完整的错误日志)

  • detail install logs:
# [root@vmw-b opengemini]# GEMIX_MIRRORS_REPO=gitee.com gemix cluster install gemini-test v1.2.0 ./topology.yaml --user root
Please confirm your topology:
Cluster name:    gemini-test
Cluster version: v1.2.0
Role       Host               Ports                          OS/Arch      Directories
----       ----               -----                          -------      -----------
...
...
Do you want to continue? [y/N]: (default=N) y
+ Download openGemini components
+ Generate SSH keys ... Done
  - Download openGemini:v1.2.0 (linux/amd64) ... Done
  - Download grafana:v1.2.0 (linux/amd64) ... Done
  - Download openGemini:v1.2.0 (linux/amd64) ⣽  Doing...

Error: receiving status of 404 for url: https://dl.grafana.com/oss/release/grafana-enterprise-7.5.17.linux-amd64.tar.gz
Verbose debug logs has been written to /root/.gemix/logs/gemix-cluster-debug-2024-12-19-15-35-31.log.

Additional context(其他的一些补充内容)

  • root cause

grafana old download url : https://dl.grafana.com/oss/release/grafana-enterprise-7.5.17.linux-amd64.tar.gz
grafana new download url : https://dl.grafana.com/enterprise/release/grafana-enterprise-7.5.17.linux-amd64.tar.gz

  • you can see the grafana url, then you know it.

https://grafana.com/grafana/download/7.5.17?pg=get&plcmt=selfmanaged-box1-cta1

  • key code:

https://github.com/openGemini/gemix/blob/v1.0.1/pkg/cluster/operation/download.go
https://github.com/openGemini/gemix/blob/main/pkg/cluster/operation/download.go#L46

	if component == spec.ComponentGrafana {
		// FIXME: download from opengemini.org
		if nodeOS == "darwin" {
			arch = "amd64"
		}
		fileName = fmt.Sprintf("%s-enterprise-%s.%s-%s.tar.gz", component, ver.GrafanaVersion, nodeOS, arch)
		componentUrl = strings.Join([]string{"https://dl.grafana.com/oss/release", fileName}, "/")
	}
  • other code (grafana version config of gemix)
package version

const (
	GrafanaVersion = "7.5.17"
)
@Johnny-ZTSD
Copy link
Author

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

1 participant