Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Novice
256 Views

EIS PCB demo question

Dear Sirs,

I setup EIS V2.2 successfully and get PCB demo.

I use the command to stop and remove all the containers.

$ docker stop $(docker ps -a -q)

$ docker rm $(docker ps -a -q)

Than try to run the PCB demo again as below command,  Visualizer show Disconnect.

/docker_setup/provision/ $ sudo ./provision_eis.sh ../docker-compose.yml

/docker_setup/ $ docker-compose up --build -d

How do I get PCB demo again?

0 Kudos
9 Replies
Highlighted
Moderator
255 Views

Hi Bryan, 

Let me take a look at this issue and get back to you. 

0 Kudos
Highlighted
Moderator
255 Views

Hi Bryan, 

can you try to reboot your system?

after rebooting, you will need to do below step

1. Run the provision script again

2. $ xhost +

3. $ docker-compose up --build -d

you can let me know if the issue still persists. 

0 Kudos
Highlighted
Novice
255 Views

Dear Murni Jasamai,

Thank you for your reply.

I follow your command:

1. reboot

2. /docker_setup/provision/ $ sudo ./provision_eis.sh ../docker-compose.yml

3. /docker_setup/ $ xhost +

4. /docker_setup/ $ docker-compose up --build -d

but still in disconnected status.

 

 

0 Kudos
Highlighted
255 Views

Hi Bryan,

I would recommend providing your container status (docker ps) and logs (docker-compose logs > logs.txt && gzip logs.txt) so we can tell what went wrong. In you can see the Visualizer window, it unlikely is caused by not disabling X11 access control (xhost +). The logs will give us more hints. Please compress the file and attach it. Thank you.

Regards,

Jia-Shing

0 Kudos
Highlighted
Novice
255 Views

Hi Jia-Shing,

Thank you for help.

Attached is the docker_ps and log.txt you requested.

 

 

0 Kudos
Highlighted
255 Views

Hi Bryan,

If you look at your "docker ps" result, you can see your video ingestion container and the etcd_ui one (continuously, perhaps) restart.

By further looking at the logs provided, you can see

1. Are you running in production or development mode? It's recommended to first try the development mode setup so EIS doesn't use security certificates to secure the communications. However, in your log, it appears your setup is running in the production mode. You can find this out by looking for DEV_MODE in docker_setup/.env and see if it's TRUE (development mode) or FALSE (production mode). 

ia_etcd_ui            | FileNotFoundError: [Errno 2] No such file or directory: '/tmp/nginx/server_cert.pem'
ia_etcd_ui            | Traceback (most recent call last):
ia_etcd_ui            |   File "start_etcdkeeper.py", line 54, in <module>
ia_etcd_ui            |     with open('/tmp/nginx/server_cert.pem', 'w') as f:

 2. It looks like the "scale_ratio" parameter that the UDF (in this case, pcb_filter) expects is missing. You can restore it in the ETCD web UI once #1 above is fixed. By the way, did you modify docker_setup/provision/config/etcd_pre_load.json?

ia_video_ingestion    | [Thu May 21 00:21:02 2020]  INFO:UdfManager:85: max_jobs: 20
ia_video_ingestion    | [Thu May 21 00:21:02 2020]  INFO:UdfManager:99: max_workers: 4
ia_video_ingestion    | [Thu May 21 00:21:02 2020]  WARN:get_config_value:138: JSON does not contain key: scale_ratio
ia_video_ingestion    | [Thu May 21 00:21:02 2020] ERROR:initialize:106: Failed to load UDF
ia_video_ingestion    | terminate called after throwing an instance of 'char const*'
ia_video_ingestion    | [Thu May 21 00:21:02 2020]  INFO:signal_callback_handler:95: Received SIGABRT signal, terminating Video Ingestion
ia_video_ingestion    | Traceback (most recent call last):
ia_video_ingestion    |   File "udf.pyx", line 380, in udf.load_udf
ia_video_ingestion    |   File "udf.pyx", line 367, in udf.load_udf
ia_video_ingestion    | KeyError: 'UDF config missing key: scale_ratio'
ia_video_ingestion    | Exception : 'UDF config missing key: scale_ratio'

Regards,

Jia-Shing

0 Kudos
Highlighted
255 Views

Hi Bryan,

With the recommendation, were you able to fix the issue?

Regards,

Jia-Shing

0 Kudos
Highlighted
Novice
255 Views

Hi Jia-Shing,

Yes, I had modify json file for test.

After I clean the system and reinstall EIS,

it's work now. Thanks!!!

 

0 Kudos
Highlighted
255 Views

Hi Bryan,

Thank you for the update. I'm glad things work out for you!

Regards,

Jia-Shing

0 Kudos