When verify configuration, I see an error message:Error invoking service: Invalid Analytics Server Version (ValidateMLServerVersion#5)
In log file:
2017-07-21 04:30:07.093+0800 [L: ERROR] [O: S.c.t.d.e.DSLScript] [I: ] [U: Administrator] [S: ] [T: http-nio-80-exec-1] GetVersion: ERROR retrieving version from instance 'VerifyMLInstance': JavaException: org.apache.http.conn.HttpHostConnectException: Connect to 192.168.99.100:8080 [/192.168.99.100] failed: Connection refused: connect
2017-07-21 04:30:07.124+0800 [L: ERROR] [O: S.c.t.d.e.DSLProcessor] [I: ] [U: Administrator] [S: ] [T: http-nio-80-exec-11] Execution error in service script [TW_ML_Helper ValidateMLServerVersion] : Invalid Analytics Server Version (ValidateMLServerVersion#5)
In my thingworx analytics server docker installiation folder, there is a folder of validation, tried to run docker_validator.exe,got the following message:
Verifying docker installation ...
Command output: Docker version 17.05.0-ce, build 89658be
docker installation verified
Error accessing docker daemon: exit status 1
Hope these is useful for your diagnostic.
I installed docker toolbox in Win7. And I uninstall thingworx analytics server and removed two machines of docker: default and DockerMachinePTC, then I reinstall thingworx analytics server. The twa server is working. Open Docker Quickstart Terminal and run command:
docker ps -a
There is no analytics container listed.
Run docker ps -a under folder of C:\Program Files\Docker Toolbox>
docker ps -a
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.29/containers/json?all=1: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
And run docker-machine ls I got:
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
default - virtualbox Running tcp://192.168.99.101:2376 v17.06.0-ce
DockerMachinePTC - virtualbox Stopped
When run thingworx analytics server start, it said DockerMachinePTC is already running, but docker-machine ls tells me it's stopped. I am confused.
It sounds like when I restart my laptop, I can't run twa server after I run Docker Quickstart Terminal, so this is about IP? I am not familiar with docker.
Thanks & Best Regards
On Docker Toolbox, if you execute docker ps -a, by default it lists the containers defined in the default docker machine. So it is normal that you would not see the analytics container because it is running inside the DockerMachinePTC.
To switch docker machine, execute
eval "$(docker-machine env DockerMachinePTC)"
then docker ps -a will list the container defined in this docker machine.
However the eval command will only work if the DockerMachinePTC runs.
From what you wrote the status seems unclear.
You could open Virtual box manager and check if the DockerMachinePTC appears as running there or not.
If it is not running , then it seems the output of docker-machine ls would be correct and you could start it with docker-machine start DockerMachinePTC
Hope this help