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.

Problems with deployment

The agent attempts to download the package, this appears LOCK file.

==============================================================================
O OCSInventory.log 

==============================================================================
 

Starting OCS Inventory NG Agent on Thursday, August 25, 2016 08:54:07.
AGENT => Running OCS Inventory NG Agent Version 2.1.0.3
AGENT => Using OCS Inventory NG FrameWork Version 2.1.0.3
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.0.3>
AGENT => Sending Prolog
AGENT => Prolog successfully sent
SUPPORT => No support detected, Registration key : N/A
AGENT =>  Communication Server ask for Package Download
ERROR *** DOWNLOAD => Failed to download Metadata file <https://xxx.xx.x.xx/download/1471530616/info> to <C:\ProgramData\OCS Inventory NG\Agent\download\1471530616\info>
DOWNLOAD => Download and setup tool successfully started
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:02.

==============================================================================
O Download.log

==============================================================================
Starting OCS Inventory NG Package Download and Setup Tool on Thursday, August 25, 2016 08:54:10.
DOWNLOAD => Running OCS Inventory NG Download Version 2.1.0.3
DOWNLOAD => Using OCS Inventory NG FrameWork Version 2.1.0.3
DOWNLOAD => Using network connection with Communication Server
DOWNLOAD => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.0.3>
DOWNLOAD => Starting new period of 10 cycles
DOWNLOAD => Parsing directory <C:\ProgramData\OCS Inventory NG\Agent\download> for packages
DOWNLOAD => No package found, exiting
DOWNLOAD => Unloading communication provider
DOWNLOAD => Execution duration: 00:00:00.

in Package deployment by (730 points)

2 Answers

0 votes
Where does the second log files (download.log) comes from ?

It seems to be a packager log files (because of the first line : OCS Inventory NG Package Download and Setup Tool) !!!
by (1.1k points)
0 votes

Hi,

The OCS Agent has not the good rights on the directory "C:\ProgramData\OCS Inventory NG\Agent\download". The owner of this directory and the service user must be the same user.

  1. Stop OCS service
  2. Delete "C:\ProgramData\OCS Inventory NG\Agent\download"
  3. Start OCS service
  4. Launch inventory.

Regards,

by (6.2k points)
I did exactly what you said, but the file appears again.

Starting OCS Inventory NG Package Download and Setup Tool on Thursday, August 25, 2016 10:56:49.
DOWNLOAD => Running OCS Inventory NG Download Version 2.1.0.3
DOWNLOAD => Using OCS Inventory NG FrameWork Version 2.1.0.3
DOWNLOAD => Using network connection with Communication Server
DOWNLOAD => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.0.3>
DOWNLOAD => Starting new period of 10 cycles
DOWNLOAD => Parsing directory <C:\ProgramData\OCS Inventory NG\Agent\download> for packages
DOWNLOAD => No package found, exiting
DOWNLOAD => Unloading communication provider

when I try to access the 172.xx.x.xx/ocsinventory :

Bad Request

Your browser sent a request that this server could not understand.


Apache/2.2.15 (CentOS) Server at xxx.xx.x.xx Port 80

It may be this error?

No, this error is normal. This URL is intended for communication with the OCS agent and not with a browser.

Check the rights of the download directory. It is a common mistake.
 
Powered by Question2Answer
...