3

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?

longneck
  • 22,793
  • 4
  • 50
  • 84
  • 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

1 Answers1

3

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).