Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to create a new server on the Rackspace Cloud using Chef and I keep coming across this error in Chef:

RuntimeError: Please save server before accessing metadata

Any ideas?

share|improve this question
Please use the title as a description of your post. I copied the error in to the body of your post for you. – longneck Jan 23 '13 at 21:33
@longneck Thanks! – Jonathan Ristovski Jan 24 '13 at 3:20
up vote 3 down vote accepted

That error message is coming from an update to the fog project. This commit introduces the error message that you're seeing. I'm able to duplicate the error as well with fog 1.9.0 which was released 4 days ago.

Use these commands to roll back to fog v1.8.0:

$ gem uninstall fog
$ gem install --version 1.8.0 fog

That fixed the issue for me! The fog developers are working on a pull request and it sounds like they'll have a new release soon (perhaps called v1.9.1).

share|improve this answer
That worked, thank you! – Jonathan Ristovski Jan 24 '13 at 3:17
I can confirm that using the just released fog 1.10 also fixes the issue! – dvdplm Mar 8 '13 at 17:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.