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.

Cannot lock directory

agent ver.

How to re-locking the download directory?
Stop the service with the command:
net stop "OCS Inventory Service"

does not release the download directory and the "lock" file is still being used by another process.


Starting OCS Inventory NG Package Download and Setup Tool on Monday, November 20, 2017 14:03:29.
DOWNLOAD => Running OCS Inventory NG Download Version
DOWNLOAD => Using OCS Inventory NG FrameWork Version
DOWNLOAD => Using network connection with Communication Server
DOWNLOAD => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <>
DOWNLOAD => Starting new period of 10 cycles
DOWNLOAD => Parsing directory <C:\ProgramData\OCS Inventory NG\Agent\download> for packages
DOWNLOAD => Package <1511179350> verified and added to process queue
DOWNLOAD => Downloading package fragment <1511179350-1>
DOWNLOAD => Building package <1511179350>
DOWNLOAD => Executing action <EXECUTE> for package <1511179350>
DOWNLOAD => Sending result code <SUCCESS> for package <1511179350>
ERROR *** DOWNLOAD => Cannot  lock directory <C:\ProgramData\OCS Inventory NG\Agent\download>
DOWNLOAD => Unloading communication provider
DOWNLOAD => Execution duration: 00:10:33.

After such blocking, no packet downloads and does not execute on such a station, the status is NOTIFIED all the time.
in OCS Inventory NG agent for Windows by (880 points)

2 Answers

0 votes
Stop the OCS Agent, delete the mentioned folder and start the agent
by (220 points)
0 votes

It's not working, when I stop ocs agent service i still massage that "lock" file is used by another program/process..

Only work if:

1. uninstall windows Agent

2. restart windows

3. intalall windows Agent agan.

I dont know what elese hanging this file download\lock.
by (880 points)
Powered by Question2Answer