Project

General

Profile

Actions

Bug #2173

closed

"500 internal error" when proxy log file is invalid

Added by Dennis Jacobfeuerborn over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

After successfully installing 1.1rc5 with the installer and adding the local proxy to the config with the name "local proxy" I tried importing the environments but was greeted with a "500 internal server error". The following appeared in the foreman log:

Started GET "/environments/import_environments?proxy=1-local-proxy" for 10.99.0.1 at Sun Feb 03 17:37:30 +0100 2013
Processing by EnvironmentsController#import_environments as HTML
Parameters: {"proxy"=>"1-local-proxy"}
Operation FAILED: 500 Internal Server Error
Rendered home/_topbar.rhtml (1.9ms)
Rendered common/500.rhtml within layouts/application (9.8ms)
Completed 500 Internal Server Error in 165ms (Views: 12.1ms | ActiveRecord: 1.2ms)


Related issues 1 (0 open1 closed)

Is duplicate of Smart Proxy - Bug #2174: Wrong log settings should have the proxy terminate on startupResolved02/03/2013Actions
Actions #1

Updated by Dennis Jacobfeuerborn over 11 years ago

Found the reason for this. When dealing with http://projects.theforeman.org/issues/2172 I set the log file to STDOUT. Apparently foreman-proxy doesn't like this at all and this results in the 500 error. The proxy should probably not even start up when it doesn't like the log settings. That would make something like this easier to avoid.

Actions #2

Updated by Dominic Cleal over 11 years ago

  • Project changed from Installer to Smart Proxy
Actions #3

Updated by Dominic Cleal over 11 years ago

  • Subject changed from In 1.1rc5 trying to import environments results in "500 internal error" to "500 internal error" when proxy log file is invalid
  • Priority changed from Normal to Low
Actions #4

Updated by Dominic Cleal over 11 years ago

  • Status changed from New to Closed

Just noticed #2174, which covers this.

Actions

Also available in: Atom PDF