Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to init server: #13

Open
RonenHong opened this issue Jan 8, 2019 · 8 comments
Open

Unable to init server: #13

RonenHong opened this issue Jan 8, 2019 · 8 comments

Comments

@RonenHong
Copy link

RonenHong commented Jan 8, 2019

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.

@mountassir
Copy link
Owner

That sounds like you are running gmonitor through ssh?

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

@RonenHong
Copy link
Author

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 |
+-----------------------------------------------------------------------------+

@therealbstern
Copy link
Contributor

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
Copy link
Contributor

therealbstern commented Jan 16, 2019

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.

@RonenHong
Copy link
Author

@mountassir I'm on a 64-bit system

@mountassir
Copy link
Owner

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.

@RonenHong
Copy link
Author

@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.

@therealbstern
Copy link
Contributor

$ 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants