Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

"Can't open display"; stuck at screen cmd

When i run a debug;

[root@ ocsinventory]# ocsinventory-agent --debug --server http://xx.xx.xx

Can't open display

The program/log file seems locked at the screen command;

[Tue Jul 30 09:13:27 2019][debug]  - Sys::Hostname loaded

[Tue Jul 30 09:13:27 2019][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Lspci

[Tue Jul 30 09:13:27 2019][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Lspci::Controllers

[Tue Jul 30 09:13:27 2019][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Lspci::Modems

[Tue Jul 30 09:13:27 2019][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Lspci::Sounds

[Tue Jul 30 09:13:27 2019][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Lspci::Videos

[Tue Jul 30 09:13:27 2019][debug]  - xrandr found

[Tue Jul 30 09:13:27 2019][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Lsusb

[Tue Jul 30 09:13:27 2019][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Lsusb::Usb

[Tue Jul 30 09:13:27 2019][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Packaging

[Tue Jul 30 09:13:27 2019][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Packaging::ByHand

[Tue Jul 30 09:13:27 2019][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Packaging::RPM

[Tue Jul 30 09:13:28 2019][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Screen

so it just sits there. the system is oracle linux 6.x , I was running the agent from a crontab but was getting this error each morning from my cron daemon:

error: Failed to reconnect to the hypervisor

error: no valid connection

error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory

Anyone know how to resolve this? this is a Linux server on a Proliant DL 380; I uninstalled and tried the 2.4 agent via rpm, same problem so i just tried the 2.3, same prob

in OCS Inventory NG agent for Unix by (220 points)

1 Answer

0 votes

Eventually after about 5 minutes, screen gets killed and it continues and works;

command line:

[root@ ocsinventory]# ocsinventory-agent --debug --server http://xx.xx

Can't open display

File descriptor 5 (pipe:[114071540]) leaked on pvs invocation. Parent PID 27968: /usr/bin/perl

File descriptor 5 (pipe:[114071540]) leaked on vgs invocation. Parent PID 27968: /usr/bin/perl

File descriptor 5 (pipe:[114071540]) leaked on lvs invocation. Parent PID 27968: /usr/bin/perl

error: Failed to reconnect to the hypervisor

error: no valid connection

error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory

[root@ ocsinventory]#

log file:

[Tue Jul 30 09:23:28 2019][debug] Ocsinventory::Agent::Backend::OS::Generic::Screen killed by a timeout.

[Tue Jul 30 09:23:28 2019][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Users

[Tue Jul 30 09:23:28 2019][debug] Running Ocsinventory::Agent::Backend::OS::Linux

[Tue Jul 30 09:23:28 2019][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Archs::i386

[Tue Jul 30 09:23:28 2019][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Archs::i386::CPU

[Tue Jul 30 09:23:28 2019][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Distro::LSB

[Tue Jul 30 09:23:28 2019][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Drives

[Tue Jul 30 09:23:28 2019][debug]  - lshal found

(continues and collects the system info)
by (220 points)
 
Powered by Question2Answer
...