Issue #2238 has been updated by Jordan Curzon.
Category set to mongrel
This url was parsed by Mongrel::HttpRequest.query_parse into a params hash with
a nil in it.
<pre>
/production/file_metadatas/modules/bootloader/scripts?links=manage&ignore=.svn&=&recurse=true
{"recurse"=>"true", nil=>nil, "links"=>"manage", "ignore"=>".svn"}
</pre>
The bug randomly disappeared before I could track down when the client was
generating such a url. Below is the trace on the server side. I have a patch
that I'll send to the list.
<pre>
/opt/puppet/lib/puppet/network/http/handler.rb:186:in `decode_params'
/opt/puppet/lib/puppet/util/autoload/file_cache.rb:46:in `inject'
/opt/puppet/lib/puppet/network/http/handler.rb:184:in `each'
/opt/puppet/lib/puppet/network/http/handler.rb:184:in `inject'
/opt/puppet/lib/puppet/network/http/handler.rb:184:in `decode_params'
/opt/puppet/lib/puppet/network/http/mongrel/rest.rb:27:in `params'
/opt/puppet/lib/puppet/network/http/handler.rb:43:in `process'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
/opt/puppet/lib/puppet/network/http/mongrel.rb:22:in `listen'
/opt/puppet/lib/puppet/network/server.rb:131:in `listen'
/opt/puppet/lib/puppet/network/server.rb:146:in `start'
/opt/puppet/lib/puppet/daemon.rb:128:in `start'
/opt/puppet/lib/puppet/application/puppetmasterd.rb:96:in `main'
/opt/puppet/lib/puppet/application.rb:226:in `send'
/opt/puppet/lib/puppet/application.rb:226:in `run_command'
/opt/puppet/lib/puppet/application.rb:217:in `run'
/opt/puppet/sbin/puppetmasterd:66
err: undefined method `to_sym' for nil:NilClass
</pre>
----------------------------------------
Bug #2238: Fileserver under Apache/Mongrel chokes on recursive directories
http://projects.reductivelabs.com/issues/2238
Author: Derek Whayman
Status: Accepted
Priority: Normal
Assigned to:
Category: mongrel
Target version: 0.25.0
Complexity: Unknown
Affected version: 0.25.0
Keywords:
E.g. manifest:
<pre>
$vardir = "/var/lib/puppet"
file { "/var/lib/puppet/modularclientscripts":
owner => root, group => root, mode => 0755,
ensure => directory
}
file { scripts_bootloader:
path => "$vardir/modularclientscripts/bootloader/",
owner => root, group => root, mode => 0755,
purge => true,
ensure => directory, recurse => true,
ignore => '.svn', force => true,
source => "puppet:///modules/bootloader/scripts/",
require => File["/var/lib/puppet/modularclientscripts"]
}
</pre>
The scripts directory in the module contains a single file under it.
In the puppetd output:
<pre>
err: //Node[default]/bootloader::setup/File[scripts_bootloader]: Failed to
generate additional resources using 'eval_generate': Server returned 502: Proxy
Error
err: Reporting failed: Server returned 502: Proxy Error
</pre>
In the Apache puppet_access_log:
<pre>
[Mon May 11 16:44:52 2009] [error] [client 10.125.225.108] proxy: Error reading
from remote server returned by /production/file_metadatas/bootloader/scripts
[Mon May 11 16:44:53 2009] [error] [client 10.125.225.108] (70014)End of file
found: proxy: error reading status line from remote server 127.0.0.1
</pre>
Let me know if you need more information.
Best regards,
Derek
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://reductivelabs.com/redmine/my/account
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---