John Hawkes-Reed
2010-Oct-04 13:35 UTC
[Puppet Users] Upgrade to 2.6.1 appears to break puppetmaster
Hello. While trying to get to the bottom of a puppetmaster+unicorn+nginx rig that''s serving empty files, it seemed to be a relatively sensible idea to upgrade the puppetmaster to 2.6.1 This broke in a manner that seems to be the multiple-& bug. Running the puppetmaster standalone gives the following: [ ... ] info: mount[files]: allowing *.mysparedomain.com access info: mount[plugins]: allowing *.mysparedomain.com access info: Expiring the node cache of toop.mysparedomain.com info: Not using expired node for toop.mysparedomain.com from cache; expired at Mon Oct 04 14:22:16 +0100 2010 info: Caching node for toop.mysparedomain.com /usr/lib/ruby/1.8/puppet/parser/type_loader.rb:47:in `import'' /usr/lib/ruby/1.8/puppet/parser/type_loader.rb:140:in `import_if_possible'' /usr/lib/ruby/1.8/puppet/parser/parser_support.rb:114:in `import'' grammar.ra:674:in `_reduce_178'' grammar.ra:673:in `each'' grammar.ra:673:in `_reduce_178'' /usr/lib/ruby/1.8/puppet/util/autoload.rb:79:in `_racc_yyparse_c'' /usr/lib/ruby/1.8/puppet/util/autoload.rb:79:in `catch'' /usr/lib/ruby/1.8/puppet/util/autoload.rb:79:in `_racc_yyparse_c'' /usr/lib/ruby/1.8/puppet/parser/lexer.rb:483:in `scan'' /usr/lib/ruby/1.8/racc/parser.rb:152:in `_racc_yyparse_c'' /usr/lib/ruby/1.8/racc/parser.rb:152:in `__send__'' /usr/lib/ruby/1.8/racc/parser.rb:152:in `yyparse'' /usr/lib/ruby/1.8/puppet/parser/parser_support.rb:181:in `parse'' /usr/lib/ruby/1.8/puppet/resource/type_collection.rb:165:in `perform_initial_import'' /usr/lib/ruby/1.8/puppet/node/environment.rb:84:in `known_resource_types'' /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'' /usr/lib/ruby/1.8/puppet/node/environment.rb:81:in `known_resource_types'' /usr/lib/ruby/1.8/puppet/resource/type_collection_helper.rb:5:in `known_resource_types'' /usr/lib/ruby/1.8/puppet/parser/compiler.rb:423:in `initvars'' /usr/lib/ruby/1.8/puppet/parser/compiler.rb:181:in `initialize'' /usr/lib/ruby/1.8/puppet/parser/compiler.rb:18:in `new'' /usr/lib/ruby/1.8/puppet/parser/compiler.rb:18:in `compile'' /usr/lib/ruby/1.8/puppet/indirector/catalog/compiler.rb:77:in `compile'' /usr/lib/ruby/1.8/puppet/util.rb:175:in `benchmark'' /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'' /usr/lib/ruby/1.8/puppet/util.rb:174:in `benchmark'' /usr/lib/ruby/1.8/puppet/indirector/catalog/compiler.rb:75:in `compile'' /usr/lib/ruby/1.8/puppet/indirector/catalog/compiler.rb:34:in `find'' /usr/lib/ruby/1.8/puppet/indirector/indirection.rb:193:in `find'' /usr/lib/ruby/1.8/puppet/indirector.rb:50:in `find'' /usr/lib/ruby/1.8/puppet/network/http/handler.rb:101:in `do_find'' /usr/lib/ruby/1.8/puppet/network/http/handler.rb:68:in `send'' /usr/lib/ruby/1.8/puppet/network/http/handler.rb:68:in `process'' /usr/lib/ruby/1.8/puppet/network/http/webrick/rest.rb:23:in `service'' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' /usr/lib/ruby/1.8/puppet/network/http/webrick.rb:45:in `listen'' /usr/lib/ruby/1.8/webrick/server.rb:173:in `call'' /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'' /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'' /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'' /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'' /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'' /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'' /usr/lib/ruby/1.8/puppet/network/http/webrick.rb:42:in `listen'' /usr/lib/ruby/1.8/puppet/network/http/webrick.rb:41:in `initialize'' /usr/lib/ruby/1.8/puppet/network/http/webrick.rb:41:in `new'' /usr/lib/ruby/1.8/puppet/network/http/webrick.rb:41:in `listen'' /usr/lib/ruby/1.8/puppet/network/http/webrick.rb:38:in `synchronize'' /usr/lib/ruby/1.8/puppet/network/http/webrick.rb:38:in `listen'' /usr/lib/ruby/1.8/puppet/network/server.rb:127:in `listen'' /usr/lib/ruby/1.8/puppet/network/server.rb:142:in `start'' /usr/lib/ruby/1.8/puppet/daemon.rb:124:in `start'' /usr/lib/ruby/1.8/puppet/application/master.rb:114:in `main'' /usr/lib/ruby/1.8/puppet/application/master.rb:46:in `run_command'' /usr/lib/ruby/1.8/puppet/application.rb:300:in `run'' /usr/lib/ruby/1.8/puppet/application.rb:397:in `exit_on_fail'' /usr/lib/ruby/1.8/puppet/application.rb:300:in `run'' /usr/lib/ruby/1.8/puppet/util/command_line.rb:55:in `execute'' /usr/bin/puppet:4 err: Could not parse for environment production: No file(s) found for import of ''classes/*'' at /etc/puppet/manifests/site.pp:5 on node toop.mysparedomain.com It would not surprise me to learn that this is a problem caused by running Debian Lenny + unfortunate combination of Beardian modules + backports + ''Will you just work you blighter!'' fiddling. root@fisar:/usr/bin# gem list *** LOCAL GEMS *** bacon (1.1.0) cgi_multipart_eof_fix (2.5.0) daemons (1.1.0) eventmachine (0.12.10) fastthread (1.0.7) fcgi (0.8.8) gem_plugin (0.2.3) isolate (2.1.2) memcache-client (1.8.5) mongrel (1.1.5) passenger (2.2.15, 2.2.11) rack (1.2.1, 1.1.0) rake (0.8.7) thin (1.2.7) unicorn (1.1.3) -- John Hawkes-Reed -- Future Publishing Limited (registered company number 2008885) and Future Publishing (Overseas) Limited (registered company number 06202940) are wholly owned subsidiaries of Future plc (registered company number 3757874). Future Publishing Limited, Future Publishing (Overseas) Limited and Future plc are all incorporated in England and Wales and share the same registered address at Beauford Court, 30 Monmouth Street, Bath BA1 2BW. This email and any files transmitted with it are confidential. If you have received this email in error please notify the sender and then delete it immediately. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Future. The recipient should check this email and any attachments for the presence of viruses. Future accepts no liability for any damage caused by any virus transmitted by this email. Future may regularly and randomly monitor outgoing and incoming emails (including the content of them) and other telecommunications on its email and telecommunications systems. By replying to this email you give your consent to such monitoring. ***** Save resources: think before you print. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Peter Meier
2010-Oct-04 14:28 UTC
Re: [Puppet Users] Upgrade to 2.6.1 appears to break puppetmaster
> err: Could not parse for environment production: No file(s) found for import > of ''classes/*'' at /etc/puppet/manifests/site.pp:5 on nodethe error message is pretty clear. do you have anything in classes? 2.6.1 got more strict on that issue. ~pete -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
John Hawkes-Reed
2010-Oct-04 14:37 UTC
Re: [Puppet Users] Upgrade to 2.6.1 appears to break puppetmaster. Or not.
On 4/10/10 14:35, "John Hawkes-Reed" <John.Hawkes-Reed@futurenet.com> wrote:> Hello. > > While trying to get to the bottom of a puppetmaster+unicorn+nginx rig that''s > serving empty files, it seemed to be a relatively sensible idea to upgrade > the puppetmaster to 2.6.1 > > This broke in a manner that seems to be the multiple-& bug. > > Running the puppetmaster standalone gives the following: > > [ ... ][Sigh] Ok, that error was caused by the include wildcard, and now the thing works with a standalone puppetmaster. Apologies for that noise. However, when run from Unicorn, this appears in the daemon log: Oct 4 14:18:28 fisar puppet-master[791]: Denying access: Forbidden request: toop.mysparedomain.com(xxx.xxx.xxx.xxx) access to /file_metadata/plugins [search] at line 93 Oct 4 14:18:28 fisar puppet-master[791]: Forbidden request: toop.mysparedomain.com(xxx.xxx.xxx.xxx) access to /file_metadata/plugins [search] at line 93 Oct 4 14:18:28 fisar puppet-master[791]: Denying access: Forbidden request: toop.mysparedomain.com(xxx.xxx.xxx.xxx) access to /catalog/toop.future.net.uk [find] at line 93 Oct 4 14:18:28 fisar puppet-master[791]: Forbidden request: toop.mysparedomain.com(xxx.xxx.xxx.xxx) access to /catalog/toop.mysparedomain.com [find] at line 93 ... And this in nginx access.log: Xxx.xxx.xxx.xxx - - [04/Oct/2010:15:18:28 +0100] "GET /production/file_metadatas/plugins?ignore=---+%0A++-+.svn%0A++-+CVS%0A++-+.g it&recurse=true&links=manage&&checksum_type=md5 HTTP/1.1" 403 104 "-" "-" Xxx.xxx.xxx.xxx - - [04/Oct/2010:15:18:28 +0100] "GET /production/file_metadata/plugins HTTP/1.1" 403 102 "-" "-" Xxx.xxx.xxx.xxx - - [04/Oct/2010:15:18:28 +0100] "GET /production/catalog/toop.mysparedomain.com?facts=eNqlVlmTqzYTff9%252BBd99SCW hhtWsVakKXvDYe [ ... ] Ruby version: root@fisar:/var/log/nginx# ruby --version ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux] 2.6.0 managed to serve files, it''s just that some of them were zero-length.> It would not surprise me to learn that this is a problem caused by running > Debian Lenny + unfortunate combination of Beardian modules + backports + > ''Will you just work you blighter!'' fiddling. > > root@fisar:/usr/bin# gem list > > *** LOCAL GEMS *** > > bacon (1.1.0) > cgi_multipart_eof_fix (2.5.0) > daemons (1.1.0) > eventmachine (0.12.10) > fastthread (1.0.7) > fcgi (0.8.8) > gem_plugin (0.2.3) > isolate (2.1.2) > memcache-client (1.8.5) > mongrel (1.1.5) > passenger (2.2.15, 2.2.11) > rack (1.2.1, 1.1.0) > rake (0.8.7) > thin (1.2.7) > unicorn (1.1.3)(I would like to apologise for the poorly-formatted disclaimer) -- John Hawkes-Reed -- Future Publishing Limited (registered company number 2008885) and Future Publishing (Overseas) Limited (registered company number 06202940) are wholly owned subsidiaries of Future plc (registered company number 3757874). Future Publishing Limited, Future Publishing (Overseas) Limited and Future plc are all incorporated in England and Wales and share the same registered address at Beauford Court, 30 Monmouth Street, Bath BA1 2BW. This email and any files transmitted with it are confidential. If you have received this email in error please notify the sender and then delete it immediately. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Future. The recipient should check this email and any attachments for the presence of viruses. Future accepts no liability for any damage caused by any virus transmitted by this email. Future may regularly and randomly monitor outgoing and incoming emails (including the content of them) and other telecommunications on its email and telecommunications systems. By replying to this email you give your consent to such monitoring. ***** Save resources: think before you print. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
John Hawkes-Reed
2010-Oct-04 14:40 UTC
Re: [Puppet Users] Upgrade to 2.6.1 appears to break puppetmaster
On 4/10/10 15:28, "Peter Meier" <peter.meier@immerda.ch> wrote:>> err: Could not parse for environment production: No file(s) found for import >> of ''classes/*'' at /etc/puppet/manifests/site.pp:5 on node > > the error message is pretty clear. do you have anything in classes? > 2.6.1 got more strict on that issue. > > ~peteYes. Changing it to ''classes/*.pp'' and renaming the files did the trick. I fear I spotted that one about three minutes after hitting send... :/ -- John Hawkes-Reed -- Future Publishing Limited (registered company number 2008885) and Future Publishing (Overseas) Limited (registered company number 06202940) are wholly owned subsidiaries of Future plc (registered company number 3757874). Future Publishing Limited, Future Publishing (Overseas) Limited and Future plc are all incorporated in England and Wales and share the same registered address at Beauford Court, 30 Monmouth Street, Bath BA1 2BW. This email and any files transmitted with it are confidential. If you have received this email in error please notify the sender and then delete it immediately. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Future. The recipient should check this email and any attachments for the presence of viruses. Future accepts no liability for any damage caused by any virus transmitted by this email. Future may regularly and randomly monitor outgoing and incoming emails (including the content of them) and other telecommunications on its email and telecommunications systems. By replying to this email you give your consent to such monitoring. ***** Save resources: think before you print. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.