I, [2020-07-20T05:45:46.381809 #779] INFO -- : Completed 500 Internal Server Error in 35774ms (Views: 0.2ms | ActiveRecord: 15.6ms) I, [2020-07-20T05:45:51.748518 #779] INFO -- : BoshExecutor stop cmd=/usr/local/bin/bosh --no-color --non-interactive --tty --environment=10.117.69.10 vms --vitals; pwd=/home/tempest-web/tempest/web exit_code=0 E, [2020-07-20T05:45:51.859525 #779] ERROR -- : Exception caught via rescue_from (code 500): (See app/controllers/application_controller.rb) undefined method `utc' for nil:NilClass /home/tempest-web/tempest/web/app/controllers/api/v0/support_bundle_controller.rb:99:in `bundle_product_manifest_and_configs' /home/tempest-web/tempest/web/app/controllers/api/v0/support_bundle_controller.rb:73:in `block in bundle_deployed_manifest_and_configs' /usr/local/lib/ruby/2.6.0/delegate.rb:83:in `each' /usr/local/lib/ruby/2.6.0/delegate.rb:83:in `method_missing' /home/tempest-web/tempest/web/app/controllers/api/v0/support_bundle_controller.rb:72:in `bundle_deployed_manifest_and_configs' /home/tempest-web/tempest/web/app/controllers/api/v0/support_bundle_controller.rb:17:in `show' /home/tempest-web/tempest/web/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.4.3/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action' /home/tempest-web/tempest/web/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.4.3/lib/abstract_controller/base.rb:194:in `process_action' /home/tempest-web/tempest/web/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.4.3/lib/action_controller/metal/rendering.rb:30:in `process_action' /home/tempest-web/tempest/web/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.4.3/lib/abstract_controller/callbacks.rb:42:in `block in process_action' /home/tempest-web/tempest/web/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.3/lib/active_support/callbacks.rb:109:in `block in run_callbacks' /home/tempest-web/tempest/web/app/controllers/application_controller.rb:172:in `emit_audit_log_event'
To workaround this issue, follow the steps below:
1. ssh into Ops Manger VM and connect to database:
$ sudo -u tempest-web psql tempest_production
tempest_production=# create table installation_changes_backup as select * from installation_changes;
tempest_production=# select count(*) from installation_changes where started_at is null;
tempest_production=# begin; tempest_production=# UPDATE installation_changes SET started_at = (SELECT created_at FROM installs WHERE installs.id = installation_changes.install_id) WHERE started_at IS NULL AND EXISTS(SELECT id FROM installs WHERE installs.id = installation_changes.install_id); tempest_production=# end;