Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2020-03-30 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-3238  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet reports "end of file reached" if server closes HTTP connection   
 

  
 
 
 
 

 
 I submitted a PR to improve our test for ruby's EOFError behavior, since ruby can automatically retry idempotent requests, which may mask the EOF problem (see PUP-3905) That said, this ticket was filed against puppet 3.7 and ruby 1.8.7, and as we've seen, ruby's behavior has changed over the years. Puppet 5.5.x ships with ruby 2.3.8 and puppet 6 requires ruby 2.3 or above, and both of those ruby versions contain the ruby fix to reconnect after EOF. So it appears this ticket has been overtaken by recent events, and I think we should close this ticket. If there are cases where a more recent ruby/puppet incorrectly handles this case (when the remote side closes the connection) please reopen this ticket.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.51011.1410505537000.24810.1585609980128%40Atlassian.JIRA.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2020-03-13 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-3238  
 
 
  puppet reports "end of file reached" if server closes HTTP connection   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Sprint: 
 Coremunity  Grooming  Hopper  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.51011.1410505537000.12863.1584142740211%40Atlassian.JIRA.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2020-03-04 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-3238  
 
 
  puppet reports "end of file reached" if server closes HTTP connection   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Sprint: 
 Coremunity Grooming  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.51011.1410505537000.4561.1583351700111%40Atlassian.JIRA.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2020-03-03 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-3238  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet reports "end of file reached" if server closes HTTP connection   
 

  
 
 
 
 

 
 Ruby does the following to detect if a connection has been closed: https://github.com/ruby/ruby/blob/14dd377e51408ef07e03c27f95ff6b0e186df022/lib/net/http.rb#L1581, such as if you issue multiple HTTP requests on the same connection. Implementing that check would help the first case above (where the remote side closes the connection and we receive the FIN), but it won't help the second (where we never receive the FIN). That said I think the change would be beneficial.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.51011.1410505537000.2835.1583260560072%40Atlassian.JIRA.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2019-02-21 Thread Melissa Stone (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Melissa Stone commented on  PUP-3238  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet reports "end of file reached" if server closes HTTP connection   
 

  
 
 
 
 

 
 Merged another improvement to the 5.5.x branch at https://github.com/puppetlabs/puppet/commit/4f86604b7b1ce525380cbc311eed3d606a90763d  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2018-08-13 Thread Rob Braden (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Rob Braden updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-3238  
 
 
  puppet reports "end of file reached" if server closes HTTP connection   
 

  
 
 
 
 

 
Change By: 
 Rob Braden  
 
 
