Upgrade OCS Agent failed via Télédéploy

Bug #1332462 reported by Laurent_novasys
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OCS Inventory: Windows Agent
New
Medium
Didier Liroulet

Bug Description

Bonjour,

Voici un bug constaté lors de tests de mise à jour d'agent OCS de la version installée sur le client ( 2.0.5 ) vers la dernière version stable : 2.1.1 via télédéploiement

OCS Agent version : 2.0.5
OS : Windows 7 64bits SP1
OCS Server : 2.1.1

Le télédéploiement de la mise à jour échoue systématiquement
Download.log :

==============================================================================
Starting OCS Inventory NG Package Download and Setup Tool on Friday, June 20, 2014 10:02:14.
DOWNLOAD => Running OCS Inventory NG Download Version 2.0.5.0
DOWNLOAD => Using OCS Inventory NG FrameWork Version 2.0.5.0
DOWNLOAD => Using network connection with Communication Server
        COM PROVIDER => Loading Communication Provider <C:\Program Files (x86)\OCS Inventory Agent\ComHTTP.dll>
DOWNLOAD => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.0.5.0>
DOWNLOAD => Starting new period of 10 cycles
        DOWNLOAD => Flushing package queue
DOWNLOAD => Parsing directory <C:\ProgramData\OCS Inventory NG\Agent\download> for packages
        DOWNLOAD => Verifying package <C:\ProgramData\OCS Inventory NG\Agent\download\1403251106>
DOWNLOAD => Package <1403251106> verified and added to process queue
        DOWNLOAD => Processing packages for cycle 1 on Friday, June 20, 2014 10:02:14
        DOWNLOAD => Pausing for cycle latency (60 seconds)
        DOWNLOAD => Processing packages for cycle 2 on Friday, June 20, 2014 10:03:14
        DOWNLOAD => Pausing for cycle latency (60 seconds)
        DOWNLOAD => Processing packages for cycle 3 on Friday, June 20, 2014 10:04:14
        DOWNLOAD => Pausing for cycle latency (60 seconds)
        DOWNLOAD => Processing packages for cycle 4 on Friday, June 20, 2014 10:05:14
        DOWNLOAD => Pausing for cycle latency (60 seconds)
        DOWNLOAD => Processing packages for cycle 5 on Friday, June 20, 2014 10:06:14
DOWNLOAD => Downloading package fragment <1403251106-1>
        COM SERVER => Initializing cURL library for getFile
        COM SERVER => Using cURL without server authentication
        COM SERVER => Disabling cURL proxy support
        COM SERVER => Enabling cURL SSL server validation support using CA Bundle <C:\cacert.pem>
        COM SERVER => Sending fileGet request to URL <HTTP://domaine.coop/download/1403251106/1403251106-1>
        COM SERVER => fileGet response received <HTTP Status Code #200>
        COM SERVER => Cleaning cURL library
        DOWNLOAD => Pausing for fragment latency (10 seconds)
        DOWNLOAD => Pausing for cycle latency (60 seconds)
        DOWNLOAD => Processing packages for cycle 6 on Friday, June 20, 2014 10:07:29
        DOWNLOAD => Pausing for cycle latency (60 seconds)
        DOWNLOAD => Processing packages for cycle 7 on Friday, June 20, 2014 10:08:29
        DOWNLOAD => Pausing for cycle latency (60 seconds)
        DOWNLOAD => Processing packages for cycle 8 on Friday, June 20, 2014 10:09:29
        DOWNLOAD => Pausing for cycle latency (60 seconds)
        DOWNLOAD => Processing packages for cycle 9 on Friday, June 20, 2014 10:10:29
        DOWNLOAD => Pausing for cycle latency (60 seconds)
        DOWNLOAD => Processing packages for cycle 10 on Friday, June 20, 2014 10:11:29
DOWNLOAD => Building package <1403251106>
        PACKAGE => Verifying fragment files of package <1403251106>
        PACKAGE => Checking free disk space for package <1403251106>
        PACKAGE => Building ZIP for package <1403251106>
        PACKAGE => Verifying ZIP signature for package <1403251106>
        DOWNLOAD => Package <1403251106> built successfully
DOWNLOAD => Executing action <LAUNCH> for package <1403251106>
        PACKAGE => Launching command <OCS-NG-Windows-Agent-Setup.exe /NOSPLASH /S /UPGRADE /SERVER=http://domaine.coop/ocsinventory> for package <1403251106>
        PACKAGE => Package <1403251106> successfully launched. Command exit code is <1>
