在Apache Ignite for Docker上启动WebAgent [英] Starting WebAgent on Apache Ignite for Docker

查看:337
本文介绍了在Apache Ignite for Docker上启动WebAgent的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试解决docker中两个apache点燃dotnet节点之间的复制问题。

I'm attempting to troubleshoot replication between two apache ignite dotnet nodes in docker.

我已按照此处的说明启用了http-rest:
在使用.Net NuGet Apache Ignite软件包时,如何启用ignite-http-rest模块?

I've enabled http-rest using the instructions here: How do I enable ignite-http-rest module when using the .Net NuGet Apache Ignite package?

我在docker-compose.yml文件中添加了以下内容:

I put the following in my docker-compose.yml:

version: '3.4'

services:
  zignite1:
    image: ${DOCKER_REGISTRY-}zignite1
    build:
      context: .
      dockerfile: zIgnite1/Dockerfile

  webagent:
    image: apacheignite/web-agent
    depends_on:
      - zignite1

  webconsole:
    image: apacheignite/web-console-standalone
    depends_on:
    - webagent

和我的docker-compose.override.yml

And my docker-compose.override.yml

version: '3.4'

services:
  zignite1:
    environment:
      - ASPNETCORE_ENVIRONMENT=Development
      - ASPNETCORE_URLS=https://+:443;http://+:80
      - ASPNETCORE_HTTPS_PORT=44382
    ports:
      - "10001:80"
      - "44383:443"
      - "8090:8080"
    volumes:
      - ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
      - ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:ro

  webagent:
    environment:
      - DRIVER_FOLDER=./jdbc-drivers
      - NODE_URI=http://zignite1:8080      
      - SERVER_URI=http://webconsole
      - TOKENS=sometoken 

  webconsole:
    ports:
      - "8095:80"
      - "3002:3001"

webagent开始运行,然后突然终止,并在日志中显示以下内容:

webagent starts then ends abruptly with the following in the logs:

[2019-07-24 08:33:46,279][INFO ][EventThread][AgentLauncher] Connection established.,
[2019-07-24 08:33:46,331][ERROR][EventThread][AgentLauncher] You are using an older version of the agent. Please reload agent,
Agent configuration:,
User's security tokens          : ****************abcd,
URI to Ignite node REST server  : http://zignite1:8080,
URI to Ignite Console server    : http://webconsole,
Path to agent property file     : default.properties,
Path to JDBC drivers folder     : ./jdbc-drivers,
Demo mode                       : enabled,
[2019-07-24 08:33:38,413][INFO ][main][AgentLauncher] Connecting to: http://webconsole,
[2019-07-24 08:33:38,456][ERROR][EventThread][AgentLauncher] Failed to establish connection to server (connection refused).,
[2019-07-24 08:33:39,969][ERROR][EventThread][AgentLauncher] Failed to receive response from server (connection refused).,
[2019-07-24 08:33:42,731][ERROR][EventThread][AgentLauncher] Failed to receive response from server (connection refused).

我从apacheignite / web-agent中提取了最新图像,因此:
1。在哪里可以获得最新的ignite网络代理二进制文件?
2.如何将其添加到现有图像中以使其起作用?

I've pulled the latest images from apacheignite/web-agent so: 1. Where can I get the latest ignite web-agent binaries? 2. How do I add it to the existing image so that it works?

推荐答案

要解决此问题,您可以应该通过以下步骤重建docker映像:

To solve this, you should rebuild docker image by using next steps:


  1. 启动Web控制台,使用右下角的链接登录并下载Web Agent。

  2. 复制下载的Web Agent存档和Dockerfile(可在此处找到 https://github.com/apache/ignite/tree/master/docker/web-agent )到同一文件夹

  3. 构建通过使用README文件中的3-5步来显示图像

  1. Start Web Console, log in and download Web Agent by using link in the right bottom side.
  2. Copy downloaded Web Agent archive and Dockerfile (can be found here https://github.com/apache/ignite/tree/master/docker/web-agent) to the same folder
  3. Build the image by using steps 3-5 from README file

注意:似乎当前版本的Dockerfile包含错误 https://issues.apache.org/jira/browse/IGNITE-12018 ,您应该将Dockerfile中的COPY命令更改为 COPY ignite-web-agent *的票证。/

NOTICE: seems like current version of Dockerfile contains bug https://issues.apache.org/jira/browse/IGNITE-12018, according to the suggestion from the ticket you should change COPY command in Dockerfile to COPY ignite-web-agent* ./

这篇关于在Apache Ignite for Docker上启动WebAgent的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