Giter VIP home page Giter VIP logo

Comments (8)

charleneauger avatar charleneauger commented on June 10, 2024

Hi @StCyr ,
Yes, it's possible to raise package's execution timeout. It's on the server's configuration (ocsreports) with the variable "download timeout".
The default execution timeout is 30 days.

Regards,
Charlene

from windowsagent.

StCyr avatar StCyr commented on June 10, 2024

Hi Charlène,

Sorry, I haven't describe the issue correctly enough: The problem is not the download time, but rather the execution time (once the package has been downloaded).

I have no issue with the download timeout of 30 days: Clients correctly pulls the package from the server, but, once downloaded (after a few hours), the batch script I've written to install the package sometimes reports this "ERR_EXECUTE_TIMEOUT" error.

Could you please re-open the bug?

For the record, please find hereunder the related script.

Best regards,

Cyrille

IF EXIST "%PROGRAMFILES% (x86)" goto 64BIT
  
:32BIT
REM You must specify here the correct 32bits .msi file name
msiexec /i jre1.8.0_144.msi /qn
goto UNINSTALL
  
:64BIT
REM You must specify here the correct 64bits .msi file name
msiexec /i jre1.8.0_14464.msi /qn
  
:UNINSTALL
REM Uninstall previous Java versions
wmic product where "name like 'Java 7 Update 25'" call uninstall /nointeractive
wmic product where "name like 'Java 7 Update 51'" call uninstall /nointeractive
wmic product where "name like 'Java 7 Update 55'" call uninstall /nointeractive
wmic product where "name like 'Java 7 Update 67'" call uninstall /nointeractive
wmic product where "name like 'Java 7 Update 71'" call uninstall /nointeractive
wmic product where "name like 'Java 7 Update 72%'" call uninstall /nointeractive
wmic product where "name like 'Java 7 Update 80%'" call uninstall /nointeractive
wmic product where "name like 'Java 7 Update 79'" call uninstall /nointeractive
wmic product where "name like 'Java 8 Update 40'" call uninstall /nointeractive
wmic product where "name like 'Java 8 Update 45%'" call uninstall /nointeractive
wmic product where "name like 'Java 8 Update 51'" call uninstall /nointeractive
wmic product where "name like 'Java 8 Update 65'" call uninstall /nointeractive
wmic product where "name like 'Java 8 Update 66'" call uninstall /nointeractive
wmic product where "name like 'Java 8 Update 71%'" call uninstall /nointeractive
wmic product where "name like 'Java 8 Update 77%'" call uninstall /nointeractive
wmic product where "name like 'Java 8 Update 91'" call uninstall /nointeractive
wmic product where "name like 'Java 8 Update 101%'" call uninstall /nointeractive
wmic product where "name like 'Java 8 Update 111%'" call uninstall /nointeractive
wmic product where "name like 'Java 8 Update 121%'" call uninstall /nointeractive
wmic product where "name like 'Java 8 Update 131%'" call uninstall /nointeractive
wmic product where "name like 'Java 8 Update 141%'" call uninstall /nointeractive

from windowsagent.

charleneauger avatar charleneauger commented on June 10, 2024

Hi @StCyr ,

Your error is just on some Agent ? Not on all ?

Best Regards,
Charlene

from windowsagent.

StCyr avatar StCyr commented on June 10, 2024

Yes, just some agents.

