Hi! Whe I ran the local server with Ubuntu 16.10,
bundle exec rails server -e production
Shows some error, help m to solve it
bundle exec rails server -e production
/home/xc/.rvm/gems/ruby-2.3.1/gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/configuration/default_source.rb:675: warning: key :disable_mongo is duplicated and overwritten on line 987
=> Booting WEBrick
=> Rails 4.2.7.1 application starting in production on http://localhost:3000
=> Run rails server -h
for more startup options
=> Ctrl-C to shutdown server
/home/xc/.rvm/gems/ruby-2.3.1/gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/vm/mri_vm.rb:32: warning: GC.stat keys were changed from Ruby 2.1. In this case, you refer to obsolete total_allocated_object' (new key is
total_allocated_objects’). Please check https://bugs.ruby-lang.org/issues/9924 for more information.
Exiting
/home/xc/.rvm/gems/ruby-2.3.1/gems/devise-3.5.10/lib/devise/rails/routes.rb:489:in `raise_no_secret_key’: Devise.secret_key was not set. Please add the following to your Devise initializer: (RuntimeError)
config.secret_key = ‘580697a50ec4c7f6129db1c34aa04b1784049afa2c57950e548758bcea175018ad53992a244f02cce321b884914c82c6c5394b21c195ceed55f19885cb0eff6f’
Please ensure you restarted your application after installing Devise or setting the key.
from /home/xc/.rvm/gems/ruby-2.3.1/gems/devise-3.5.10/lib/devise/rails/routes.rb:223:in devise_for' from /home/xc/sharetribe/config/routes.rb:107:in
block in <top (required)>’
from /home/xc/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_dispatch/routing/route_set.rb:432:in instance_exec' from /home/xc/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_dispatch/routing/route_set.rb:432:in
eval_block’
from /home/xc/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_dispatch/routing/route_set.rb:410:in draw' from /home/xc/sharetribe/config/routes.rb:2:in
<top (required)>’
from /home/xc/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:268:in load' from /home/xc/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:268:in
block in load’
from /home/xc/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in load_dependency' from /home/xc/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:268:in
load’
from /home/xc/.rvm/gems/ruby-2.3.1/gems/railties-4.2.7.1/lib/rails/application/routes_reloader.rb:40:in block in load_paths' from /home/xc/.rvm/gems/ruby-2.3.1/gems/railties-4.2.7.1/lib/rails/application/routes_reloader.rb:40:in
each’
from /home/xc/.rvm/gems/ruby-2.3.1/gems/railties-4.2.7.1/lib/rails/application/routes_reloader.rb:40:in load_paths' from /home/xc/.rvm/gems/ruby-2.3.1/gems/railties-4.2.7.1/lib/rails/application/routes_reloader.rb:16:in
reload!’
from /home/xc/.rvm/gems/ruby-2.3.1/gems/railties-4.2.7.1/lib/rails/application.rb:170:in reload_routes!' from /home/xc/.rvm/gems/ruby-2.3.1/gems/devise-3.5.10/lib/devise/rails.rb:14:in
block in class:Engine’
from /home/xc/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/lazy_load_hooks.rb:36:in execute_hook' from /home/xc/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/lazy_load_hooks.rb:45:in
block in run_load_hooks’
from /home/xc/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/lazy_load_hooks.rb:44:in each' from /home/xc/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/lazy_load_hooks.rb:44:in
run_load_hooks’
from /home/xc/.rvm/gems/ruby-2.3.1/gems/railties-4.2.7.1/lib/rails/application/finisher.rb:55:in block in <module:Finisher>' from /home/xc/.rvm/gems/ruby-2.3.1/gems/railties-4.2.7.1/lib/rails/initializable.rb:30:in
instance_exec’
from /home/xc/.rvm/gems/ruby-2.3.1/gems/railties-4.2.7.1/lib/rails/initializable.rb:30:in run' from /home/xc/.rvm/gems/ruby-2.3.1/gems/railties-4.2.7.1/lib/rails/initializable.rb:55:in
block in run_initializers’
from /usr/share/rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/tsort.rb:228:in block in tsort_each' from /usr/share/rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/tsort.rb:350:in
block (2 levels) in each_strongly_connected_component’
from /usr/share/rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/tsort.rb:431:in each_strongly_connected_component_from' from /usr/share/rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/tsort.rb:349:in
block in each_strongly_connected_component’
from /usr/share/rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/tsort.rb:347:in each' from /usr/share/rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/tsort.rb:347:in
call’
from /usr/share/rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/tsort.rb:347:in each_strongly_connected_component' from /usr/share/rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/tsort.rb:226:in
tsort_each’
from /usr/share/rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/tsort.rb:205:in tsort_each' from /home/xc/.rvm/gems/ruby-2.3.1/gems/railties-4.2.7.1/lib/rails/initializable.rb:54:in
run_initializers’
from /home/xc/.rvm/gems/ruby-2.3.1/gems/railties-4.2.7.1/lib/rails/application.rb:352:in initialize!' from /home/xc/.rvm/gems/ruby-2.3.1/gems/railties-4.2.7.1/lib/rails/railtie.rb:194:in
public_send’
from /home/xc/.rvm/gems/ruby-2.3.1/gems/railties-4.2.7.1/lib/rails/railtie.rb:194:in method_missing' from /home/xc/sharetribe/config/environment.rb:17:in
<top (required)>’
from /home/xc/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in require' from /home/xc/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in
block in require’
from /home/xc/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in load_dependency' from /home/xc/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in
require’
from /home/xc/sharetribe/config.ru:3:in block in <main>' from /home/xc/.rvm/gems/ruby-2.3.1/gems/rack-1.6.5/lib/rack/builder.rb:55:in
instance_eval’
from /home/xc/.rvm/gems/ruby-2.3.1/gems/rack-1.6.5/lib/rack/builder.rb:55:in initialize' from /home/xc/sharetribe/config.ru:in
new’
from /home/xc/sharetribe/config.ru:in <main>' from /home/xc/.rvm/gems/ruby-2.3.1/gems/rack-1.6.5/lib/rack/builder.rb:49:in
eval’
from /home/xc/.rvm/gems/ruby-2.3.1/gems/rack-1.6.5/lib/rack/builder.rb:49:in new_from_string' from /home/xc/.rvm/gems/ruby-2.3.1/gems/rack-1.6.5/lib/rack/builder.rb:40:in
parse_file’
from /home/xc/.rvm/gems/ruby-2.3.1/gems/rack-1.6.5/lib/rack/server.rb:299:in build_app_and_options_from_config' from /home/xc/.rvm/gems/ruby-2.3.1/gems/rack-1.6.5/lib/rack/server.rb:208:in
app’
from /home/xc/.rvm/gems/ruby-2.3.1/gems/railties-4.2.7.1/lib/rails/commands/server.rb:61:in app' from /home/xc/.rvm/gems/ruby-2.3.1/gems/rack-1.6.5/lib/rack/server.rb:336:in
wrapped_app’
from /home/xc/.rvm/gems/ruby-2.3.1/gems/rack-1.6.5/lib/rack/server.rb:272:in start' from /home/xc/.rvm/gems/ruby-2.3.1/gems/railties-4.2.7.1/lib/rails/commands/server.rb:80:in
start’
from /home/xc/.rvm/gems/ruby-2.3.1/gems/railties-4.2.7.1/lib/rails/commands/commands_tasks.rb:80:in block in server' from /home/xc/.rvm/gems/ruby-2.3.1/gems/railties-4.2.7.1/lib/rails/commands/commands_tasks.rb:75:in
tap’
from /home/xc/.rvm/gems/ruby-2.3.1/gems/railties-4.2.7.1/lib/rails/commands/commands_tasks.rb:75:in server' from /home/xc/.rvm/gems/ruby-2.3.1/gems/railties-4.2.7.1/lib/rails/commands/commands_tasks.rb:39:in
run_command!’
from /home/xc/.rvm/gems/ruby-2.3.1/gems/railties-4.2.7.1/lib/rails/commands.rb:17:in <top (required)>' from bin/rails:4:in
require’
from bin/rails:4:in `’