Pivotal Knowledge Base

Follow

Ops Manager Export Fails with 500 Error and `No such File or Directory - getcwd` in the Logs

Environment

 Product  Version
 Pivotal Ops Manager  All Versions

Symptom

Performing an Ops Manager export of the installation settings results in the following error:

No webpage was found for the web address: https://opsman.<DNS>/500.html
HTTP ERROR 404

 In the /tmp/logs/production.log file for the Ops Manager VM, you see the following errors:

 Started POST "/export" for 96.81.54.241 at 2017-02-15 17:07:40 +0000
Processing by ExportController#create as */*
Valid UAA token
Exception caught via rescue_from (code 500):
(See app/controllers/application_controller.rb)
Cannot load `Rails.application.database_configuration`: No such file or directory - getcwd
/home/tempest-web/tempest/web/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `require'
/home/tempest-web/tempest/web/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `block in require'
/home/tempest-web/tempest/web/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in `load_dependency'   

Resolution

The resolution to this is to simply restart the Ops Manager VM. You can do this by either of the following two ways:

  • Restart the Ops Manager VM within the IaaS.
  • Remoting into the VM via ssh and running sudo reboot.

 

 

Comments

Powered by Zendesk