Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Vincent Zurczak
    @vincent-zurczak
    roboconf-1000-commits.png
    amchess
    @amchess

    Hello.

    I tried unsuccessfully to execute the following tutorial :
    http://roboconf.net/en/user-guide/tutorial-local-deployment-with-docker.html

    After the correct docker configuration listening at the 4243 port and with the pulled ubuntu-latest
    for the 0.9.1 version of roboconf and lamp-webapp-bash application, I logged the following errors :

    Karaf.log
    2017-11-13 17:18:50,422 | ERROR | pool-22-thread-1 | edTargetHandler$CheckingRunnable | 36 - net.roboconf.target-api - 0.9.1 | An error occurred while configuring machine 'rbcf_4e7d1f37-3ace-4b31-97e6-0582ac72759b'. org.apache.http.conn.HttpHostConnectException: Connect to localhost:4243 [localhost/127.0.0.1] failed: Connexion refusée (Connection refused)

    roboconf.log
    2017-11-14 11:14:39,376 | ERROR | edTargetHandler$CheckingRunnable | An error occurred while configuring machine 'rbcf_8d6bd158-4b52-4a81-a1d9-1124577f53cd'. com.github.dockerjava.api.exception.NotFoundException: {"message":"No such image: demo_roboconf_demo:latest"}
    ...
    2017-11-14 11:17:26,870 | ERROR | ManagedApplication | Agent /MySQL VM has not sent heart beats for quite a long time. Status changed to PROBLEM.
    If, instead I tag manually a demo_robo_demo image from the ubuntu:latest, I have no error, but the created and started containers of lamp application exit immediately with the following warning on the logs:
    A method was found for cap-add but it does not have the right parameter type. Skipping it. You may want to add a feature request.

    for the 0.8 version of roboconf and lamp-webapp-bash application, I have the following error :
    roboconf.log
    com.github.dockerjava.api.exception.DockerClientException: Could not build image: The command '/bin/sh -c apt-get update && apt-get install -y openjdk-7-jre-headless && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
    at com.github.dockerjava.core.command.BuildImageResultCallback.getImageId(BuildImageResultCallback.java:71)
    at com.github.dockerjava.core.command.BuildImageResultCallback.awaitImageId(BuildImageResultCallback.java:48)
    at net.roboconf.target.docker.internal.DockerMachineConfigurator.createImage(DockerMachineConfigurator.java:344)
    at net.roboconf.target.docker.internal.DockerMachineConfigurator.configure(DockerMachineConfigurator.java:153)
    at net.roboconf.target.api.AbstractThreadedTargetHandler$CheckingRunnable.run(AbstractThreadedTargetHandler.java:207)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)

    Is there a way to execute successfully this tutorial ?

    Many thanks in advance.

    Vincent Zurczak
    @vincent-zurczak
    Hi.
    Which version of Roboconf are you using? And which version of Docker?
    amchess
    @amchess
    Docker: the latest
    Vincent Zurczak
    @vincent-zurczak
    There is a little error in the last documentation, our images are not based on Ubuntu anymore.
    amchess
    @amchess
    Roboconf: the latest 0.9.1 and the 0.8
    Vincent Zurczak
    @vincent-zurczak
    You cannot mix Roboconf versions...
    amchess
    @amchess
    yes of course
    I stopped one and started the other
    Vincent Zurczak
    @vincent-zurczak
    Which version of Roboconf did you use when you got this error?
    amchess
    @amchess
    I have different errors on those versions
    like I described in the message
    Vincent Zurczak
    @vincent-zurczak
    If you mean the DM, on your machine, then they probably rely on the same (local) Docker images. But both versions of Roboconf expect different kinds of images.
    amchess
    @amchess
    yes
    Vincent Zurczak
    @vincent-zurczak
    Version 0.9.1 expects our official image for an agent (or even a derivated image).
    I will focus on version 0.9.1.
    amchess
    @amchess
    OK
    On the tutorial it's marked
    I can use ubuntu:latest
    and roboconf will create
    Vincent Zurczak
    @vincent-zurczak
    And like I said, this is an outdated remaining.
    amchess
    @amchess
    demo_roboconf_demo
    Vincent Zurczak
    @vincent-zurczak
    The up-to-date documentation for Docker support is here: http://roboconf.net/en/user-guide/target-docker.html
    amchess
    @amchess
    who will contain all lamp application sw components
    Vincent Zurczak
    @vincent-zurczak
    I see 3 errors in your logs. :/
    2017-11-13 17:18:50,422 | ERROR | pool-22-thread-1 | edTargetHandler$CheckingRunnable | 36 - net.roboconf.target-api - > 0.9.1 | An error occurred while configuring machine 'rbcf_4e7d1f37-3ace-4b31-97e6-0582ac72759b'. org.apache.http.conn.HttpHostConnectException: Connect to localhost:4243 [localhost/127.0.0.1] failed: Connexion refusée (Connection refused)
    The Java client for Docker could not contact the socket.
    Maybe it is configured to not accept requests.
    amchess
    @amchess
    I think no
    I tried
    and I have a Json response
    Vincent Zurczak
    @vincent-zurczak
    The client could not connect, but I do not know why the connection failed.
    I have just created roboconf/roboconf.github.io#90 about the tutorial to update...
    2017-11-14 11:14:39,376 | ERROR | edTargetHandler$CheckingRunnable | An error occurred while configuring machine 'rbcf_8d6bd158-4b52-4a81-a1d9-1124577f53cd'. com.github.dockerjava.api.exception.NotFoundException: {"message":"No such image: demo_roboconf_demo:latest"}
    amchess
    @amchess
    Based on the tutorial, the ubuntu:latest image should be all I need because
    Vincent Zurczak
    @vincent-zurczak
    This second error is normal, our Docker driver does not generate images in the same way than before.
    amchess
    @amchess
    from that Roboconf can generate the demo_roboconf_demo docker container
    Vincent Zurczak
    @vincent-zurczak
    You can mention the tutorial as much as you want, I told you it is not up-to-date. ;)
    2017-11-14 11:17:26,870 | ERROR | ManagedApplication | Agent /MySQL VM has not sent heart beats for quite a long time. Status changed to PROBLEM.
    No image was generated, no container was launched. This error is obvious.
    Eventually...
    amchess
    @amchess
    ok
    Vincent Zurczak
    @vincent-zurczak
    And what makes more scared...
    A method was found for cap-add but it does not have the right parameter type. Skipping it. You may want to add a feature request.
    I do not know what to think about it for the moment (even if I do understand what it means).
    Now...
    amchess
    @amchess
    Perhaps, this error is because
    I forced a manual demo_robo_conf_demo image