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.11.1 available

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

RedHat 8.6/OEL 8.6: OCS Agent 2.9.3 comm error

Hi folks

I've installed the OCS inventory agent from source (2.9.3) but in my ocs log there is a communication issue everyday. If i run the ocsinventory --force command, it actually works and communicates all the info to the OCS server. 

I read in another thread that the OCS agent should version should never be older than the server version, my server is version is 2.5 could this be the problem?

here is my OCS log which shows OCS running from my cron.daily:

<REQUEST>

  <DEVICEID>1-2022-07-12-14-54-41</DEVICEID>

  <QUERY>PROLOG</QUERY>

</REQUEST>

[Wed Jul 13 06:05:02 2022][error] Cannot establish communication : 400 Bad Request

[Wed Jul 13 06:05:02 2022][info] No previous PROLOG_FREQ found - using fallback delay(3600 seconds)

[Thu Jul 14 06:05:01 2022][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.9.3

[Thu Jul 14 06:05:01 2022][debug] Log system initialised (File)

[Thu Jul 14 06:05:01 2022][debug] --scan-homedirs missing. Don't scan user directories

[Thu Jul 14 06:05:01 2022][debug] Accountinfo file: /var/lib/ocsinventory-agent/http:__**removed -rj** _ocsinventory/ocsinv.adm

[Thu Jul 14 06:05:01 2022][debug] OCS Agent initialised

[Thu Jul 14 06:05:01 2022][debug] Turns hooks on for /etc/ocsinventory/modules.conf

[Thu Jul 14 06:05:01 2022][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.9.3

[Thu Jul 14 06:05:01 2022][debug] Log system initialised (File)

[Thu Jul 14 06:05:01 2022][debug] Calling handlers : `start_handler'

[Thu Jul 14 06:05:01 2022][debug] [download] Calling download_start_handler

[Thu Jul 14 06:05:01 2022][debug]  - LWP loaded

[Thu Jul 14 06:05:01 2022][debug]  - LWP::Protocol::https loaded

[Thu Jul 14 06:05:01 2022][debug] Compress::Zlib is available.

[Thu Jul 14 06:05:01 2022][debug] Calling handlers : `prolog_writer'

[Thu Jul 14 06:05:01 2022][debug] checking XML

[Thu Jul 14 06:05:01 2022][debug] sending XML

[Thu Jul 14 06:05:01 2022][debug] sending: <?xml version="1.0" encoding="UTF-8"?>

<REQUEST>

it repeats this a couple times with cannot establish connection, any help is appreciated!

RJay

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

1 Answer

0 votes

Hi,

Client version must not be greater than server version => [Wed Jul 13 06:05:02 2022][error] Cannot establish communication : 400 Bad Request. You can't use agent 2.9.3 with server 2.5. 

Update your server to 2.10 to use 2.9.3 agents otherwise stay with 2.5 and use 2.5 agents or less.

Regards

Frank

by (88.5k points)
 
Powered by Question2Answer
...