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

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

Message 'https' is not supported' - Unix Packager

Hi,

I am utilizing the OCSNG Unix Packager 1.0 (also tried 1.1) to create an Agent package for Ubuntu 16.04.4. The package works when using 'http' to connect to the OCSNG Inventory Server but does not when using 'https' (SSL).


client:~$ sudo /opt/ocsinventory/ocsinventory-agent -s https://OCSNGServer/ocsinventory 
--basevardir=/opt/ocsinventory/var/lib/ocsinventory-agent 

--tag=UbuntuServer --lazy --ca=/opt/ocsinventory/files/cacert.pem


[error] Cannot establish communication : 501 Protocol scheme 'https' is not supported 

(LWP::Protocol::https not installed)

[info] No previous PROLOG_FREQ found - using fallback delay(3600 seconds)

The needed Perl module is included in the Agent Package in '/opt/ocsinventory/perl/lib/5.26.0/URI/https.pm', so what's the problem?

asked in OCS Inventory NG agent for Unix by (200 points)
edited by

4 Answers

0 votes
Hi,

Have you installed LWP::Protocol::https module?

Regards

Frank
answered by (58.3k points)
0 votes
Hi Frank,

That perl module "LWP::Protocol::https" has been downloaded and included in the packaged agent. The OCSNG Unix packager creates an archive containing all the necessary files including the agent itself "ready for deployment", without any additional components needed. See https://github.com/OCSInventory-NG/Packager-for-Unix

However I have also installed the module LWP::Protocol::https by hand and still receive the same error message probably because the agent is only using the modules it was packaged with.

Thanks,

Rick
answered by (200 points)
0 votes
Hi,

Sorry for the inconvenient.
The archive has been rebuild because the old one was bad (no all necessary files for perl modules were included). Could you rebuild your agent with the new archive and let me know if it's OK?

Kind regards

Frank
answered by (58.3k points)
0 votes
I used Unix packager again to build a new agent deployment package but still have the same error message. Not sure which "new archive" you mean?
BTW: By default the Unix Packager downloads the OCSNG Agent 2.3, should I btter use a newer Agent?
answered by (200 points)
 
Powered by Question2Answer
...