[chef] Re: Re: Package Install Timeouts


Chronological Thread 
  • From: Kay Münch < >
  • To:
  • Subject: [chef] Re: Re: Package Install Timeouts
  • Date: Wed, 26 Mar 2014 07:53:13 +0100

Hi Julian, Curtis,

May I still join the discussion, cause I think I'm struggling with the same 
problem the last days?
Downloading the jdk1.8.0 using the 'java' cookbook, times out after 10 
minutes, which is approximately one minute too short, as the client.log tells 
me.
An except of my client.log is attached to this mail.

Looking for a solution/workaround I may have found the source of my pain here:
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mixlib-
shellout-1.3.0/lib/mixlib/shellout.rb:29:    DEFAULT_READ_TIMEOUT = 600

A couple of interesting lines are in the mentioned file:
    186     def timeout
    187       @timeout || DEFAULT_READ_TIMEOUT
    188     end
but I'm not a ruby-expert and don't know how to deal with this knowledge, so 

still (also?) like to ask how can I increase this timeout?

A workaround could be to change the DEFAULT_READ_TIMEOUT in my chef-client 
installation, but I'd like to avoid that and have yet not tried if this 
'solution' is working.

Thanks in advance and best regards.
        Kay

On Tue, Mar 25, 2014 at 11:19 PM, Julian C. Dunn wrote:

> On Tue, Mar 25, 2014 at 6:39 PM, Stewart, Curtis
> 
> < >
>  wrote:
> ...
> Can you gist some output so we can see what exactly is timing out?
> 
> - Julian
[2014-03-23T16:57:20+01:00] INFO: *** Chef 11.10.4 ***
[... output omitted for brevity]
[2014-03-23T16:57:28+01:00] INFO: Processing ruby_block[set-env-java-home] action run (java::set_java_home line 19)
[2014-03-23T16:57:28+01:00] INFO: ruby_block[set-env-java-home] called
[2014-03-23T16:57:28+01:00] INFO: Processing directory[/etc/profile.d] action create (java::set_java_home line 26)
[2014-03-23T16:57:28+01:00] INFO: Processing file[/etc/profile.d/jdk.sh] action create (java::set_java_home line 30)
[2014-03-23T16:57:28+01:00] INFO: Processing java_ark[jdk] action install (java::oracle line 53)
[2014-03-23T16:57:28+01:00] INFO: Adding jdk to /usr/lib/jvm/jdk1.8.0
[2014-03-23T16:57:28+01:00] INFO: Processing package[curl] action install (/var/cache/chef/cookbooks/java/providers/ark.rb line 72)
[2014-03-23T17:07:45+01:00] INFO: Running queued delayed notifications before re-raising exception
[2014-03-23T17:07:45+01:00] ERROR: Running exception handlers
[2014-03-23T17:07:45+01:00] ERROR: Exception handlers complete
[2014-03-23T17:07:45+01:00] FATAL: Stacktrace dumped to /var/cache/chef/chef-stacktrace.out
[2014-03-23T17:07:45+01:00] ERROR: java_ark[jdk] (java::oracle line 53) had an error: Mixlib::ShellOut::CommandTimeout: Command timed out after 600s:
Command execeded allowed execution time, killed by TERM signal.
---- Begin output of  curl --create-dirs -L --cookie "oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8-b132/jdk-8-linux-x64.tar.gz -o /var/cache/chef/jdk-8-linux-x64.tar.gz  ----
STDOUT: 
STDERR: % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0

  0  151M    0 57159    0     0  27910      0  1:34:55  0:00:02  1:34:53 27910
  0  151M    0  293k    0     0  98631      0  0:26:51  0:00:03  0:26:48  237k
[... output omitted for brevity]
92  151M   92  139M    0     0   231k      0  0:11:09  0:10:17  0:00:52  237k
---- End output of  curl --create-dirs -L --cookie "oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8-b132/jdk-8-linux-x64.tar.gz -o /var/cache/chef/jdk-8-linux-x64.tar.gz  ----
Ran  curl --create-dirs -L --cookie "oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8-b132/jdk-8-linux-x64.tar.gz -o /var/cache/chef/jdk-8-linux-x64.tar.gz  returned 
[2014-03-23T17:07:46+01:00] ERROR: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
[2014-03-23T17:07:46+01:00] ERROR: Sleeping for 1800 seconds before trying again



Archive powered by MHonArc 2.6.16.

§