-
Notifications
You must be signed in to change notification settings - Fork 101
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
[apphub/grafana] 使用helm安装之后web界面登陆问题 #115
Comments
这个似乎是grafana版本本身的问题? grafana/grafana#15316 可以尝试下issue中所述的切换后端存储试试看。 |
@wonderflow 原来是建波 大神 |
@wkshare 你的grafana是部署在k8s环境下面的吗,我尝试将我的grafana的副本数调为1,可以登陆了 |
我的也是6.7.1的版本,k8s环境,helm安装的。一开始的副本数就是1。循环登录。 |
@wkshare 解决了:升级新版本的谷歌浏览器之后,能刷出来的。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
安装命令
helm install --name dev apphub/prometheus-operator --namespace monitoring
helm版本
Client: &version.Version{SemVer:"v2.16.1",GitCommit:"bbdfe5e7803a12bbdf97e94cd847859890cf4050", GitTreeState:"clean"} Server: &version.Version{SemVer:"v2.16.1",GitCommit:"bbdfe5e7803a12bbdf97e94cd847859890cf4050", GitTreeState:"clean"}
helm ls
NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE dev 1 Mon Dec 2 16:18:48 2019 DEPLOYED prometheus-operator-8.2.2 0.34.0 monitoring
当前状态
pod/alertmanager-dev-prometheus-operator-alertmanager-0 2/2 Running 0 17h
pod/dev-grafana-55cb4b8c79-629rz 2/2 Running 0 14h
pod/dev-grafana-55cb4b8c79-qqtg5 2/2 Running 0 17h
pod/dev-grafana-55cb4b8c79-rjt8p 2/2 Running 0 17h
pod/dev-kube-state-metrics-7fdb8486d9-j9q58 1/1 Running 0 17h
pod/dev-prometheus-node-exporter-rlv9g 1/1 Running 0 17h
pod/dev-prometheus-node-exporter-zvcrd 1/1 Running 0 17h
pod/dev-prometheus-operator-operator-77dff75778-8b9zc 2/2 Running 0 17h
pod/prometheus-dev-prometheus-operator-prometheus-0 3/3 Running 1 17h
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/alertmanager-operated ClusterIP None 9093/TCP,9094/TCP,9094/UDP 17h
service/dev-grafana ClusterIP 10.254.71.10 80/TCP 17h
service/dev-kube-state-metrics ClusterIP 10.254.162.84 8080/TCP 17h
service/dev-prometheus-node-exporter ClusterIP 10.254.44.250 9100/TCP 17h
service/dev-prometheus-operator-alertmanager ClusterIP 10.254.71.141 9093/TCP 17h
service/dev-prometheus-operator-operator ClusterIP 10.254.223.1 8080/TCP,443/TCP 17h
service/dev-prometheus-operator-prometheus ClusterIP 10.254.213.74 9090/TCP 17h
service/prometheus-operated ClusterIP None 9090/TCP 17h
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
daemonset.apps/dev-prometheus-node-exporter 2 2 2 2 2 17h
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/dev-grafana 3/3 3 3 17h
deployment.apps/dev-kube-state-metrics 1/1 1 1 17h
deployment.apps/dev-prometheus-operator-operator 1/1 1 1 17h
NAME DESIRED CURRENT READY AGE
replicaset.apps/dev-grafana-55cb4b8c79 3 3 3 17h
replicaset.apps/dev-kube-state-metrics-7fdb8486d9 1 1 1 17h
replicaset.apps/dev-prometheus-operator-operator-77dff75778 1 1 1 17h
NAME READY AGE
statefulset.apps/alertmanager-dev-prometheus-operator-alertmanager 1/1 17h
statefulset.apps/prometheus-dev-prometheus-operator-prometheus 1/1 17h
ingress访问
问题:
登陆grafana web界面的时候用户名密码显示成功,但是有302又重定向到了login界面
查看容器日志
t=2019-12-02T11:12:39+0000 lvl=info msg="HTTP Server Listen" logger=http.server address=0.0.0.0:3000 protocol=http subUrl= socket= t=2019-12-02T11:13:42+0000 lvl=info msg="Successful Login" logger=http.server User=admin@localhost t=2019-12-02T11:13:50+0000 lvl=info msg="Successful Login" logger=http.server User=admin@localhost t=2019-12-02T11:14:06+0000 lvl=eror msg="Failed to look up user based on cookie" logger=context error="user token not found" t=2019-12-02T11:14:06+0000 lvl=info msg="Request Completed" logger=context userId=0 orgId=0 uname= method=GET path=/ status=302 remote_addr=10.200.182.167 time_ms=0 size=29 referer=http://grafana.dev.me/login t=2019-12-02T11:15:32+0000 lvl=eror msg="Failed to look up user based on cookie" logger=context error="user token not found" t=2019-12-02T11:15:32+0000 lvl=info msg="Request Completed" logger=context userId=0 orgId=0 uname= method=GET path=/ status=302 remote_addr=10.200.182.167 time_ms=0 size=29 referer=http://grafana.dev.me/login t=2019-12-02T11:17:14+0000 lvl=eror msg="Failed to look up user based on cookie" logger=context error="user token not found" t=2019-12-02T11:17:14+0000 lvl=info msg="Request Completed" logger=context userId=0 orgId=0 uname= method=GET path=/ status=302 remote_addr=10.200.182.167 time_ms=0 size=29 referer=http://grafana.dev.me/login t=2019-12-02T11:17:28+0000 lvl=info msg="Successful Login" logger=http.server User=admin@localhost
请帮忙看下是什么问题,多谢!
The text was updated successfully, but these errors were encountered: