OpenVisualCloud / Smart-City-Sample

The smart city reference pipeline shows how to integrate various media building blocks, with analytics powered by the OpenVINO™ Toolkit, for traffic or stadium sensing, analytics and management tasks.
BSD 3-Clause "New" or "Revised" License
189 stars 81 forks source link

Unable to add a simulated sensor #752

Open sudhirkshirsagar opened 3 years ago

sudhirkshirsagar commented 3 years ago

I was able to build and run on Xeon with Ubuntu 18.04 using the git master. The UI shows the map and one office with five cameras. When I click on the camera when it is green, I see the traffic video (sometimes if I am lucky). I don't see any of the simulated sensors and and the simulated sensor service. I am using docker swarm. Could I get a complete cheat-sheet on how to build that simulated sensors and how to add them? The existing readme files did not provide enough info.

xwu2git commented 3 years ago

Please checkout the wikis:

xwu2git commented 3 years ago

By default, the sample configuration includes three offices and each office configures 8 cameras.

sudhirkshirsagar commented 3 years ago

Unfortunately, that is not how it turned out. I did the steps in the tutorial.

On Thu, Mar 18, 2021 at 1:11 PM xwu2 @.***> wrote:

By default, the sample configuration includes three offices and each office configures 8 cameras.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/OpenVisualCloud/Smart-City-Sample/issues/752#issuecomment-802254689, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD52ZGFOJTGMYAD5JZYC77LTEJM7FANCNFSM4ZNG7U2A .

sudhirkshirsagar commented 3 years ago

I had gone through the wiki's. Unfortunately if my base (default) deployment itself is not working correctly, then extending it is even more difficult. For example, I just restarted the swarm and get the same UI with just one office. But got the following in the command window. gqc@dell2950:~/Smart-City-Sample/build$ make start_docker_swarm Built target build_sensor_info_m4 bash into new container...smtc_certificate Generating a 4096 bit RSA private key ..................................++ .........................................++ writing new private key to '/home/docker/self.key'

You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank.

Country Name (2 letter code) [XX]:State or Province Name (full name) []:Locality Name (eg, city) [Default City]:Organization Name (eg, company) [Default Company Ltd]:Organizational Unit Name (eg, section) []:Common Name (eg, your name or your server's hostname) []:Email Address []:Built target sign_smtc_certificate Generating docker-compose.yml Built target build_docker_swarm failed to update secret smtc_self_key: Error response from daemon: rpc error: code = InvalidArgument desc = only updates to Labels are allowed deployment/docker-swarm/CMakeFiles/start_docker_swarm.dir/build.make:57: recipe for target 'deployment/docker-swarm/CMakeFiles/start_docker_swarm' failed make[3]: [deployment/docker-swarm/CMakeFiles/start_docker_swarm] Error 1 CMakeFiles/Makefile2:305: recipe for target 'deployment/docker-swarm/CMakeFiles/start_docker_swarm.dir/all' failed make[2]: [deployment/docker-swarm/CMakeFiles/start_docker_swarm.dir/all] Error 2 CMakeFiles/Makefile2:312: recipe for target 'deployment/docker-swarm/CMakeFiles/start_docker_swarm.dir/rule' failed make[1]: [deployment/docker-swarm/CMakeFiles/start_docker_swarm.dir/rule] Error 2 Makefile:183: recipe for target 'start_docker_swarm' failed make: [start_docker_swarm] Error 2 gqc@dell2950:~/Smart-City-Sample/build$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 1db7cd4deb7d smtc_db_init:latest "/home/db-init.py" About a minute ago Up About a minute smtc_traffic_office1_db_init.1.3ak9oxtdtq45tvewbjyxg8tqe007cab034a61 smtc_storage_manager:latest "/home/storage.py" About a minute ago Up 57 seconds smtc_cloud_storage.1.t1dpd0nympwfy1q1dab5iqc2h 0af8ee1c46d8 smtc_storage_manager:latest "/home/storage.py" About a minute ago Up 56 seconds smtc_traffic_office1_storage.1.2gowwttc0k4n3jqfbvy3qrfcz37b1325ceb0d eclipse-mosquitto:1.5.8 "/docker-entrypoint.…" About a minute ago Up About a minute 1883/tcp smtc_traffic_office1_mqtt.1.71tj8hm7nrzeaky3opes8mz46 81424e54af2a smtc_onvif_discovery:latest "/home/discover.py" About a minute ago Up About a minute smtc_traffic_office1_camera_discovery.1.kk14lw97aygtx1e5szlbfdjlt c41e6be4f901 smtc_analytics_object_xeon_gst:latest "/home/detect-object…" About a minute ago Up 59 seconds smtc_traffic_office1_analytics_traffic.1.6evrv0g5c8ilwazb5axe7dh99 13fbf9f0c9c1 smtc_api_gateway:latest "/home/gateway.py" About a minute ago Up About a minute smtc_cloud_gateway.1.no1r94mp0ggc3isltnu4sypu4 0bcac3e7e62d smtc_smart_upload:latest "/home/smart-upload.…" About a minute ago Up 53 seconds smtc_traffic_office1_smart_upload.1.s9kw80cft8a1xlepwzeats4sq 4206a4ccd277 smtc_api_gateway:latest "/home/gateway.py" About a minute ago Up About a minute smtc_traffic_office1_gateway.1.yznjcuo641tgqe0d1ap2hol4a66e529c8bca8 smtc_mqtt2db:latest "/home/mqtt2db.py" About a minute ago Up 58 seconds smtc_traffic_office1_mqtt2db.1.wtct1yybukc6f56ocdoblsqdiff011f033ec1 smtc_sensor_webrtc:latest "/bin/bash -c 'servi…" About a minute ago Up 57 seconds 0.0.0.0:10001-10010->10001-10010/udp smtc_traffic_office1_webrtc.1.03fqptlljaugggsdvb68259t6 7a9c9a8fe1dd smtc_sensor_simulation:latest "/home/simulate.py" About a minute ago Up About a minute smtc_traffic_office1_simulated_cameras.1.ui8l188ixawfkkebq69xa34td 63b6e1096a82 smtc_web_cloud:latest "/home/webc.py" About a minute ago Up About a minute 0.0.0.0:443->8443/tcp smtc_cloud_web.1.jlj816q1ww1ln9qs0kwbmjpqr ab1c3de6926d smtc_alert:latest "/home/alert.py" About a minute ago Up About a minute smtc_traffic_office1_alert.1.m2jxc9wlbkuhfowgcvgoc8q4x c8b2d2c56daa docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.13 "/usr/local/bin/dock…" About a minute ago Up About a minute 9200/tcp, 9300/tcp smtc_db.1.lqelk1j2yyhmdfwj2

xwu2git commented 3 years ago

Did you stop it first by make stop_docker_swarm? Looks like you are starting on top of a previous run.

sudhirkshirsagar commented 3 years ago

I did the stop. I did the make update before the next start and that worked better. Still no sensors. There is a warning the black box about sensors disconnected.

On Fri, Mar 19, 2021 at 10:51 AM xwu2 @.***> wrote:

Did you stop it first by make stop_docker_swarm? Looks like you are starting on top of a previous run.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/OpenVisualCloud/Smart-City-Sample/issues/752#issuecomment-803007192, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD52ZGFD5E2BVTILDRW2JHLTEOFKPANCNFSM4ZNG7U2A .

xwu2git commented 3 years ago

Let's restart. How many nodes are in your swarm? Do you have firewall in between your manager and your swarm nodes? Please share your logs of the camera service, the discovery service and the analytics service. You can see those services by docker stack services smtc and then docker service logs -f <name>.

sudhirkshirsagar commented 3 years ago

Single node which is a Dell Poweredge Xeon 32GB running Ubuntu 18.04 server. So no firewall. I followed https://github.com/OpenVisualCloud/Smart-City-Sample/wiki/Tutorial:-Running-Smart-City-on-Public-Cloud but did it with the local server. @.***:~$ docker stack services smtc ID NAME MODE REPLICAS IMAGE PORTS 1maxh2rhspfw smtc_cloud_gateway replicated 1/1 smtc_api_gateway:latest 491iyx66247t smtc_traffic_office1_camera_discovery replicated 1/1 smtc_onvif_discovery:latest i8sek5789pkh smtc_cloud_storage replicated 1/1 smtc_storage_manager:latest icaw5xcnmitg smtc_traffic_office1_db_init replicated 1/1 smtc_db_init:latest inm7nip2xqda smtc_traffic_office1_simulated_cameras replicated 1/1 smtc_sensor_simulation:latest jfor2f8xc52g smtc_traffic_office1_storage replicated 1/1 smtc_storage_manager:latest m4u27poolcj1 smtc_traffic_office1_analytics_traffic replicated 1/1 smtc_analytics_object_xeon_gst:latest si33u8pclu3x smtc_traffic_office1_alert replicated 1/1 smtc_alert:latest skr89ivkkz0t smtc_traffic_office1_webrtc replicated 1/1 smtc_sensor_webrtc:latest sq432jhj19na smtc_traffic_office1_mqtt replicated 1/1 eclipse-mosquitto:1.5.8 v29mb5wfojmo smtc_traffic_office1_smart_upload replicated 1/1 smtc_smart_upload:latest vlqixez3z10y smtc_traffic_office1_gateway replicated 1/1 smtc_api_gateway:latest x8pydqdmzu3m smtc_db replicated 1/1 docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.13 xeixa9l6zhvx smtc_traffic_office1_mqtt2db replicated 1/1 smtc_mqtt2db:latest ywhc7u151ua7 smtc_cloud_web replicated 1/1 smtc_web_cloud:latest

@.:~$ docker service logs -f smtc_traffic_office1_camera_discovery @. | Exception: HTTPConnectionPool(host='db', port=9200): Max retries exceeded with url: /sensors_45d539626_n122d929569/_doc/_search (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb3fcdc2fd0>: Failed to establish a new connection: [Errno 111] Connection refused',)) @. | Waiting for DB... @. | Exception: HTTPConnectionPool(host='db', port=9200): Max retries exceeded with url: /sensors_45d539626_n122d929569/_doc/_search (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb3fcdb7be0>: Failed to establish a new connection: [Errno 111] Connection refused',)) @. | Waiting for DB... @. | Exception: HTTPConnectionPool(host='db', port=9200): Max retries exceeded with url: /sensors_45d539626_n122d929569/_doc/_search (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb3fcdd3860>: Failed to establish a new connection: [Errno 111] Connection refused',)) @. | Waiting for DB... @. | Exception: HTTPConnectionPool(host='db', port=9200): Max retries exceeded with url: /sensors_45d539626_n122d929569/_doc/_search (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb3fcdd3fd0>: Failed to establish a new connection: [Errno 111] Connection refused',)) @. | Waiting for DB... @. | Exception: HTTPConnectionPool(host='db', port=9200): Max retries exceeded with url: /sensors_45d539626_n122d929569/_doc/_search (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb3fccad780>: Failed to establish a new connection: [Errno 111] Connection refused',)) @. | Waiting for DB... @. | Exception: HTTPConnectionPool(host='db', port=9200): Max retries exceeded with url: /sensors_45d539626_n122d929569/_doc/_search (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb3fccadef0>: Failed to establish a new connection: [Errno 111] Connection refused',)) @. | Waiting for DB... @. | Exception: HTTPConnectionPool(host='db', port=9200): Max retries exceeded with url: /sensors_45d539626_n122d929569/_doc/_search (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb3fccb96d8>: Failed to establish a new connection: [Errno 111] Connection refused',)) @. | Waiting for DB... @. | Exception: HTTPConnectionPool(host='db', port=9200): Max retries exceeded with url: /sensors_45d539626_n122d929569/_doc/_search (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb3fccad470>: Failed to establish a new connection: [Errno 111] Connection refused',)) @. | Waiting for DB... @. | Exception: HTTPConnectionPool(host='db', port=9200): Max retries exceeded with url: /sensors_45d539626_n122d929569/_doc/_search (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb3fcdd3f28>: Failed to establish a new connection: [Errno 111] Connection refused',)) @. | Waiting for DB... @. | Exception: HTTPConnectionPool(host='db', port=9200): Max retries exceeded with url: /sensors_45d539626_n122d929569/_doc/_search (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb3fcdd3940>: Failed to establish a new connection: [Errno 111] Connection refused',)) @. | Waiting for DB... @. | Exception: HTTPConnectionPool(host='db', port=9200): Max retries exceeded with url: /sensors_45d539626_n122d929569/_doc/_search (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb3fcdb7470>: Failed to establish a new connection: [Errno 111] Connection refused',)) @. | Waiting for DB... @. | Exception: HTTPConnectionPool(host='db', port=9200): Max retries exceeded with url: /sensors_45d539626_n122d929569/_doc/_search (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb3fccb95c0>: Failed to establish a new connection: [Errno 111] Connection refused',)) @. | Waiting for DB... @. | Exception: HTTPConnectionPool(host='db', port=9200): Max retries exceeded with url: /sensors_45d539626_n122d929569/_doc/_search (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb3fccb9e80>: Failed to establish a new connection: [Errno 111] Connection refused',)) @. | Waiting for DB... @. | Exception: HTTPConnectionPool(host='db', port=9200): Max retries exceeded with url: /sensors_45d539626_n122d929569/_doc/_search (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb3fccb9c50>: Failed to establish a new connection: [Errno 111] Connection refused',)) @. | Waiting for DB... @. | Exception: HTTPConnectionPool(host='db', port=9200): Max retries exceeded with url: /sensors_45d539626_n122d929569/_doc/_search (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb3fcdb7978>: Failed to establish a new connection: [Errno 111] Connection refused',)) @. | Waiting for DB... @. | Exception: HTTPConnectionPool(host='db', port=9200): Max retries exceeded with url: /sensors_45d539626_n122d929569/_doc/_search (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb3fcdd3860>: Failed to establish a new connection: [Errno 111] Connection refused',)) @. | Waiting for DB... @. | Exception: HTTPConnectionPool(host='db', port=9200): Max retries exceeded with url: /sensors_45d539626_n122d929569/_doc/_search (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb3fcdd3f60>: Failed to establish a new connection: [Errno 111] Connection refused',)) @. | Waiting for DB... @. | Exception: HTTPConnectionPool(host='db', port=9200): Max retries exceeded with url: /sensors_45d539626_n122d929569/_doc/_search (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb3fccad128>: Failed to establish a new connection: [Errno 111] Connection refused',)) @. | Waiting for DB... @. | Exception: HTTPConnectionPool(host='db', port=9200): Max retries exceeded with url: /sensors_45d539626_n122d929569/_doc/_search (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb3fccad2e8>: Failed to establish a new connection: [Errno 111] Connection refused',)) @. | Waiting for DB... @. | Exception: HTTPConnectionPool(host='db', port=9200): Max retries exceeded with url: /sensors_45d539626_n122d929569/_doc/_search (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb3fccc7668>: Failed to establish a new connection: [Errno 111] Connection refused',)) @. | Waiting for DB... @. | Exception: HTTPConnectionPool(host='db', port=9200): Max retries exceeded with url: /sensors_45d539626_n122d929569/_doc/_search (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb3fccad940>: Failed to establish a new connection: [Errno 111] Connection refused',)) @. | Waiting for DB... @. | Exception: HTTPConnectionPool(host='db', port=9200): Max retries exceeded with url: /sensors_45d539626_n122d929569/_doc/_search (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb3fccad1d0>: Failed to establish a new connection: [Errno 111] Connection refused',)) @. | Waiting for DB... @. | Exception: HTTPConnectionPool(host='db', port=9200): Max retries exceeded with url: /sensors_45d539626_n122d929569/_doc/_search (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb3fcdd3080>: Failed to establish a new connection: [Errno 111] Connection refused',)) @. | Waiting for DB... @. | Exception: HTTPConnectionPool(host='db', port=9200): Max retries exceeded with url: /sensors_45d539626_n122d929569/_doc/_search (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb3fcdd3e10>: Failed to establish a new connection: [Errno 111] Connection refused',)) @. | Waiting for DB... @. | Exception: {'error': {'root_cause': [{'type': 'index_not_found_exception', 'reason': 'no such index', 'resource.type': 'index_or_alias', 'resource.id': 'sensors_45d539626_n122d929569', 'index_uuid': 'na', 'index': 'sensors_45d539626_n122d929569'}], 'type': 'index_not_found_exception', 'reason': 'no such index', 'resource.type': 'index_or_alias', 'resource.id': 'sensors_45d539626_n122d929569', 'index_uuid': 'na', 'index': 'sensors_45d539626_n122d929569'}, 'status': 404} @. | Waiting for DB... @. | Exception: {'error': {'root_cause': [{'type': 'index_not_found_exception', 'reason': 'no such index', 'resource.type': 'index_or_alias', 'resource.id': 'sensors_45d539626_n122d929569', 'index_uuid': 'na', 'index': 'sensors_45d539626_n122d929569'}], 'type': 'index_not_found_exception', 'reason': 'no such index', 'resource.type': 'index_or_alias', 'resource.id': 'sensors_45d539626_n122d929569', 'index_uuid': 'na', 'index': 'sensors_45d539626_n122d929569'}, 'status': 404} @. | Waiting for DB... @. | Exception: {'error': {'root_cause': [{'type': 'index_not_found_exception', 'reason': 'no such index', 'resource.type': 'index_or_alias', 'resource.id': 'sensors_45d539626_n122d929569', 'index_uuid': 'na', 'index': 'sensors_45d539626_n122d929569'}], 'type': 'index_not_found_exception', 'reason': 'no such index', 'resource.type': 'index_or_alias', 'resource.id': 'sensors_45d539626_n122d929569', 'index_uuid': 'na', 'index': 'sensors_45d539626_n122d929569'}, 'status': 404} @. | Waiting for DB... @. | Exception: {'error': {'root_cause': [{'type': 'index_not_found_exception', 'reason': 'no such index', 'resource.type': 'index_or_alias', 'resource.id': 'sensors_45d539626_n122d929569', 'index_uuid': 'na', 'index': 'sensors_45d539626_n122d929569'}], 'type': 'index_not_found_exception', 'reason': 'no such index', 'resource.type': 'index_or_alias', 'resource.id': 'sensors_45d539626_n122d929569', 'index_uuid': 'na', 'index': 'sensors_45d539626_n122d929569'}, 'status': 404} @. | Waiting for DB... @. | Exception: {'error': {'root_cause': [{'type': 'index_not_found_exception', 'reason': 'no such index', 'resource.type': 'index_or_alias', 'resource.id': 'sensors_45d539626_n122d929569', 'index_uuid': 'na', 'index': 'sensors_45d539626_n122d929569'}], 'type': 'index_not_found_exception', 'reason': 'no such index', 'resource.type': 'index_or_alias', 'resource.id': 'sensors_45d539626_n122d929569', 'index_uuid': 'na', 'index': 'sensors_45d539626_n122d929569'}, 'status': 404} @. | Waiting for DB... @. | Exception: {'error': {'root_cause': [], 'type': 'search_phase_execution_exception', 'reason': 'all shards failed', 'phase': 'query', 'grouped': True, 'failed_shards': []}, 'status': 503} @. | Waiting for DB... @. | Waiting for DB... @. | Waiting for DB... @. | Waiting for DB... @. | Waiting for DB... @. | Waiting for DB... @. | Waiting for DB... @. | Waiting for DB... @. | Probing 10.0.4.11:17000 @. | Scanning rtsp://10.0.4.11:17000/live.sdp @. | Searching for template @. | Ingesting @. | Probing 10.0.4.11:17010 @. | Scanning rtsp://10.0.4.11:17010/live.sdp @. | Searching for template @. | Ingesting @. | Probing 10.0.4.11:17020 @. | Scanning rtsp://10.0.4.11:17020/live.sdp @. | Searching for template @. | Ingesting @. | Probing 10.0.4.11:17030 @. | Scanning rtsp://10.0.4.11:17030/live.sdp @. | Searching for template @. | Ingesting @. | Probing 10.0.4.11:17040 @. | Scanning rtsp://10.0.4.11:17040/live.sdp @. | Searching for template @. | Ingesting @. | Probing 10.0.4.11:17000 @. | Skipping 10.0.4.11:17000:streaming @. | Probing 10.0.4.11:17010 @. | Skipping 10.0.4.11:17010:idle @. | Probing 10.0.4.11:17020 @. | Skipping 10.0.4.11:17020:idle @. | Probing 10.0.4.11:17030 @. | Skipping 10.0.4.11:17030:idle @. | Probing 10.0.4.11:17040 @. | Skipping 10.0.4.11:17040:idle @. | Probing 10.0.4.11:17000 @. | Skipping 10.0.4.11:17000:streaming @. | Probing 10.0.4.11:17010 @. | Skipping 10.0.4.11:17010:idle @. | Probing 10.0.4.11:17020 @. | Skipping 10.0.4.11:17020:idle @. | Probing 10.0.4.11:17030 @. | Skipping 10.0.4.11:17030:idle @. | Probing 10.0.4.11:17040 @. | Skipping 10.0.4.11:17040:idle @. | Probing 10.0.4.11:17000 @. | Skipping 10.0.4.11:17000:streaming @. | Probing 10.0.4.11:17010 @. | Skipping 10.0.4.11:17010:idle @. | Probing 10.0.4.11:17020 @. | Skipping 10.0.4.11:17020:idle @. | Probing 10.0.4.11:17030 @. | Skipping 10.0.4.11:17030:idle @. | Probing 10.0.4.11:17040 @. | Skipping 10.0.4.11:17040:idle @. | Probing 10.0.4.11:17000 @. | Skipping 10.0.4.11:17000:streaming @. | Probing 10.0.4.11:17010 @. | Skipping 10.0.4.11:17010:idle @.*** | Probing 10.0.4.11:17020 s

