documentcloud / cloud-crowd

Parallel Processing for the Rest of Us
https://github.com/documentcloud/cloud-crowd/wiki
MIT License
851 stars 92 forks source link

Issue with load_schema #46

Closed drulang closed 10 years ago

drulang commented 10 years ago

I keep receiving an error when trying to setup a development environment. I'm using Ubuntu 12.04.4 desktop and ruby 1.9.3p0. Any help would be greatly appreciated.

Thanks, Dru

Error when running 'crowd load_schema'

/var/lib/gems/1.9.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:241:in `load': cannot load such file -- # This file configures your CloudCrowd installation, and should be consistent (LoadError)
# between your server and all of your nodes. For more information, see:
# http://wiki.github.com/documentcloud/cloud-crowd/the-configuration-folder

:central_server:    http://localhost:9173
:max_workers:       1
:storage:           filesystem
    from /var/lib/gems/1.9.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:241:in `block in load'
    from /var/lib/gems/1.9.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:232:in `load_dependency'
    from /var/lib/gems/1.9.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:241:in `load'
    from /var/lib/gems/1.9.1/gems/cloud-crowd-0.7.3/lib/cloud-crowd.rb:101:in `configure'
    from /var/lib/gems/1.9.1/gems/cloud-crowd-0.7.3/lib/cloud_crowd/command_line.rb:217:in `load_code'
    from /var/lib/gems/1.9.1/gems/cloud-crowd-0.7.3/lib/cloud_crowd/command_line.rb:135:in `run_load_schema'
    from /var/lib/gems/1.9.1/gems/cloud-crowd-0.7.3/lib/cloud_crowd/command_line.rb:44:in `initialize'
    from /var/lib/gems/1.9.1/gems/cloud-crowd-0.7.3/bin/crowd:5:in `new'
    from /var/lib/gems/1.9.1/gems/cloud-crowd-0.7.3/bin/crowd:5:in `<top (required)>'
    from /usr/local/bin/crowd:19:in `load'
    from /usr/local/bin/crowd:19:in `<main>'

config.yml

:central_server:    http://localhost:9173
:max_workers:       1
:storage:           filesystem

database.yml

:adapter:  sqlite3
:database: cloud_crowd.db
drulang commented 10 years ago

Using ruby 2 solved the issue

nathanstitt commented 10 years ago

@drulang I was actually testing this right when you commented.

I was able to successfully initialize the schema with ruby 1.9.3p484 by running:

crowd load_schema -c ./crowd-config

The ./crowd-config directory contained a database.yml file containing only:

 :adapter:  sqlite3

And a config.yml with:

 :central_server:      http://localhost:8080
 :max_workers:         2
 :storage:             filesystem
 :actions_path:        ./crowd-config

My guess is that there was something incorrect in the config.yml file since that's what it was apparently attempting to load in your stack trace above.

At any rate, glad it's now working for you