Client execution time out

Hello, I’m having some timeouts when unzipping files, this process can
take some ours and its giving me this error:

[2014-08-07T14:49:19+00:00] FATAL: Mixlib::ShellOut::CommandTimeout:
batch[unzip_san] (frontiers_custom::populator line
129) had an error: Mixlib::ShellOut::CommandTimeout: command timed out:
---- Begin output of “cmd.exe” /c
"C:/Users/ADMINI~1/AppData/Local/Temp/2/chef-script20140807-2520-1fskyqe.bat"

STDOUT: C:>7zG x -y C:\san*.7z -oC:\san
STDERR:
---- End output of “cmd.exe” /c
"C:/Users/ADMINI~1/AppData/Local/Temp/2/chef-script20140807-2520-1fskyqe.bat"

There is a way to extend this time? The recipe works fine when i unzip
a few files but when i have a case with a lot of files i got the
timeout error.

Cheers!

Hey Carlos, if you are using WinRM there is a timeout setting that you might need to adjust.

winrm set winrm/config ‘@{MaxTimeoutms=“2700000”}’

I’ve set it high as some operations can take up to 4 hours to complete, by default it’s something like 5 mins I think.

Cheers
Chris

-----Original Message-----
From: Carlos Camacho [mailto:carlos.camacho@frontiersin.org]
Sent: 07 August 2014 15:58
To: chef@lists.opscode.com
Subject: [chef] Client execution time out

Hello, I’m having some timeouts when unzipping files, this process can take some ours and its giving me this error:

[2014-08-07T14:49:19+00:00] FATAL: Mixlib::ShellOut::CommandTimeout:
batch[unzip_san] (frontiers_custom::populator line
129) had an error: Mixlib::ShellOut::CommandTimeout: command timed out:
---- Begin output of “cmd.exe” /c
"C:/Users/ADMINI~1/AppData/Local/Temp/2/chef-script20140807-2520-1fskyqe.bat"

STDOUT: C:>7zG x -y C:\san*.7z -oC:\san
STDERR:
---- End output of “cmd.exe” /c
"C:/Users/ADMINI~1/AppData/Local/Temp/2/chef-script20140807-2520-1fskyqe.bat"

There is a way to extend this time? The recipe works fine when i unzip a few files but when i have a case with a lot of files i got the timeout error.

Cheers!

Hello!!

In my case this happens when I'm executing a recipe which unzips a
looot of data.

I can see that the recipe unzips the data correctly, but when it takes
more than 2 ours, the chef-client returns the time-out message.

Cheers.

On Thu, Aug 7, 2014 at 5:00 PM, ChristopherHall@air-watch.com
ChristopherHall@air-watch.com wrote:

Hey Carlos, if you are using WinRM there is a timeout setting that you might need to adjust.

winrm set winrm/config '@{MaxTimeoutms="2700000"}'

I've set it high as some operations can take up to 4 hours to complete, by default it's something like 5 mins I think.

Cheers
Chris

-----Original Message-----
From: Carlos Camacho [mailto:carlos.camacho@frontiersin.org]
Sent: 07 August 2014 15:58
To: chef@lists.opscode.com
Subject: [chef] Client execution time out

Hello, I'm having some timeouts when unzipping files, this process can take some ours and its giving me this error:

[2014-08-07T14:49:19+00:00] FATAL: Mixlib::ShellOut::CommandTimeout:
batch[unzip_san] (frontiers_custom::populator line
129) had an error: Mixlib::ShellOut::CommandTimeout: command timed out:
---- Begin output of "cmd.exe" /c
"C:/Users/ADMINI~1/AppData/Local/Temp/2/chef-script20140807-2520-1fskyqe.bat"

STDOUT: C:>7zG x -y C:\san*.7z -oC:\san
STDERR:
---- End output of "cmd.exe" /c
"C:/Users/ADMINI~1/AppData/Local/Temp/2/chef-script20140807-2520-1fskyqe.bat"

There is a way to extend this time? The recipe works fine when i unzip a few files but when i have a case with a lot of files i got the timeout error.

Cheers!

Carlos,
Are you seeing timeouts along with any http(s) errors in a verbosed log?

-----Original Message-----
From: Carlos Camacho [mailto:carlos.camacho@frontiersin.org]
Sent: 07 August 2014 16:11
To: chef@lists.opscode.com
Subject: [chef] Re: RE: Client execution time out

Hello!!

In my case this happens when I'm executing a recipe which unzips a looot of data.

I can see that the recipe unzips the data correctly, but when it takes more than 2 ours, the chef-client returns the time-out message.

Cheers.

On Thu, Aug 7, 2014 at 5:00 PM, ChristopherHall@air-watch.com ChristopherHall@air-watch.com wrote:

Hey Carlos, if you are using WinRM there is a timeout setting that you might need to adjust.

winrm set winrm/config '@{MaxTimeoutms="2700000"}'

I've set it high as some operations can take up to 4 hours to complete, by default it's something like 5 mins I think.

Cheers
Chris

-----Original Message-----
From: Carlos Camacho [mailto:carlos.camacho@frontiersin.org]
Sent: 07 August 2014 15:58
To: chef@lists.opscode.com
Subject: [chef] Client execution time out

Hello, I'm having some timeouts when unzipping files, this process can take some ours and its giving me this error:

[2014-08-07T14:49:19+00:00] FATAL: Mixlib::ShellOut::CommandTimeout:
batch[unzip_san] (frontiers_custom::populator line
129) had an error: Mixlib::ShellOut::CommandTimeout: command timed out:
---- Begin output of "cmd.exe" /c
"C:/Users/ADMINI~1/AppData/Local/Temp/2/chef-script20140807-2520-1fskyqe.bat"

STDOUT: C:>7zG x -y C:\san*.7z -oC:\san
STDERR:
---- End output of "cmd.exe" /c
"C:/Users/ADMINI~1/AppData/Local/Temp/2/chef-script20140807-2520-1fskyqe.bat"

There is a way to extend this time? The recipe works fine when i unzip a few files but when i have a case with a lot of files i got the timeout error.

Cheers!

On Thursday, August 7, 2014 at 7:57 AM, Carlos Camacho wrote:

Hello, I'm having some timeouts when unzipping files, this process can
take some ours and its giving me this error:

[2014-08-07T14:49:19+00:00] FATAL: Mixlib::ShellOut::CommandTimeout:
batch[unzip_san] (frontiers_custom::populator line
129) had an error: Mixlib::ShellOut::CommandTimeout: command timed out:
---- Begin output of "cmd.exe" /c
"C:/Users/ADMINI~1/AppData/Local/Temp/2/chef-script20140807-2520-1fskyqe.bat"

STDOUT: C:>7zG x -y C:\san*.7z -oC:\san
STDERR:
---- End output of "cmd.exe" /c
"C:/Users/ADMINI~1/AppData/Local/Temp/2/chef-script20140807-2520-1fskyqe.bat"

There is a way to extend this time? The recipe works fine when i unzip
a few files but when i have a case with a lot of files i got the
timeout error.

Cheers!
If I remember correctly, the batch resource should be a derivative of script, so it should support the timeout parameter, as documented here: script Resource

--
Daniel DeLeo