On Fri, Mar 19, 2021 at 9:08 PM xwu2 @.***> wrote:

Let's restart. How many nodes are in your swarm? Do you have firewall in between your manager and your swarm nodes? Please share your logs of the camera service, the discovery service and the analytics service. You can see those services by docker stack services smtc and then docker service logs -f .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/OpenVisualCloud/Smart-City-Sample/issues/752#issuecomment-803241654, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD52ZGGAKMES4P6K6V2QDDLTEQNUNANCNFSM4ZNG7U2A .

sudhirkshirsagar commented 3 years ago

3-20 15:56:32,995", "message": "===========================", "module": "pipeline_manager"} @. | {"levelname": "INFO", "asctime": "2021-03-20 15:56:32,995", "message": "Creating Instance of Pipeline object_detection/1", "module": "pipeline_manager"} @. | PipelineStatus(avg_fps=0, avg_pipeline_latency=None, elapsed_time=5.221366882324219e-05, id=1, start_time=1616255793.0177374, state=<State.QUEUED: 1>) @. | on_created: /tmp/rec/6hxHUHgBXf6SV0QypOhz/2021/03/20/1616255793505582544_242493403.mp4 @. | {"levelname": "ERROR", "asctime": "2021-03-20 15:56:34,813", "message": "Error on Pipeline 1: gst-library-error-quark: base_inference plugin intitialization failed (3): /home/gst-video-analytics/gst/inference_elements/base/inference_singleton.cpp(137): acquire_inference_instance (): /GstPipeline:pipeline809/GstGvaDetect:detection:\nFailed to construct OpenVINOImageInference\n\tSupported primitive descriptors list is empty for node: extra_pool\n", "module": "gstreamer_pipeline"} @. | PipelineStatus(avg_fps=0, avg_pipeline_latency=None, elapsed_time=1.795914888381958, id=1, start_time=1616255793.0177374, state=<State.ERROR: 4>) @. | Pipeline object_detection Version 1 Instance 1 Ended with ERROR @. | Traceback (most recent call last): @. | File "/home/detect-object.py", line 32, in @. | raise Exception("VA exited. This should not happen.") @. | Exception: VA exited. This should not happen. @.*** |

On Fri, Mar 19, 2021 at 9:08 PM xwu2 @.***> wrote:

Let's restart. How many nodes are in your swarm? Do you have firewall in between your manager and your swarm nodes? Please share your logs of the camera service, the discovery service and the analytics service. You can see those services by docker stack services smtc and then docker service logs -f .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/OpenVisualCloud/Smart-City-Sample/issues/752#issuecomment-803241654, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD52ZGGAKMES4P6K6V2QDDLTEQNUNANCNFSM4ZNG7U2A .

xwu2git commented 3 years ago

Your camera simulation and discovery work as expected. However, the analytics service does not work. Could you rebuild the analytics image? This is the image under the analytics folder.

xwu2git commented 3 years ago

@nnshah1 , can you check what error message means?