Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Mac Known Issues

atomicrat2552 edited this page Apr 16, 2012 · 1 revision

In all instructions below, $CLOUDSDALE_ROOT is assumed to be the path to the root of your checked out Cloudsdale repo.

MongoDB won't start

If you've done a foreman start and you're getting a MongoDB error, it's probably because the mongodb folder is missing from ./db/data. To fix it:

cd $CLOUDSDALE_ROOT
mkdir db/data/mongodb

Rails won't start

If you're getting this error:

/Users/<you>/.rvm/gems/ruby-1.9.3-p125/gems/mongo-1.5.2/lib/mongo/db.rb:137:in `issue_authentication': Failed to authenticate user 'cloudsdale_development' on db 'cloudsdale_development' (Mongo::AuthenticationError)

Then you need to add the cloudsdale_development user to MongoDB. Ensuring that MongoDB is running in another terminal session (usually by doing foreman start), start a MongoDB terminal session:

mongo --port 52331

Cloudsdale needs a user in the db that corresponds to the one in $CLOUDSDALE_ROOT/config/mongoid.yml. The following is an example only, replace the parameters with the ones from mongoid.yml if they are different:

use cloudsdale_development
db.addUser("cloudsdale_development", "password: line from mongoid.yml")

#Rake fails to migrate with a C trace statement If you have Xcode 4.2+ installed, this may be the issue. Xcode 4.2 and later are only partially supported in Ruby 1.9.3+. Try uninstalling Xcode 4.2 by running

sudo /Developer/Library/uninstall-devtools --mode=all

Next, install osx-gcc from here. Lastly, run

bundle install

from your Cloudsdale directory

Clone this wiki locally