After running docker-compose up --detach I could see three containers running namely iofog-agent, iofog-controller and iofog-connector.
executing iofog-agent status command in the agent container gives the below output
ioFog daemon : RUNNING
Memory Usage : about 142.16 MiB
Disk Usage : about 0.00 MiB
CPU Usage : about 0.00%
Running Microservices : 0
Connection to Controller : ok
Messages Processed : about 0
System Time : 16/11/2018 05:39 PM
I pushed a sample microservice docker image to the local docker registry and tried adding the same to iofog-controller registry (registry-id = 2) using iofog-controller catalog add. It returned a catalog ID.
Since the iofog enviroment didnât have a default flow setup, I created one using iofog-controller flow add -n âflow_1â -d âflow_iofogâ -a -u 1.
And then tried adding the microservice to the iofog-controller using iofog-controller microservice add
This returned me FlowService.getFlow is not a function error. Kindly help me resolve this.
Are you still trying to install quickstart script or just controller from npm package?
This error appears when controller wasnât started yet and database isnât created.
For quick start script - controller is started automatically.
For package install - you need to manually start controller using âiofog-controller startâ command and then all CLI commands will work.
About quickstart script - there was an issue with previously installed docker images, you can try it once more and it should work.
Or just clean previous images using docker-compose down --rmi all
and re-run docker-compose up