The best of all is that, tough they report this "ERR_EXECUTE_TIMEOUT" error, they seem to have executed the package. At least "java 8 update 144" is now installed on these agents (which is what's done in the first steps of the batch script mentioned earlier).

Please find here attached, the full download.log of this agent related to this deployment.

download.txt

from windowsagent.

ictchanganeuropacom avatar ictchanganeuropacom commented on June 10, 2024

Hello STCyr,

i've the same issue, on most of machines, i'm going crazy to permit install..my timeout is teoretical 7.200.000 milliseconds (2 hrs) but in the reality due to a bug in calculation cannot install anything that take more than 20 minutes!
Had you found a way to increase?

from windowsagent.

StCyr avatar StCyr commented on June 10, 2024

Hi,

here's the log of such a deployment failing due to timeout, while, in fact, the software is correctly deployed:

DOWNLOAD => Downloading package fragment <1544537937-3>
                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 <cacert.pem>
                COM SERVER => Sending fileGet request to URL <HTTP://xxxxxxxxxxxxxxx/download/1544537937/1544537937-3>
                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 (30 seconds)
                DOWNLOAD => Processing packages for cycle 6 on Tuesday, December 11, 2018 15:31:03
                DOWNLOAD => Pausing for cycle latency (30 seconds)
                DOWNLOAD => Processing packages for cycle 7 on Tuesday, December 11, 2018 15:31:33
                DOWNLOAD => Pausing for cycle latency (30 seconds)
                DOWNLOAD => Processing packages for cycle 8 on Tuesday, December 11, 2018 15:32:03
                DOWNLOAD => Pausing for cycle latency (30 seconds)
                DOWNLOAD => Processing packages for cycle 9 on Tuesday, December 11, 2018 15:32:33
                DOWNLOAD => Pausing for cycle latency (30 seconds)
                DOWNLOAD => Processing packages for cycle 10 on Tuesday, December 11, 2018 15:33:03
DOWNLOAD => Building package <1544537937>
                PACKAGE => Verifying fragment files of package <1544537937>
                PACKAGE => Checking free disk space for package <1544537937>
                PACKAGE => Building ZIP for package <1544537937>
                PACKAGE => Verifying ZIP signature for package <1544537937>
                DOWNLOAD => Package <1544537937> built successfully
DOWNLOAD => Executing action <LAUNCH> for package <1544537937>
                PACKAGE => Launching command <install.bat> for package <1544537937> on <Tuesday, December 11, 2018 15:33:04>
                WARNING *** PACKAGE => Command <install.bat> execution reached timeout on <Wednesday, December 12, 2018 09:26:26> (      PACKAGE => No post execution command provided for package <1544537937>
ERROR *** DOWNLOAD => Will not register package <1544537937> in history: result <ERR_EXECUTE_TIMEOUT> not a success
DOWNLOAD => Sending result code <ERR_EXECUTE_TIMEOUT> for package <1544537937>

the install.bat file is the following:

REM Install Lenovo System Update
systemupdate.exe /VERYSILENT /NORESTART
 
REM Disable Scheduled updates
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Lenovo\System Update\Preferences\UserSettings\Scheduler" /v SchedulerAbility /d NO

from windowsagent.

proyectotau avatar proyectotau commented on June 10, 2024

Hi

I've the same issue too

My script runs systeminfo which takes more than 2 minutes to complete:

==============================================================================
Starting OCS Inventory NG Package Download and Setup Tool on Thursday, January 31, 2019 08:35:56.
DOWNLOAD => Running OCS Inventory NG Download Version 2.0.5.2
DOWNLOAD => Using OCS Inventory NG FrameWork Version 2.0.5.2
DOWNLOAD => Using network connection with Communication Server
DOWNLOAD => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.0.5.2>
DOWNLOAD => Starting new period of 10 cycles
DOWNLOAD => Parsing directory <C:\ProgramData\OCS Inventory NG\Agent\download> for packages
DOWNLOAD => Package <1548762697> verified and added to process queue
DOWNLOAD => Downloading package fragment <1548762697-1>
DOWNLOAD => Building package <1548762697>
DOWNLOAD => Executing action <LAUNCH> for package <1548762697>
ERROR *** DOWNLOAD => Will not register package <1548762697> in history: result <ERR_EXECUTE_TIMEOUT> not a success
DOWNLOAD => Sending result code <ERR_EXECUTE_TIMEOUT> for package <1548762697>
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: 02:06:36.

Thanks in advance!

from windowsagent.

sokatra avatar sokatra commented on June 10, 2024

i have the same issue with ocs agent 2.05 - execution timeout occurs sometimes after 2 min. on some computers - but sometimes the software is installed - even when the timout occurs.
On a virtual computer the timeout occurs within seconds with NO install at all
2.0.5.1 fixed it for a specific client - i don't know if a similar bug is still there

https://bugs.launchpad.net/ocsinventory-windows-agent/+bug/1045784
Didier Liroulet (dliroulet) wrote on 2012-09-11:

Hi.

Ok, i think i've found the problem. Function computing timeout was not working if file since not already existing, so it may produce this problem.

from windowsagent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.