Description of problem: If I curl a wrong URL, the REST API respond with the status code 500, instead of 404. Version-Release number of selected component (if applicable): OpenShift-Release 3 How reproducible: Steps to Reproduce: 1. curl -k -u "demo:changeme" https://localhost/broker/rest/qsdfdsf Actual results: 500 Internal Server Error Expected results: 404 Not Found Additional info:
Could you please provide the output of the curl request? curl -k -i -u "demo:changeme" https://localhost/broker/rest/qsdfdsf
Here it is, with verbose curl -v -k -i -u "demo:changeme" https://localhost/broker/rest/qsdfdsf * About to connect() to localhost port 443 (#0) * Trying ::1... connected * Connected to localhost (::1) port 443 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * warning: ignoring value of ssl.verifyhost * skipping SSL peer certificate verification * SSL connection using SSL_RSA_WITH_RC4_128_SHA * Server certificate: * subject: E=root.company.fr,CN=server.priv.company.fr,OU=SomeOrganizationalUnit,O=SomeOrganization,L=SomeCity,ST=SomeState,C=-- * start date: nov. 04 13:38:58 2013 GMT * expire date: nov. 04 13:38:58 2014 GMT * common name: server.priv.company.fr * issuer: E=root.company.fr,CN=server.priv.company.fr,OU=SomeOrganizationalUnit,O=SomeOrganization,L=SomeCity,ST=SomeState,C=-- * Server auth using Basic with user 'demo' > GET /broker/rest/qsdfdsf HTTP/1.1 > Authorization: Basic ZGVtbzpjaGFuZ2VtZQ== > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2 > Host: localhost > Accept: */* > < HTTP/1.1 500 Internal Server Error HTTP/1.1 500 Internal Server Error < Date: Mon, 07 Apr 2014 07:40:00 GMT Date: Mon, 07 Apr 2014 07:40:00 GMT < Server: Apache/2.2.15 (CentOS) Server: Apache/2.2.15 (CentOS) < Content-Type: text/html; charset=utf-8 Content-Type: text/html; charset=utf-8 < Connection: close Connection: close < Transfer-Encoding: chunked Transfer-Encoding: chunked < <!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="https://www.phusionpassenger.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"> These are the possible causes: <ul> <li class="first"> <div class="container"> <div class="content"> There may be a syntax error in the application's code. Please check for such errors and fix them. </div> </div> </li> <li> <div class="container"> <div class="content"> A required library may not installed. Please install all libraries that this application requires. </div> </div> </li> <li> <div class="container"> <div class="content"> The application may not be properly configured. Please check whether all configuration files are written correctly, fix any incorrect configurations, and restart this application. </div> </div> </li> <li class="last"> <div class="container"> <div class="content"> A service that the application relies on (such as the database server or the Ferret search engine server) may not have been started. Please start that service. </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>Could not find moped-1.3.2 in any of the sources (Bundler::GemNotFound)</dd> <dt>Exception class:</dt> <dd>PhusionPassenger::UnknownError</dd> <dt>Application root:</dt> <dd> <tt class="filename">/var/www/openshift/broker</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">/opt/rh/ruby193/root/usr/share/gems/gems/bundler-1.1.4/lib/bundler/spec_set.rb</td> <td class="line">90</td> <td class="location">in `block in materialize'</td> </tr> <tr class="backtrace_line framework even"> <td class="index">1</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/bundler-1.1.4/lib/bundler/spec_set.rb</td> <td class="line">83</td> <td class="location">in `map!'</td> </tr> <tr class="backtrace_line framework uneven"> <td class="index">2</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/bundler-1.1.4/lib/bundler/spec_set.rb</td> <td class="line">83</td> <td class="location">in `materialize'</td> </tr> <tr class="backtrace_line framework even"> <td class="index">3</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/bundler-1.1.4/lib/bundler/definition.rb</td> <td class="line">127</td> <td class="location">in `specs'</td> </tr> <tr class="backtrace_line framework uneven"> <td class="index">4</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/bundler-1.1.4/lib/bundler/definition.rb</td> <td class="line">172</td> <td class="location">in `specs_for'</td> </tr> <tr class="backtrace_line framework even"> <td class="index">5</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/bundler-1.1.4/lib/bundler/definition.rb</td> <td class="line">161</td> <td class="location">in `requested_specs'</td> </tr> <tr class="backtrace_line framework uneven"> <td class="index">6</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/bundler-1.1.4/lib/bundler/environment.rb</td> <td class="line">23</td> <td class="location">in `requested_specs'</td> </tr> <tr class="backtrace_line framework even"> <td class="index">7</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/bundler-1.1.4/lib/bundler/runtime.rb</td> <td class="line">11</td> <td class="location">in `setup'</td> </tr> <tr class="backtrace_line framework uneven"> <td class="index">8</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/bundler-1.1.4/lib/bundler.rb</td> <td class="line">107</td> <td class="location">in `setup'</td> </tr> <tr class="backtrace_line passenger even"> <td class="index">9</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/utils.rb</td> <td class="line">326</td> <td class="location">in `prepare_app_process'</td> </tr> <tr class="backtrace_line passenger uneven"> <td class="index">10</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/rack/application_spawner.rb</td> <td class="line">156</td> <td class="location">in `block in initialize_server'</td> </tr> <tr class="backtrace_line passenger even"> <td class="index">11</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/utils.rb</td> <td class="line">563</td> <td class="location">in `report_app_init_status'</td> </tr> <tr class="backtrace_line passenger uneven"> <td class="index">12</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/rack/application_spawner.rb</td> <td class="line">154</td> <td class="location">in `initialize_server'</td> </tr> <tr class="backtrace_line passenger even"> <td class="index">13</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/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">14</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/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">15</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/rack/application_spawner.rb</td> <td class="line">129</td> <td class="location">in `start'</td> </tr> <tr class="backtrace_line passenger uneven"> <td class="index">16</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/spawn_manager.rb</td> <td class="line">253</td> <td class="location">in `block (2 levels) in spawn_rack_application'</td> </tr> <tr class="backtrace_line passenger even"> <td class="index">17</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/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">18</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/spawn_manager.rb</td> <td class="line">246</td> <td class="location">in `block in spawn_rack_application'</td> </tr> <tr class="backtrace_line passenger even"> <td class="index">19</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server_collection.rb</td> <td class="line">82</td> <td class="location">in `block in synchronize'</td> </tr> <tr class="backtrace_line passenger uneven"> <td class="index">20</td> <td class="filename"><internal</td> <td class="line">prelude></td> <td class="location">10:in `synchronize'</td> </tr> <tr class="backtrace_line passenger even"> <td class="index">21</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/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 uneven"> <td class="index">22</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/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 even"> <td class="index">23</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/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 uneven"> <td class="index">24</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/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 even"> <td class="index">25</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/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">26</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/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">27</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/helper-scripts/passenger-spawn-server</td> <td class="line">102</td> <td class="location">in `<main>'</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="https://www.phusionpassenger.com/">Phusion Passenger</a>, <tt>mod_rails</tt> / <tt>mod_rack</tt> for Apache and Nginx. </div> </div> </div> </body> </html> * Closing connection #0
curl -v -k -i -u "demo:changeme" https://localhost/broker/rest/qsdfdsf * About to connect() to localhost port 443 (#0) * Trying ::1... connected * Connected to localhost (::1) port 443 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * warning: ignoring value of ssl.verifyhost * skipping SSL peer certificate verification * SSL connection using SSL_RSA_WITH_RC4_128_SHA * Server certificate: * subject: E=root.atos.fr,CN=otvme050s.priv.atos.fr,OU=SomeOrganizationalUnit,O=SomeOrganization,L=SomeCity,ST=SomeState,C=-- * start date: nov. 04 13:38:58 2013 GMT * expire date: nov. 04 13:38:58 2014 GMT * common name: otvme050s.priv.atos.fr * issuer: E=root.atos.fr,CN=otvme050s.priv.atos.fr,OU=SomeOrganizationalUnit,O=SomeOrganization,L=SomeCity,ST=SomeState,C=-- * Server auth using Basic with user 'demo' > GET /broker/rest/qsdfdsf HTTP/1.1 > Authorization: Basic ZGVtbzpjaGFuZ2VtZQ== > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2 > Host: localhost > Accept: */* > < HTTP/1.1 500 Internal Server Error HTTP/1.1 500 Internal Server Error < Date: Mon, 07 Apr 2014 07:40:00 GMT Date: Mon, 07 Apr 2014 07:40:00 GMT < Server: Apache/2.2.15 (CentOS) Server: Apache/2.2.15 (CentOS) < Content-Type: text/html; charset=utf-8 Content-Type: text/html; charset=utf-8 < Connection: close Connection: close < Transfer-Encoding: chunked Transfer-Encoding: chunked < <!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="https://www.phusionpassenger.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"> These are the possible causes: <ul> <li class="first"> <div class="container"> <div class="content"> There may be a syntax error in the application's code. Please check for such errors and fix them. </div> </div> </li> <li> <div class="container"> <div class="content"> A required library may not installed. Please install all libraries that this application requires. </div> </div> </li> <li> <div class="container"> <div class="content"> The application may not be properly configured. Please check whether all configuration files are written correctly, fix any incorrect configurations, and restart this application. </div> </div> </li> <li class="last"> <div class="container"> <div class="content"> A service that the application relies on (such as the database server or the Ferret search engine server) may not have been started. Please start that service. </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>Could not find moped-1.3.2 in any of the sources (Bundler::GemNotFound)</dd> <dt>Exception class:</dt> <dd>PhusionPassenger::UnknownError</dd> <dt>Application root:</dt> <dd> <tt class="filename">/var/www/openshift/broker</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">/opt/rh/ruby193/root/usr/share/gems/gems/bundler-1.1.4/lib/bundler/spec_set.rb</td> <td class="line">90</td> <td class="location">in `block in materialize'</td> </tr> <tr class="backtrace_line framework even"> <td class="index">1</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/bundler-1.1.4/lib/bundler/spec_set.rb</td> <td class="line">83</td> <td class="location">in `map!'</td> </tr> <tr class="backtrace_line framework uneven"> <td class="index">2</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/bundler-1.1.4/lib/bundler/spec_set.rb</td> <td class="line">83</td> <td class="location">in `materialize'</td> </tr> <tr class="backtrace_line framework even"> <td class="index">3</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/bundler-1.1.4/lib/bundler/definition.rb</td> <td class="line">127</td> <td class="location">in `specs'</td> </tr> <tr class="backtrace_line framework uneven"> <td class="index">4</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/bundler-1.1.4/lib/bundler/definition.rb</td> <td class="line">172</td> <td class="location">in `specs_for'</td> </tr> <tr class="backtrace_line framework even"> <td class="index">5</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/bundler-1.1.4/lib/bundler/definition.rb</td> <td class="line">161</td> <td class="location">in `requested_specs'</td> </tr> <tr class="backtrace_line framework uneven"> <td class="index">6</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/bundler-1.1.4/lib/bundler/environment.rb</td> <td class="line">23</td> <td class="location">in `requested_specs'</td> </tr> <tr class="backtrace_line framework even"> <td class="index">7</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/bundler-1.1.4/lib/bundler/runtime.rb</td> <td class="line">11</td> <td class="location">in `setup'</td> </tr> <tr class="backtrace_line framework uneven"> <td class="index">8</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/bundler-1.1.4/lib/bundler.rb</td> <td class="line">107</td> <td class="location">in `setup'</td> </tr> <tr class="backtrace_line passenger even"> <td class="index">9</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/utils.rb</td> <td class="line">326</td> <td class="location">in `prepare_app_process'</td> </tr> <tr class="backtrace_line passenger uneven"> <td class="index">10</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/rack/application_spawner.rb</td> <td class="line">156</td> <td class="location">in `block in initialize_server'</td> </tr> <tr class="backtrace_line passenger even"> <td class="index">11</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/utils.rb</td> <td class="line">563</td> <td class="location">in `report_app_init_status'</td> </tr> <tr class="backtrace_line passenger uneven"> <td class="index">12</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/rack/application_spawner.rb</td> <td class="line">154</td> <td class="location">in `initialize_server'</td> </tr> <tr class="backtrace_line passenger even"> <td class="index">13</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/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">14</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/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">15</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/rack/application_spawner.rb</td> <td class="line">129</td> <td class="location">in `start'</td> </tr> <tr class="backtrace_line passenger uneven"> <td class="index">16</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/spawn_manager.rb</td> <td class="line">253</td> <td class="location">in `block (2 levels) in spawn_rack_application'</td> </tr> <tr class="backtrace_line passenger even"> <td class="index">17</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/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">18</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/spawn_manager.rb</td> <td class="line">246</td> <td class="location">in `block in spawn_rack_application'</td> </tr> <tr class="backtrace_line passenger even"> <td class="index">19</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server_collection.rb</td> <td class="line">82</td> <td class="location">in `block in synchronize'</td> </tr> <tr class="backtrace_line passenger uneven"> <td class="index">20</td> <td class="filename"><internal</td> <td class="line">prelude></td> <td class="location">10:in `synchronize'</td> </tr> <tr class="backtrace_line passenger even"> <td class="index">21</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/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 uneven"> <td class="index">22</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/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 even"> <td class="index">23</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/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 uneven"> <td class="index">24</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/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 even"> <td class="index">25</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/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">26</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/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">27</td> <td class="filename">/opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/helper-scripts/passenger-spawn-server</td> <td class="line">102</td> <td class="location">in `<main>'</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="https://www.phusionpassenger.com/">Phusion Passenger</a>, <tt>mod_rails</tt> / <tt>mod_rack</tt> for Apache and Nginx. </div> </div> </div> </body> </html> * Closing connection #0
Created attachment 883715 [details] error in hml Error message showing missing gem.
It looks like you are missing gems Could not find moped-1.3.2 in any of the sources (Bundler::GemNotFound)
I took the OpenShift Release 3 VM based on CentOS (https://twitter.com/k__raman/statuses/423855954099048448) to run the test with a right install. I still have the error 500. The html print nothing interesting so I tail the logs in background. Here is the output # curl -v -k -i -u "demo:changeme" https://localhost/broker/rest/qsdfdsf * About to connect() to localhost port 443 (#0) * Trying ::1... connected * Connected to localhost (::1) port 443 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * warning: ignoring value of ssl.verifyhost * skipping SSL peer certificate verification * SSL connection using SSL_RSA_WITH_RC4_128_SHA * Server certificate: * subject: E=dev.redhat.com,CN=broker-c46534.openshift.local,O=broker-c46534,L=Mountain View,ST=California,C=US * start date: Apr 04 14:23:47 2014 GMT * expire date: Apr 04 14:23:47 2015 GMT * common name: broker-c46534.openshift.local * issuer: E=dev.redhat.com,CN=broker-c46534.openshift.local,O=broker-c46534,L=Mountain View,ST=California,C=US * Server auth using Basic with user 'demo' > GET /broker/rest/qsdfdsf HTTP/1.1 > Authorization: Basic ZGVtbzpjaGFuZ2VtZQ== > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2 > Host: localhost > Accept: */* > 2014-04-08 04:58:44.769 [INFO ] Started GET "/broker/rest/qsdfdsf" for 127.0.0.1 at 2014-04-08 04:58:44 -0700 (pid:2442) ==> /var/log/openshift/broker/httpd/error_log <== [ pid=2442 thr=10741900 file=utils.rb:176 time=2014-04-08 04:58:44.771 ]: *** Exception ActionController::RoutingError in Rack application object (No route matches [GET] "/broker/rest/qsdfdsf") (process 2442, thread #<Thread:0x0000000147d118>): from /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' from /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call' from /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/rack/logger.rb:26:in `call_app' from /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/rack/logger.rb:16:in `call' from /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/request_id.rb:22:in `call' from /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in `call' from /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/runtime.rb:17:in `call' from /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/cache/strategy/local_cache.rb:72:in `call' from /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/lock.rb:15:in `call' from /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/static.rb:62:in `call' from /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward' from /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in `fetch' from /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in `lookup' from /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in `call!' from /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call' from /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:479:in `call' from /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application.rb:223:in `call' from /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `method_missing' from /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/rack/request_handler.rb:97:in `process_request' from /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/abstract_request_handler.rb:521:in `accept_and_process_next_request' from /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop' from /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/rack/application_spawner.rb:206:in `start_request_handler' from /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/rack/application_spawner.rb:171:in `block in handle_spawn_application' from /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/utils.rb:470:in `safe_fork' from /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/rack/application_spawner.rb:166:in `handle_spawn_application' from /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' from /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' from /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server.rb:180:in `start' from /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/rack/application_spawner.rb:129:in `start' from /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/spawn_manager.rb:253:in `block (2 levels) in spawn_rack_application' from /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add' from /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/spawn_manager.rb:246:in `block in spawn_rack_application' from /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize' from <internal:prelude>:10:in `synchronize' from /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' from /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application' from /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application' from /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application' from /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' from /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' from /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/helper-scripts/passenger-spawn-server:102:in `<main>' [Tue Apr 08 04:58:44 2014] [error] [client 127.0.0.1] Premature end of script headers: broker [ pid=1670 thr=140330024818656 file=ext/apache2/Hooks.cpp:841 time=2014-04-08 04:58:44.771 ]: The backend application (process 2442) did not send a valid HTTP response; instead, it sent nothing at all. It is possible that it has crashed; please check whether there are crashing bugs in this application. ==> /var/log/openshift/broker/httpd/access_log <== ::1 broker-c46534.openshift.local - demo [08/Apr/2014:04:58:44 -0700] "GET /broker/rest/qsdfdsf HTTP/1.1" 500 609 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" < HTTP/1.1 500 Internal Server Error HTTP/1.1 500 Internal Server Error < Date: Tue, 08 Apr 2014 11:58:44 GMT Date: Tue, 08 Apr 2014 11:58:44 GMT < Server: Apache/2.2.15 (CentOS) Server: Apache/2.2.15 (CentOS) < Status: 500 Internal Server Error Status: 500 Internal Server Error < Content-Length: 609 Content-Length: 609 < Content-Type: text/html; charset=iso-8859-1 Content-Type: text/html; charset=iso-8859-1 < Connection: close Connection: close < <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>500 Internal Server Error</title> </head><body> <h1>Internal Server Error</h1> <p>The server encountered an internal error or misconfiguration and was unable to complete your request.</p> <p>Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.</p> <p>More information about this error may be available in the server error log.</p> <hr> <address>Apache/2.2.15 (CentOS) Server at localhost Port 80</address> </body></html> * Closing connection #0
Are you getting a 200 from valid URL? Please try curl -v -k -i -u "demo:changeme" https://localhost/broker/rest/api
Yes with a valid URL I get the status code 200: curl -v -k -i -u "demo:changeme" https://localhost/broker/rest/api * About to connect() to localhost port 443 (#0) * Trying ::1... connected * Connected to localhost (::1) port 443 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * warning: ignoring value of ssl.verifyhost * skipping SSL peer certificate verification * SSL connection using SSL_RSA_WITH_RC4_128_SHA * Server certificate: * subject: E=dev.redhat.com,CN=broker-c46534.openshift.local,O=broker-c46534,L=Mountain View,ST=California,C=US * start date: Apr 04 14:23:47 2014 GMT * expire date: Apr 04 14:23:47 2015 GMT * common name: broker-c46534.openshift.local * issuer: E=dev.redhat.com,CN=broker-c46534.openshift.local,O=broker-c46534,L=Mountain View,ST=California,C=US * Server auth using Basic with user 'demo' > GET /broker/rest/api HTTP/1.1 > Authorization: Basic ZGVtbzpjaGFuZ2VtZQ== > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2 > Host: localhost > Accept: */* > < HTTP/1.1 200 HTTP/1.1 200 < Date: Thu, 10 Apr 2014 07:57:23 GMT Date: Thu, 10 Apr 2014 07:57:23 GMT < Server: Apache/2.2.15 (CentOS) Server: Apache/2.2.15 (CentOS) < X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.21 X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.21 < X-UA-Compatible: IE=Edge,chrome=1 X-UA-Compatible: IE=Edge,chrome=1 < ETag: "cc0a998a506d1f9449fe7eb31913b678" ETag: "cc0a998a506d1f9449fe7eb31913b678" < Cache-Control: must-revalidate, private, max-age=0 Cache-Control: must-revalidate, private, max-age=0 < X-Request-Id: e51bb2d0468183fd2ced34b76803e82b X-Request-Id: e51bb2d0468183fd2ced34b76803e82b < X-Runtime: 0.011273 X-Runtime: 0.011273 < X-Rack-Cache: miss X-Rack-Cache: miss < Status: 200 Status: 200 < Content-Length: 5853 Content-Length: 5853 < Content-Type: application/json; charset=utf-8 Content-Type: application/json; charset=utf-8 < Connection: close Connection: close < {"api_version":1.6,"data":{"API":{"href":"https://localhost/broker/rest/api","method":"GET","optional_params":[],"rel":"API entry point","required_params":[]},"GET_ENVIRONMENT":{"href":"https://localhost/broker/rest/environment","method":"GET","optional_params":[],"rel":"Get environment information","required_params":[]},"GET_USER":{"href":"https://localhost/broker/rest/user","method":"GET","optional_params":[],"rel":"Get user information","required_params":[]},"ADD_DOMAIN":{"href":"https://localhost/broker/rest/domains","method":"POST","optional_params":[{"default_value":null,"description":"A list of gear sizes that are allowed to be created on this domain","name":"allowed_gear_sizes","type":"array","valid_options":["small"]}],"rel":"Create new domain","required_params":[{"description":"Name of the domain","invalid_options":[],"name":"name","type":"string","valid_options":[]}]},"LIST_DOMAINS":{"href":"https://localhost/broker/rest/domains","method":"GET","optional_params":[],"rel":"List all domains you have access to","required_params":[]},"LIST_DOMAINS_BY_OWNER":{"href":"https://localhost/broker/rest/domains","method":"GET","optional_params":[],"rel":"List domains","required_params":[{"description":"Return only the domains owned by the specified user id or identity. Use @self to refer to the current user.","invalid_options":[],"name":"owner","type":"string","valid_options":["@self","*"]}]},"SHOW_DOMAIN":{"href":"https://localhost/broker/rest/domain/:name","method":"GET","optional_params":[],"rel":"Retrieve a domain by its name","required_params":[{"description":"Unique name of the domain","invalid_options":[],"name":":name","type":"string","valid_options":[]}]},"SHOW_APPLICATION_BY_DOMAIN":{"href":"https://localhost/broker/rest/domain/:domain_name/application/:name","method":"GET","optional_params":[],"rel":"Retrieve an application by its name and domain","required_params":[{"description":"Unique name of the domain","invalid_options":[],"name":":domain_name","type":"string","valid_options":[]},{"description":"Name of the application","invalid_options":[],"name":":name","type":"string","valid_options":[]}]},"LIST_CARTRIDGES":{"href":"https://localhost/broker/rest/cartridges","method":"GET","optional_params":[],"rel":"List cartridges","required_params":[]},"LIST_APPLICATIONS":{"href":"https://localhost/broker/rest/applications","method":"GET","optional_params":[],"rel":"List application","required_params":[]},"SHOW_APPLICATION":{"href":"https://localhost/broker/rest/application/:id","method":"GET","optional_params":[],"rel":"List application","required_params":[{"description":"Unique identifier of the application","invalid_options":[],"name":":id","type":"string","valid_options":[]}]},"LIST_AUTHORIZATIONS":{"href":"https://localhost/broker/rest/user/authorizations","method":"GET","optional_params":[],"rel":"List authorizations","required_params":[]},"SHOW_AUTHORIZATION":{"href":"https://localhost/broker/rest/user/authorization/:id","method":"GET","optional_params":[],"rel":"Retrieve authorization :id","required_params":[{"description":"Unique identifier of the authorization","invalid_options":[],"name":":id","type":"string","valid_options":[]}]},"ADD_AUTHORIZATION":{"href":"https://localhost/broker/rest/user/authorizations","method":"POST","optional_params":[{"default_value":"userinfo","description":"Select one or more scopes that this authorization will grant access to:\n\n* session\n Grants a client the authority to perform all API actions against your account. Valid for 1 day.\n* read\n Allows the client to access resources you own without making changes. Does not allow access to view authorization tokens. Valid for about 1 month.\n* userinfo\n Allows a client to view your login name, unique id, and your user capabilities. Valid for about 1 month.\n* domain/:id/view\n Grant read-only access to a single domain. Valid for about 1 month.\n* domain/:id/edit\n Grant edit access to a single domain and all its applications. Valid for about 1 month.\n* domain/:id/admin\n Grant full administrative access to a single domain and all its applications. Valid for about 1 month.\n* application/:id/view\n Grant read-only access to a single application. Valid for about 1 month.\n* application/:id/edit\n Grant edit access to a single application. Valid for about 1 month.\n* application/:id/admin\n Grant full administrative access to a single application. Valid for about 1 month.","name":"scope","type":"string","valid_options":["session","read","userinfo","domain/:id/view","domain/:id/edit","domain/:id/admin","application/:id/view","application/:id/edit","application/:id/admin"]},{"default_value":null,"description":"A description to remind you what this authorization is for.","name":"note","type":"string","valid_options":[]},{"default_value":-1,"description":"The number of seconds before this authorization expires. Out of range values will be set to the maximum allowed time.","name":"expires_in","type":"integer","valid_options":[]},{"default_value":false,"description":"Attempt to locate and reuse an authorization* Closing connection #0 that matches the scope and note and has not yet expired.","name":"reuse","type":"boolean","valid_options":[true,false]}],"rel":"Add new authorization","required_params":[]},"LIST_QUICKSTARTS":{"href":"https://localhost/broker/rest/quickstarts","method":"GET","optional_params":[],"rel":"List quickstarts","required_params":[]},"SHOW_QUICKSTART":{"href":"https://localhost/broker/rest/quickstart/:id","method":"GET","optional_params":[],"rel":"Retrieve quickstart with :id","required_params":[{"description":"Unique identifier of the quickstart","invalid_options":[],"name":":id","type":"string","valid_options":[]}]}},"messages":[],"status":"ok","supported_api_versions":[1.0,1.1,1.2,1.3,1.4,1.5,1.6],"type":"links","version":"1.6"}
I cannot reproduce problem in devenv. A 404 is returned from bad URLs. Is routing done differently in origin?