Help please! Error starting Rails server
Hey guys. I am new to Rails. I have installed Rails 5.2.3. I have Ruby 2.6.3. Both are confirmed to be operational when running the --version command.
I have tried to create a new rails app called "blog" with rails new blog.
I cd into the directory blog
I did bundle install
Everything works well so far but when I try to start r=the rails server with "rails server" I get an error. The server does not start and it exits. See output from terminal below.
Matrixs-MBP:blog matrix$ rails server
=> Booting Puma
=> Rails 5.2.3 application starting in development
=> Run rails server -h
for more startup options
Exiting
Traceback (most recent call last):
94: from bin/rails:3:in <main>'
load'
93: from bin/rails:3:in
92: from /Users/matrix/blog/bin/spring:15:in <top (required)>'
require'
91: from /Users/matrix/blog/bin/spring:15:in
90: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/spring-2.0.2/lib/spring/binstub.rb:31:in <top (required)>'
load'
89: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/spring-2.0.2/lib/spring/binstub.rb:31:in
88: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/spring-2.0.2/bin/spring:49:in <top (required)>'
run'
87: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/spring-2.0.2/lib/spring/client.rb:30:in
86: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/spring-2.0.2/lib/spring/client/command.rb:7:in call'
call'
85: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in
84: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in load'
'
83: from /Users/matrix/blog/bin/rails:9:in
82: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.3/lib/activesupport/dependencies.rb:291:in require'
loaddependency'
81: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.3/lib/activesupport/dependencies.rb:257:in
80: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.3/lib/activesupport/dependencies.rb:291:in block in require'
require'
79: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/coreext/kernelrequire.rb:30:in
78: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/coreext/kernelrequire.rb:21:in requirewithbootsnaplfi'
register'
77: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/loadedfeaturesindex.rb:92:in
76: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/coreext/kernelrequire.rb:22:in block in requirewithbootsnaplfi'
require'
75: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/coreext/kernelrequire.rb:22:in
74: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/railties-5.2.3/lib/rails/commands.rb:18:in <main>'
invoke'
73: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/railties-5.2.3/lib/rails/command.rb:46:in
72: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/railties-5.2.3/lib/rails/command/base.rb:65:in perform'
dispatch'
71: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/thor-0.20.3/lib/thor.rb:387:in
70: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/thor-0.20.3/lib/thor/invocation.rb:126:in invokecommand'
run'
69: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/thor-0.20.3/lib/thor/command.rb:27:in
68: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/railties-5.2.3/lib/rails/commands/server/servercommand.rb:142:in perform'
tap'
67: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/railties-5.2.3/lib/rails/commands/server/servercommand.rb:142:in
66: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/railties-5.2.3/lib/rails/commands/server/servercommand.rb:147:in block in perform'
start'
65: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/railties-5.2.3/lib/rails/commands/server/servercommand.rb:51:in
64: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/railties-5.2.3/lib/rails/commands/server/servercommand.rb:89:in logtostdout'
wrappedapp'
63: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/rack-2.0.7/lib/rack/server.rb:354:in
62: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/railties-5.2.3/lib/rails/commands/server/servercommand.rb:27:in app'
app'
61: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/rack-2.0.7/lib/rack/server.rb:219:in
60: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/rack-2.0.7/lib/rack/server.rb:319:in buildappandoptionsfromconfig'
parsefile'
59: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/rack-2.0.7/lib/rack/builder.rb:40:in
58: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/rack-2.0.7/lib/rack/builder.rb:49:in newfromstring'
eval'
57: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/rack-2.0.7/lib/rack/builder.rb:49:in
56: from config.ru:in <main>'
new'
55: from config.ru:in
54: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/rack-2.0.7/lib/rack/builder.rb:55:in initialize'
instanceeval'
53: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/rack-2.0.7/lib/rack/builder.rb:55:in
52: from config.ru:3:in block in <main>'
requirerelative'
51: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/coreext/kernelrequire.rb:48:in
50: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.3/lib/activesupport/dependencies.rb:291:in require'
loaddependency'
49: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.3/lib/activesupport/dependencies.rb:257:in
48: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.3/lib/activesupport/dependencies.rb:291:in block in require'
require'
47: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/coreext/kernelrequire.rb:30:in
46: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/coreext/kernelrequire.rb:21:in requirewithbootsnaplfi'
register'
45: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/loadedfeaturesindex.rb:92:in
44: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/coreext/kernelrequire.rb:22:in block in requirewithbootsnaplfi'
require'
43: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/coreext/kernelrequire.rb:22:in
42: from /Users/matrix/blog/config/environment.rb:5:in <main>'
initialize!'
41: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/railties-5.2.3/lib/rails/application.rb:361:in
40: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/railties-5.2.3/lib/rails/initializable.rb:60:in runinitializers'
tsorteach'
39: from /Users/matrix/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:205:in
38: from /Users/matrix/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:226:in tsorteach'
eachstronglyconnectedcomponent'
37: from /Users/matrix/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:347:in
36: from /Users/matrix/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:347:in call'
each'
35: from /Users/matrix/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:347:in
34: from /Users/matrix/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:349:in block in eachstronglyconnectedcomponent'
eachstronglyconnectedcomponentfrom'
33: from /Users/matrix/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:431:in
32: from /Users/matrix/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:350:in block (2 levels) in eachstronglyconnectedcomponent'
block in tsorteach'
31: from /Users/matrix/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:228:in
30: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/railties-5.2.3/lib/rails/initializable.rb:61:in block in runinitializers'
run'
29: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/railties-5.2.3/lib/rails/initializable.rb:32:in
28: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/railties-5.2.3/lib/rails/initializable.rb:32:in instanceexec'
block in class:Railtie'
27: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/web-console-3.7.0/lib/webconsole/railtie.rb:11:in
26: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.3/lib/activesupport/dependencies.rb:291:in require'
loaddependency'
25: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.3/lib/activesupport/dependencies.rb:257:in
24: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.3/lib/activesupport/dependencies.rb:291:in block in require'
require'
23: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/coreext/kernelrequire.rb:30:in
22: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/coreext/kernelrequire.rb:21:in requirewithbootsnaplfi'
register'
21: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/loadedfeaturesindex.rb:92:in
20: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/coreext/kernelrequire.rb:22:in block in requirewithbootsnaplfi'
require'
19: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/coreext/kernelrequire.rb:22:in
18: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bindex-0.7.0/lib/bindex.rb:1:in <main>'
requirerelative'
17: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/coreext/kernelrequire.rb:48:in
16: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.3/lib/activesupport/dependencies.rb:291:in require'
loaddependency'
15: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.3/lib/activesupport/dependencies.rb:257:in
14: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.3/lib/activesupport/dependencies.rb:291:in block in require'
require'
13: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/coreext/kernelrequire.rb:30:in
12: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/coreext/kernelrequire.rb:21:in requirewithbootsnaplfi'
register'
11: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/loadedfeaturesindex.rb:92:in
10: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/coreext/kernelrequire.rb:22:in block in requirewithbootsnaplfi'
require'
9: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/coreext/kernelrequire.rb:22:in
8: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bindex-0.7.0/lib/skiptrace.rb:7:in <main>'
require'
7: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.3/lib/activesupport/dependencies.rb:291:in
6: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.3/lib/activesupport/dependencies.rb:257:in loaddependency'
block in require'
5: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.3/lib/activesupport/dependencies.rb:291:in
4: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/coreext/kernelrequire.rb:30:in require'
requirewithbootsnaplfi'
3: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/coreext/kernelrequire.rb:21:in
2: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/loadedfeaturesindex.rb:92:in register'
block in requirewithbootsnaplfi'
1: from /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/coreext/kernelrequire.rb:22:in
/Users/matrix/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/loadpathcache/coreext/kernelrequire.rb:22:in `require': incompatible library version - /Users/matrix/.rvm/gems/ruby-2.6.3/gems/bindex-0.7.0/lib/skiptrace/cruby.bundle (LoadError)*