gmonitor icon indicating copy to clipboard operation
gmonitor copied to clipboard

Unable to init server:

Open RonenHong opened this issue 5 years ago • 8 comments

after I installed gmonitor, I can't run it as below error, but nvidia-smi run correctly what am I missing?

Unable to init server: Could not connect: Connection refused

ERROR: The control display is undefined; please run nvidia-settings --help for usage information.

No gpus to monitor, terminating.

RonenHong avatar Jan 08 '19 05:01 RonenHong

That sounds like you are running gmonitor through ssh?

If that's the case, make sure to add "-s" as described in the readme.

mountassir avatar Jan 08 '19 21:01 mountassir

yes I am running gmonitor through ssh then when I add "-s", I got another error such as 'No protocol specified'

kyungsoo@workstation:~$ gmonitor -s No protocol specified Unable to init server: Could not connect: Connection refused

ERROR: The control display is undefined; please run nvidia-settings --help for usage information.

No gpus to monitor, terminating.

below is nvidia-smi, seems my gpu is working good

Wed Jan 9 12:27:54 2019
+-----------------------------------------------------------------------------+ | NVIDIA-SMI 390.87 Driver Version: 390.87 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |===============================+======================+======================| | 0 GeForce GTX 108... Off | 00000000:05:00.0 Off | N/A | | 48% 81C P2 115W / 250W | 6244MiB / 11176MiB | 55% Default | +-------------------------------+----------------------+----------------------+ | 1 GeForce GTX 108... Off | 00000000:06:00.0 Off | N/A | | 23% 42C P8 8W / 250W | 12MiB / 11178MiB | 0% Default | +-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=============================================================================| | 0 1317 G /usr/lib/xorg/Xorg 9MiB | | 0 1359 G /usr/bin/gnome-shell 7MiB | | 0 25401 C python 6215MiB | +-----------------------------------------------------------------------------+

RonenHong avatar Jan 09 '19 03:01 RonenHong

I'm getting the same thing, even with -s.

$ gmonitor -s
No protocol specified

ERROR: The control display is undefined; please run `nvidia-settings --help` for usage information.

No gpus to monitor, terminating.
$ nvidia-smi 
Tue Jan 15 22:51:31 2019       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.87                 Driver Version: 390.87                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 105...  Off  | 00000000:02:00.0  On |                  N/A |
| 30%   30C    P0    N/A /  75W |    344MiB /  4031MiB |      3%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1193      G   /usr/libexec/Xorg                            321MiB |
+-----------------------------------------------------------------------------+

therealbstern avatar Jan 16 '19 03:01 therealbstern

Interestingly, both @RonenHong and I are using driver 390.87; I'm on a 32 bit system. @RonenHong, are you on a 32-bit system too? @mountassir, do you normally test on 32-bit or 64-bit?

The reason that I ask is because 390.87 is a long-lived driver and the latest 32-bit driver for my card, while the 64-bit driver for my card has been getting updates.

therealbstern avatar Jan 16 '19 03:01 therealbstern

@mountassir I'm on a 64-bit system

RonenHong avatar Jan 16 '19 03:01 RonenHong

I am using driver 410.79 on a 64-bit system running Ubuntu, it works on my side.

Can you please confirm Which version of gmonitor you are using? What operating system you are using?

On your ssh window, can you try running the following to rule out gmonitor? DISPLAY=:0 nvidia-settings -t -q gpus

I see that both of you @RonenHong and @therealbstern are running pascal GPUs, it could be something specific to the drivers for that architecture, I am running a Maxwell GPU at the moment. Once I get some more details, I can swap my card and try to replicate this.

There was a mentionning of some dependency on nvidia-utils in https://aur.archlinux.org/packages/gmonitor-git/ , might be worth giving that a go.

mountassir avatar Jan 19 '19 11:01 mountassir

@mountassir this is result of DISPLAY=:0 nvidia-settings -t -q gpus as below maybe do I miss something to configure?

kyungsoo@workstation:~$ DISPLAY=:0 nvidia-settings -t -q gpus Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused

ERROR: The control display is undefined; please run nvidia-settings --help for usage information.

RonenHong avatar Jan 20 '19 23:01 RonenHong

$ DISPLAY=:0 nvidia-settings -t -q gpus
1 GPU on farad:0

    [0] farad:0[gpu:0] (GeForce GTX 1050 Ti)

      Has the following names:
        GPU-0
        GPU-eddc61a2-3b03-b07f-61f5-a5181af335ca

therealbstern avatar Jan 22 '19 03:01 therealbstern