监视JHipster错误启动JHipster警报程序

监视JHipster错误启动JHipster警报程序,jhipster,elastalert,Jhipster,Elastalert,我已根据此链接安装了开箱即用的监控: 当我开始时: docker-compose up -d 一切都开始了,但不是Elastalert: First log: 错误:对于监视,jhipster-alerter\u 1无法启动服务jhipster alerter:OCI运行时创建失败:container\u linux.go:296:启动容器进程导致“process\u linux.go:398:container init导致\”rootfs\u linux.go:58:将\\\\“/Us

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

当我开始时:

docker-compose up -d
一切都开始了,但不是Elastalert:

First log:
错误:对于监视,jhipster-alerter\u 1无法启动服务jhipster alerter:OCI运行时创建失败:container\u linux.go:296:启动容器进程导致“process\u linux.go:398:container init导致\”rootfs\u linux.go:58:将\\\\“/Users/john/source/intellij/company/app/myservice/alerts/config.yaml\\”装载到rootfs\\“/var/lib/docker/overlay2/5657c6e9e7bb2be5cf4fa9860c04269e34be15641f4e3f0c1449af7cbf82ced5/merged\\\”在\\\\”/var/lib/docker/overlay2/5657c6e9e7bb2be5cf4fa9860c0469e3f0c449af7cbf82ced5/merged/opt/elastalert/config.yaml\\”导致“没有目录\\””“:未知:您是否正在尝试装入目录启动监视\u jhipster-import-dashboards\u 1?”

Second log:
错误:对于jhipster alerter无法启动服务jhipster alerter:OCI运行时创建失败:container_linux.go:296:启动容器进程导致“process_linux.go:398:container init导致\“rootfs_linux.go:58:mounting\\”/Users/john/source/intellij/company/app/myservice/alerts/config.yaml\\”到rootfs\\“/var/lib/docker/overlay2/5657c6e9e7bb2be5cf4fa9860c0469e34be15641f4e3f0c1449af7cbf82ced5/merged\\”at\\”/var/lib/docker/overlay2/5657c6e9e7bb2be5cf4fa9860c0469e34be1564e3f0c1449af7cbf82ced5/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


如所示。

我也有同样的问题,你找到解决方案了吗?抱歉,没有…单击问题上有用的标签,也许有人会回答…我已从docker-compose.yml文件中删除了jhipster alerter和jhipster zipkin服务,它对我有效。我不需要这些服务。是的,这会起作用,但无法解决问题M
        - ../alerts/rules/:/opt/elastalert/rules/
        - ../jhipster-alerter/config.yaml:/opt/elastalert/config.yaml