gpt4 book ai didi

jhipster - 监控 JHipster 错误启动 jhipster-alerter

转载 作者:行者123 更新时间:2023-12-02 13:51:30 25 4
gpt4 key购买 nike

我已经根据此链接安装了开箱即用的监控:

http://www.jhipster.tech/monitoring/

当我开始时:

docker-compose up -d

一切都开始了,但 Elastalert 还没有开始:

First log:

错误:monitoring_jhipster-alerter_1无法启动服务jhipster-alerter:OCI运行时创建失败:container_linux.go:296:启动容器进程导致“process_linux.go:398:容器初始化导致\”rootfs_linux.go:58:安装\\“/Users/john/source/intellij/company/app/myservice/alerts/config.yaml\\”到rootfs\\“/var/lib/docker/overlay2/5657c6e9e7bb2be5cf4fa9860c04269e34be15641f4e3f0c1449af7cbf82ced5/merged\\”在\\“/var/lib/docker/overlay2/5657c6e9e7bb2be5cf4fa9860c04269e34be15641f4e3f0c1449af7cbf82ced5/merged/opt/elastalert/config.yaml\\"导致\\"不是目录\\"\"": 未知:您是否正在尝试安装 direStarting reporting_jhipster-import-仪表板_1

Second log:

错误:jhipster-alerter 无法启动服务 jhipster-alerter:OCI 运行时创建失败:container_linux.go:296: 启动容器进程导致“process_linux.go:398: 容器初始化导致\”rootfs_linux.go:58: 挂载\\“/Users/john/source/intellij/company/app/myservice/alerts/config.yaml\\”到rootfs\\“/var/lib/docker/overlay2/5657c6e9e7bb2be5cf4fa9860c04269e34be15641f4e3f0c1449af7cbf82ced5/merged\\”在\\“/var/lib/docker/overlay2/5657c6e9e7bb2be5cf4fa9860c04269e34be15641f4e3f0c1449af7cbf82ced5/merged/opt/elastalert/config.yaml\\"导致\\"不是目录\\"\"": 未知:您是否尝试将目录挂载到文件上 (或相反亦然)?检查指定的主机路径是否存在并且是预期的类型错误:启动项目时遇到错误。

使用我获得的默认 docker-compose.yml 文件:

curl -O https://raw.githubusercontent.com/jhipster/jhipster-console/master/bootstrap/docker-compose.yml

我不确定这条消息说的是什么?

最佳答案

这是因为 JHipster Alerter 的卷路径不正确。改变

jhipster-alerter:
image: jhipster/jhipster-alerter:latest
environment:
- ES_HOST=jhipster-elasticsearch
- ES_PORT=9200
volumes:
- ../jhipster-alerter/rules/:/opt/elastalert/rules/
- ../alerts/config.yaml:/opt/elastalert/config.yaml

        - ../alerts/rules/:/opt/elastalert/rules/
- ../jhipster-alerter/config.yaml:/opt/elastalert/config.yaml

https://github.com/jhipster/jhipster-console/pull/102/commits/fa5bc75ec29ca357477ac1a22203ae6cbe2af2f7所示.

关于jhipster - 监控 JHipster 错误启动 jhipster-alerter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48240649/

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