DeepakTatachar / CBRIC-DataCenter-Monitor

GNU Affero General Public License v3.0
0 stars 2 forks source link

GPU monitor takes long time to open on ssh #2

Open Aayush-Ankit opened 4 years ago

Aayush-Ankit commented 4 years ago

The usage report opens instantly on thinlinc, but takes much longer (~5mins) to open up on a terminal over ssh.

DeepakTatachar commented 4 years ago

Is this on a local machine? If it is you do not need ssh, you can directly run this on your local machine. Also it would be great if you could list some steps to reproduce this bug

Aayush-Ankit commented 4 years ago

I am connecting to a remote machine over ssh and then running main.py. The issue can be reproduced with 1) ssh (ecegrid in my case), and 2) running main.py.

The output of python -v shows the run being stuck at import 'encodings.idna' # <_frozen_importlib_external.SourceFileLoader object at 0x7f9085cad5d0> for long time - screenshot attached. image

DeepakTatachar commented 4 years ago

Ok, I think I understand what is happening. For now a workaround is you can run it directly from you local machine. 1) Open terminal on local machine (no ssh needed) 2) On you local machine clone the repo 3) pip install -r requirements.txt 4) python main.py --u 'username on cbric machine'

As far as I understand, the issue is because it is trying to do something 'weird' with 'bringing' the UI back to from the 'host' of the ssh. will look into it.

Aayush-Ankit commented 4 years ago

It does work fine with the workaround. Thanks!