Skip to content

Instantly share code, notes, and snippets.

@dandehavilland
Last active September 12, 2019 08:12
Show Gist options
  • Save dandehavilland/8c28f5356a60d6caa1673be45edd4d79 to your computer and use it in GitHub Desktop.
Save dandehavilland/8c28f5356a60d6caa1673be45edd4d79 to your computer and use it in GitHub Desktop.
sjbloon install errors
rails generate model Announcement account:references title body:text show_site_wide announcement_type target published_at:datetime
/Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/route_set.rb:581:in `add_route': Invalid route name, already in use: 'root'
You may have defined two routes with the same name using the `:as` option, or you may be overriding a route already defined by a resource with the same naming. For the latter, you can restrict the routes created with `resources` as explai
ned here:
https://guides.rubyonrails.org/routing.html#restricting-the-routes-created (ArgumentError)
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/mapper.rb:1957:in `add_route'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/mapper.rb:1928:in `decomposed_match'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/mapper.rb:1892:in `block in map_match'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/mapper.rb:1886:in `each'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/mapper.rb:1886:in `map_match'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/mapper.rb:1633:in `match'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/mapper.rb:1962:in `match_root_route'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/mapper.rb:1666:in `root'
from /repos/livil/livil-api/api-test/config/routes.rb:10:in `block in <main>'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/route_set.rb:429:in `instance_exec'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/route_set.rb:429:in `eval_block'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/route_set.rb:411:in `draw'
from /repos/livil/livil-api/api-test/config/routes.rb:1:in `<main>'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/application/routes_reloader.rb:41:in `block in load_paths'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/application/routes_reloader.rb:41:in `each'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/application/routes_reloader.rb:41:in `load_paths'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/application/routes_reloader.rb:20:in `reload!'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/application/routes_reloader.rb:30:in `block in updater'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/file_update_checker.rb:83:in `execute'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/application/routes_reloader.rb:10:in `execute'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/application/finisher.rb:184:in `block in <module:Finisher>'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/initializable.rb:32:in `instance_exec'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/initializable.rb:32:in `run'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/initializable.rb:61:in `block in run_initializers'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/2.6.0/tsort.rb:347:in `each'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/2.6.0/tsort.rb:347:in `call'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/initializable.rb:60:in `run_initializers'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/application.rb:363:in `initialize!'
from /repos/livil/livil-api/api-test/config/environment.rb:5:in `<main>'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/kernel.rb:23:in `require'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `block in require'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:291:in `load_dependency'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `require'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/application.rb:106:in `preload'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/application.rb:157:in `serve'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/application.rb:145:in `block in run'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/application.rb:139:in `loop'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/application.rb:139:in `run'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/application/boot.rb:19:in `<top (required)>'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from -e:1:in `<main>'
run rm app/models/announcement.rb from "."
rm: app/models/announcement.rb: No such file or directory
........
rails generate migration add_last_announcement_read_at_to_accounts last_announcement_read_at:datetime
/Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/route_set.rb:581:in `add_route': Invalid route name, already in use: 'root'
You may have defined two routes with the same name using the `:as` option, or you may be overriding a route already defined by a resource with the same naming. For the latter, you can restrict the routes created with `resources` as explai
ned here:
https://guides.rubyonrails.org/routing.html#restricting-the-routes-created (ArgumentError)
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/mapper.rb:1957:in `add_route'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/mapper.rb:1928:in `decomposed_match'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/mapper.rb:1892:in `block in map_match'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/mapper.rb:1886:in `each'
insert app/views/layouts/dashboard.html.erb
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/mapper.rb:1886:in `map_match'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/mapper.rb:1633:in `match'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/mapper.rb:1962:in `match_root_route'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/mapper.rb:1666:in `root'
from /repos/livil/livil-api/api-test/config/routes.rb:11:in `block in <main>'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/route_set.rb:429:in `instance_exec'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/route_set.rb:429:in `eval_block'
create frontend/assets/svg/announcement.svg
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/route_set.rb:411:in `draw'
from /repos/livil/livil-api/api-test/config/routes.rb:1:in `<main>'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/application/routes_reloader.rb:41:in `block in load_paths'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/application/routes_reloader.rb:41:in `each'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/application/routes_reloader.rb:41:in `load_p insert app/models/account.rb
aths'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/application/routes_reloader.rb:20:in `reload!'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/application/routes_reloader.rb:30:in `block in updater'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/file_update_checker.rb:83:in `execute'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/application/routes_reloader.rb:10:in `execute'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/application/finisher.rb:184:in `block in <module:Finisher>'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/initializable.rb:32:in `instance_exec'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/initializable.rb:32:in `run'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/initializable.rb:61:in `block in run_initializers'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/2.6.0/tsort.rb:347:in `each'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/2.6.0/tsort.rb:347:in `call'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/initializable.rb:60:in `run_initializers'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/application.rb:363:in `initialize!'
from /repos/livil/livil-api/api-test/config/environment.rb:5:in `<main>'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/kernel.rb:23:in `require'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `block in require'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:291:in `load_dependency'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `require'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/application.rb:106:in `preload'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/application.rb:157:in `serve'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/application.rb:145:in `block in run'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/application.rb:139:in `loop'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/application.rb:139:in `run'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/application/boot.rb:19:in `<top (required)>'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from -e:1:in `<main>'
......
rails db:create
rails aborted!
ArgumentError: Invalid route name, already in use: 'root'
You may have defined two routes with the same name using the `:as` option, or you may be overriding a route already defined by a resource with the same naming. For the latter, you can restrict the routes created with `resources` as explai
ned here:
https://guides.rubyonrails.org/routing.html#restricting-the-routes-created
/repos/livil/livil-api/api-test/config/routes.rb:26:in `block in <main>'
/repos/livil/livil-api/api-test/config/routes.rb:1:in `<main>'
/repos/livil/livil-api/api-test/config/environment.rb:5:in `<main>'
/repos/livil/livil-api/api-test/bin/rails:9:in `<top (required)>'
/repos/livil/livil-api/api-test/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Tasks: TOP => db:create => db:load_config => environment
(See full trace by running task with --trace)
rails db:migrate
rails aborted!
ArgumentError: Invalid route name, already in use: 'root'
You may have defined two routes with the same name using the `:as` option, or you may be overriding a route already defined by a resource with the same naming. For the latter, you can restrict the routes created with `resources` as explai
ned here:
https://guides.rubyonrails.org/routing.html#restricting-the-routes-created
/repos/livil/livil-api/api-test/config/routes.rb:26:in `block in <main>'
/repos/livil/livil-api/api-test/config/routes.rb:1:in `<main>'
/repos/livil/livil-api/api-test/config/environment.rb:5:in `<main>'
/repos/livil/livil-api/api-test/bin/rails:9:in `<top (required)>'
/repos/livil/livil-api/api-test/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Tasks: TOP => db:migrate => db:load_config => environment
(See full trace by running task with --trace)
run git init from "."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment