Rake Aborted error in installation?

Hi,

I am having problems when installing sharetribe locally.

I am on step 8 of the installation instructions:
8) Run Sphinx index:

bundle exec rake ts:index

It is giving the following error in terminal:

Generating configuration to /Users/oliversimon/sharetribe/config/development.sphinx.conf
rake aborted!
ActiveRecord::StatementInvalid: Mysql2::Error: Table ‘sharetribe_development.custom_field_values’ doesn’t exist: SHOW FULL FIELDS FROM custom_field_values
/Users/oliversimon/.rvm/gems/ruby-2.3.1/gems/mysql2-0.4.4/lib/mysql2/client.rb:107:in _query' /Users/oliversimon/.rvm/gems/ruby-2.3.1/gems/mysql2-0.4.4/lib/mysql2/client.rb:107:in block in query’
/Users/oliversimon/.rvm/gems/ruby-2.3.1/gems/mysql2-0.4.4/lib/mysql2/client.rb:106:in handle_interrupt' /Users/oliversimon/.rvm/gems/ruby-2.3.1/gems/mysql2-0.4.4/lib/mysql2/client.rb:106:in query’
/Users/oliversimon/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:309:in block in execute' /Users/oliversimon/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_adapter.rb:484:in block in log’
/Users/oliversimon/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in instrument' /Users/oliversimon/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_adapter.rb:478:in log’
/Users/oliversimon/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:309:in execute' /Users/oliversimon/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/mysql2_adapter.rb:231:in execute’
/Users/oliversimon/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:316:in execute_and_free' /Users/oliversimon/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:463:in columns’
/Users/oliversimon/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/schema_cache.rb:43:in columns' /Users/oliversimon/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/attributes.rb:93:in columns’
/Users/oliversimon/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/model_schema.rb:260:in column_names' /Users/oliversimon/.rvm/gems/ruby-2.3.1/gems/thinking-sphinx-3.1.4/lib/thinking_sphinx/active_record/sql_source/template.rb:43:in inheriting?’
/Users/oliversimon/.rvm/gems/ruby-2.3.1/gems/thinking-sphinx-3.1.4/lib/thinking_sphinx/active_record/sql_source/template.rb:33:in class_column' /Users/oliversimon/.rvm/gems/ruby-2.3.1/gems/thinking-sphinx-3.1.4/lib/thinking_sphinx/active_record/sql_source/template.rb:9:in apply’
/Users/oliversimon/.rvm/gems/ruby-2.3.1/gems/thinking-sphinx-3.1.4/lib/thinking_sphinx/active_record/sql_source.rb:27:in initialize' /Users/oliversimon/.rvm/gems/ruby-2.3.1/gems/thinking-sphinx-3.1.4/lib/thinking_sphinx/active_record/index.rb:8:in new’
/Users/oliversimon/.rvm/gems/ruby-2.3.1/gems/thinking-sphinx-3.1.4/lib/thinking_sphinx/active_record/index.rb:8:in append_source' /Users/oliversimon/.rvm/gems/ruby-2.3.1/gems/thinking-sphinx-3.1.4/lib/thinking_sphinx/active_record/interpreter.rb:64:in __source’
/Users/oliversimon/.rvm/gems/ruby-2.3.1/gems/thinking-sphinx-3.1.4/lib/thinking_sphinx/active_record/interpreter.rb:51:in `block in set_property’
/Users/oliversimon/.rvm/gems/ruby-2.3.1/gems/thinking-sphinx-3.1.4/lib/

Does anyone know how to solve this?

Thanks

The error is saying that database table ‘sharetribe_development.custom_field_values’ doesn’t exist. So apparently, something went wrong when you initialized the database.

Did you make the needed changes to the config files in step 6? What about step 7, did it give you any errors?

The config.yml file is setup identical to the example.

The database.yml is setup identical to the example but with my root password and username root, for development, test, staging and production.

Step 7 seems to be working. It seems to have already setup the database, when I rant the command previously. Now, I get the following:

oliversimon$ bundle exec rake db:create db:structure:load
sharetribe_development already exists
sharetribe_test already exists
mysql: [Warning] Using a password on the command line interface can be insecure.

Any ideas?