ERROR *** DOWNLOAD => Will not register package <1403251106> in history: result <EXIT_CODE_1> not a success
DOWNLOAD => Sending result code <EXIT_CODE_1> for package <1403251106>
        DID_CHECK => Read DeviceID <PORTABLE-2014-06-16-15-57-57> and MACs <20:68:9D:3D:28:AD20:68:9D:3C:7B:B5B4:B5:2F:7A:B0:1708:00:27:00:C8:E8> in file <ocsinventory.dat>
        COM SERVER => Initializing cURL library for sendRequest
        COM SERVER => Using cURL without server authentication
        COM SERVER => Disabling cURL proxy support
        COM SERVER => Enabling cURL SSL server validation support using CA Bundle <C:\cacert.pem>
        COM SERVER => Sending HTTP Post request to URL <http://domaine.coop/ocsinventory>
        COM SERVER => HTTP Post response received <HTTP Status Code #200>
        COM SERVER => Cleaning cURL library
        DOWNLOAD => Result code request successfully sent
        DOWNLOAD => Pausing for fragment latency (10 seconds)
        DOWNLOAD => Pausing for cycle latency (60 seconds)
        DOWNLOAD => Pausing for period latency (1 seconds)
DOWNLOAD => Starting new period of 10 cycles
        DOWNLOAD => Flushing package queue
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:10:31.

La même mise à jour lancée à la main depuis la même machine fonctionne :
Log setup :

********************************************************
Starting OCS Inventory NG Agent 2.1.1.1 setup on 20/06/2014 at 10:15:55
Checking if setup not already running...OK.
Checking Operating System...OK, Windows 2000 or higher.
Command line is: "C:\Users\Zobylamouche\Downloads\OCSNG-Windows-Agent-2.1.1\OCSNG-Windows-Agent-2.1.1.1\OCS-NG-Windows-Agent-Setup.exe" /UPGRADE /S /DEBUG=2
Parsing command line arguments...OK.
Checking for silent mode...Enabled.
Checking for splash screen...Enabled.
Checking if logged in user has Administrator privileges...OK.
Creating directory <C:\ProgramData\OCS Inventory NG\Agent>...
SetACL allowing Users / Power users read/write permissions on <C:\ProgramData\OCS Inventory NG\Agent>...Result: error
SetACL propagating inherited permissions on <C:\ProgramData\OCS Inventory NG\Agent\Download>...Result: error
Trying to determine if service was previously installed...Yes.
Trying to stop service and kill processes...
Is Service <OCS Inventory Service> running...Yes.
Trying to stop Service <OCS Inventory Service>...Ok
Is Service <OCS Inventory Service> running...No - Waiting 1 second(s) for Service to stop...
Trying to kill process OcsSystray.exe...Result: 603
Trying to kill process OcsService.exe...Result: 603
Trying to kill process OCSInventory.exe...Result: 603
Trying to kill process download.exe...Result: 603
Trying to kill process inst32.exe...Result: 603
Waiting 10 seconds for processes to terminate...
Copying new files to directory <C:\Program Files (x86)\OCS Inventory Agent>...
Windows XP or higher detected, installing default cURL library and MS CRT/MFC 9.0...
Copying new files status is ;-)
Writing agent configuration file by launching ocsinventory.exe /SAVE_CONF...Result: 0
Windows Advanced Firewall is not available (Vista or higher). Skip adding custom rules.
Creating startup menu shortCut <C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\OCS Inventory NG Systray.lnk> to start Systray applet...
Checking if service OCS Inventory Service is registered into Windows Service Manager...Yes
Nothing to do to register OCS Inventory Service into Windows Service Manager.
Starting OCS Inventory Service...Ok.
Writing setup result <SUCCESS> for Package ID <> to file <C:\ProgramData\OCS Inventory NG\Agent\Download\OCSNG-Windows-Agent-Setup_done>...
SUCCESS: OCS Inventory NG Agent 2.1.1.1 successfuly installed on 20/06/2014 at 10:16:43
;-)

Laurent_novasys (lsc-m)
description: updated
Changed in ocsinventory-windows-agent:
assignee: nobody → Didier Liroulet (dliroulet)
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.