Fix Version/s: 
 PUP 6.0.0  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2018-06-26 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-3238  
 
 
  puppet reports "end of file reached" if server closes HTTP connection   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Sub-team: 
 Coremunity  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2018-06-26 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-3238  
 
 
  puppet reports "end of file reached" if server closes HTTP connection   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Team: 
 Platform Core Coremunity  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2018-06-21 Thread Kenn Hussey (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Kenn Hussey updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-3238  
 
 
  puppet reports "end of file reached" if server closes HTTP connection   
 

  
 
 
 
 

 
Change By: 
 Kenn Hussey  
 
 
Team: 
 Platform Core  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2018-05-01 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-3238  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet reports "end of file reached" if server closes HTTP connection   
 

  
 
 
 
 

 
 Coming back to this after awhile. Puppet may try to reuse a connection that was actively closed by the remote side (eg due to a load balancer sending FIN or RST) or the connection is in a half-open state (and the agent never received notification). Puppet could do an IO.select on the socket to detect an error condition in the first case, but that won't help the second. The only way to do that is to try to write something to the socket, rescue the exception, and retry. We could probably implement something similar to what httpclient does, to wrap requests in a protect_keep_alive_disconnected block, and force a new connection to be created if the request fails. However, I think that should only occur if there is an exception at the TCP layer, not the application layer, otherwise we might retry a non-idempotent REST method, e.g. PUT. A slightly different issue is that puppet uses an infinite read timeout by default. If puppet sends a request, e.g. for a catalog, and is waiting for a response, but ends up in a half-open state, then the agent will hang indefinitely (unless runtimeout is set to a non-zero value, see PUP-7517). In Puppet 6, we should change both of those default timeouts to something less than infinite (see PUP-8683).  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 

Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2018-05-01 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-3238  
 
 
  puppet reports "end of file reached" if server closes HTTP connection   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Fix Version/s: 
 PUP 6.0.0  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2018-03-19 Thread Eric Delaney (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Eric Delaney commented on  PUP-3238  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet reports "end of file reached" if server closes HTTP connection   
 

  
 
 
 
 

 
 Better debug information was added to 4.10.x at https://github.com/puppetlabs/puppet/commit/e45035511923ab67fa5a8ef6fa8e591f7aedf6e7  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2018-03-19 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-3238  
 
 
  puppet reports "end of file reached" if server closes HTTP connection   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Fix Version/s: 
 PUP 4.10.11  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2018-03-19 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-3238  
 
 
  puppet reports "end of file reached" if server closes HTTP connection   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Fix Version/s: 
 PUP 4.10.11  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2018-03-15 Thread Austin Boyd (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Austin Boyd updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-3238  
 
 
  puppet reports "end of file reached" if server closes HTTP connection   
 

  
 
 
 
 

 
Change By: 
 Austin Boyd  
 
 
Labels: 
 LTS-Triage  jira_escalated  
 
 
Zendesk Ticket IDs: 
 28991  
 
 
Zendesk Ticket Count: 
 1  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2018-03-14 Thread Austin Boyd (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Austin Boyd updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-3238  
 
 
  puppet reports "end of file reached" if server closes HTTP connection   
 

  
 
 
 
 

 
Change By: 
 Austin Boyd  
 
 
Labels: 
 LTS-Triage  jira_escalated  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2018-03-14 Thread Austin Boyd (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Austin Boyd updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-3238  
 
 
  puppet reports "end of file reached" if server closes HTTP connection   
 

  
 
 
 
 

 
Change By: 
 Austin Boyd  
 
 
Zendesk Ticket IDs: 
 28991  
 
 
Zendesk Ticket Count: 
 1  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2018-03-14 Thread Reid Vandewiele (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Reid Vandewiele updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-3238  
 
 
  puppet reports "end of file reached" if server closes HTTP connection   
 

  
 
 
 
 

 
Change By: 
 Reid Vandewiele  
 
 
Labels: 
 needs_repro LTS-Triage  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2018-03-14 Thread Reid Vandewiele (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Reid Vandewiele commented on  PUP-3238  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet reports "end of file reached" if server closes HTTP connection   
 

  
 
 
 
 

 
 Adding PR that doesn't change behavior, but significantly improves visibility into what is happening when an exception is raised in this way. https://github.com/puppetlabs/puppet/pull/6723  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2018-03-12 Thread Reid Vandewiele (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Reid Vandewiele commented on  PUP-3238  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet reports "end of file reached" if server closes HTTP connection   
 

  
 
 
 
 

 
 Reproduction This is one way to reproduce an "end of file" error, by running a load balancer to terminate connections after 1 second. On a test system, standard PE install, apply this puppetlabs/haproxy configuration. I did this by just editing site.pp and making a node block for my master. https://gist.github.com/reidmv/2fb505344895009e82a8ba7c5dd0e7d9 This will kill/timeout all connections over 1 second. Next, run Puppet against the proxy port (9140).  
 
 
 
 
 puppet agent -t --http_debug --masterport 9140 --trace
  
 
 
 
   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.

Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2017-12-07 Thread Jacob Helwig (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jacob Helwig updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-3238 
 
 
 
  puppet reports "end of file reached" if server closes HTTP connection  
 
 
 
 
 
 
 
 
 

Change By:
 
 Jacob Helwig 
 
 
 

Sub-team:
 
 Coremunity 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2017-05-18 Thread Moses Mendoza (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Moses Mendoza updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-3238 
 
 
 
  puppet reports "end of file reached" if server closes HTTP connection  
 
 
 
 
 
 
 
 
 

Change By:
 
 Moses Mendoza 
 
 
 

Labels:
 
 needs_repro  triaged 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2017-05-16 Thread Adrien Thebo (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Adrien Thebo updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-3238 
 
 
 
  puppet reports "end of file reached" if server closes HTTP connection  
 
 
 
 
 
 
 
 
 

Change By:
 
 Adrien Thebo 
 
 
 

Labels:
 
 needs_repro triaged 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2017-05-16 Thread Adrien Thebo (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Adrien Thebo commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: puppet reports "end of file reached" if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
It looks like there are a handful of related, but separate cases that can trigger this behavior. Unfortunately I don't think we've been able to find a way to consistently reproduce this in order to resolve it, so we're a bit dead in the water on this ticket. Could someone provide steps to reproduce this? A while back I wrote a tool to simulate various adverse network conditions (https://github.com/adrienthebo/netstomp), maybe something like this could be used to provide a reliable reproduction case? 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2016-04-13 Thread Marc Fournier (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Marc Fournier commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: puppet reports "end of file reached" if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
Richard Pijnenburg nb: this patch was about TCP keepalives, not HTTP Keepalive. And the goal was to force the agent to fail eventually. So I'm not really sure how it relates to this issue. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2016-04-13 Thread Richard Pijnenburg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Richard Pijnenburg commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: puppet reports "end of file reached" if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
We backported the PR from Marc Fournier to our Puppet 3.8.5 install and still shows the same issue with Puppet Server 1.1.3 We also increased the `idle-timeout-milliseconds` which had no impact either. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2016-01-05 Thread Josh Cooper (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Josh Cooper commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: puppet reports "end of file reached" if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
For folks watching this ticket, Marc Fournier submitted a PR to puppet to enable TCP keepalive https://github.com/puppetlabs/puppet/pull/4508 which should allow the agent to detect when the remote side closes the idle connection, and not reuse a stale connection. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2015-10-23 Thread Adam Winberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Adam Winberg commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: puppet reports "end of file reached" if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
Using apache/passenger I have only had one puppet run where ~70 agent runs failed. It's still really slow at those times, but manage to keep it together more so than puppetserver (with my current configuration).  
The only parameters in the jetty config docs you provided that seem interesting to me is the idleTimeout and the stopTimeout. The former I believe is already set (idle-timeout-milliseconds), but the latter may be interesting, is this already available and what's its default value? 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2015-10-23 Thread Adam Winberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Adam Winberg commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: puppet reports "end of file reached" if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
I'm also seeing the occasional  
 
 
 
 
 
 
WARN  [o.e.j.s.HttpChannel] Could not send response error 500: java.lang.IllegalStateException: org.eclipse.jetty.util.SharedBlockingCallback$BlockerTimeoutException
 
 
 
 
 
 
 
message in the puppetserver.log when agent runs are aborted. Then I found this jetty bug report: 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=444031 
Don't know if thats relevant with the jetty version puppetserver is using, but it sounds like it may be a similar problem.  
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2015-10-23 Thread Christopher Price (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Christopher Price commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: puppet reports "end of file reached" if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
Reading up on stopTimeout, it sounds like it just affects how long the server waits to forcefully kill threads during a shutdown. So, that sounds like a long shot, unfortunately. 
What version of the JDK are you using? And remind me what version of Puppet Server? 
There are some newer builds of Jetty out there; we're currently using 9.2.10, and they are up to 9.2.13 in the 9.2.x series, and 9.3.5 on the new 9.3.x series. I could pretty easily put a build together for you that included 9.3.5, but it looks like it has a minimum JDK version of 8. 
It also might be useful to get some JMX metrics out of your Jetty setup when it's under high load. At some point I could put a script together to try to collect those for you, but TBH it'll probably be a few weeks before we have bandwidth for that because we have a big release date coming up. 
Usually when we've seen those WritePending it's been because (from the perspective of the server) the client closed the connection. So if you're seeing that happen on multiple agents at the same time, I'd be suspicious of a load balancer or a router severing the connection; perhaps temporarily, and perhaps in a way that Apache is more patient about waiting for a recovery from. 
If you are interested in testing a build with a newer Jetty, let us know. Or if you are able to narrow down what other things might be going on in your environment so that we can set up a repro case over here. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group 

Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2015-10-23 Thread Adam Winberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Adam Winberg commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: puppet reports "end of file reached" if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
I'm using puppetserver 1.1.1, which has a dependency (i'm on RHEL) to java-1.7.0-openjdk (of which I am running latest patch), so thats the one I'm using. It's no problem for me to run java8 instead, though.  
I'm gonna do some more digging regarding networking and such. I'll get back to you about that updated jetty build.  
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2015-10-20 Thread Christopher Price (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Christopher Price commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: puppet reports "end of file reached" if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
Adam Winberg yeah. I'd be surprised if there wasn't some Jetty setting, or something related to Jetty, that would get it sorted. If we can come up with a reliable repro case, we would be happy to investigate it further on our end. 
The fact that both of your agents timed out at the same time makes it seem like some kind of network hiccup or something. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2015-10-20 Thread Adam Winberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Adam Winberg commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: puppet reports "end of file reached" if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
right now I have reverted back to apache/passenger just to confirm that this plays nicer than puppetserver in my env. Gonna let this run for a day or two. I do prefer the puppetserver jvm approach though, less moving parts and thus easier to manage - provided it works, of course. 
Reproducing is hard. Well, not for me, I just have to wait a couple of hours, but since I can't properly define why my puppetserver gets into trouble in the first place it's not that easy for you guys to debug. Undeniably there is a lot of congestion on the puppetserver at some times, with catalog requests building up far faster than puppetserver can manage to serve them. I'm gonna think about networking some more.  
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2015-10-20 Thread Christopher Price (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Christopher Price commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: puppet reports "end of file reached" if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
OK, thanks. Keep us posted; we're definitely interested in fixing it if we find something we can sink our teeth into. 
If you're interested you could skim the Jetty configuration docs and see if anything jumps out at you. We have a mechanism that we could use to help you test out any of the settings listed there if you were inclined to do so: 
http://www.eclipse.org/jetty/documentation/current/configuring-connectors.html 
Another thing we could try at some point is to help you build a jar that contains a newer version of Jetty than the one we currently ship, and see if that changes anything. We had a few weird network issues pop up under thundering herd situations about a year ago and a Jetty upgrade resolved them, but they didn't look exactly like this so it's hard to say whether it would help or not. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2015-10-19 Thread Adam Winberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Adam Winberg commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: puppet reports "end of file reached" if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
I don't see any timeout values at play here. For example I have two nodes which started their agent runs at different times (one minute apart) but both terminated with "end of file reached" at the same second. 
Logs from puppet agents: 
 
 
 
 
 
 
Oct 18 16:09:09 lxserv363 puppet-agent[62991]: Retrieving pluginfacts 
 
 
 
 
Oct 18 16:09:54 lxserv363 puppet-agent[62991]: Retrieving plugin 
 
 
 
 
Oct 18 16:10:34 lxserv363 puppet-agent[62991]: Loading facts 
 
 
 
 
Oct 18 16:10:34 lxserv363 puppet-agent[62991]: Loading facts 
 
 
 
 
Oct 18 16:12:33 lxserv363 puppet-agent[62991]: Could not retrieve catalog from remote server: end of file reached
 
 
 
 
 
 
 
 
 
 
 
 
 
  
 
 
 
 
Oct 18 16:08:15 lxserv1055 puppet-agent[16951]: Retrieving pluginfacts 
 
 
 
 
Oct 18 16:08:27 lxserv1055 puppet-agent[16951]: Retrieving plugin 
 

Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2015-10-19 Thread Christopher Price (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Christopher Price commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: puppet reports "end of file reached" if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
Adam Winberg unfortunately I don't have any immediate guesses as to what timeout settings from our code could be at play here. Are your agents connecting through a load balancer? 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2015-10-19 Thread Adam Winberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Adam Winberg commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: puppet reports "end of file reached" if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
no, no load balancer. I use foreman as ENC and for reporting. I am still trying to pinpoint where the problem lies, I do believe its inherent to some overall infrastructure load in our environment, but since apache/passenger managed to get the job done i would think puppetserver should too.  
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2015-10-15 Thread Adam Winberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Adam Winberg commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: puppet reports "end of file reached" if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
I have switched from apache/passenger to puppetserver and also get this intermittently. The problem arise during certain times when our nfs server is under heavy load, and since we serve our modules from nfs the puppet runs are generally quite slow during these times. However, apache/passenger could cope just fine with this, slower runs but no timeouts, and I hope I can configure puppetserver to do this too. Unfortunately, increasing idle-timeout-milliseconds to 40min had no effect, the "java.nio.channels.WritePendingException: null" and "end of file reached" messages appears at the same time as before. I also set connect-timeout-milliseconds to 5min, but no effect.  
Any ideas? 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2015-09-28 Thread Robert Scheer (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Robert Scheer commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: puppet reports "end of file reached" if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
Setting idle-timeout-milliseconds worked: the amount of failure reports dropped to 3 in the past 44 hours after doubling its value. What it is that causes our puppet clients to be so slow remains to be seen, but our immidiate problem is solved now. Thanks! 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2015-09-25 Thread Robert Scheer (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Robert Scheer commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: puppet reports "end of file reached" if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
Thanks Josh Cooper, I will. Also upon further examination I found that the "end of file reached" message reported by a puppet client corresponds with a Java exception "java.nio.channels.WritePendingException: null" in puppetserver.log exactly as found in SERVER-819 . This is the case for the almost twenty failures I checked, out of some 600 per day (we have 500+ nodes that check in twice per hour). 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2015-09-24 Thread Christopher Price (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Christopher Price commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: puppet reports "end of file reached" if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
Josh Cooper does this seem like what you are asking about?: 
https://github.com/puppetlabs/trapperkeeper-webserver-jetty9/blob/master/doc/jetty-config.md#idle-timeout-milliseconds 
If so, I'm not sure if we've decided how to get those docs into the official PL docs yet. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2015-09-24 Thread Josh Cooper (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Josh Cooper commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: puppet reports "end of file reached" if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
Thanks Christopher Price, that sounds like the one. Robert Scheer can you try setting idle-timeout-milliseconds using the link above? 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports "end of file reached" if server closes HTTP connection

2015-09-22 Thread Robert Scheer (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Robert Scheer commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: puppet reports "end of file reached" if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
I have this issue with a puppet master server running Puppetserver (version 1.1) so Apache settings don't apply. How could I mitigate this problem? 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports end of file reached if server closes HTTP connection

2015-04-08 Thread Nick Moriarty (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Nick Moriarty commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: puppet reports end of file reached if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
For info (in case anyone else runs into this), I found the source of another odd issue causing sporadic disconnects (symptom was sporadic end of file reached on various file resources. Our masters run Apache 2.4 with KeepAlive (with an appropriate timeout with a good margin), and were configured to use mod_reqtimeout with default request timeouts. There seems to be an interesting interaction between KeepAlive and reqtimeout which causes some strangeness and can result in connections dropping. I never saw any substantial delays in the logs (certainly nothing near the configured timeouts), and I did find a reference to this on the Apache bug tracker. https://bz.apache.org/bugzilla/show_bug.cgi?id=56729 
We've disabled reqtimeout for now to prevent this cropping up. 
Testing HTTP connections looks to be moderately difficult as it appears to require examining the internal state of HTTP, and possibly making at least a non-blocking read for at least one byte from the underlying socket - this results in either Errno::EAGAIN (if there's no data), or EOFError (if the socket was closed by the server). 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.15#6346-sha1:dbc023d) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports end of file reached if server closes HTTP connection

2015-04-08 Thread Jean Bond (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jean Bond updated an issue 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 Puppet /  PUP-3238 
 
 
 
  puppet reports end of file reached if server closes HTTP connection  
 
 
 
 
 
 
 
 
 

Change By:
 
 Jean Bond 
 
 
 

Component/s:
 
 DOCS 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.15#6346-sha1:dbc023d) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports end of file reached if server closes HTTP connection

2015-04-02 Thread Jean Bond (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jean Bond commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: puppet reports end of file reached if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
@josh Is there any Docs work needed on this at this time? It's hanging out on our Kanban board because of the DOCS component, but I'm not seeing what action is required from us just now.  
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.15#6346-sha1:dbc023d) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports end of file reached if server closes HTTP connection

2015-03-31 Thread Josh Cooper (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Josh Cooper updated an issue 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 Puppet /  PUP-3238 
 
 
 
  puppet reports end of file reached if server closes HTTP connection  
 
 
 
 
 
 
 
 
 

Change By:
 
 Josh Cooper 
 
 
 

Scrum Team:
 
 ClientPlatform 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.15#6346-sha1:dbc023d) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports end of file reached if server closes HTTP connection

2015-01-07 Thread Josh Cooper (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Josh Cooper commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: puppet reports end of file reached if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
Thanks Nick Moriarty for debugging the issue you were seeing. As far as retrying http connections, there has been some active debate about that on PUP-2526. However, note that POST requests are not idempotent and should not be retried. And since the error you were seeing was due to a POST request: 
 
 
 
 
 
 
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/connection.rb:87:in `post'
 
 
 
 
 
 
 
http retry would not have helped. 
I looked into testing HTTP connection prior to reusing them. The difficulty I ran into there was finding a valid request that didn't require data to be transferred, and also one that worked without requiring a client cert. It may be possible to issue a HEAD request for the certificate authority certificate, e.g. HEAD /production/certificate/ca HTTP/1.1, though that could result in a substantial number of requests, especially during pluginsync. 
I think this particular issue most often comes up when facts take a long time to resolve, e.g. about as long as the client http keepalive timeout. Another improvement might be to do something like: 
 
 
 
 
 
 
pool do 
 
 
 
 
  pluginsync 
 
 
 
 
end 
 
 
 
 
 
 
 
 
 
evaluate facts  
 
 
 
 

Jira (PUP-3238) puppet reports end of file reached if server closes HTTP connection

2014-12-29 Thread Aaron Armstrong (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Aaron Armstrong updated an issue 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 Puppet /  PUP-3238 
 
 
 
  puppet reports end of file reached if server closes HTTP connection  
 
 
 
 
 
 
 
 
 

Change By:
 
 Aaron Armstrong 
 
 
 

Component/s:
 
 NetworkingServices 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports end of file reached if server closes HTTP connection

2014-12-24 Thread Nick Moriarty (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Nick Moriarty commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: puppet reports end of file reached if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
I've finally tracked down the cause of the client-initiated connection closures causing our issue. These were caused by bad file descriptor usage in a custom fact; in Ruby 1.8, IO objects seem to be very low-level, and the Open3 library can return illegal but valid-looking IO objects from a call to popen3 even if the underlying command fails to run. It looks like these objects can end up relating to other, existing IOs; in our case, this was sometimes the HTTP socket. Closing of the connection appeared to be a side-effect of these invalid IOs. I've fixed the associated fact, and the problem seems to have subsided. 
I'd still like to see a retry feature and/or a test of HTTP connections to see if they're actually still open before using them. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports end of file reached if server closes HTTP connection

2014-12-22 Thread Nick Moriarty (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Nick Moriarty commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: puppet reports end of file reached if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
Updates on my previous comment. 
We're not seeing the above problem on all of our environments; it appears to be constrained to only some. I added some extra debugging and have discovered the following: 
 

The client-issued Encrypted Alert described above is indeed a Close Notify (determined by changing our test server to use a non-DH cipher and packet sniffing).
 

This appears to be the first sign of any difference between normal runs and those where the connection is dropped.
 

Having added extra debugging around fact retrieval, I can confirm that the Close Notify is sent after all facts have been retrieved, but before the debug line Failed to load library 'msgpack' for feature 'msgpack'.
 
 
The connection close definitely seems to be client-initiated. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports end of file reached if server closes HTTP connection

2014-12-19 Thread Nick Moriarty (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Nick Moriarty commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: puppet reports end of file reached if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
We're also seeing end of file sometimes with KeepAlive. We're using 4 seconds / 10 seconds on client / server respectively. Clients are running 3.7.2 and .3, masters are running 3.7.3. 
We're seeing bursts of failed runs on the affected hosts, around seven hours apart but not correlated with each other. 
I've added local debugging and I'm running tcpdump on a client and test master. 
What I believe I'm seeing on the failed runs (waiting on more data) is: 
 

Everything seems normal, and the connection is cached after downloading facts, but before Loading facts.
 

The client sends an SSL Encrypted Alert, which I believe contains a request to close the connection (at present I've not decrypted this as we're using DH - turned this off to get more data now).
 

The server acknowledges and sends a FIN/ACK to close the connection, which the client acknowledges immediately.
 

The client picks up the connection (which hasn't reached its keepalive timeout) and tries to use it (it sends successfully).
 

The web server never sees / ignores the request as the connection is already half-closed.
 

An exception is thrown from /usr/lib/ruby/1.8/net/protocol.rb:135:in `sysread' when the client tries to read from the (closed) incoming stream - it does this without timing out.
 
 
I'm still trying to find out why this is happening reliably in bursts (but I can't seem to force it to happen), as it looks like the client is deciding to close the connection, but it's definitely not being done via the Puppet connection pool class. 
The issue would be alleviated if the connection pool checked that connections were actually still fully open before selecting them - it seems valid that the server should be allowed to close the connection of its own accord, and the client shouldn't then try to re-use the connection. This might be something that can be checked on the HTTP object when determining which connections are active. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 

Jira (PUP-3238) puppet reports end of file reached if server closes HTTP connection

2014-11-04 Thread Mihkel Ader (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Mihkel Ader commented on  PUP-3238 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: puppet reports end of file reached if server closes HTTP connection  
 
 
 
 
 
 
 
 
 
 
+1 on connection retry feature.  
For us, Puppet still occasionally fails with the end of file reached message in remote sites with high network latency. Apache keepalive timeout has been bumped to 15 seconds. Running Puppet 3.7.2. No problems when keepalives are disabled. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports end of file reached if server closes HTTP connection

2014-10-06 Thread c lang (JIRA)
Title: Message Title










 

 c lang commented on an issue


















  Re: puppet reports end of file reached if server closes HTTP connection 










Is there no way to handle the closed connection and retry with a warning logged?
This stumped us for a while and prevented us from upgrading to 3.7.
Thanks for the solution, Adam Winberg












   

 Add Comment

























 Puppet /  PUP-3238



  puppet reports end of file reached if server closes HTTP connection 







 I have two dirname.rb functions in my code, one from stdlib and one in a different module I installed at an earlier stage. This has never been a problem, puppet has somehow chosen one of them and not complained about it. After upgrading to 3.7.0 on the clients, the puppetruns crashes with  Error: Could not retrieve catalog from remote server: end of file...















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to 

Jira (PUP-3238) puppet reports end of file reached if server closes HTTP connection

2014-10-06 Thread Kylo Ginsberg (JIRA)
Title: Message Title










 

 Kylo Ginsberg commented on an issue


















  Re: puppet reports end of file reached if server closes HTTP connection 










c lang it would be nice to retry (and log the connection close) in this scenario, as we're seeing a few people bumping into this.
However, AFAICT Ruby swallows the write error - I haven't chased this down into the MRI implementation per se, but the docs do say that write never raises exception. If so, detecting the close might be complex implementation-wise.












   

 Add Comment

























 Puppet /  PUP-3238



  puppet reports end of file reached if server closes HTTP connection 







 I have two dirname.rb functions in my code, one from stdlib and one in a different module I installed at an earlier stage. This has never been a problem, puppet has somehow chosen one of them and not complained about it. After upgrading to 3.7.0 on the clients, the puppetruns crashes with  Error: Could not retrieve catalog from remote server: end of file...















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this 

Jira (PUP-3238) puppet reports end of file reached if server closes HTTP connection

2014-10-06 Thread Nicholas Fagerlund (JIRA)
Title: Message Title










 

 Nicholas Fagerlund updated an issue


















 Puppet /  PUP-3238



  puppet reports end of file reached if server closes HTTP connection 










Change By:

 Nicholas Fagerlund




Assignee:

 JoshCooper












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports end of file reached if server closes HTTP connection

2014-10-06 Thread Nicholas Fagerlund (JIRA)
Title: Message Title










 

 Nicholas Fagerlund commented on an issue


















  Re: puppet reports end of file reached if server closes HTTP connection 










Okay, I think https://github.com/puppetlabs/puppet-docs/commit/7992414d722959fbb46054ee6f51980d86de30bc should resolve this bug. Josh Cooper, see anything I missed? 












   

 Add Comment

























 Puppet /  PUP-3238



  puppet reports end of file reached if server closes HTTP connection 







 I have two dirname.rb functions in my code, one from stdlib and one in a different module I installed at an earlier stage. This has never been a problem, puppet has somehow chosen one of them and not complained about it. After upgrading to 3.7.0 on the clients, the puppetruns crashes with  Error: Could not retrieve catalog from remote server: end of file...















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For 

Jira (PUP-3238) puppet reports end of file reached if server closes HTTP connection

2014-09-29 Thread Josh Cooper (JIRA)
Title: Message Title










 

 Josh Cooper updated an issue


















 Puppet /  PUP-3238



  puppet reports end of file reached if server closes HTTP connection 










Change By:

 Josh Cooper




Assignee:

 KyloGinsberg NicholasFagerlund












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports end of file reached if server closes HTTP connection

2014-09-15 Thread Adam Winberg (JIRA)
Title: Message Title










 

 Adam Winberg commented on an issue


















  Re: puppet reports end of file reached if server closes HTTP connection 










I understand the difficulties in providing a 'better' error message, so updated docs is good enough for me.
Here's the trace:
Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Error: Could not retrieve catalog from remote server: end of file reached /usr/lib/ruby/1.8/net/protocol.rb:135:in `sysread' /usr/lib/ruby/1.8/net/protocol.rb:135:in `rbuf_fill' /usr/lib/ruby/1.8/timeout.rb:67:in `timeout' /usr/lib/ruby/1.8/timeout.rb:101:in `timeout' /usr/lib/ruby/1.8/net/protocol.rb:134:in `rbuf_fill' /usr/lib/ruby/1.8/net/protocol.rb:116:in `readuntil' /usr/lib/ruby/1.8/net/protocol.rb:126:in `readline' /usr/lib/ruby/1.8/net/http.rb:2028:in `read_status_line' /usr/lib/ruby/1.8/net/http.rb:2017:in `read_new' /usr/lib/ruby/1.8/net/http.rb:1051:in `request' /usr/lib/ruby/site_ruby/1.8/puppet/network/http/connection.rb:208:in `execute_request' /usr/lib/ruby/site_ruby/1.8/puppet/network/http/connection.rb:176:in `request_with_redirects' /usr/lib/ruby/site_ruby/1.8/puppet/network/http/connection.rb:219:in `with_connection' /usr/lib/ruby/site_ruby/1.8/puppet/network/http/pool.rb:31:in `with_connection' /usr/lib/ruby/site_ruby/1.8/puppet/network/http/connection.rb:218:in `with_connection' /usr/lib/ruby/site_ruby/1.8/puppet/network/http/connection.rb:173:in `request_with_redirects' /usr/lib/ruby/site_ruby/1.8/puppet/network/http/connection.rb:170:in `upto' /usr/lib/ruby/site_ruby/1.8/puppet/network/http/connection.rb:170:in `request_with_redirects' /usr/lib/ruby/site_ruby/1.8/puppet/network/http/connection.rb:87:in `post' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/rest.rb:83:in `send' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/rest.rb:83:in `http_request' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/rest.rb:66:in `http_post' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/rest.rb:94:in `find' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/rest.rb:190:in `do_request' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/request.rb:264:in `do_request' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/rest.rb:190:in `do_request' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/rest.rb:90:in `find' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:201:in `find' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:289:in `retrieve_new_catalog' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:327:in `thinmark' /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:326:in `thinmark' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:288:in `retrieve_new_catalog' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:61:in `retrieve_catalog' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:104:in `prepare_and_retrieve_catalog' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:201:in `run_internal' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:132:in `run' /usr/lib/ruby/site_ruby/1.8/puppet/context.rb:64:in `override' /usr/lib/ruby/site_ruby/1.8/puppet.rb:244:in `override' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:131:in `run' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:47:in `run' /usr/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb:20:in `lock' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:47:in `run' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:117:in `with_client' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:44:in `run' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:82:in `run_in_fork' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:43:in `run' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:in `call' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:in `controlled_run' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:41:in `run' /usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:356:in `onetime' 

Jira (PUP-3238) puppet reports end of file reached if server closes HTTP connection

2014-09-15 Thread Kylo Ginsberg (JIRA)
Title: Message Title










 

 Kylo Ginsberg commented on an issue


















  Re: puppet reports end of file reached if server closes HTTP connection 










Josh Cooper according to the documentation for the post (et al) methods here:
 http://ruby-doc.org/stdlib-2.1.2/libdoc/net/http/rdoc/Net/HTTP.html

This method never raises exception.

So it does appear to mask errors on writes.












   

 Add Comment

























 Puppet /  PUP-3238



  puppet reports end of file reached if server closes HTTP connection 







 I have two dirname.rb functions in my code, one from stdlib and one in a different module I installed at an earlier stage. This has never been a problem, puppet has somehow chosen one of them and not complained about it. After upgrading to 3.7.0 on the clients, the puppetruns crashes with  Error: Could not retrieve catalog from remote server: end of file...















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google 

Jira (PUP-3238) puppet reports end of file reached if server closes HTTP connection

2014-09-15 Thread Josh Cooper (JIRA)
Title: Message Title










 

 Josh Cooper commented on an issue


















  Re: puppet reports end of file reached if server closes HTTP connection 










https://github.com/ruby/ruby/blob/v1_8_7_374/lib/net/http.rb#L1548












   

 Add Comment

























 Puppet /  PUP-3238



  puppet reports end of file reached if server closes HTTP connection 







 I have two dirname.rb functions in my code, one from stdlib and one in a different module I installed at an earlier stage. This has never been a problem, puppet has somehow chosen one of them and not complained about it. After upgrading to 3.7.0 on the clients, the puppetruns crashes with  Error: Could not retrieve catalog from remote server: end of file...















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports end of file reached if server closes HTTP connection

2014-09-12 Thread Josh Cooper (JIRA)
Title: Message Title










 

 Josh Cooper updated an issue


















 Puppet /  PUP-3238



  puppet reports end of file reached if server closes HTTP connection 










Change By:

 Josh Cooper




Summary:

 puppet crashes reportsendoffilereached if therearemultiplepluginsyncfileswithsamename serverclosesHTTPconnection












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports end of file reached if server closes HTTP connection

2014-09-12 Thread Josh Cooper (JIRA)
Title: Message Title










 

 Josh Cooper commented on an issue


















  Re: puppet reports end of file reached if server closes HTTP connection 










Adam Winberg the issue you are seeing is due to the persistent http connection feature in 3.7 (

PUP-744
), and having the server's KeepAliveTimeout being shorter than the agent's. The agent makes (at least) 5 HTTP request during a run:


GET /production/catalog/node


GET /production/file_metadatas/pluginfacts


GET /production/file_metadatas/plugins


POST /production/catalog/node


PUT /production/report/node


In between 3  4, the agent will evaluate its facts. If that process takes longer than the server's KeepAliveTimeout setting, then the server will close the idle connection. Later when the agent tries to retrieve its catalog in step 4, it will fail. I presume facter is taking longer on RHEL6 than 7.
Interestingly, it appears the client wrote the POST request to the socket successfully, but received EOF when reading the response. This could be just how the ruby http client behaves (as in it masks errors during writes). Would you mind running `puppet agent -t --trace` on a client that fails and include the stacktrace in this ticket?
I agree, we should add some docs around how server side KeepAliveTimeout can affect the puppet agent. Adding Nicholas Fagerlund.
As far as better error message that would be hard to do, because the client has not way of knowing if the connection was closed due to the server timing out the idle connection, a firewall closing the connection, or other networking problem.












   

 Add Comment























Jira (PUP-3238) puppet reports end of file reached if server closes HTTP connection

2014-09-12 Thread Josh Cooper (JIRA)
Title: Message Title










 

 Josh Cooper updated an issue


















 Puppet /  PUP-3238



  puppet reports end of file reached if server closes HTTP connection 










Change By:

 Josh Cooper




Component/s:

 NetworkingServices




Component/s:

 DOCS












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3238) puppet reports end of file reached if server closes HTTP connection

2014-09-12 Thread Nicholas Fagerlund (JIRA)
Title: Message Title










 

 Nicholas Fagerlund commented on an issue


















  Re: puppet reports end of file reached if server closes HTTP connection 










Looks like that directive can be set at virtual host scope: http://httpd.apache.org/docs/2.2/mod/core.html#keepalivetimeout
Should we recommend setting that in the Passenger guide and/or the example vhost that ships with puppet? https://docs.puppetlabs.com/guides/passenger.html












   

 Add Comment

























 Puppet /  PUP-3238



  puppet reports end of file reached if server closes HTTP connection 







 I have two dirname.rb functions in my code, one from stdlib and one in a different module I installed at an earlier stage. This has never been a problem, puppet has somehow chosen one of them and not complained about it. After upgrading to 3.7.0 on the clients, the puppetruns crashes with  Error: Could not retrieve catalog from remote server: end of file...















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to 

Jira (PUP-3238) puppet reports end of file reached if server closes HTTP connection

2014-09-12 Thread Nicholas Fagerlund (JIRA)
Title: Message Title










 

 Nicholas Fagerlund commented on an issue


















  Re: puppet reports end of file reached if server closes HTTP connection 










The only other places I think this could be mentioned are the release notes (with an UPGRADE WARNING flag) and the rack puppet master reference page (https://docs.puppetlabs.com/puppet/latest/reference/services_master_rack.html).












   

 Add Comment

























 Puppet /  PUP-3238



  puppet reports end of file reached if server closes HTTP connection 







 I have two dirname.rb functions in my code, one from stdlib and one in a different module I installed at an earlier stage. This has never been a problem, puppet has somehow chosen one of them and not complained about it. After upgrading to 3.7.0 on the clients, the puppetruns crashes with  Error: Could not retrieve catalog from remote server: end of file...















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.

Jira (PUP-3238) puppet reports end of file reached if server closes HTTP connection

2014-09-12 Thread Josh Cooper (JIRA)
Title: Message Title










 

 Josh Cooper commented on an issue


















  Re: puppet reports end of file reached if server closes HTTP connection 










Nicholas Fagerlund I don't think setting it in vhost is a good idea based on my reading of In a name-based virtual host context, the value of the first defined virtual host (the default host) in a set of NameVirtualHost will be used. The other values will be ignored. http://httpd.apache.org/docs/2.2/mod/core.html#keepalivetimeout
I think adding it to the rack puppet master reference page is good, as well as 3.7 release notes.












   

 Add Comment

























 Puppet /  PUP-3238



  puppet reports end of file reached if server closes HTTP connection 







 I have two dirname.rb functions in my code, one from stdlib and one in a different module I installed at an earlier stage. This has never been a problem, puppet has somehow chosen one of them and not complained about it. After upgrading to 3.7.0 on the clients, the puppetruns crashes with  Error: Could not retrieve catalog from remote server: end of file...















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed