{"action":"created","issue":{"url":"https://api.github.com/repos/OCSInventory-NG/WindowsAgent/issues/23","repository_url":"https://api.github.com/repos/OCSInventory-NG/WindowsAgent","labels_url":"https://api.github.com/repos/OCSInventory-NG/WindowsAgent/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/OCSInventory-NG/WindowsAgent/issues/23/comments","events_url":"https://api.github.com/repos/OCSInventory-NG/WindowsAgent/issues/23/events","html_url":"https://github.com/OCSInventory-NG/WindowsAgent/issues/23","id":196370139,"number":23,"title":"Exit_code_32 in Windows 10 Agent","user":{"login":"fleisis","id":12487422,"avatar_url":"https://avatars.githubusercontent.com/u/12487422?v=3","gravatar_id":"","url":"https://api.github.com/users/fleisis","html_url":"https://github.com/fleisis","followers_url":"https://api.github.com/users/fleisis/followers","following_url":"https://api.github.com/users/fleisis/following{/other_user}","gists_url":"https://api.github.com/users/fleisis/gists{/gist_id}","starred_url":"https://api.github.com/users/fleisis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fleisis/subscriptions","organizations_url":"https://api.github.com/users/fleisis/orgs","repos_url":"https://api.github.com/users/fleisis/repos","events_url":"https://api.github.com/users/fleisis/events{/privacy}","received_events_url":"https://api.github.com/users/fleisis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-19T09:44:35Z","updated_at":"2016-12-26T15:55:01Z","closed_at":"2016-12-26T15:55:01Z","body":"Hi,\r\n\r\nIm trying to deploy a .bat which contains a .exe installation with OCS (for example winrar.exe). This .bat file basically copy my \".exe\" file from a shared folder in the remote PC & then execute it with runas /user:domain\\administrador command.\r\n\r\nI'd tryed this with action->execute & action->launch .bat but anyway it failed. I get the exit_code_32 on my w10 agent...\r\nHere the logs:\r\n\r\nFile -> ocsinventory.log\r\n> ==============================================================================\r\n> \r\n>     Starting OCS Inventory NG Agent on Sunday, December 18, 2016 19:45:31.\r\n>     AGENT => Running OCS Inventory NG Agent Version 2.1.1.3\r\n>     AGENT => Using OCS Inventory NG FrameWork Version 2.1.1.3\r\n>     AGENT => Loading plug-in(s)\r\n>     AGENT => Using network connection with Communication Server\r\n>     AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.3>\r\n>     AGENT => Sending Prolog\r\n>     AGENT => Prolog successfully sent\r\n>     SUPPORT => No support detected, Registration key : N/A\r\n>     AGENT => Inventory required\r\n>     AGENT => Launching hardware and software checks\r\n>     AGENT => Communication Server ask for IpDiscover\r\n>     AGENT => Sending Inventory\r\n>     INVENTORY => Inventory changed since last run\r\n>     AGENT => Inventory successfully sent\r\n>     AGENT =>  Communication Server ask for Package Download\r\n>     DOWNLOAD => Package <1482084428> added to download queue\r\n>     DOWNLOAD => Download and setup tool successfully started\r\n>     AGENT => Unloading communication provider\r\n>     AGENT => Unloading plug-in(s)\r\n>     AGENT => Execution duration: 00:00:40.\r\n\r\nFile -> download.log\r\n\r\n> ==============================================================================\r\n> Starting OCS Inventory NG Package Download and Setup Tool on Sunday, December 18, 2016 19:46:11.\r\n> DOWNLOAD => Running OCS Inventory NG Download Version 2.1.1.3\r\n> DOWNLOAD => Using OCS Inventory NG FrameWork Version 2.1.1.3\r\n> DOWNLOAD => Using network connection with Communication Server\r\n> DOWNLOAD => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.3>\r\n> DOWNLOAD => Starting new period of 10 cycles\r\n> DOWNLOAD => Parsing directory <C:\\ProgramData\\OCS Inventory NG\\Agent\\download> for packages\r\n> DOWNLOAD => Package <1482084428> verified and added to process queue\r\n> DOWNLOAD => Downloading package fragment <1482084428-1>\r\n> DOWNLOAD => Building package <1482084428>\r\n> DOWNLOAD => Executing action <LAUNCH> for package <1482084428>\r\n> ERROR *** DOWNLOAD => Will not register package <1482084428> in history: result <EXIT_CODE_32> not a success\r\n> DOWNLOAD => Sending result code <EXIT_CODE_32> for package <1482084428>\r\n> DOWNLOAD => Starting new period of 10 cycles\r\n> DOWNLOAD => Parsing directory <C:\\ProgramData\\OCS Inventory NG\\Agent\\download> for packages\r\n> DOWNLOAD => No package found, exiting\r\n> DOWNLOAD => Unloading communication provider\r\n> DOWNLOAD => Execution duration: 00:10:27.\r\n\r\nI've SSL enabled on my server & i can see the download page in my W10 agent.\r\n\r\nAny ideas? \r\nThanks & Regards."},"comment":{"url":"https://api.github.com/repos/OCSInventory-NG/WindowsAgent/issues/comments/269222231","html_url":"https://github.com/OCSInventory-NG/WindowsAgent/issues/23#issuecomment-269222231","issue_url":"https://api.github.com/repos/OCSInventory-NG/WindowsAgent/issues/23","id":269222231,"user":{"login":"gillesdubois","id":9396603,"avatar_url":"https://avatars.githubusercontent.com/u/9396603?v=3","gravatar_id":"","url":"https://api.github.com/users/gillesdubois","html_url":"https://github.com/gillesdubois","followers_url":"https://api.github.com/users/gillesdubois/followers","following_url":"https://api.github.com/users/gillesdubois/following{/other_user}","gists_url":"https://api.github.com/users/gillesdubois/gists{/gist_id}","starred_url":"https://api.github.com/users/gillesdubois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gillesdubois/subscriptions","organizations_url":"https://api.github.com/users/gillesdubois/orgs","repos_url":"https://api.github.com/users/gillesdubois/repos","events_url":"https://api.github.com/users/gillesdubois/events{/privacy}","received_events_url":"https://api.github.com/users/gillesdubois/received_events","type":"User","site_admin":false},"created_at":"2016-12-26T15:55:00Z","updated_at":"2016-12-26T15:55:00Z","body":"Hi,\r\n\r\nEXIT CODES of the agent are basically windows exit error code.\r\n\r\nIf you check your error on this page : https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx \r\n\r\n```\r\nERROR_SHARING_VIOLATION\r\n32 (0x20)\r\nThe process cannot access the file because it is being used by another process.\r\n```\r\n\r\nThat why you got an error ocs agent can't acces your file because it's already used by another process.\r\n\r\nRegards,\r\nGilles Dubois.\r\n"}}
{"actor":{"display_login":"gillesdubois"}}