Sebastien
2012-Dec-17 06:45 UTC
[Puppet Users] [Puppet Upgrade] Puppet agent does not work
I upgraded Puppet master from 2.7.6 to 2.7.20 on CentOS5.8_x86_64. But when I tried to launch ''puppet agent -t'' on one of staging servers, the puppet daemon did not work and got heaps errors. I have no idea what made it wrong and how to fix it. Retrieving plugin [0m Failed to generate additional resources using ''eval_generate: Error 500 on SERVER: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" " http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="generator" content="Phusion Passenger"> <title>Ruby (Rack) application could not be started</title> <style type="text/css"> body { font-family: Verdana, ''Bitstream Vera Sans'', Arial, Sans-Serif; font-size: 10pt; background: white; color: #222222; margin: 0; padding-top: 3em; padding-bottom: 3em; padding-left: 4.5em; padding-right: 4.5em; } h1 { font-size: 17pt; font-weight: medium; color: #533e72; border-bottom: 1px solid #533e72; } h1.title { margin-top: 0; } h1.error_title { color: red; border-bottom: 1px solid red; } a { text-decoration: none; } a:hover { text-decoration: underline; } dt { font-weight: bold; color: #280050; } dd { margin-top: 0.5em; margin-bottom: 1em; } .commands { border: 1px solid #b594e7; background: #ddc6ff; padding: 0.5em; margin: 0.5em; font-family: ''Bitstream Vera Sans Mono'', ''Courier New'', Monospace; } table.backtrace th { background: #8470a6; color: white; } table.backtrace th, table.backtrace td { padding: 0.2em; padding-left: 0.4em; padding-right: 0.4em; } table.backtrace tr td { background: #ecdfff; } table.backtrace tr.even td { background: #f7f2ff; } table.backtrace td.index { font-weight: bold; } #site_footer { border-top: solid 1px black; margin-top: 1em; padding-top: 1em; font-size: small; color: #777777; } #site_footer a { color: #65498e; } #site_footer a:hover { color: #9681d9; } #site_header .corporate_identity { display: none; } </style> <link rel="stylesheet" type="text/css" href=" http://www.modrails.com/error_pages/1.0/error_page.css"> </head> <body> <div id="site_container"> <div id="site_header"> <ul class="corporate_identity "> <li class="logo"><a href=" http://www.modrails.com"><span>Phusion Passenger</span></a></li> </ul> </div> <div id="site_body"> <h1 class="error_title">Ruby (Rack) application could not be started</h1> <div id="content"> A source file that the application requires, is missing. <ul> <li class="first"> <div class="container"> <div class="content"> It is possible that you didn''t upload your application files correctly. Please check whether all your application files are uploaded. </div> </div> </li> <li class="last"> <div class="container"> <div class="content"> A required library may not installed. Please install all libraries that this application requires. </div> </div> </li> </ul> Further information about the error may have been written to the application''s log file. Please check it in order to analyse the problem. <dl> <dt>Error message:</dt> <dd>no such file to load -- rack</dd> <dt>Exception class:</dt> <dd>LoadError</dd> <dt>Application root:</dt> <dd> <tt class="filename">/etc/puppet/rack</tt> </dd> <dt>Backtrace:</dt> <dd> <table class="backtrace"> <tr class="headers"> <th>#</th> <th>File</th> <th>Line</th> <th>Location</th> </tr> <tr class="backtrace_line framework uneven"> <td class="index">0</td> <td class="filename">/usr/lib/ ruby/site_ruby/1.8/rubygems/custom_require.rb</td> <td class="line">31</td> <td class="location">in `gem_original_require''</td> </tr> <tr class="backtrace_line framework even"> <td class="index">1</td> <td class="filename">/usr/lib/ ruby/site_ruby/1.8/rubygems/custom_require.rb</td> <td class="line">31</td> <td class="location">in `require''</td> </tr> <tr class="backtrace_line passenger uneven"> <td class="index">2</td> <td class="filename">/usr/lib64/ ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/ rack/application_spawner.rb</td> <td class="line">219</td> <td class="location">in `load_rack_app''</td> </tr> <tr class="backtrace_line passenger even"> <td class="index">3</td> <td class="filename">/usr/lib64/ ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/ rack/application_spawner.rb</td> <td class="line">156</td> <td class="location">in `send''</td> </tr> <tr class="backtrace_line passenger uneven"> <td class="index">4</td> <td class="filename">/usr/lib64/ ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/ rack/application_spawner.rb</td> <td class="line">156</td> <td class="location">in `initialize_server''</td> </tr> <tr class="backtrace_line passenger even"> <td class="index">5</td> <td class="filename">/usr/lib64/ ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/utils.rb</td> <td class="line">572</td> <td class="location">in `report_app_init_status''</td> </tr> <tr class="backtrace_line passenger uneven"> <td class="index">6</td> <td class="filename">/usr/lib64/ ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/ rack/application_spawner.rb</td> <td class="line">153</td> <td class="location">in `initialize_server''</td> </tr> <tr class="backtrace_line passenger even"> <td class="index">7</td> <td class="filename">/usr/lib64/ ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/ abstract_server.rb</td> <td class="line">204</td> <td class="location">in `start_synchronously''</td> </tr> <tr class="backtrace_line passenger uneven"> <td class="index">8</td> <td class="filename">/usr/lib64/ ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/ abstract_server.rb</td> <td class="line">180</td> <td class="location">in `start''</td> </tr> <tr class="backtrace_line passenger even"> <td class="index">9</td> <td class="filename">/usr/lib64/ ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/ rack/application_spawner.rb</td> <td class="line">128</td> <td class="location">in `start''</td> </tr> <tr class="backtrace_line passenger uneven"> <td class="index">10</td> <td class="filename">/usr/lib64/ ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/ spawn_manager.rb</td> <td class="line">253</td> <td class="location">in `spawn_rack_application''</td> </tr> <tr class="backtrace_line passenger even"> <td class="index">11</td> <td class="filename">/usr/lib64/ ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/ abstract_server_collection.rb</td> <td class="line">132</td> <td class="location">in `lookup_or_add''</td> </tr> <tr class="backtrace_line passenger uneven"> <td class="index">12</td> <td class="filename">/usr/lib64/ ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/ spawn_manager.rb</td> <td class="line">246</td> <td class="location">in `spawn_rack_application''</td> </tr> <tr class="backtrace_line passenger even"> <td class="index">13</td> <td class="filename">/usr/lib64/ ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/ abstract_server_collection.rb</td> <td class="line">82</td> <td class="location">in `synchronize''</td> </tr> <tr class="backtrace_line passenger uneven"> <td class="index">14</td> <td class="filename">/usr/lib64/ ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/ abstract_server_collection.rb</td> <td class="line">79</td> <td class="location">in `synchronize''</td> </tr> <tr class="backtrace_line passenger even"> <td class="index">15</td> <td class="filename">/usr/lib64/ ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/ spawn_manager.rb</td> <td class="line">244</td> <td class="location">in `spawn_rack_application''</td> </tr> <tr class="backtrace_line passenger uneven"> <td class="index">16</td> <td class="filename">/usr/lib64/ ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/ spawn_manager.rb</td> <td class="line">137</td> <td class="location">in `spawn_application''</td> </tr> <tr class="backtrace_line passenger even"> <td class="index">17</td> <td class="filename">/usr/lib64/ ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/ spawn_manager.rb</td> <td class="line">275</td> <td class="location">in `handle_spawn_application''</td> </tr> <tr class="backtrace_line passenger uneven"> <td class="index">18</td> <td class="filename">/usr/lib64/ ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/ abstract_server.rb</td> <td class="line">357</td> <td class="location">in `__send__''</td> </tr> <tr class="backtrace_line passenger even"> <td class="index">19</td> <td class="filename">/usr/lib64/ ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/ abstract_server.rb</td> <td class="line">357</td> <td class="location">in `server_main_loop''</td> </tr> <tr class="backtrace_line passenger uneven"> <td class="index">20</td> <td class="filename">/usr/lib64/ ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/ abstract_server.rb</td> <td class="line">206</td> <td class="location">in `start_synchronously''</td> </tr> <tr class="backtrace_line passenger even"> <td class="index">21</td> <td class="filename">/usr/lib64/ ruby/gems/1.8/gems/passenger-3.0.9/helper-scripts/ passenger-spawn-server</td> <td class="line">99</td> <td class="location"></td> </tr> </table> </dd> </dl> </div> </div> <div id="site_footer"> <!-- You are free to modify the footer as you see fit, but we kindly ask of you to preserve to following text. Thank you. --> <div class="container"> Powered by <a href="http://www.modrails.com/">Phusion Passenger</a>, <tt>mod_rails</tt> / <tt>mod_rack</tt> for Apache. </div> </div> </div> </body> </html> [0m [1;35merr: /File[/var/lib/puppet/lib]: Could not evaluate: Error 500 on SERVER: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" " http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="generator" content="Phusion Passenger"> <title>Ruby (Rack) application could not be started</title> <style type="text/css"> body { font-family: Verdana, ''Bitstream Vera Sans'', Arial, Sans-Serif; font-size: 10pt; background: white; color: #222222; margin: 0; padding-top: 3em; padding-bottom: 3em; padding-left: 4.5em; padding-right: 4.5em; } h1 { font-size: 17pt; font-weight: medium; color: #533e72; border-bottom: 1px solid #533e72; } h1.title { margin-top: 0; } h1.error_title { color: red; border-bottom: 1px solid red; } a { text-decoration: none; } a:hover { text-decoration: underline; } dt { font-weight: bold; color: #280050; } dd { margin-top: 0.5em; margin-bottom: 1em; } -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/vBs5AWtTo38J. 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.
Robert Pemberton
2012-Dec-18 13:58 UTC
[Puppet Users] Re: [Puppet Upgrade] Puppet agent does not work
I just had this happen to me as well. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/7OIZ-R42xcgJ. 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.
Gary Larizza
2012-Dec-18 18:51 UTC
Re: [Puppet Users] [Puppet Upgrade] Puppet agent does not work
On Sunday, December 16, 2012 at 10:45 PM, Sebastien wrote:> I upgraded Puppet master from 2.7.6 to 2.7.20 on CentOS5.8_x86_64. > But when I tried to launch ''puppet agent -t'' on one of staging servers, the puppet daemon did not work and got heaps errors. > I have no idea what made it wrong and how to fix it. > > > Retrieving plugin [0m > Failed to generate additional resources using ''eval_generate: Error 500 on SERVER: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> > <html> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> > <meta name="generator" content="Phusion Passenger"> > <title>Ruby (Rack) application could not be started</title> > <style type="text/css"> > body { > font-family: Verdana, ''Bitstream Vera Sans'', Arial, Sans-Serif; > font-size: 10pt; > background: white; > color: #222222; > margin: 0; > padding-top: 3em; > padding-bottom: 3em; > padding-left: 4.5em; > padding-right: 4.5em; > } > > h1 { > font-size: 17pt; > font-weight: medium; > color: #533e72; > border-bottom: 1px solid #533e72; > } > > h1.title { > margin-top: 0; > } > > h1.error_title { > color: red; > border-bottom: 1px solid red; > } > > a { > text-decoration: none; > } > > a:hover { > text-decoration: underline; > } > > dt { > font-weight: bold; > color: #280050; > } > > dd { > margin-top: 0.5em; > margin-bottom: 1em; > } > > .commands { > border: 1px solid #b594e7; > background: #ddc6ff; > padding: 0.5em; > margin: 0.5em; > font-family: ''Bitstream Vera Sans Mono'', ''Courier New'', Monospace; > } > > table.backtrace th { > background: #8470a6; > color: white; > } > > table.backtrace th, > table.backtrace td { > padding: 0.2em; > padding-left: 0.4em; > padding-right: 0.4em; > } > > table.backtrace tr td { > background: #ecdfff; > } > > table.backtrace tr.even td { > background: #f7f2ff; > } > > table.backtrace td.index { > font-weight: bold; > } > > #site_footer { > border-top: solid 1px black; > margin-top: 1em; > padding-top: 1em; > font-size: small; > color: #777777; > } > > #site_footer a { > color: #65498e; > } > > #site_footer a:hover { > color: #9681d9; > } > > #site_header .corporate_identity { > display: none; > } > > </style> > <link rel="stylesheet" type="text/css" href="http://www.modrails.com/error_pages/1.0/error_page.css"> > </head> > > <body> > > <div id="site_container"> > <div id="site_header"> > <ul class="corporate_identity "> > <li class="logo"><a href="http://www.modrails.com (http://www.modrails.com/)"><span>Phusion Passenger</span></a></li> > </ul> > </div> > <div id="site_body"> > > <h1 class="error_title">Ruby (Rack) application could not be started</h1> > <div id="content"> > > A source file that the application requires, is missing. > <ul> > <li class="first"> > <div class="container"> > <div class="content"> > It is possible that you didn''t upload your application files correctly. > Please check whether all your application files are uploaded. > </div> > </div> > </li> > <li class="last"> > <div class="container"> > <div class="content"> > A required library may not installed. Please install all libraries > that this application requires. > </div> > </div> > </li> > </ul> > Further information about the error may have been written to the > application''s log file. Please check it in order to analyse the problem. > > <dl> > <dt>Error message:</dt> > <dd>no such file to load -- rack</dd>This ^^ should be the issue - it looks like Ruby cannot find the rack library. Is the rack gem installed? Is another version of Ruby in your path?> > > <dt>Exception class:</dt> > <dd>LoadError</dd> > > <dt>Application root:</dt> > <dd> > <tt class="filename">/etc/puppet/rack</tt> > </dd> > > <dt>Backtrace:</dt> > <dd> > > <table class="backtrace"> > <tr class="headers"> > <th>#</th> > <th>File</th> > <th>Line</th> > <th>Location</th> > </tr> > > <tr class="backtrace_line framework uneven"> > <td class="index">0</td> > <td class="filename">/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb</td> > <td class="line">31</td> > <td class="location">in `gem_original_require''</td> > </tr> > > <tr class="backtrace_line framework even"> > <td class="index">1</td> > <td class="filename">/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb</td> > <td class="line">31</td> > <td class="location">in `require''</td> > </tr> > > <tr class="backtrace_line passenger uneven"> > <td class="index">2</td> > <td class="filename">/usr/lib64/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/rack/application_spawner.rb</td> > <td class="line">219</td> > <td class="location">in `load_rack_app''</td> > </tr> > > <tr class="backtrace_line passenger even"> > <td class="index">3</td> > <td class="filename">/usr/lib64/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/rack/application_spawner.rb</td> > <td class="line">156</td> > <td class="location">in `send''</td> > </tr> > > <tr class="backtrace_line passenger uneven"> > <td class="index">4</td> > <td class="filename">/usr/lib64/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/rack/application_spawner.rb</td> > <td class="line">156</td> > <td class="location">in `initialize_server''</td> > </tr> > > <tr class="backtrace_line passenger even"> > <td class="index">5</td> > <td class="filename">/usr/lib64/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/utils.rb</td> > <td class="line">572</td> > <td class="location">in `report_app_init_status''</td> > </tr> > > <tr class="backtrace_line passenger uneven"> > <td class="index">6</td> > <td class="filename">/usr/lib64/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/rack/application_spawner.rb</td> > <td class="line">153</td> > <td class="location">in `initialize_server''</td> > </tr> > > <tr class="backtrace_line passenger even"> > <td class="index">7</td> > <td class="filename">/usr/lib64/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb</td> > <td class="line">204</td> > <td class="location">in `start_synchronously''</td> > </tr> > > <tr class="backtrace_line passenger uneven"> > <td class="index">8</td> > <td class="filename">/usr/lib64/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb</td> > <td class="line">180</td> > <td class="location">in `start''</td> > </tr> > > <tr class="backtrace_line passenger even"> > <td class="index">9</td> > <td class="filename">/usr/lib64/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/rack/application_spawner.rb</td> > <td class="line">128</td> > <td class="location">in `start''</td> > </tr> > > <tr class="backtrace_line passenger uneven"> > <td class="index">10</td> > <td class="filename">/usr/lib64/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb</td> > <td class="line">253</td> > <td class="location">in `spawn_rack_application''</td> > </tr> > > <tr class="backtrace_line passenger even"> > <td class="index">11</td> > <td class="filename">/usr/lib64/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server_collection.rb</td> > <td class="line">132</td> > <td class="location">in `lookup_or_add''</td> > </tr> > > <tr class="backtrace_line passenger uneven"> > <td class="index">12</td> > <td class="filename">/usr/lib64/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb</td> > <td class="line">246</td> > <td class="location">in `spawn_rack_application''</td> > </tr> > > <tr class="backtrace_line passenger even"> > <td class="index">13</td> > <td class="filename">/usr/lib64/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server_collection.rb</td> > <td class="line">82</td> > <td class="location">in `synchronize''</td> > </tr> > > <tr class="backtrace_line passenger uneven"> > <td class="index">14</td> > <td class="filename">/usr/lib64/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server_collection.rb</td> > <td class="line">79</td> > <td class="location">in `synchronize''</td> > </tr> > > <tr class="backtrace_line passenger even"> > <td class="index">15</td> > <td class="filename">/usr/lib64/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb</td> > <td class="line">244</td> > <td class="location">in `spawn_rack_application''</td> > </tr> > > <tr class="backtrace_line passenger uneven"> > <td class="index">16</td> > <td class="filename">/usr/lib64/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb</td> > <td class="line">137</td> > <td class="location">in `spawn_application''</td> > </tr> > > <tr class="backtrace_line passenger even"> > <td class="index">17</td> > <td class="filename">/usr/lib64/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb</td> > <td class="line">275</td> > <td class="location">in `handle_spawn_application''</td> > </tr> > > <tr class="backtrace_line passenger uneven"> > <td class="index">18</td> > <td class="filename">/usr/lib64/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb</td> > <td class="line">357</td> > <td class="location">in `__send__''</td> > </tr> > > <tr class="backtrace_line passenger even"> > <td class="index">19</td> > <td class="filename">/usr/lib64/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb</td> > <td class="line">357</td> > <td class="location">in `server_main_loop''</td> > </tr> > > <tr class="backtrace_line passenger uneven"> > <td class="index">20</td> > <td class="filename">/usr/lib64/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb</td> > <td class="line">206</td> > <td class="location">in `start_synchronously''</td> > </tr> > > <tr class="backtrace_line passenger even"> > <td class="index">21</td> > <td class="filename">/usr/lib64/ruby/gems/1.8/gems/passenger-3.0.9/helper-scripts/passenger-spawn-server</td> > <td class="line">99</td> > <td class="location"></td> > </tr> > </table> > > </dd> > </dl> > > </div> > > </div> > <div id="site_footer"> > <!-- > You are free to modify the footer as you see fit, > but we kindly ask of you to preserve to following > text. Thank you. > --> > <div class="container"> > Powered by <a href="http://www.modrails.com/">Phusion Passenger</a>, > <tt>mod_rails</tt> / <tt>mod_rack</tt> for Apache. > </div> > </div> > </div> > > </body> > </html> > > > [0m > [1;35merr: /File[/var/lib/puppet/lib]: Could not evaluate: Error 500 on SERVER: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> > <html> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> > <meta name="generator" content="Phusion Passenger"> > <title>Ruby (Rack) application could not be started</title> > <style type="text/css"> > body { > font-family: Verdana, ''Bitstream Vera Sans'', Arial, Sans-Serif; > font-size: 10pt; > background: white; > color: #222222; > margin: 0; > padding-top: 3em; > padding-bottom: 3em; > padding-left: 4.5em; > padding-right: 4.5em; > } > > h1 { > font-size: 17pt; > font-weight: medium; > color: #533e72; > border-bottom: 1px solid #533e72; > } > > h1.title { > margin-top: 0; > } > > h1.error_title { > color: red; > border-bottom: 1px solid red; > } > > a { > text-decoration: none; > } > > a:hover { > text-decoration: underline; > } > > dt { > font-weight: bold; > color: #280050; > } > > dd { > margin-top: 0.5em; > margin-bottom: 1em; > } > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/vBs5AWtTo38J. > To post to this group, send email to puppet-users@googlegroups.com (mailto:puppet-users@googlegroups.com). > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com (mailto:puppet-users+unsubscribe@googlegroups.com). > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.-- 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.
Sebastien Liu
2012-Dec-18 22:57 UTC
Re: [Puppet Users] [Puppet Upgrade] Puppet agent does not work
Hi, Actually I am unsure whether rack is gem installed which was done by the ex-admin. I checked that there is no other ruby version in search path. When I hit https://puppet:8140, I got the errors screenshot attached. Cheers, Sebastien On Wed, Dec 19, 2012 at 5:51 AM, Gary Larizza <gary@puppetlabs.com> wrote:> > On Sunday, December 16, 2012 at 10:45 PM, Sebastien wrote: > > I upgraded Puppet master from 2.7.6 to 2.7.20 on CentOS5.8_x86_64. > But when I tried to launch ''puppet agent -t'' on one of staging servers, > the puppet daemon did not work and got heaps errors. > I have no idea what made it wrong and how to fix it. > > > Retrieving plugin [0m > Failed to generate additional resources using ''eval_generate: Error 500 on > SERVER: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" " > http://www.w3.org/TR/html4/**strict.dtd<http://www.w3.org/TR/html4/strict.dtd> > "> > <html> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> > <meta name="generator" content="Phusion Passenger"> > <title>Ruby (Rack) application could not be started</title> > <style type="text/css"> > body { > font-family: Verdana, ''Bitstream Vera Sans'', Arial, Sans-Serif; > font-size: 10pt; > background: white; > color: #222222; > margin: 0; > padding-top: 3em; > padding-bottom: 3em; > padding-left: 4.5em; > padding-right: 4.5em; > } > > h1 { > font-size: 17pt; > font-weight: medium; > color: #533e72; > border-bottom: 1px solid #533e72; > } > > h1.title { > margin-top: 0; > } > > h1.error_title { > color: red; > border-bottom: 1px solid red; > } > > a { > text-decoration: none; > } > > a:hover { > text-decoration: underline; > } > > dt { > font-weight: bold; > color: #280050; > } > > dd { > margin-top: 0.5em; > margin-bottom: 1em; > } > > .commands { > border: 1px solid #b594e7; > background: #ddc6ff; > padding: 0.5em; > margin: 0.5em; > font-family: ''Bitstream Vera Sans Mono'', ''Courier New'', Monospace; > } > > table.backtrace th { > background: #8470a6; > color: white; > } > > table.backtrace th, > table.backtrace td { > padding: 0.2em; > padding-left: 0.4em; > padding-right: 0.4em; > } > > table.backtrace tr td { > background: #ecdfff; > } > > table.backtrace tr.even td { > background: #f7f2ff; > } > > table.backtrace td.index { > font-weight: bold; > } > > #site_footer { > border-top: solid 1px black; > margin-top: 1em; > padding-top: 1em; > font-size: small; > color: #777777; > } > > #site_footer a { > color: #65498e; > } > > #site_footer a:hover { > color: #9681d9; > } > > #site_header .corporate_identity { > display: none; > } > > </style> > <link rel="stylesheet" type="text/css" href=" > http://www.modrails.com/**error_pages/1.0/error_page.css<http://www.modrails.com/error_pages/1.0/error_page.css> > **"> > </head> > > <body> > > <div id="site_container"> > <div id="site_header"> > <ul class="corporate_identity "> > <li class="logo"><a href=" > http://www.modrails.com"**><span>Phusion Passenger</span></a></li> > </ul> > </div> > <div id="site_body"> > > <h1 class="error_title">Ruby (Rack) application could not be started</h1> > <div id="content"> > > A source file that the application requires, is missing. > <ul> > <li class="first"> > <div class="container"> > <div class="content"> > It is possible that you didn''t upload your application > files correctly. > Please check whether all your application files are > uploaded. > </div> > </div> > </li> > <li class="last"> > <div class="container"> > <div class="content"> > A required library may not installed. Please install all > libraries > that this application requires. > </div> > </div> > </li> > </ul> > Further information about the error may have been written to the > application''s log file. Please check it in order to analyse the > problem. > > <dl> > <dt>Error message:</dt> > <dd>no such file to load -- rack</dd> > > > This ^^ should be the issue - it looks like Ruby cannot find the rack > library. Is the rack gem installed? Is another version of Ruby in your > path? > > > > > > <dt>Exception class:</dt> > <dd>LoadError</dd> > > <dt>Application root:</dt> > <dd> > <tt class="filename">/etc/puppet/**rack</tt> > </dd> > > <dt>Backtrace:</dt> > <dd> > > <table class="backtrace"> > <tr class="headers"> > <th>#</th> > <th>File</th> > <th>Line</th> > <th>Location</th> > </tr> > > <tr class="backtrace_line framework > uneven"> > <td class="index">0</td> > <td class="filename">/usr/lib/** > ruby/site_ruby/1.8/rubygems/**custom_require.rb</td> > <td class="line">31</td> > <td class="location">in > `gem_original_require''</td> > </tr> > > <tr class="backtrace_line framework even"> > <td class="index">1</td> > <td class="filename">/usr/lib/** > ruby/site_ruby/1.8/rubygems/**custom_require.rb</td> > <td class="line">31</td> > <td class="location">in > `require''</td> > </tr> > > <tr class="backtrace_line passenger > uneven"> > <td class="index">2</td> > <td class="filename">/usr/lib64/** > ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** > rack/application_spawner.rb</**td> > <td class="line">219</td> > <td class="location">in > `load_rack_app''</td> > </tr> > > <tr class="backtrace_line passenger even"> > <td class="index">3</td> > <td class="filename">/usr/lib64/** > ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** > rack/application_spawner.rb</**td> > <td class="line">156</td> > <td class="location">in `send''</td> > </tr> > > <tr class="backtrace_line passenger > uneven"> > <td class="index">4</td> > <td class="filename">/usr/lib64/** > ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** > rack/application_spawner.rb</**td> > <td class="line">156</td> > <td class="location">in > `initialize_server''</td> > </tr> > > <tr class="backtrace_line passenger even"> > <td class="index">5</td> > <td class="filename">/usr/lib64/** > ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/**utils.rb</td> > <td class="line">572</td> > <td class="location">in > `report_app_init_status''</td> > </tr> > > <tr class="backtrace_line passenger > uneven"> > <td class="index">6</td> > <td class="filename">/usr/lib64/** > ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** > rack/application_spawner.rb</**td> > <td class="line">153</td> > <td class="location">in > `initialize_server''</td> > </tr> > > <tr class="backtrace_line passenger even"> > <td class="index">7</td> > <td class="filename">/usr/lib64/** > ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** > abstract_server.rb</td> > <td class="line">204</td> > <td class="location">in > `start_synchronously''</td> > </tr> > > <tr class="backtrace_line passenger > uneven"> > <td class="index">8</td> > <td class="filename">/usr/lib64/** > ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** > abstract_server.rb</td> > <td class="line">180</td> > <td class="location">in > `start''</td> > </tr> > > <tr class="backtrace_line passenger even"> > <td class="index">9</td> > <td class="filename">/usr/lib64/** > ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** > rack/application_spawner.rb</**td> > <td class="line">128</td> > <td class="location">in > `start''</td> > </tr> > > <tr class="backtrace_line passenger > uneven"> > <td class="index">10</td> > <td class="filename">/usr/lib64/** > ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** > spawn_manager.rb</td> > <td class="line">253</td> > <td class="location">in > `spawn_rack_application''</td> > </tr> > > <tr class="backtrace_line passenger even"> > <td class="index">11</td> > <td class="filename">/usr/lib64/** > ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** > abstract_server_collection.rb<**/td> > <td class="line">132</td> > <td class="location">in > `lookup_or_add''</td> > </tr> > > <tr class="backtrace_line passenger > uneven"> > <td class="index">12</td> > <td class="filename">/usr/lib64/** > ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** > spawn_manager.rb</td> > <td class="line">246</td> > <td class="location">in > `spawn_rack_application''</td> > </tr> > > <tr class="backtrace_line passenger even"> > <td class="index">13</td> > <td class="filename">/usr/lib64/** > ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** > abstract_server_collection.rb<**/td> > <td class="line">82</td> > <td class="location">in > `synchronize''</td> > </tr> > > <tr class="backtrace_line passenger > uneven"> > <td class="index">14</td> > <td class="filename">/usr/lib64/** > ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** > abstract_server_collection.rb<**/td> > <td class="line">79</td> > <td class="location">in > `synchronize''</td> > </tr> > > <tr class="backtrace_line passenger even"> > <td class="index">15</td> > <td class="filename">/usr/lib64/** > ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** > spawn_manager.rb</td> > <td class="line">244</td> > <td class="location">in > `spawn_rack_application''</td> > </tr> > > <tr class="backtrace_line passenger > uneven"> > <td class="index">16</td> > <td class="filename">/usr/lib64/** > ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** > spawn_manager.rb</td> > <td class="line">137</td> > <td class="location">in > `spawn_application''</td> > </tr> > > <tr class="backtrace_line passenger even"> > <td class="index">17</td> > <td class="filename">/usr/lib64/** > ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** > spawn_manager.rb</td> > <td class="line">275</td> > <td class="location">in > `handle_spawn_application''</**td> > </tr> > > <tr class="backtrace_line passenger > uneven"> > <td class="index">18</td> > <td class="filename">/usr/lib64/** > ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** > abstract_server.rb</td> > <td class="line">357</td> > <td class="location">in > `__send__''</td> > </tr> > > <tr class="backtrace_line passenger even"> > <td class="index">19</td> > <td class="filename">/usr/lib64/** > ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** > abstract_server.rb</td> > <td class="line">357</td> > <td class="location">in > `server_main_loop''</td> > </tr> > > <tr class="backtrace_line passenger > uneven"> > <td class="index">20</td> > <td class="filename">/usr/lib64/** > ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** > abstract_server.rb</td> > <td class="line">206</td> > <td class="location">in > `start_synchronously''</td> > </tr> > > <tr class="backtrace_line passenger even"> > <td class="index">21</td> > <td class="filename">/usr/lib64/** > ruby/gems/1.8/gems/passenger-**3.0.9/helper-scripts/** > passenger-spawn-server</td> > <td class="line">99</td> > <td class="location"></td> > </tr> > </table> > > </dd> > </dl> > > </div> > > </div> > <div id="site_footer"> > <!-- > You are free to modify the footer as you see > fit, > but we kindly ask of you to preserve to > following > text. Thank you. > --> > <div class="container"> > Powered by <a href=" > http://www.modrails.com/**">Phusion Passenger</a>, > <tt>mod_rails</tt> / <tt>mod_rack</tt> for > Apache. > </div> > </div> > </div> > > </body> > </html> > > > [0m > [1;35merr: /File[/var/lib/puppet/lib]: Could not evaluate: Error 500 on > SERVER: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" " > http://www.w3.org/TR/html4/**strict.dtd<http://www.w3.org/TR/html4/strict.dtd> > "> > <html> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> > <meta name="generator" content="Phusion Passenger"> > <title>Ruby (Rack) application could not be started</title> > <style type="text/css"> > body { > font-family: Verdana, ''Bitstream Vera Sans'', Arial, Sans-Serif; > font-size: 10pt; > background: white; > color: #222222; > margin: 0; > padding-top: 3em; > padding-bottom: 3em; > padding-left: 4.5em; > padding-right: 4.5em; > } > > h1 { > font-size: 17pt; > font-weight: medium; > color: #533e72; > border-bottom: 1px solid #533e72; > } > > h1.title { > margin-top: 0; > } > > h1.error_title { > color: red; > border-bottom: 1px solid red; > } > > a { > text-decoration: none; > } > > a:hover { > text-decoration: underline; > } > > dt { > font-weight: bold; > color: #280050; > } > > dd { > margin-top: 0.5em; > margin-bottom: 1em; > } > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/vBs5AWtTo38J. > > 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. > > > -- > 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. >-- 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.
Gary Larizza
2012-Dec-18 23:46 UTC
Re: [Puppet Users] [Puppet Upgrade] Puppet agent does not work
What does `gem list` return - is rack in there? I believe rack version 1.1.3 is known to work well, and you could install that with `gem install rack --version 1.1.3`. I would then restart apache and check again. On Tue, Dec 18, 2012 at 2:57 PM, Sebastien Liu <sebastien@frontfoot.com.au>wrote:> Hi, > Actually I am unsure whether rack is gem installed which was done by the > ex-admin. > I checked that there is no other ruby version in search path. > > When I hit https://puppet:8140, I got the errors screenshot attached. > > Cheers, > Sebastien > > > > On Wed, Dec 19, 2012 at 5:51 AM, Gary Larizza <gary@puppetlabs.com> wrote: > >> >> On Sunday, December 16, 2012 at 10:45 PM, Sebastien wrote: >> >> I upgraded Puppet master from 2.7.6 to 2.7.20 on CentOS5.8_x86_64. >> But when I tried to launch ''puppet agent -t'' on one of staging servers, >> the puppet daemon did not work and got heaps errors. >> I have no idea what made it wrong and how to fix it. >> >> >> Retrieving plugin [0m >> Failed to generate additional resources using ''eval_generate: Error 500 >> on SERVER: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" " >> http://www.w3.org/TR/html4/**strict.dtd<http://www.w3.org/TR/html4/strict.dtd> >> "> >> <html> >> <head> >> <meta http-equiv="Content-Type" content="text/html; >> charset=UTF-8"> >> <meta name="generator" content="Phusion Passenger"> >> <title>Ruby (Rack) application could not be started</title> >> <style type="text/css"> >> body { >> font-family: Verdana, ''Bitstream Vera Sans'', Arial, Sans-Serif; >> font-size: 10pt; >> background: white; >> color: #222222; >> margin: 0; >> padding-top: 3em; >> padding-bottom: 3em; >> padding-left: 4.5em; >> padding-right: 4.5em; >> } >> >> h1 { >> font-size: 17pt; >> font-weight: medium; >> color: #533e72; >> border-bottom: 1px solid #533e72; >> } >> >> h1.title { >> margin-top: 0; >> } >> >> h1.error_title { >> color: red; >> border-bottom: 1px solid red; >> } >> >> a { >> text-decoration: none; >> } >> >> a:hover { >> text-decoration: underline; >> } >> >> dt { >> font-weight: bold; >> color: #280050; >> } >> >> dd { >> margin-top: 0.5em; >> margin-bottom: 1em; >> } >> >> .commands { >> border: 1px solid #b594e7; >> background: #ddc6ff; >> padding: 0.5em; >> margin: 0.5em; >> font-family: ''Bitstream Vera Sans Mono'', ''Courier New'', Monospace; >> } >> >> table.backtrace th { >> background: #8470a6; >> color: white; >> } >> >> table.backtrace th, >> table.backtrace td { >> padding: 0.2em; >> padding-left: 0.4em; >> padding-right: 0.4em; >> } >> >> table.backtrace tr td { >> background: #ecdfff; >> } >> >> table.backtrace tr.even td { >> background: #f7f2ff; >> } >> >> table.backtrace td.index { >> font-weight: bold; >> } >> >> #site_footer { >> border-top: solid 1px black; >> margin-top: 1em; >> padding-top: 1em; >> font-size: small; >> color: #777777; >> } >> >> #site_footer a { >> color: #65498e; >> } >> >> #site_footer a:hover { >> color: #9681d9; >> } >> >> #site_header .corporate_identity { >> display: none; >> } >> >> </style> >> <link rel="stylesheet" type="text/css" href=" >> http://www.modrails.com/**error_pages/1.0/error_page.css<http://www.modrails.com/error_pages/1.0/error_page.css> >> **"> >> </head> >> >> <body> >> >> <div id="site_container"> >> <div id="site_header"> >> <ul class="corporate_identity "> >> <li class="logo"><a href=" >> http://www.modrails.com"**><span>Phusion Passenger</span></a></li> >> </ul> >> </div> >> <div id="site_body"> >> >> <h1 class="error_title">Ruby (Rack) application could not be started</h1> >> <div id="content"> >> >> A source file that the application requires, is missing. >> <ul> >> <li class="first"> >> <div class="container"> >> <div class="content"> >> It is possible that you didn''t upload your application >> files correctly. >> Please check whether all your application files are >> uploaded. >> </div> >> </div> >> </li> >> <li class="last"> >> <div class="container"> >> <div class="content"> >> A required library may not installed. Please install all >> libraries >> that this application requires. >> </div> >> </div> >> </li> >> </ul> >> Further information about the error may have been written to the >> application''s log file. Please check it in order to analyse the >> problem. >> >> <dl> >> <dt>Error message:</dt> >> <dd>no such file to load -- rack</dd> >> >> >> This ^^ should be the issue - it looks like Ruby cannot find the rack >> library. Is the rack gem installed? Is another version of Ruby in your >> path? >> >> >> >> >> >> <dt>Exception class:</dt> >> <dd>LoadError</dd> >> >> <dt>Application root:</dt> >> <dd> >> <tt class="filename">/etc/puppet/**rack</tt> >> </dd> >> >> <dt>Backtrace:</dt> >> <dd> >> >> <table class="backtrace"> >> <tr class="headers"> >> <th>#</th> >> <th>File</th> >> <th>Line</th> >> <th>Location</th> >> </tr> >> >> <tr class="backtrace_line framework >> uneven"> >> <td class="index">0</td> >> <td class="filename">/usr/lib/** >> ruby/site_ruby/1.8/rubygems/**custom_require.rb</td> >> <td class="line">31</td> >> <td class="location">in >> `gem_original_require''</td> >> </tr> >> >> <tr class="backtrace_line framework even"> >> <td class="index">1</td> >> <td class="filename">/usr/lib/** >> ruby/site_ruby/1.8/rubygems/**custom_require.rb</td> >> <td class="line">31</td> >> <td class="location">in >> `require''</td> >> </tr> >> >> <tr class="backtrace_line passenger >> uneven"> >> <td class="index">2</td> >> <td class="filename">/usr/lib64/* >> *ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >> rack/application_spawner.rb</**td> >> <td class="line">219</td> >> <td class="location">in >> `load_rack_app''</td> >> </tr> >> >> <tr class="backtrace_line passenger even"> >> <td class="index">3</td> >> <td class="filename">/usr/lib64/* >> *ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >> rack/application_spawner.rb</**td> >> <td class="line">156</td> >> <td class="location">in >> `send''</td> >> </tr> >> >> <tr class="backtrace_line passenger >> uneven"> >> <td class="index">4</td> >> <td class="filename">/usr/lib64/* >> *ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >> rack/application_spawner.rb</**td> >> <td class="line">156</td> >> <td class="location">in >> `initialize_server''</td> >> </tr> >> >> <tr class="backtrace_line passenger even"> >> <td class="index">5</td> >> <td class="filename">/usr/lib64/* >> *ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >> utils.rb</td> >> <td class="line">572</td> >> <td class="location">in >> `report_app_init_status''</td> >> </tr> >> >> <tr class="backtrace_line passenger >> uneven"> >> <td class="index">6</td> >> <td class="filename">/usr/lib64/* >> *ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >> rack/application_spawner.rb</**td> >> <td class="line">153</td> >> <td class="location">in >> `initialize_server''</td> >> </tr> >> >> <tr class="backtrace_line passenger even"> >> <td class="index">7</td> >> <td class="filename">/usr/lib64/* >> *ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >> abstract_server.rb</td> >> <td class="line">204</td> >> <td class="location">in >> `start_synchronously''</td> >> </tr> >> >> <tr class="backtrace_line passenger >> uneven"> >> <td class="index">8</td> >> <td class="filename">/usr/lib64/* >> *ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >> abstract_server.rb</td> >> <td class="line">180</td> >> <td class="location">in >> `start''</td> >> </tr> >> >> <tr class="backtrace_line passenger even"> >> <td class="index">9</td> >> <td class="filename">/usr/lib64/* >> *ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >> rack/application_spawner.rb</**td> >> <td class="line">128</td> >> <td class="location">in >> `start''</td> >> </tr> >> >> <tr class="backtrace_line passenger >> uneven"> >> <td class="index">10</td> >> <td class="filename">/usr/lib64/* >> *ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >> spawn_manager.rb</td> >> <td class="line">253</td> >> <td class="location">in >> `spawn_rack_application''</td> >> </tr> >> >> <tr class="backtrace_line passenger even"> >> <td class="index">11</td> >> <td class="filename">/usr/lib64/* >> *ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >> abstract_server_collection.rb<**/td> >> <td class="line">132</td> >> <td class="location">in >> `lookup_or_add''</td> >> </tr> >> >> <tr class="backtrace_line passenger >> uneven"> >> <td class="index">12</td> >> <td class="filename">/usr/lib64/* >> *ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >> spawn_manager.rb</td> >> <td class="line">246</td> >> <td class="location">in >> `spawn_rack_application''</td> >> </tr> >> >> <tr class="backtrace_line passenger even"> >> <td class="index">13</td> >> <td class="filename">/usr/lib64/* >> *ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >> abstract_server_collection.rb<**/td> >> <td class="line">82</td> >> <td class="location">in >> `synchronize''</td> >> </tr> >> >> <tr class="backtrace_line passenger >> uneven"> >> <td class="index">14</td> >> <td class="filename">/usr/lib64/* >> *ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >> abstract_server_collection.rb<**/td> >> <td class="line">79</td> >> <td class="location">in >> `synchronize''</td> >> </tr> >> >> <tr class="backtrace_line passenger even"> >> <td class="index">15</td> >> <td class="filename">/usr/lib64/* >> *ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >> spawn_manager.rb</td> >> <td class="line">244</td> >> <td class="location">in >> `spawn_rack_application''</td> >> </tr> >> >> <tr class="backtrace_line passenger >> uneven"> >> <td class="index">16</td> >> <td class="filename">/usr/lib64/* >> *ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >> spawn_manager.rb</td> >> <td class="line">137</td> >> <td class="location">in >> `spawn_application''</td> >> </tr> >> >> <tr class="backtrace_line passenger even"> >> <td class="index">17</td> >> <td class="filename">/usr/lib64/* >> *ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >> spawn_manager.rb</td> >> <td class="line">275</td> >> <td class="location">in >> `handle_spawn_application''</**td> >> </tr> >> >> <tr class="backtrace_line passenger >> uneven"> >> <td class="index">18</td> >> <td class="filename">/usr/lib64/* >> *ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >> abstract_server.rb</td> >> <td class="line">357</td> >> <td class="location">in >> `__send__''</td> >> </tr> >> >> <tr class="backtrace_line passenger even"> >> <td class="index">19</td> >> <td class="filename">/usr/lib64/* >> *ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >> abstract_server.rb</td> >> <td class="line">357</td> >> <td class="location">in >> `server_main_loop''</td> >> </tr> >> >> <tr class="backtrace_line passenger >> uneven"> >> <td class="index">20</td> >> <td class="filename">/usr/lib64/* >> *ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >> abstract_server.rb</td> >> <td class="line">206</td> >> <td class="location">in >> `start_synchronously''</td> >> </tr> >> >> <tr class="backtrace_line passenger even"> >> <td class="index">21</td> >> <td class="filename">/usr/lib64/* >> *ruby/gems/1.8/gems/passenger-**3.0.9/helper-scripts/** >> passenger-spawn-server</td> >> <td class="line">99</td> >> <td class="location"></td> >> </tr> >> </table> >> >> </dd> >> </dl> >> >> </div> >> >> </div> >> <div id="site_footer"> >> <!-- >> You are free to modify the footer as you see >> fit, >> but we kindly ask of you to preserve to >> following >> text. Thank you. >> --> >> <div class="container"> >> Powered by <a href=" >> http://www.modrails.com/**">Phusion Passenger</a>, >> <tt>mod_rails</tt> / <tt>mod_rack</tt> >> for Apache. >> </div> >> </div> >> </div> >> >> </body> >> </html> >> >> >> [0m >> [1;35merr: /File[/var/lib/puppet/lib]: Could not evaluate: Error 500 on >> SERVER: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" " >> http://www.w3.org/TR/html4/**strict.dtd<http://www.w3.org/TR/html4/strict.dtd> >> "> >> <html> >> <head> >> <meta http-equiv="Content-Type" content="text/html; >> charset=UTF-8"> >> <meta name="generator" content="Phusion Passenger"> >> <title>Ruby (Rack) application could not be started</title> >> <style type="text/css"> >> body { >> font-family: Verdana, ''Bitstream Vera Sans'', Arial, Sans-Serif; >> font-size: 10pt; >> background: white; >> color: #222222; >> margin: 0; >> padding-top: 3em; >> padding-bottom: 3em; >> padding-left: 4.5em; >> padding-right: 4.5em; >> } >> >> h1 { >> font-size: 17pt; >> font-weight: medium; >> color: #533e72; >> border-bottom: 1px solid #533e72; >> } >> >> h1.title { >> margin-top: 0; >> } >> >> h1.error_title { >> color: red; >> border-bottom: 1px solid red; >> } >> >> a { >> text-decoration: none; >> } >> >> a:hover { >> text-decoration: underline; >> } >> >> dt { >> font-weight: bold; >> color: #280050; >> } >> >> dd { >> margin-top: 0.5em; >> margin-bottom: 1em; >> } >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/puppet-users/-/vBs5AWtTo38J. >> >> 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. >> >> >> -- >> 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. >> > >-- Gary Larizza Professional Services Engineer -- 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.
Sebastien Liu
2012-Dec-19 00:05 UTC
Re: [Puppet Users] [Puppet Upgrade] Puppet agent does not work
Hi Gary, Thanks for your proper response. When I type ''gem list'' then return : *** LOCAL GEMS *** rubygems-update (1.8.11) Then I used ''gem install rack --version 1.1.3'' to install rack and restarted apache. The error message in https://puppet:8140 changed. Cheers, Sebastien On Wed, Dec 19, 2012 at 10:46 AM, Gary Larizza <gary@puppetlabs.com> wrote:> What does `gem list` return - is rack in there? I believe rack version > 1.1.3 is known to work well, and you could install that with `gem install > rack --version 1.1.3`. I would then restart apache and check again. > > > On Tue, Dec 18, 2012 at 2:57 PM, Sebastien Liu <sebastien@frontfoot.com.au > > wrote: > >> Hi, >> Actually I am unsure whether rack is gem installed which was done by the >> ex-admin. >> I checked that there is no other ruby version in search path. >> >> When I hit https://puppet:8140, I got the errors screenshot attached. >> >> Cheers, >> Sebastien >> >> >> >> On Wed, Dec 19, 2012 at 5:51 AM, Gary Larizza <gary@puppetlabs.com>wrote: >> >>> >>> On Sunday, December 16, 2012 at 10:45 PM, Sebastien wrote: >>> >>> I upgraded Puppet master from 2.7.6 to 2.7.20 on CentOS5.8_x86_64. >>> But when I tried to launch ''puppet agent -t'' on one of staging servers, >>> the puppet daemon did not work and got heaps errors. >>> I have no idea what made it wrong and how to fix it. >>> >>> >>> Retrieving plugin [0m >>> Failed to generate additional resources using ''eval_generate: Error 500 >>> on SERVER: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" " >>> http://www.w3.org/TR/html4/**strict.dtd<http://www.w3.org/TR/html4/strict.dtd> >>> "> >>> <html> >>> <head> >>> <meta http-equiv="Content-Type" content="text/html; >>> charset=UTF-8"> >>> <meta name="generator" content="Phusion Passenger"> >>> <title>Ruby (Rack) application could not be started</title> >>> <style type="text/css"> >>> body { >>> font-family: Verdana, ''Bitstream Vera Sans'', Arial, Sans-Serif; >>> font-size: 10pt; >>> background: white; >>> color: #222222; >>> margin: 0; >>> padding-top: 3em; >>> padding-bottom: 3em; >>> padding-left: 4.5em; >>> padding-right: 4.5em; >>> } >>> >>> h1 { >>> font-size: 17pt; >>> font-weight: medium; >>> color: #533e72; >>> border-bottom: 1px solid #533e72; >>> } >>> >>> h1.title { >>> margin-top: 0; >>> } >>> >>> h1.error_title { >>> color: red; >>> border-bottom: 1px solid red; >>> } >>> >>> a { >>> text-decoration: none; >>> } >>> >>> a:hover { >>> text-decoration: underline; >>> } >>> >>> dt { >>> font-weight: bold; >>> color: #280050; >>> } >>> >>> dd { >>> margin-top: 0.5em; >>> margin-bottom: 1em; >>> } >>> >>> .commands { >>> border: 1px solid #b594e7; >>> background: #ddc6ff; >>> padding: 0.5em; >>> margin: 0.5em; >>> font-family: ''Bitstream Vera Sans Mono'', ''Courier New'', >>> Monospace; >>> } >>> >>> table.backtrace th { >>> background: #8470a6; >>> color: white; >>> } >>> >>> table.backtrace th, >>> table.backtrace td { >>> padding: 0.2em; >>> padding-left: 0.4em; >>> padding-right: 0.4em; >>> } >>> >>> table.backtrace tr td { >>> background: #ecdfff; >>> } >>> >>> table.backtrace tr.even td { >>> background: #f7f2ff; >>> } >>> >>> table.backtrace td.index { >>> font-weight: bold; >>> } >>> >>> #site_footer { >>> border-top: solid 1px black; >>> margin-top: 1em; >>> padding-top: 1em; >>> font-size: small; >>> color: #777777; >>> } >>> >>> #site_footer a { >>> color: #65498e; >>> } >>> >>> #site_footer a:hover { >>> color: #9681d9; >>> } >>> >>> #site_header .corporate_identity { >>> display: none; >>> } >>> >>> </style> >>> <link rel="stylesheet" type="text/css" href=" >>> http://www.modrails.com/**error_pages/1.0/error_page.css<http://www.modrails.com/error_pages/1.0/error_page.css> >>> **"> >>> </head> >>> >>> <body> >>> >>> <div id="site_container"> >>> <div id="site_header"> >>> <ul class="corporate_identity "> >>> <li class="logo"><a href=" >>> http://www.modrails.com"**><span>Phusion Passenger</span></a></li> >>> </ul> >>> </div> >>> <div id="site_body"> >>> >>> <h1 class="error_title">Ruby (Rack) application could not be started</h1> >>> <div id="content"> >>> >>> A source file that the application requires, is missing. >>> <ul> >>> <li class="first"> >>> <div class="container"> >>> <div class="content"> >>> It is possible that you didn''t upload your application >>> files correctly. >>> Please check whether all your application files are >>> uploaded. >>> </div> >>> </div> >>> </li> >>> <li class="last"> >>> <div class="container"> >>> <div class="content"> >>> A required library may not installed. Please install all >>> libraries >>> that this application requires. >>> </div> >>> </div> >>> </li> >>> </ul> >>> Further information about the error may have been written to the >>> application''s log file. Please check it in order to analyse the >>> problem. >>> >>> <dl> >>> <dt>Error message:</dt> >>> <dd>no such file to load -- rack</dd> >>> >>> >>> This ^^ should be the issue - it looks like Ruby cannot find the rack >>> library. Is the rack gem installed? Is another version of Ruby in your >>> path? >>> >>> >>> >>> >>> >>> <dt>Exception class:</dt> >>> <dd>LoadError</dd> >>> >>> <dt>Application root:</dt> >>> <dd> >>> <tt class="filename">/etc/puppet/**rack</tt> >>> </dd> >>> >>> <dt>Backtrace:</dt> >>> <dd> >>> >>> <table class="backtrace"> >>> <tr class="headers"> >>> <th>#</th> >>> <th>File</th> >>> <th>Line</th> >>> <th>Location</th> >>> </tr> >>> >>> <tr class="backtrace_line framework >>> uneven"> >>> <td class="index">0</td> >>> <td class="filename">/usr/lib/** >>> ruby/site_ruby/1.8/rubygems/**custom_require.rb</td> >>> <td class="line">31</td> >>> <td class="location">in >>> `gem_original_require''</td> >>> </tr> >>> >>> <tr class="backtrace_line framework >>> even"> >>> <td class="index">1</td> >>> <td class="filename">/usr/lib/** >>> ruby/site_ruby/1.8/rubygems/**custom_require.rb</td> >>> <td class="line">31</td> >>> <td class="location">in >>> `require''</td> >>> </tr> >>> >>> <tr class="backtrace_line passenger >>> uneven"> >>> <td class="index">2</td> >>> <td class="filename">/usr/lib64/ >>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>> rack/application_spawner.rb</**td> >>> <td class="line">219</td> >>> <td class="location">in >>> `load_rack_app''</td> >>> </tr> >>> >>> <tr class="backtrace_line passenger >>> even"> >>> <td class="index">3</td> >>> <td class="filename">/usr/lib64/ >>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>> rack/application_spawner.rb</**td> >>> <td class="line">156</td> >>> <td class="location">in >>> `send''</td> >>> </tr> >>> >>> <tr class="backtrace_line passenger >>> uneven"> >>> <td class="index">4</td> >>> <td class="filename">/usr/lib64/ >>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>> rack/application_spawner.rb</**td> >>> <td class="line">156</td> >>> <td class="location">in >>> `initialize_server''</td> >>> </tr> >>> >>> <tr class="backtrace_line passenger >>> even"> >>> <td class="index">5</td> >>> <td class="filename">/usr/lib64/ >>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>> utils.rb</td> >>> <td class="line">572</td> >>> <td class="location">in >>> `report_app_init_status''</td> >>> </tr> >>> >>> <tr class="backtrace_line passenger >>> uneven"> >>> <td class="index">6</td> >>> <td class="filename">/usr/lib64/ >>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>> rack/application_spawner.rb</**td> >>> <td class="line">153</td> >>> <td class="location">in >>> `initialize_server''</td> >>> </tr> >>> >>> <tr class="backtrace_line passenger >>> even"> >>> <td class="index">7</td> >>> <td class="filename">/usr/lib64/ >>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>> abstract_server.rb</td> >>> <td class="line">204</td> >>> <td class="location">in >>> `start_synchronously''</td> >>> </tr> >>> >>> <tr class="backtrace_line passenger >>> uneven"> >>> <td class="index">8</td> >>> <td class="filename">/usr/lib64/ >>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>> abstract_server.rb</td> >>> <td class="line">180</td> >>> <td class="location">in >>> `start''</td> >>> </tr> >>> >>> <tr class="backtrace_line passenger >>> even"> >>> <td class="index">9</td> >>> <td class="filename">/usr/lib64/ >>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>> rack/application_spawner.rb</**td> >>> <td class="line">128</td> >>> <td class="location">in >>> `start''</td> >>> </tr> >>> >>> <tr class="backtrace_line passenger >>> uneven"> >>> <td class="index">10</td> >>> <td class="filename">/usr/lib64/ >>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>> spawn_manager.rb</td> >>> <td class="line">253</td> >>> <td class="location">in >>> `spawn_rack_application''</td> >>> </tr> >>> >>> <tr class="backtrace_line passenger >>> even"> >>> <td class="index">11</td> >>> <td class="filename">/usr/lib64/ >>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>> abstract_server_collection.rb<**/td> >>> <td class="line">132</td> >>> <td class="location">in >>> `lookup_or_add''</td> >>> </tr> >>> >>> <tr class="backtrace_line passenger >>> uneven"> >>> <td class="index">12</td> >>> <td class="filename">/usr/lib64/ >>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>> spawn_manager.rb</td> >>> <td class="line">246</td> >>> <td class="location">in >>> `spawn_rack_application''</td> >>> </tr> >>> >>> <tr class="backtrace_line passenger >>> even"> >>> <td class="index">13</td> >>> <td class="filename">/usr/lib64/ >>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>> abstract_server_collection.rb<**/td> >>> <td class="line">82</td> >>> <td class="location">in >>> `synchronize''</td> >>> </tr> >>> >>> <tr class="backtrace_line passenger >>> uneven"> >>> <td class="index">14</td> >>> <td class="filename">/usr/lib64/ >>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>> abstract_server_collection.rb<**/td> >>> <td class="line">79</td> >>> <td class="location">in >>> `synchronize''</td> >>> </tr> >>> >>> <tr class="backtrace_line passenger >>> even"> >>> <td class="index">15</td> >>> <td class="filename">/usr/lib64/ >>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>> spawn_manager.rb</td> >>> <td class="line">244</td> >>> <td class="location">in >>> `spawn_rack_application''</td> >>> </tr> >>> >>> <tr class="backtrace_line passenger >>> uneven"> >>> <td class="index">16</td> >>> <td class="filename">/usr/lib64/ >>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>> spawn_manager.rb</td> >>> <td class="line">137</td> >>> <td class="location">in >>> `spawn_application''</td> >>> </tr> >>> >>> <tr class="backtrace_line passenger >>> even"> >>> <td class="index">17</td> >>> <td class="filename">/usr/lib64/ >>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>> spawn_manager.rb</td> >>> <td class="line">275</td> >>> <td class="location">in >>> `handle_spawn_application''</**td> >>> </tr> >>> >>> <tr class="backtrace_line passenger >>> uneven"> >>> <td class="index">18</td> >>> <td class="filename">/usr/lib64/ >>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>> abstract_server.rb</td> >>> <td class="line">357</td> >>> <td class="location">in >>> `__send__''</td> >>> </tr> >>> >>> <tr class="backtrace_line passenger >>> even"> >>> <td class="index">19</td> >>> <td class="filename">/usr/lib64/ >>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>> abstract_server.rb</td> >>> <td class="line">357</td> >>> <td class="location">in >>> `server_main_loop''</td> >>> </tr> >>> >>> <tr class="backtrace_line passenger >>> uneven"> >>> <td class="index">20</td> >>> <td class="filename">/usr/lib64/ >>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>> abstract_server.rb</td> >>> <td class="line">206</td> >>> <td class="location">in >>> `start_synchronously''</td> >>> </tr> >>> >>> <tr class="backtrace_line passenger >>> even"> >>> <td class="index">21</td> >>> <td class="filename">/usr/lib64/ >>> **ruby/gems/1.8/gems/passenger-**3.0.9/helper-scripts/** >>> passenger-spawn-server</td> >>> <td class="line">99</td> >>> <td class="location"></td> >>> </tr> >>> </table> >>> >>> </dd> >>> </dl> >>> >>> </div> >>> >>> </div> >>> <div id="site_footer"> >>> <!-- >>> You are free to modify the footer as you see >>> fit, >>> but we kindly ask of you to preserve to >>> following >>> text. Thank you. >>> --> >>> <div class="container"> >>> Powered by <a href=" >>> http://www.modrails.com/**">Phusion Passenger</a>, >>> <tt>mod_rails</tt> / <tt>mod_rack</tt> >>> for Apache. >>> </div> >>> </div> >>> </div> >>> >>> </body> >>> </html> >>> >>> >>> [0m >>> [1;35merr: /File[/var/lib/puppet/lib]: Could not evaluate: Error 500 on >>> SERVER: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" " >>> http://www.w3.org/TR/html4/**strict.dtd<http://www.w3.org/TR/html4/strict.dtd> >>> "> >>> <html> >>> <head> >>> <meta http-equiv="Content-Type" content="text/html; >>> charset=UTF-8"> >>> <meta name="generator" content="Phusion Passenger"> >>> <title>Ruby (Rack) application could not be started</title> >>> <style type="text/css"> >>> body { >>> font-family: Verdana, ''Bitstream Vera Sans'', Arial, Sans-Serif; >>> font-size: 10pt; >>> background: white; >>> color: #222222; >>> margin: 0; >>> padding-top: 3em; >>> padding-bottom: 3em; >>> padding-left: 4.5em; >>> padding-right: 4.5em; >>> } >>> >>> h1 { >>> font-size: 17pt; >>> font-weight: medium; >>> color: #533e72; >>> border-bottom: 1px solid #533e72; >>> } >>> >>> h1.title { >>> margin-top: 0; >>> } >>> >>> h1.error_title { >>> color: red; >>> border-bottom: 1px solid red; >>> } >>> >>> a { >>> text-decoration: none; >>> } >>> >>> a:hover { >>> text-decoration: underline; >>> } >>> >>> dt { >>> font-weight: bold; >>> color: #280050; >>> } >>> >>> dd { >>> margin-top: 0.5em; >>> margin-bottom: 1em; >>> } >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Puppet Users" group. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msg/puppet-users/-/vBs5AWtTo38J. >>> >>> 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. >>> >>> >>> -- >>> 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. >>> >> >> > > > -- > Gary Larizza > Professional Services Engineer >-- 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.
Gary Larizza
2012-Dec-19 00:08 UTC
Re: [Puppet Users] [Puppet Upgrade] Puppet agent does not work
Hey Sebastien, Have you checked out the document on setting up Puppet with Passenger --> http://docs.puppetlabs.com/guides/passenger.html You might want to check that document out and verify that the master is setup correctly. In this specific case, it sounds like it might be a permissions issue on the rundir in Puppet''s vardir. What are the permissions on /var/lib/puppet and /var/lib/puppet/run? You''ll want to make sure the puppet user has ownership there. On Tue, Dec 18, 2012 at 4:05 PM, Sebastien Liu <sebastien@frontfoot.com.au>wrote:> Hi Gary, > Thanks for your proper response. > > When I type ''gem list'' then return : > *** LOCAL GEMS *** > rubygems-update (1.8.11) > > Then I used ''gem install rack --version 1.1.3'' to install rack and > restarted apache. > > The error message in https://puppet:8140 changed. > > Cheers, > Sebastien > > On Wed, Dec 19, 2012 at 10:46 AM, Gary Larizza <gary@puppetlabs.com>wrote: > >> What does `gem list` return - is rack in there? I believe rack version >> 1.1.3 is known to work well, and you could install that with `gem install >> rack --version 1.1.3`. I would then restart apache and check again. >> >> >> On Tue, Dec 18, 2012 at 2:57 PM, Sebastien Liu < >> sebastien@frontfoot.com.au> wrote: >> >>> Hi, >>> Actually I am unsure whether rack is gem installed which was done by the >>> ex-admin. >>> I checked that there is no other ruby version in search path. >>> >>> When I hit https://puppet:8140, I got the errors screenshot attached. >>> >>> Cheers, >>> Sebastien >>> >>> >>> >>> On Wed, Dec 19, 2012 at 5:51 AM, Gary Larizza <gary@puppetlabs.com>wrote: >>> >>>> >>>> On Sunday, December 16, 2012 at 10:45 PM, Sebastien wrote: >>>> >>>> I upgraded Puppet master from 2.7.6 to 2.7.20 on CentOS5.8_x86_64. >>>> But when I tried to launch ''puppet agent -t'' on one of staging servers, >>>> the puppet daemon did not work and got heaps errors. >>>> I have no idea what made it wrong and how to fix it. >>>> >>>> >>>> Retrieving plugin [0m >>>> Failed to generate additional resources using ''eval_generate: Error 500 >>>> on SERVER: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" " >>>> http://www.w3.org/TR/html4/**strict.dtd<http://www.w3.org/TR/html4/strict.dtd> >>>> "> >>>> <html> >>>> <head> >>>> <meta http-equiv="Content-Type" content="text/html; >>>> charset=UTF-8"> >>>> <meta name="generator" content="Phusion Passenger"> >>>> <title>Ruby (Rack) application could not be started</title> >>>> <style type="text/css"> >>>> body { >>>> font-family: Verdana, ''Bitstream Vera Sans'', Arial, Sans-Serif; >>>> font-size: 10pt; >>>> background: white; >>>> color: #222222; >>>> margin: 0; >>>> padding-top: 3em; >>>> padding-bottom: 3em; >>>> padding-left: 4.5em; >>>> padding-right: 4.5em; >>>> } >>>> >>>> h1 { >>>> font-size: 17pt; >>>> font-weight: medium; >>>> color: #533e72; >>>> border-bottom: 1px solid #533e72; >>>> } >>>> >>>> h1.title { >>>> margin-top: 0; >>>> } >>>> >>>> h1.error_title { >>>> color: red; >>>> border-bottom: 1px solid red; >>>> } >>>> >>>> a { >>>> text-decoration: none; >>>> } >>>> >>>> a:hover { >>>> text-decoration: underline; >>>> } >>>> >>>> dt { >>>> font-weight: bold; >>>> color: #280050; >>>> } >>>> >>>> dd { >>>> margin-top: 0.5em; >>>> margin-bottom: 1em; >>>> } >>>> >>>> .commands { >>>> border: 1px solid #b594e7; >>>> background: #ddc6ff; >>>> padding: 0.5em; >>>> margin: 0.5em; >>>> font-family: ''Bitstream Vera Sans Mono'', ''Courier New'', >>>> Monospace; >>>> } >>>> >>>> table.backtrace th { >>>> background: #8470a6; >>>> color: white; >>>> } >>>> >>>> table.backtrace th, >>>> table.backtrace td { >>>> padding: 0.2em; >>>> padding-left: 0.4em; >>>> padding-right: 0.4em; >>>> } >>>> >>>> table.backtrace tr td { >>>> background: #ecdfff; >>>> } >>>> >>>> table.backtrace tr.even td { >>>> background: #f7f2ff; >>>> } >>>> >>>> table.backtrace td.index { >>>> font-weight: bold; >>>> } >>>> >>>> #site_footer { >>>> border-top: solid 1px black; >>>> margin-top: 1em; >>>> padding-top: 1em; >>>> font-size: small; >>>> color: #777777; >>>> } >>>> >>>> #site_footer a { >>>> color: #65498e; >>>> } >>>> >>>> #site_footer a:hover { >>>> color: #9681d9; >>>> } >>>> >>>> #site_header .corporate_identity { >>>> display: none; >>>> } >>>> >>>> </style> >>>> <link rel="stylesheet" type="text/css" href=" >>>> http://www.modrails.com/**error_pages/1.0/error_page.css<http://www.modrails.com/error_pages/1.0/error_page.css> >>>> **"> >>>> </head> >>>> >>>> <body> >>>> >>>> <div id="site_container"> >>>> <div id="site_header"> >>>> <ul class="corporate_identity "> >>>> <li class="logo"><a href=" >>>> http://www.modrails.com"**><span>Phusion Passenger</span></a></li> >>>> </ul> >>>> </div> >>>> <div id="site_body"> >>>> >>>> <h1 class="error_title">Ruby (Rack) application could not be >>>> started</h1> >>>> <div id="content"> >>>> >>>> A source file that the application requires, is missing. >>>> <ul> >>>> <li class="first"> >>>> <div class="container"> >>>> <div class="content"> >>>> It is possible that you didn''t upload your application >>>> files correctly. >>>> Please check whether all your application files are >>>> uploaded. >>>> </div> >>>> </div> >>>> </li> >>>> <li class="last"> >>>> <div class="container"> >>>> <div class="content"> >>>> A required library may not installed. Please install >>>> all libraries >>>> that this application requires. >>>> </div> >>>> </div> >>>> </li> >>>> </ul> >>>> Further information about the error may have been written to the >>>> application''s log file. Please check it in order to analyse the >>>> problem. >>>> >>>> <dl> >>>> <dt>Error message:</dt> >>>> <dd>no such file to load -- rack</dd> >>>> >>>> >>>> This ^^ should be the issue - it looks like Ruby cannot find the rack >>>> library. Is the rack gem installed? Is another version of Ruby in your >>>> path? >>>> >>>> >>>> >>>> >>>> >>>> <dt>Exception class:</dt> >>>> <dd>LoadError</dd> >>>> >>>> <dt>Application root:</dt> >>>> <dd> >>>> <tt class="filename">/etc/puppet/**rack</tt> >>>> </dd> >>>> >>>> <dt>Backtrace:</dt> >>>> <dd> >>>> >>>> <table class="backtrace"> >>>> <tr class="headers"> >>>> <th>#</th> >>>> <th>File</th> >>>> <th>Line</th> >>>> <th>Location</th> >>>> </tr> >>>> >>>> <tr class="backtrace_line framework >>>> uneven"> >>>> <td class="index">0</td> >>>> <td class="filename">/usr/lib/* >>>> *ruby/site_ruby/1.8/rubygems/**custom_require.rb</td> >>>> <td class="line">31</td> >>>> <td class="location">in >>>> `gem_original_require''</td> >>>> </tr> >>>> >>>> <tr class="backtrace_line framework >>>> even"> >>>> <td class="index">1</td> >>>> <td class="filename">/usr/lib/* >>>> *ruby/site_ruby/1.8/rubygems/**custom_require.rb</td> >>>> <td class="line">31</td> >>>> <td class="location">in >>>> `require''</td> >>>> </tr> >>>> >>>> <tr class="backtrace_line passenger >>>> uneven"> >>>> <td class="index">2</td> >>>> <td class="filename">/usr/lib64/ >>>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>>> rack/application_spawner.rb</**td> >>>> <td class="line">219</td> >>>> <td class="location">in >>>> `load_rack_app''</td> >>>> </tr> >>>> >>>> <tr class="backtrace_line passenger >>>> even"> >>>> <td class="index">3</td> >>>> <td class="filename">/usr/lib64/ >>>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>>> rack/application_spawner.rb</**td> >>>> <td class="line">156</td> >>>> <td class="location">in >>>> `send''</td> >>>> </tr> >>>> >>>> <tr class="backtrace_line passenger >>>> uneven"> >>>> <td class="index">4</td> >>>> <td class="filename">/usr/lib64/ >>>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>>> rack/application_spawner.rb</**td> >>>> <td class="line">156</td> >>>> <td class="location">in >>>> `initialize_server''</td> >>>> </tr> >>>> >>>> <tr class="backtrace_line passenger >>>> even"> >>>> <td class="index">5</td> >>>> <td class="filename">/usr/lib64/ >>>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>>> utils.rb</td> >>>> <td class="line">572</td> >>>> <td class="location">in >>>> `report_app_init_status''</td> >>>> </tr> >>>> >>>> <tr class="backtrace_line passenger >>>> uneven"> >>>> <td class="index">6</td> >>>> <td class="filename">/usr/lib64/ >>>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>>> rack/application_spawner.rb</**td> >>>> <td class="line">153</td> >>>> <td class="location">in >>>> `initialize_server''</td> >>>> </tr> >>>> >>>> <tr class="backtrace_line passenger >>>> even"> >>>> <td class="index">7</td> >>>> <td class="filename">/usr/lib64/ >>>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>>> abstract_server.rb</td> >>>> <td class="line">204</td> >>>> <td class="location">in >>>> `start_synchronously''</td> >>>> </tr> >>>> >>>> <tr class="backtrace_line passenger >>>> uneven"> >>>> <td class="index">8</td> >>>> <td class="filename">/usr/lib64/ >>>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>>> abstract_server.rb</td> >>>> <td class="line">180</td> >>>> <td class="location">in >>>> `start''</td> >>>> </tr> >>>> >>>> <tr class="backtrace_line passenger >>>> even"> >>>> <td class="index">9</td> >>>> <td class="filename">/usr/lib64/ >>>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>>> rack/application_spawner.rb</**td> >>>> <td class="line">128</td> >>>> <td class="location">in >>>> `start''</td> >>>> </tr> >>>> >>>> <tr class="backtrace_line passenger >>>> uneven"> >>>> <td class="index">10</td> >>>> <td class="filename">/usr/lib64/ >>>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>>> spawn_manager.rb</td> >>>> <td class="line">253</td> >>>> <td class="location">in >>>> `spawn_rack_application''</td> >>>> </tr> >>>> >>>> <tr class="backtrace_line passenger >>>> even"> >>>> <td class="index">11</td> >>>> <td class="filename">/usr/lib64/ >>>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>>> abstract_server_collection.rb<**/td> >>>> <td class="line">132</td> >>>> <td class="location">in >>>> `lookup_or_add''</td> >>>> </tr> >>>> >>>> <tr class="backtrace_line passenger >>>> uneven"> >>>> <td class="index">12</td> >>>> <td class="filename">/usr/lib64/ >>>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>>> spawn_manager.rb</td> >>>> <td class="line">246</td> >>>> <td class="location">in >>>> `spawn_rack_application''</td> >>>> </tr> >>>> >>>> <tr class="backtrace_line passenger >>>> even"> >>>> <td class="index">13</td> >>>> <td class="filename">/usr/lib64/ >>>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>>> abstract_server_collection.rb<**/td> >>>> <td class="line">82</td> >>>> <td class="location">in >>>> `synchronize''</td> >>>> </tr> >>>> >>>> <tr class="backtrace_line passenger >>>> uneven"> >>>> <td class="index">14</td> >>>> <td class="filename">/usr/lib64/ >>>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>>> abstract_server_collection.rb<**/td> >>>> <td class="line">79</td> >>>> <td class="location">in >>>> `synchronize''</td> >>>> </tr> >>>> >>>> <tr class="backtrace_line passenger >>>> even"> >>>> <td class="index">15</td> >>>> <td class="filename">/usr/lib64/ >>>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>>> spawn_manager.rb</td> >>>> <td class="line">244</td> >>>> <td class="location">in >>>> `spawn_rack_application''</td> >>>> </tr> >>>> >>>> <tr class="backtrace_line passenger >>>> uneven"> >>>> <td class="index">16</td> >>>> <td class="filename">/usr/lib64/ >>>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>>> spawn_manager.rb</td> >>>> <td class="line">137</td> >>>> <td class="location">in >>>> `spawn_application''</td> >>>> </tr> >>>> >>>> <tr class="backtrace_line passenger >>>> even"> >>>> <td class="index">17</td> >>>> <td class="filename">/usr/lib64/ >>>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>>> spawn_manager.rb</td> >>>> <td class="line">275</td> >>>> <td class="location">in >>>> `handle_spawn_application''</**td> >>>> </tr> >>>> >>>> <tr class="backtrace_line passenger >>>> uneven"> >>>> <td class="index">18</td> >>>> <td class="filename">/usr/lib64/ >>>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>>> abstract_server.rb</td> >>>> <td class="line">357</td> >>>> <td class="location">in >>>> `__send__''</td> >>>> </tr> >>>> >>>> <tr class="backtrace_line passenger >>>> even"> >>>> <td class="index">19</td> >>>> <td class="filename">/usr/lib64/ >>>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>>> abstract_server.rb</td> >>>> <td class="line">357</td> >>>> <td class="location">in >>>> `server_main_loop''</td> >>>> </tr> >>>> >>>> <tr class="backtrace_line passenger >>>> uneven"> >>>> <td class="index">20</td> >>>> <td class="filename">/usr/lib64/ >>>> **ruby/gems/1.8/gems/passenger-**3.0.9/lib/phusion_passenger/** >>>> abstract_server.rb</td> >>>> <td class="line">206</td> >>>> <td class="location">in >>>> `start_synchronously''</td> >>>> </tr> >>>> >>>> <tr class="backtrace_line passenger >>>> even"> >>>> <td class="index">21</td> >>>> <td class="filename">/usr/lib64/ >>>> **ruby/gems/1.8/gems/passenger-**3.0.9/helper-scripts/** >>>> passenger-spawn-server</td> >>>> <td class="line">99</td> >>>> <td class="location"></td> >>>> </tr> >>>> </table> >>>> >>>> </dd> >>>> </dl> >>>> >>>> </div> >>>> >>>> </div> >>>> <div id="site_footer"> >>>> <!-- >>>> You are free to modify the footer as you see >>>> fit, >>>> but we kindly ask of you to preserve to >>>> following >>>> text. Thank you. >>>> --> >>>> <div class="container"> >>>> Powered by <a href=" >>>> http://www.modrails.com/**">Phusion Passenger</a>, >>>> <tt>mod_rails</tt> / <tt>mod_rack</tt> >>>> for Apache. >>>> </div> >>>> </div> >>>> </div> >>>> >>>> </body> >>>> </html> >>>> >>>> >>>> [0m >>>> [1;35merr: /File[/var/lib/puppet/lib]: Could not evaluate: Error 500 >>>> on SERVER: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" " >>>> http://www.w3.org/TR/html4/**strict.dtd<http://www.w3.org/TR/html4/strict.dtd> >>>> "> >>>> <html> >>>> <head> >>>> <meta http-equiv="Content-Type" content="text/html; >>>> charset=UTF-8"> >>>> <meta name="generator" content="Phusion Passenger"> >>>> <title>Ruby (Rack) application could not be started</title> >>>> <style type="text/css"> >>>> body { >>>> font-family: Verdana, ''Bitstream Vera Sans'', Arial, Sans-Serif; >>>> font-size: 10pt; >>>> background: white; >>>> color: #222222; >>>> margin: 0; >>>> padding-top: 3em; >>>> padding-bottom: 3em; >>>> padding-left: 4.5em; >>>> padding-right: 4.5em; >>>> } >>>> >>>> h1 { >>>> font-size: 17pt; >>>> font-weight: medium; >>>> color: #533e72; >>>> border-bottom: 1px solid #533e72; >>>> } >>>> >>>> h1.title { >>>> margin-top: 0; >>>> } >>>> >>>> h1.error_title { >>>> color: red; >>>> border-bottom: 1px solid red; >>>> } >>>> >>>> a { >>>> text-decoration: none; >>>> } >>>> >>>> a:hover { >>>> text-decoration: underline; >>>> } >>>> >>>> dt { >>>> font-weight: bold; >>>> color: #280050; >>>> } >>>> >>>> dd { >>>> margin-top: 0.5em; >>>> margin-bottom: 1em; >>>> } >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Puppet Users" group. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msg/puppet-users/-/vBs5AWtTo38J. >>>> >>>> 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. >>>> >>>> >>>> -- >>>> 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. >>>> >>> >>> >> >> >> -- >> Gary Larizza >> Professional Services Engineer >> > >-- Gary Larizza Professional Services Engineer -- 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.
Sebastien Liu
2012-Dec-19 00:25 UTC
Re: [Puppet Users] [Puppet Upgrade] Puppet agent does not work
Hi Gary, I fixed the permission issue then restarted apache, and it seems the puppet master is working : The environment must be purely alphanumeric, not '''' But in the client node, when I launched ''puppet agent -t'', I got : err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not autoload active_record: uninitialized constant ActiveRecord Cheers, Sebastien On Wed, Dec 19, 2012 at 11:08 AM, Gary Larizza <gary@puppetlabs.com> wrote:> http://docs.puppetlabs.com/guides/passenger.html-- 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.
Gary Larizza
2012-Dec-19 00:31 UTC
Re: [Puppet Users] [Puppet Upgrade] Puppet agent does not work
Ahh, I seem to remember this - does this thread help you out --> https://groups.google.com/forum/?fromgroups=#!topic/puppet-users/VfKelFStVnU I think it may be the version of the activerecord gem. It certainly sounds like something went wrong with the rubygems on your system (if this is the case). On Tue, Dec 18, 2012 at 4:25 PM, Sebastien Liu <sebastien@frontfoot.com.au>wrote:> Hi Gary, > I fixed the permission issue then restarted apache, and it seems the > puppet master is working : > > The environment must be purely alphanumeric, not '''' > > But in the client node, when I launched ''puppet agent -t'', I got : > > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > Could not autoload active_record: uninitialized constant ActiveRecord > > Cheers, > Sebastien > > On Wed, Dec 19, 2012 at 11:08 AM, Gary Larizza <gary@puppetlabs.com>wrote: > >> http://docs.puppetlabs.com/guides/passenger.html > > >-- Gary Larizza Professional Services Engineer -- 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.
Sebastien Liu
2012-Dec-19 01:06 UTC
Re: [Puppet Users] [Puppet Upgrade] Puppet agent does not work
Hi Gary, I reinstalled rubygems and installed active_record according the solution in the link you presented. But the error is still the same on client node. But it seems the ex-admin did not follow the installation instruction, because I did not get puppetmaster daemon before I upgrade the server. Cheers, Sebastien On Wed, Dec 19, 2012 at 11:31 AM, Gary Larizza <gary@puppetlabs.com> wrote:> Ahh, I seem to remember this - does this thread help you out --> > https://groups.google.com/forum/?fromgroups=#!topic/puppet-users/VfKelFStVnU I think it may be the version of the activerecord gem. It certainly > sounds like something went wrong with the rubygems on your system (if this > is the case). > > > On Tue, Dec 18, 2012 at 4:25 PM, Sebastien Liu <sebastien@frontfoot.com.au > > wrote: > >> Hi Gary, >> I fixed the permission issue then restarted apache, and it seems the >> puppet master is working : >> >> The environment must be purely alphanumeric, not '''' >> >> But in the client node, when I launched ''puppet agent -t'', I got : >> >> err: Could not retrieve catalog from remote server: Error 400 on SERVER: >> Could not autoload active_record: uninitialized constant ActiveRecord >> >> Cheers, >> Sebastien >> >> On Wed, Dec 19, 2012 at 11:08 AM, Gary Larizza <gary@puppetlabs.com>wrote: >> >>> http://docs.puppetlabs.com/guides/passenger.html >> >> >> > > > -- > Gary Larizza > Professional Services Engineer >-- 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.
Sebastien Liu
2012-Dec-19 02:39 UTC
Re: [Puppet Users] [Puppet Upgrade] Puppet agent does not work
Hi Gary, I launched ''passenger-status'' and got /usr/lib/ruby/site_ruby/1.8/rubygems.rb:779:in `report_activate_error'': Could not find RubyGem passenger (>= 0) (Gem::LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:214:in `activate'' from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:1082:in `gem'' from /usr/bin/passenger-status:18 So do I need to gem install passenger? Cheers, Sebastien On Wed, Dec 19, 2012 at 12:06 PM, Sebastien Liu <sebastien@frontfoot.com.au>wrote:> Hi Gary, > I reinstalled rubygems and installed active_record according the solution > in the link you presented. But the error is still the same on client node. > But it seems the ex-admin did not follow the installation instruction, > because I did not get puppetmaster daemon before I upgrade the server. > > Cheers, > Sebastien > > > On Wed, Dec 19, 2012 at 11:31 AM, Gary Larizza <gary@puppetlabs.com>wrote: > >> Ahh, I seem to remember this - does this thread help you out --> >> https://groups.google.com/forum/?fromgroups=#!topic/puppet-users/VfKelFStVnU I think it may be the version of the activerecord gem. It certainly >> sounds like something went wrong with the rubygems on your system (if this >> is the case). >> >> >> On Tue, Dec 18, 2012 at 4:25 PM, Sebastien Liu < >> sebastien@frontfoot.com.au> wrote: >> >>> Hi Gary, >>> I fixed the permission issue then restarted apache, and it seems the >>> puppet master is working : >>> >>> The environment must be purely alphanumeric, not '''' >>> >>> But in the client node, when I launched ''puppet agent -t'', I got : >>> >>> err: Could not retrieve catalog from remote server: Error 400 on SERVER: >>> Could not autoload active_record: uninitialized constant ActiveRecord >>> >>> Cheers, >>> Sebastien >>> >>> On Wed, Dec 19, 2012 at 11:08 AM, Gary Larizza <gary@puppetlabs.com>wrote: >>> >>>> http://docs.puppetlabs.com/guides/passenger.html >>> >>> >>> >> >> >> -- >> Gary Larizza >> Professional Services Engineer >> > >-- 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.
Gary Larizza
2012-Dec-19 02:45 UTC
Re: [Puppet Users] [Puppet Upgrade] Puppet agent does not work
Yep, The passenger gem does indeed need to be installed. On Tue, Dec 18, 2012 at 6:39 PM, Sebastien Liu <sebastien@frontfoot.com.au>wrote:> Hi Gary, > I launched ''passenger-status'' and got > > /usr/lib/ruby/site_ruby/1.8/rubygems.rb:779:in `report_activate_error'': > Could not find RubyGem passenger (>= 0) (Gem::LoadError) > from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:214:in `activate'' > from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:1082:in `gem'' > from /usr/bin/passenger-status:18 > > So do I need to gem install passenger? > > Cheers, > Sebastien > > On Wed, Dec 19, 2012 at 12:06 PM, Sebastien Liu < > sebastien@frontfoot.com.au> wrote: > >> Hi Gary, >> I reinstalled rubygems and installed active_record according the solution >> in the link you presented. But the error is still the same on client node. >> But it seems the ex-admin did not follow the installation instruction, >> because I did not get puppetmaster daemon before I upgrade the server. >> >> Cheers, >> Sebastien >> >> >> On Wed, Dec 19, 2012 at 11:31 AM, Gary Larizza <gary@puppetlabs.com>wrote: >> >>> Ahh, I seem to remember this - does this thread help you out --> >>> https://groups.google.com/forum/?fromgroups=#!topic/puppet-users/VfKelFStVnU I think it may be the version of the activerecord gem. It certainly >>> sounds like something went wrong with the rubygems on your system (if this >>> is the case). >>> >>> >>> On Tue, Dec 18, 2012 at 4:25 PM, Sebastien Liu < >>> sebastien@frontfoot.com.au> wrote: >>> >>>> Hi Gary, >>>> I fixed the permission issue then restarted apache, and it seems the >>>> puppet master is working : >>>> >>>> The environment must be purely alphanumeric, not '''' >>>> >>>> But in the client node, when I launched ''puppet agent -t'', I got : >>>> >>>> err: Could not retrieve catalog from remote server: Error 400 on >>>> SERVER: Could not autoload active_record: uninitialized constant >>>> ActiveRecord >>>> >>>> Cheers, >>>> Sebastien >>>> >>>> On Wed, Dec 19, 2012 at 11:08 AM, Gary Larizza <gary@puppetlabs.com>wrote: >>>> >>>>> http://docs.puppetlabs.com/guides/passenger.html >>>> >>>> >>>> >>> >>> >>> -- >>> Gary Larizza >>> Professional Services Engineer >>> >> >> >-- Gary Larizza Professional Services Engineer -- 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.