Project

General

Profile

Bug #1061

Deleting environments in use triggers an error 500

Added by Paul Kelly about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

I just received this as well with foreman 0.3. My error was slightly different:

Processing EnvironmentsController#destroy (for ###.###.###.### at 2011-06-09 14:24:21) [DELETE]
Parameters: {"authenticity_token"=>"YIGfIErFy9v+4nsVZFnmFGRrzwRIO48dQ0MpCEanwtg=", "id"=>"beta"}
You may not destroy beta as it is in use!

NameError (undefined local variable or method `load_vars_for_ajax' for #<EnvironmentsController:0x7fe87306af00>):
app/controllers/environments_controller.rb:51:in `destroy'
passenger (3.0.2) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
passenger (3.0.2) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
passenger (3.0.2) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
passenger (3.0.2) lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler'
passenger (3.0.2) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `send'
passenger (3.0.2) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application'
passenger (3.0.2) lib/phusion_passenger/utils.rb:479:in `safe_fork'
passenger (3.0.2) lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application'
passenger (3.0.2) lib/phusion_passenger/abstract_server.rb:357:in `__send__'
passenger (3.0.2) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
passenger (3.0.2) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
passenger (3.0.2) lib/phusion_passenger/abstract_server.rb:180:in `start'
passenger (3.0.2) lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'
passenger (3.0.2) lib/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application'
passenger (3.0.2) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
passenger (3.0.2) lib/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application'
passenger (3.0.2) lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'
passenger (3.0.2) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (3.0.2) lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application'
passenger (3.0.2) lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application'
passenger (3.0.2) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
passenger (3.0.2) lib/phusion_passenger/abstract_server.rb:357:in `__send__'
passenger (3.0.2) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
passenger (3.0.2) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
passenger (3.0.2) helper-scripts/passenger-spawn-server:99

Rendering /srv/www/usps-puppet-foreman/public/500.html (500 Internal Server Error)


Related issues

Related to Foreman - Bug #696: Deletion of environment in use, sometimes generates 500 error.Resolved2011-03-01

Associated revisions

Revision 0d14ad10 (diff)
Added by Paul Kelly about 8 years ago

Fixes #1061 - Deleting used env gives 500 error

Signed-off-by: Paul Kelly <>

History

#1 Updated by Paul Kelly about 8 years ago

  • Status changed from New to Ready For Testing

#2 Updated by Paul Kelly about 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Ohad Levy about 8 years ago

  • Category set to Web Interface
  • Target version set to 0.4

Also available in: Atom PDF