gpt4 book ai didi

cloud-foundry - Swisscom 应用程序云上的 Grafana 停止运行

转载 作者:行者123 更新时间:2023-12-04 05:05:19 24 4
gpt4 key购买 nike

突然之间(2018 年 3 月 3 日下午 3 点左右),我们的 Grafana Docker 实例在 Swisscom Application Cloud (cloudfoundry) 中停止工作。应用云最近有什么变化吗?关于在哪里查看有任何提示吗?

  • 索引:0
  • 退出状态:未定义
  • 退出描述:APP/PROC/WEB:
  • 已退出,状态为 1
  • 原因:崩溃

应用程序日志:

2018-04-04 13:08:43 [CELL/0] OUT Cell b8093908-296c-4050-b61b-763989f2e453 creating container for instance 53de901b-e6c2-40d7-6071-e673

2018-04-04 13:09:03 [CELL/0] OUT Cell b8093908-296c-4050-b61b-763989f2e453 successfully created container for instance 53de901b-e6c2-40d7-6071-e673

2018-04-04 13:09:03 [CELL/0] OUT Starting health monitoring of container

2018-04-04 13:09:04 [APP/PROC/WEB/0] OUT installing grafana-clock-panel @ 0.0.9

2018-04-04 13:09:04 [APP/PROC/WEB/0] OUT from url: https://grafana.com/api/plugins/grafana-clock-panel/versions/0.0.9/download

2018-04-04 13:09:04 [APP/PROC/WEB/0] OUT into: /var/lib/grafana/plugins

2018-04-04 13:09:06 [APP/PROC/WEB/0] OUT ✔ Installed grafana-clock-panel successfully

2018-04-04 13:09:06 [APP/PROC/WEB/0] OUT Restart grafana after installing plugins . <service grafana-server restart>

2018-04-04 13:09:06 [APP/PROC/WEB/0] OUT installing grafana-piechart-panel @ 1.2.0

2018-04-04 13:09:06 [APP/PROC/WEB/0] OUT from url: https://grafana.com/api/plugins/grafana-piechart-panel/versions/1.2.0/download

2018-04-04 13:09:06 [APP/PROC/WEB/0] OUT into: /var/lib/grafana/plugins

2018-04-04 13:09:08 [APP/PROC/WEB/0] OUT ✔ Installed grafana-piechart-panel successfully

2018-04-04 13:09:08 [APP/PROC/WEB/0] OUT Restart grafana after installing plugins . <service grafana-server restart>

2018-04-04 13:09:09 [APP/PROC/WEB/0] OUT installing vonage-status-panel @ 1.0.7

2018-04-04 13:09:09 [APP/PROC/WEB/0] OUT from url: https://grafana.com/api/plugins/vonage-status-panel/versions/1.0.7/download

2018-04-04 13:09:09 [APP/PROC/WEB/0] OUT into: /var/lib/grafana/plugins

2018-04-04 13:09:10 [APP/PROC/WEB/0] OUT ✔ Installed vonage-status-panel successfully

2018-04-04 13:09:10 [APP/PROC/WEB/0] OUT Restart grafana after installing plugins . <service grafana-server restart>

**2018-04-04 13:09:10 [APP/PROC/WEB/0] OUT t=2018-04-04T11:09:10+0000 lvl=crit msg="Failed to parse /etc/grafana/grafana.ini, open /etc/grafana/grafana.ini: no such file or directory%!(EXTRA []interface {}=[])"**

2018-04-04 13:09:10 [APP/PROC/WEB/0] OUT Exit status 1

2018-04-04 13:09:10 [CELL/SSHD/0] OUT Exit status 0

2018-04-04 13:09:11 [CELL/0] OUT Cell b8093908-296c-4050-b61b-763989f2e453
stopping instance 53de901b-e6c2-40d7-6071-e673

2018-04-04 13:09:11 [CELL/0] OUT Cell b8093908-296c-4050-b61b-763989f2e453 destroying container for instance 53de901b-e6c2-40d7-6071-e673

2018-04-04 13:09:11 [API/3] OUT Process has crashed with type: "web"

**2018-04-04 13:09:11 [API/3] OUT App instance exited with guid 4a8f31f8-19a4-4f2c-8429-57ca5d2340f8 payload: {"instance"=>"53de901b-e6c2-40d7-6071-e673", "index"=>0, "reason"=>"CRASHED", "exit_description"=>"APP/PROC/WEB: Exited with status 1", "crash_count"=>9, "crash_timestamp"=>1522840150921536309, "version"=>"a25f82a6-7e9b-4e23-b4e6-3498eb58f072"}**

2018-04-04 13:09:11 [CELL/0] OUT Cell b8093908-296c-4050-b61b-763989f2e453 successfully destroyed container for instance 53de901b-e6c2-40d7-6071-e673

最佳答案

此时我们更新了cloudfoundry/diego以使用garden-runc grootfs并替换garden-sched。
grafana/grafana docker 镜像(latest/5.0.4)包含一个volume指令,该指令在garden-runc v1.12.1(最新)上处理不正确。花园容器中缺少必要的 grafana 文件。请参阅garden-runc issue了解更多详情。

解决方法

可以从 Dockerfile 中删除volume指令。docker build 和 docker Push 到另一个存储库。

Dockerfile 中删除此行

VOLUME ["/var/lib/grafana", "/var/log/grafana", "/etc/grafana"]

关于cloud-foundry - Swisscom 应用程序云上的 Grafana 停止运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49649688/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com