Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

bosh deployments - 500s #82

Closed
drnic opened this issue Jan 29, 2014 · 7 comments
Closed

bosh deployments - 500s #82

drnic opened this issue Jan 29, 2014 · 7 comments

Comments

@drnic
Copy link
Contributor

drnic commented Jan 29, 2014

$ bosh deployments
HTTP 500: 

Inside vagrant:

$ tail -f /var/log/director/current
...
2014-01-29_21:28:53.57858 E, [2014-01-29T13:28:53.577548 #965] [0xfe1078] ERROR -- : NoMethodError - undefined method `name' for #<Bosh::Director::Models::Deployment:0x00000003f59940>:
2014-01-29_21:28:53.57860 /opt/rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bosh-director-1.5.0.pre.1657/lib/bosh/director/api/controllers/deployments_controller.rb:140:in `block (2 levels) in <class:DeploymentsController>'
@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: http://www.pivotaltracker.com/story/show/64778030

@drnic
Copy link
Contributor Author

drnic commented Jan 29, 2014

@drnic
Copy link
Contributor Author

drnic commented Jan 29, 2014

This is resolved when I kill the director process and it is restarted. Which I assume means that it loads in the schema correctly and thus Bosh::Director::Models::Deployment model now has an #name getter.

Could it be caused by a race condition - the director is loaded & running before the DB is migrated?

@drnic
Copy link
Contributor Author

drnic commented Jan 29, 2014

From outside vagrant, kill the director with:

vagrant ssh -c "ps ax | grep 'director.yml' | head -n 1 | awk '{print \$1}' | xargs sudo kill"

@mkocher
Copy link
Contributor

mkocher commented Jan 29, 2014

Was this a fresh vagrant up?

@drnic
Copy link
Contributor Author

drnic commented Jan 29, 2014

Yep. Been happening for a while. I don't think all the time (hence a guess at a race condition). Unsure if it predates the new vagrant box.

On Wed, Jan 29, 2014 at 2:22 PM, Matthew Kocher [email protected]
wrote:

Was this a fresh vagrant up?

Reply to this email directly or view it on GitHub:
#82 (comment)

@karlkfi
Copy link
Contributor

karlkfi commented Aug 13, 2014

@drnic,
Is this still a problem? The ticket's pretty old at this point.

@drnic drnic closed this as completed Aug 13, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants