When following the instructions in the Run page, sometimes errors can happened. This page tries to provide some hints of how to solve some errors.
Log collection
In order to collect logs from each service you can use the following command:
docker exec <container_name> cat <log_path>
Below there is a list with the container names follow by the log path, to replace the values in the command above. The container names correspond to the names used in the example Run page, to double check that the you are using the same names in your environment, you could use docker ps.
policy-agent-container="/var/log/policy-agent/application.log"
enrichment-service-container="/var/log/enrichment-coordinator-service/application.log"
nonrtric-control-panel="/logs/nonrtric-controlpanel.log"
nonrtric-gateway="/var/log/nonrtric-gateway/application.log"
The below command can be used to check if there is any error in the logs, in this case for me policy-agent-container, but it could be check for every other container.
docker exec policy-agent-container grep ERR /var/log/policy-agent/application.log
Warning can be also checked, using WARN instead or ERR in the command above.
If using SDNC controller, logs can be seen using the following command:
docker exec a1controller sh -c "tail -f /opt/opendaylight/data/log/karaf.log"
where a1controller is the name of the container and the path of the log is /opt/opendaylight/data/log/karaf.log