Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Post History

40%
+2 −4
Q&A unable to create databases in Ruby

I had installed Ruby. rvm install 2.6.6 I had Ruby which version was 3.0.0. I had removed it. Then, installed 2.6.6. When I try bundle install I got no error. When I tried following command...

0 answers  ·  posted 3y ago by deleted user  ·  edited 2y ago by Alexei‭

#8: Post edited by user avatar Alexei‭ · 2022-03-02T14:37:21Z (about 2 years ago)
added relevant tags
#7: Post edited by (deleted user) · 2021-06-19T15:04:35Z (almost 3 years ago)
  • I had installed Ruby.
  • ```bash
  • rvm install 2.6.6
  • ```
  • I had Ruby which version was 3.0.0. I had removed it. Then, installed 2.6.6. When I try
  • ```bash
  • bundle install
  • ```
  • I got no error. When I tried following commands in Terminal. Then, I got some error.
  • ```bash
  • rails db:create
  • rails db:schema:load
  • rails r db/scripts/create_tags_path_view.rb
  • rails db:migrate
  • ```
  • ```bash
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • ```
  • Currently, I have the directory `/home/istiak/.local/share/gem/ruby/3.0.0/`. Not 2.6.6. I had installed Ruby the way I wrote at first. Unfortunately, I couldn't access Ruby. That's why I had to install Ruby again.
  • ```bash
  • sudo pacman -Sy ruby
  • ```
  • I was using 2.6.6 following way.
  • ```
  • /bin/bash --login
  • rvm use 2.6.6 --default
  • ```
  • Here's [the process](https://collab.codidact.org/posts/280451)
  • When I tried
  • ```
  • bundle exec rails db:create
  • ```
  • I got some error.
  • ```
  • ** Invoke db:create (first_time)
  • ** Invoke db:load_config (first_time)
  • ** Invoke environment (first_time)
  • ** Execute environment
  • ** Execute db:load_config
  • ** Execute db:create
  • Access denied for user 'root'@'localhost'
  • Couldn't create 'qpixel_dev' database. Please check your configuration.
  • rails aborted!
  • Mysql2::Error: Access denied for user 'root'@'localhost'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/mysql2-0.5.3/lib/mysql2/client.rb:90:in `connect'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/mysql2-0.5.3/lib/mysql2/client.rb:90:in `initialize'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/mysql2_adapter.rb:22:in `new'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/mysql2_adapter.rb:22:in `mysql2_connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:830:in `new_connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:874:in `checkout_new_connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:853:in `try_to_checkout_new_connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:814:in `acquire_connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:538:in `checkout'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:382:in `connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:1033:in `retrieve_connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_handling.rb:118:in `retrieve_connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_handling.rb:90:in `connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/mysql_database_tasks.rb:6:in `connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/mysql_database_tasks.rb:14:in `create'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:119:in `create'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:139:in `block in create_current'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:316:in `block in each_current_configuration'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:313:in `each'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:313:in `each_current_configuration'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:138:in `create_current'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/railties/databases.rake:29:in `block (2 levels) in <top (required)>'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:281:in `block in execute'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:281:in `each'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:281:in `execute'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:199:in `invoke_with_call_chain'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:188:in `invoke'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:160:in `invoke_task'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:116:in `block (2 levels) in top_level'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:116:in `each'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:116:in `block in top_level'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:125:in `run_with_threads'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:110:in `top_level'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/railties-5.2.6/lib/rails/commands/rake/rake_command.rb:23:in `block in perform'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:186:in `standard_exception_handling'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/railties-5.2.6/lib/rails/commands/rake/rake_command.rb:20:in `perform'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/railties-5.2.6/lib/rails/command.rb:48:in `invoke'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/railties-5.2.6/lib/rails/commands.rb:18:in `<top (required)>'
  • /home/istiak/qpixel/bin/rails:9:in `require'
  • /home/istiak/qpixel/bin/rails:9:in `<top (required)>'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `load'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `call'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/client/command.rb:7:in `call'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/client.rb:30:in `run'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/spring-2.1.1/bin/spring:49:in `<top (required)>'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `load'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `<top (required)>'
  • /home/istiak/qpixel/bin/spring:13:in `require'
  • /home/istiak/qpixel/bin/spring:13:in `<top (required)>'
  • bin/rails:3:in `load'
  • bin/rails:3:in `<main>'
  • Tasks: TOP => db:create
  • ```
  • When I tried to Setting up the database
  • ```bash
  • mysql -u root
  • Welcome to the MariaDB monitor. Commands end with ; or \g.
  • Your MariaDB connection id is 9
  • Server version: 10.5.10-MariaDB Arch Linux
  • Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
  • Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  • MariaDB [(none)]> CREATE USER qpixel@localhost IDENTIFIED BY '123456';
  • ERROR 1396 (HY000): Operation CREATE USER failed for 'qpixel'@'localhost'
  • MariaDB [(none)]> GRANT ALL ON qpixel_dev.* TO qpixel@localhost;
  • Query OK, 0 rows affected (0.014 sec)
  • MariaDB [(none)]> GRANT ALL ON qpixel_test.* TO qpixel@localhost;
  • Query OK, 0 rows affected (0.007 sec)
  • MariaDB [(none)]> GRANT ALL ON qpixel.* TO qpixel@localhost;
  • Query OK, 0 rows affected (0.018 sec)
  • ```
  • I had installed Ruby.
  • ```bash
  • rvm install 2.6.6
  • ```
  • I had Ruby which version was 3.0.0. I had removed it. Then, installed 2.6.6. When I try
  • ```bash
  • bundle install
  • ```
  • I got no error. When I tried following commands in Terminal. Then, I got some error.
  • ```bash
  • rails db:create
  • rails db:schema:load
  • rails r db/scripts/create_tags_path_view.rb
  • rails db:migrate
  • ```
  • ```bash
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • ```
  • Currently, I have the directory `/home/istiak/.local/share/gem/ruby/3.0.0/`. Not 2.6.6. I had installed Ruby the way I wrote at first. Unfortunately, I couldn't access Ruby. That's why I had to install Ruby again.
  • ```bash
  • sudo pacman -Sy ruby
  • ```
  • I was using 2.6.6 following way.
  • ```
  • /bin/bash --login
  • rvm use 2.6.6 --default
  • ```
  • Here's [the process](https://collab.codidact.org/posts/280451)
  • When I tried
  • ```
  • bundle exec rails db:create
  • ```
  • I got some error.
  • ```
  • ** Invoke db:create (first_time)
  • ** Invoke db:load_config (first_time)
  • ** Invoke environment (first_time)
  • ** Execute environment
  • ** Execute db:load_config
  • ** Execute db:create
  • Access denied for user 'root'@'localhost'
  • Couldn't create 'qpixel_dev' database. Please check your configuration.
  • rails aborted!
  • Mysql2::Error: Access denied for user 'root'@'localhost'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/mysql2-0.5.3/lib/mysql2/client.rb:90:in `connect'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/mysql2-0.5.3/lib/mysql2/client.rb:90:in `initialize'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/mysql2_adapter.rb:22:in `new'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/mysql2_adapter.rb:22:in `mysql2_connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:830:in `new_connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:874:in `checkout_new_connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:853:in `try_to_checkout_new_connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:814:in `acquire_connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:538:in `checkout'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:382:in `connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:1033:in `retrieve_connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_handling.rb:118:in `retrieve_connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_handling.rb:90:in `connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/mysql_database_tasks.rb:6:in `connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/mysql_database_tasks.rb:14:in `create'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:119:in `create'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:139:in `block in create_current'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:316:in `block in each_current_configuration'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:313:in `each'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:313:in `each_current_configuration'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:138:in `create_current'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/railties/databases.rake:29:in `block (2 levels) in <top (required)>'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:281:in `block in execute'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:281:in `each'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:281:in `execute'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:199:in `invoke_with_call_chain'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:188:in `invoke'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:160:in `invoke_task'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:116:in `block (2 levels) in top_level'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:116:in `each'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:116:in `block in top_level'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:125:in `run_with_threads'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:110:in `top_level'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/railties-5.2.6/lib/rails/commands/rake/rake_command.rb:23:in `block in perform'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:186:in `standard_exception_handling'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/railties-5.2.6/lib/rails/commands/rake/rake_command.rb:20:in `perform'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/railties-5.2.6/lib/rails/command.rb:48:in `invoke'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/railties-5.2.6/lib/rails/commands.rb:18:in `<top (required)>'
  • /home/istiak/qpixel/bin/rails:9:in `require'
  • /home/istiak/qpixel/bin/rails:9:in `<top (required)>'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `load'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `call'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/client/command.rb:7:in `call'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/client.rb:30:in `run'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/spring-2.1.1/bin/spring:49:in `<top (required)>'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `load'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `<top (required)>'
  • /home/istiak/qpixel/bin/spring:13:in `require'
  • /home/istiak/qpixel/bin/spring:13:in `<top (required)>'
  • bin/rails:3:in `load'
  • bin/rails:3:in `<main>'
  • Tasks: TOP => db:create
  • ```
  • When I tried to Setting up the database
  • ```bash
  • mysql -u root
  • Welcome to the MariaDB monitor. Commands end with ; or \g.
  • Your MariaDB connection id is 9
  • Server version: 10.5.10-MariaDB Arch Linux
  • Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
  • Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  • MariaDB [(none)]> CREATE USER qpixel@localhost IDENTIFIED BY '123456';
  • ERROR 1396 (HY000): Operation CREATE USER failed for 'qpixel'@'localhost'
  • MariaDB [(none)]> GRANT ALL ON qpixel_dev.* TO qpixel@localhost;
  • Query OK, 0 rows affected (0.014 sec)
  • MariaDB [(none)]> GRANT ALL ON qpixel_test.* TO qpixel@localhost;
  • Query OK, 0 rows affected (0.007 sec)
  • MariaDB [(none)]> GRANT ALL ON qpixel.* TO qpixel@localhost;
  • Query OK, 0 rows affected (0.018 sec)
  • ```
  • I am actually unable to create user for qpixel. But, I could create user any other way. Why? How to create user for qpixel?
  • ```
  • [istiak-4291zfv config]# mysql -u root -p
  • Enter password:
  • Welcome to the MariaDB monitor. Commands end with ; or \g.
  • Your MariaDB connection id is 3
  • Server version: 10.5.10-MariaDB Arch Linux
  • Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
  • Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  • MariaDB [(none)]> CREATE USER Emma@localhost IDENTIFIED BY '123';
  • Query OK, 0 rows affected (0.057 sec)
  • MariaDB [(none)]> CREATE USER qpixel@localhost IDENTIFIED BY 'root';
  • ERROR 1396 (HY000): Operation CREATE USER failed for 'qpixel'@'localhost'
  • MariaDB [(none)]> CREATE USER qpixel@localhost IDENTIFIED BY '123';
  • ERROR 1396 (HY000): Operation CREATE USER failed for 'qpixel'@'localhost'
  • ```
#6: Post edited by (deleted user) · 2021-06-16T11:29:05Z (almost 3 years ago)
  • I had installed Ruby.
  • ```bash
  • rvm install 2.6.6
  • ```
  • I had Ruby which version was 3.0.0. I had removed it. Then, installed 2.6.6. When I try
  • ```bash
  • bundle install
  • ```
  • I got no error. When I tried following commands in Terminal. Then, I got some error.
  • ```bash
  • rails db:create
  • rails db:schema:load
  • rails r db/scripts/create_tags_path_view.rb
  • rails db:migrate
  • ```
  • ```bash
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • ```
  • Currently, I have the directory `/home/istiak/.local/share/gem/ruby/3.0.0/`. Not 2.6.6. I had installed Ruby the way I wrote at first. Unfortunately, I couldn't access Ruby. That's why I had to install Ruby again.
  • ```bash
  • sudo pacman -Sy ruby
  • ```
  • I was using 2.6.6 following way.
  • ```
  • /bin/bash --login
  • rvm use 2.6.6 --default
  • ```
  • Here's [the process](https://collab.codidact.org/posts/280451)
  • When I tried
  • ```
  • bundle exec rails db:create
  • ```
  • I got some error.
  • ```
  • Access denied for user 'root'@'localhost'
  • Couldn't create 'qpixel_dev' database. Please check your configuration.
  • rails aborted!
  • Mysql2::Error: Access denied for user 'root'@'localhost'
  • /home/istiak/qpixel/bin/rails:9:in `require'
  • /home/istiak/qpixel/bin/rails:9:in `<top (required)>'
  • /home/istiak/qpixel/bin/spring:13:in `require'
  • /home/istiak/qpixel/bin/spring:13:in `<top (required)>'
  • bin/rails:3:in `load'
  • bin/rails:3:in `<main>'
  • Tasks: TOP => db:create
  • (See full trace by running task with --trace)
  • ```
  • When I tried to Setting up the database
  • ```bash
  • mysql -u root
  • Welcome to the MariaDB monitor. Commands end with ; or \g.
  • Your MariaDB connection id is 9
  • Server version: 10.5.10-MariaDB Arch Linux
  • Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
  • Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  • MariaDB [(none)]> CREATE USER qpixel@localhost IDENTIFIED BY '123456';
  • ERROR 1396 (HY000): Operation CREATE USER failed for 'qpixel'@'localhost'
  • MariaDB [(none)]> GRANT ALL ON qpixel_dev.* TO qpixel@localhost;
  • Query OK, 0 rows affected (0.014 sec)
  • MariaDB [(none)]> GRANT ALL ON qpixel_test.* TO qpixel@localhost;
  • Query OK, 0 rows affected (0.007 sec)
  • MariaDB [(none)]> GRANT ALL ON qpixel.* TO qpixel@localhost;
  • Query OK, 0 rows affected (0.018 sec)
  • ```
  • I had installed Ruby.
  • ```bash
  • rvm install 2.6.6
  • ```
  • I had Ruby which version was 3.0.0. I had removed it. Then, installed 2.6.6. When I try
  • ```bash
  • bundle install
  • ```
  • I got no error. When I tried following commands in Terminal. Then, I got some error.
  • ```bash
  • rails db:create
  • rails db:schema:load
  • rails r db/scripts/create_tags_path_view.rb
  • rails db:migrate
  • ```
  • ```bash
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • ```
  • Currently, I have the directory `/home/istiak/.local/share/gem/ruby/3.0.0/`. Not 2.6.6. I had installed Ruby the way I wrote at first. Unfortunately, I couldn't access Ruby. That's why I had to install Ruby again.
  • ```bash
  • sudo pacman -Sy ruby
  • ```
  • I was using 2.6.6 following way.
  • ```
  • /bin/bash --login
  • rvm use 2.6.6 --default
  • ```
  • Here's [the process](https://collab.codidact.org/posts/280451)
  • When I tried
  • ```
  • bundle exec rails db:create
  • ```
  • I got some error.
  • ```
  • ** Invoke db:create (first_time)
  • ** Invoke db:load_config (first_time)
  • ** Invoke environment (first_time)
  • ** Execute environment
  • ** Execute db:load_config
  • ** Execute db:create
  • Access denied for user 'root'@'localhost'
  • Couldn't create 'qpixel_dev' database. Please check your configuration.
  • rails aborted!
  • Mysql2::Error: Access denied for user 'root'@'localhost'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/mysql2-0.5.3/lib/mysql2/client.rb:90:in `connect'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/mysql2-0.5.3/lib/mysql2/client.rb:90:in `initialize'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/mysql2_adapter.rb:22:in `new'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/mysql2_adapter.rb:22:in `mysql2_connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:830:in `new_connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:874:in `checkout_new_connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:853:in `try_to_checkout_new_connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:814:in `acquire_connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:538:in `checkout'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:382:in `connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:1033:in `retrieve_connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_handling.rb:118:in `retrieve_connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_handling.rb:90:in `connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/mysql_database_tasks.rb:6:in `connection'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/mysql_database_tasks.rb:14:in `create'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:119:in `create'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:139:in `block in create_current'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:316:in `block in each_current_configuration'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:313:in `each'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:313:in `each_current_configuration'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:138:in `create_current'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.6/lib/active_record/railties/databases.rake:29:in `block (2 levels) in <top (required)>'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:281:in `block in execute'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:281:in `each'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:281:in `execute'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:199:in `invoke_with_call_chain'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:188:in `invoke'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:160:in `invoke_task'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:116:in `block (2 levels) in top_level'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:116:in `each'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:116:in `block in top_level'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:125:in `run_with_threads'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:110:in `top_level'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/railties-5.2.6/lib/rails/commands/rake/rake_command.rb:23:in `block in perform'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:186:in `standard_exception_handling'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/railties-5.2.6/lib/rails/commands/rake/rake_command.rb:20:in `perform'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/railties-5.2.6/lib/rails/command.rb:48:in `invoke'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/railties-5.2.6/lib/rails/commands.rb:18:in `<top (required)>'
  • /home/istiak/qpixel/bin/rails:9:in `require'
  • /home/istiak/qpixel/bin/rails:9:in `<top (required)>'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `load'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `call'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/client/command.rb:7:in `call'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/client.rb:30:in `run'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/spring-2.1.1/bin/spring:49:in `<top (required)>'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `load'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `<top (required)>'
  • /home/istiak/qpixel/bin/spring:13:in `require'
  • /home/istiak/qpixel/bin/spring:13:in `<top (required)>'
  • bin/rails:3:in `load'
  • bin/rails:3:in `<main>'
  • Tasks: TOP => db:create
  • ```
  • When I tried to Setting up the database
  • ```bash
  • mysql -u root
  • Welcome to the MariaDB monitor. Commands end with ; or \g.
  • Your MariaDB connection id is 9
  • Server version: 10.5.10-MariaDB Arch Linux
  • Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
  • Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  • MariaDB [(none)]> CREATE USER qpixel@localhost IDENTIFIED BY '123456';
  • ERROR 1396 (HY000): Operation CREATE USER failed for 'qpixel'@'localhost'
  • MariaDB [(none)]> GRANT ALL ON qpixel_dev.* TO qpixel@localhost;
  • Query OK, 0 rows affected (0.014 sec)
  • MariaDB [(none)]> GRANT ALL ON qpixel_test.* TO qpixel@localhost;
  • Query OK, 0 rows affected (0.007 sec)
  • MariaDB [(none)]> GRANT ALL ON qpixel.* TO qpixel@localhost;
  • Query OK, 0 rows affected (0.018 sec)
  • ```
#5: Post edited by (deleted user) · 2021-06-16T11:26:19Z (almost 3 years ago)
  • I had installed Ruby.
  • ```bash
  • rvm install 2.6.6
  • ```
  • I had Ruby which version was 3.0.0. I had removed it. Then, installed 2.6.6. When I try
  • ```bash
  • bundle install
  • ```
  • I got no error. When I tried following commands in Terminal. Then, I got some error.
  • ```bash
  • rails db:create
  • rails db:schema:load
  • rails r db/scripts/create_tags_path_view.rb
  • rails db:migrate
  • ```
  • ```bash
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • ```
  • Currently, I have the directory `/home/istiak/.local/share/gem/ruby/3.0.0/`. Not 2.6.6. I had installed Ruby the way I wrote at first. Unfortunately, I couldn't access Ruby. That's why I had to install Ruby again.
  • ```bash
  • sudo pacman -Sy ruby
  • ```
  • I was using 2.6.6 following way.
  • ```
  • /bin/bash --login
  • rvm use 2.6.6 --default
  • ```
  • Here's [the process](https://collab.codidact.org/posts/280451)
  • When I tried
  • ```
  • bundle exec rails db:create
  • ```
  • I got some error.
  • ```
  • Access denied for user 'root'@'localhost'
  • Couldn't create 'qpixel_dev' database. Please check your configuration.
  • rails aborted!
  • Mysql2::Error: Access denied for user 'root'@'localhost'
  • /home/istiak/qpixel/bin/rails:9:in `require'
  • /home/istiak/qpixel/bin/rails:9:in `<top (required)>'
  • /home/istiak/qpixel/bin/spring:13:in `require'
  • /home/istiak/qpixel/bin/spring:13:in `<top (required)>'
  • bin/rails:3:in `load'
  • bin/rails:3:in `<main>'
  • Tasks: TOP => db:create
  • (See full trace by running task with --trace)
  • ```
  • I had installed Ruby.
  • ```bash
  • rvm install 2.6.6
  • ```
  • I had Ruby which version was 3.0.0. I had removed it. Then, installed 2.6.6. When I try
  • ```bash
  • bundle install
  • ```
  • I got no error. When I tried following commands in Terminal. Then, I got some error.
  • ```bash
  • rails db:create
  • rails db:schema:load
  • rails r db/scripts/create_tags_path_view.rb
  • rails db:migrate
  • ```
  • ```bash
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • ```
  • Currently, I have the directory `/home/istiak/.local/share/gem/ruby/3.0.0/`. Not 2.6.6. I had installed Ruby the way I wrote at first. Unfortunately, I couldn't access Ruby. That's why I had to install Ruby again.
  • ```bash
  • sudo pacman -Sy ruby
  • ```
  • I was using 2.6.6 following way.
  • ```
  • /bin/bash --login
  • rvm use 2.6.6 --default
  • ```
  • Here's [the process](https://collab.codidact.org/posts/280451)
  • When I tried
  • ```
  • bundle exec rails db:create
  • ```
  • I got some error.
  • ```
  • Access denied for user 'root'@'localhost'
  • Couldn't create 'qpixel_dev' database. Please check your configuration.
  • rails aborted!
  • Mysql2::Error: Access denied for user 'root'@'localhost'
  • /home/istiak/qpixel/bin/rails:9:in `require'
  • /home/istiak/qpixel/bin/rails:9:in `<top (required)>'
  • /home/istiak/qpixel/bin/spring:13:in `require'
  • /home/istiak/qpixel/bin/spring:13:in `<top (required)>'
  • bin/rails:3:in `load'
  • bin/rails:3:in `<main>'
  • Tasks: TOP => db:create
  • (See full trace by running task with --trace)
  • ```
  • When I tried to Setting up the database
  • ```bash
  • mysql -u root
  • Welcome to the MariaDB monitor. Commands end with ; or \g.
  • Your MariaDB connection id is 9
  • Server version: 10.5.10-MariaDB Arch Linux
  • Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
  • Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  • MariaDB [(none)]> CREATE USER qpixel@localhost IDENTIFIED BY '123456';
  • ERROR 1396 (HY000): Operation CREATE USER failed for 'qpixel'@'localhost'
  • MariaDB [(none)]> GRANT ALL ON qpixel_dev.* TO qpixel@localhost;
  • Query OK, 0 rows affected (0.014 sec)
  • MariaDB [(none)]> GRANT ALL ON qpixel_test.* TO qpixel@localhost;
  • Query OK, 0 rows affected (0.007 sec)
  • MariaDB [(none)]> GRANT ALL ON qpixel.* TO qpixel@localhost;
  • Query OK, 0 rows affected (0.018 sec)
  • ```
#4: Post edited by (deleted user) · 2021-06-16T11:22:37Z (almost 3 years ago)
  • I had installed Ruby.
  • ```bash
  • rvm install 2.6.6
  • ```
  • I had Ruby which version was 3.0.0. I had removed it. Then, installed 2.6.6. When I try
  • ```bash
  • bundle install
  • ```
  • I got no error. When I tried following commands in Terminal. Then, I got some error.
  • ```bash
  • rails db:create
  • rails db:schema:load
  • rails r db/scripts/create_tags_path_view.rb
  • rails db:migrate
  • ```
  • ```bash
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • ```
  • Currently, I have the directory `/home/istiak/.local/share/gem/ruby/3.0.0/`. Not 2.6.6. I had installed Ruby the way I wrote at first. Unfortunately, I couldn't access Ruby. That's why I had to install Ruby again.
  • ```bash
  • sudo pacman -Sy ruby
  • ```
  • I was using 2.6.6 following way.
  • ```
  • /bin/bash --login
  • rvm use 2.6.6 --default
  • ```
  • Here's [the process](https://collab.codidact.org/posts/280451)
  • When I tried
  • ```
  • bundle exec rails db:create
  • ```
  • I got some error.
  • ```
  • rails aborted!
  • Cannot load database configuration:
  • Could not load database configuration. No such file - ["config/database.yml"]
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/configuration.rb:185:in `database_configuration'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.6/lib/active_record/railtie.rb:133:in `block (2 levels) in <class:Railtie>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:71:in `instance_eval'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:71:in `block in execute_hook'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:62:in `with_execution_control'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:67:in `execute_hook'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:51:in `each'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.6/lib/active_record/base.rb:328:in `<module:ActiveRecord>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.6/lib/active_record/base.rb:27:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `require'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `block in require'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:255:in `block in load_dependency'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:661:in `new_constants_in'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:255:in `load_dependency'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `require'
  • /home/istiak/qpixel/app/models/application_record.rb:1:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:476:in `load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:476:in `block in load_file'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:661:in `new_constants_in'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:475:in `load_file'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:373:in `block in require_or_load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:37:in `block in load_interlock'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies/interlock.rb:14:in `block in loading'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies/interlock.rb:13:in `loading'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:37:in `load_interlock'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:356:in `require_or_load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:510:in `load_missing_constant'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:195:in `const_missing'
  • /home/istiak/qpixel/app/models/user.rb:3:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:476:in `load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:476:in `block in load_file'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:661:in `new_constants_in'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:475:in `load_file'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:373:in `block in require_or_load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:37:in `block in load_interlock'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies/interlock.rb:14:in `block in loading'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies/interlock.rb:13:in `loading'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:37:in `load_interlock'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:356:in `require_or_load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:510:in `load_missing_constant'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:195:in `const_missing'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/inflector/methods.rb:283:in `const_get'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/inflector/methods.rb:283:in `block in constantize'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/inflector/methods.rb:281:in `each'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/inflector/methods.rb:281:in `inject'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/inflector/methods.rb:281:in `constantize'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:582:in `get'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:613:in `constantize'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise.rb:316:in `get'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/mapping.rb:83:in `to'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/mapping.rb:78:in `modules'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/mapping.rb:95:in `routes'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/mapping.rb:162:in `default_used_route'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/mapping.rb:72:in `initialize'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise.rb:346:in `new'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise.rb:346:in `add_mapping'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/rails/routes.rb:243:in `block in devise_for'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/rails/routes.rb:242:in `each'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/rails/routes.rb:242:in `devise_for'
  • /home/istiak/qpixel/config/routes.rb:2:in `block in <top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/actionpack-5.2.6/lib/action_dispatch/routing/route_set.rb:432:in `instance_exec'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/actionpack-5.2.6/lib/action_dispatch/routing/route_set.rb:432:in `eval_block'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/actionpack-5.2.6/lib/action_dispatch/routing/route_set.rb:414:in `draw'
  • /home/istiak/qpixel/config/routes.rb:1:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:285:in `load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:285:in `block in load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:257:in `load_dependency'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:285:in `load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/routes_reloader.rb:41:in `block in load_paths'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/routes_reloader.rb:41:in `each'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/routes_reloader.rb:41:in `load_paths'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/routes_reloader.rb:20:in `reload!'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/routes_reloader.rb:30:in `block in updater'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/file_update_checker.rb:83:in `execute'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/routes_reloader.rb:10:in `execute'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/finisher.rb:130:in `block in <module:Finisher>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/initializable.rb:32:in `instance_exec'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/initializable.rb:32:in `run'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/initializable.rb:61:in `block in run_initializers'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/initializable.rb:60:in `run_initializers'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application.rb:361:in `initialize!'
  • /home/istiak/qpixel/config/environment.rb:5:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `require'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `block in require'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:257:in `load_dependency'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `require'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application.rb:337:in `require_environment!'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application.rb:520:in `block in run_tasks_blocks'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/commands/rake/rake_command.rb:23:in `block in perform'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/commands/rake/rake_command.rb:20:in `perform'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/command.rb:48:in `invoke'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/commands.rb:18:in `<top (required)>'
  • /home/istiak/qpixel/bin/rails:9:in `require'
  • /home/istiak/qpixel/bin/rails:9:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `call'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/lib/spring/client/command.rb:7:in `call'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/lib/spring/client.rb:30:in `run'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/bin/spring:49:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `<top (required)>'
  • /home/istiak/qpixel/bin/spring:13:in `require'
  • /home/istiak/qpixel/bin/spring:13:in `<top (required)>'
  • bin/rails:3:in `load'
  • bin/rails:3:in `<main>'
  • Caused by:
  • Could not load database configuration. No such file - ["config/database.yml"]
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/configuration.rb:185:in `database_configuration'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.6/lib/active_record/railtie.rb:133:in `block (2 levels) in <class:Railtie>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:71:in `instance_eval'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:71:in `block in execute_hook'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:62:in `with_execution_control'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:67:in `execute_hook'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:51:in `each'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.6/lib/active_record/base.rb:328:in `<module:ActiveRecord>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.6/lib/active_record/base.rb:27:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `require'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `block in require'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:255:in `block in load_dependency'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:661:in `new_constants_in'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:255:in `load_dependency'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `require'
  • /home/istiak/qpixel/app/models/application_record.rb:1:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:476:in `load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:476:in `block in load_file'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:661:in `new_constants_in'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:475:in `load_file'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:373:in `block in require_or_load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:37:in `block in load_interlock'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies/interlock.rb:14:in `block in loading'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies/interlock.rb:13:in `loading'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:37:in `load_interlock'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:356:in `require_or_load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:510:in `load_missing_constant'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:195:in `const_missing'
  • /home/istiak/qpixel/app/models/user.rb:3:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:476:in `load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:476:in `block in load_file'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:661:in `new_constants_in'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:475:in `load_file'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:373:in `block in require_or_load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:37:in `block in load_interlock'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies/interlock.rb:14:in `block in loading'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies/interlock.rb:13:in `loading'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:37:in `load_interlock'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:356:in `require_or_load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:510:in `load_missing_constant'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:195:in `const_missing'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/inflector/methods.rb:283:in `const_get'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/inflector/methods.rb:283:in `block in constantize'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/inflector/methods.rb:281:in `each'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/inflector/methods.rb:281:in `inject'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/inflector/methods.rb:281:in `constantize'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:582:in `get'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:613:in `constantize'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise.rb:316:in `get'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/mapping.rb:83:in `to'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/mapping.rb:78:in `modules'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/mapping.rb:95:in `routes'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/mapping.rb:162:in `default_used_route'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/mapping.rb:72:in `initialize'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise.rb:346:in `new'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise.rb:346:in `add_mapping'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/rails/routes.rb:243:in `block in devise_for'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/rails/routes.rb:242:in `each'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/rails/routes.rb:242:in `devise_for'
  • /home/istiak/qpixel/config/routes.rb:2:in `block in <top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/actionpack-5.2.6/lib/action_dispatch/routing/route_set.rb:432:in `instance_exec'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/actionpack-5.2.6/lib/action_dispatch/routing/route_set.rb:432:in `eval_block'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/actionpack-5.2.6/lib/action_dispatch/routing/route_set.rb:414:in `draw'
  • /home/istiak/qpixel/config/routes.rb:1:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:285:in `load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:285:in `block in load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:257:in `load_dependency'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:285:in `load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/routes_reloader.rb:41:in `block in load_paths'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/routes_reloader.rb:41:in `each'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/routes_reloader.rb:41:in `load_paths'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/routes_reloader.rb:20:in `reload!'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/routes_reloader.rb:30:in `block in updater'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/file_update_checker.rb:83:in `execute'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/routes_reloader.rb:10:in `execute'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/finisher.rb:130:in `block in <module:Finisher>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/initializable.rb:32:in `instance_exec'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/initializable.rb:32:in `run'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/initializable.rb:61:in `block in run_initializers'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/initializable.rb:60:in `run_initializers'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application.rb:361:in `initialize!'
  • /home/istiak/qpixel/config/environment.rb:5:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `require'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `block in require'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:257:in `load_dependency'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `require'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application.rb:337:in `require_environment!'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application.rb:520:in `block in run_tasks_blocks'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/commands/rake/rake_command.rb:23:in `block in perform'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/commands/rake/rake_command.rb:20:in `perform'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/command.rb:48:in `invoke'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/commands.rb:18:in `<top (required)>'
  • /home/istiak/qpixel/bin/rails:9:in `require'
  • /home/istiak/qpixel/bin/rails:9:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `call'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/lib/spring/client/command.rb:7:in `call'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/lib/spring/client.rb:30:in `run'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/bin/spring:49:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `<top (required)>'
  • /home/istiak/qpixel/bin/spring:13:in `require'
  • /home/istiak/qpixel/bin/spring:13: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)
  • ```
  • I had installed Ruby.
  • ```bash
  • rvm install 2.6.6
  • ```
  • I had Ruby which version was 3.0.0. I had removed it. Then, installed 2.6.6. When I try
  • ```bash
  • bundle install
  • ```
  • I got no error. When I tried following commands in Terminal. Then, I got some error.
  • ```bash
  • rails db:create
  • rails db:schema:load
  • rails r db/scripts/create_tags_path_view.rb
  • rails db:migrate
  • ```
  • ```bash
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • ```
  • Currently, I have the directory `/home/istiak/.local/share/gem/ruby/3.0.0/`. Not 2.6.6. I had installed Ruby the way I wrote at first. Unfortunately, I couldn't access Ruby. That's why I had to install Ruby again.
  • ```bash
  • sudo pacman -Sy ruby
  • ```
  • I was using 2.6.6 following way.
  • ```
  • /bin/bash --login
  • rvm use 2.6.6 --default
  • ```
  • Here's [the process](https://collab.codidact.org/posts/280451)
  • When I tried
  • ```
  • bundle exec rails db:create
  • ```
  • I got some error.
  • ```
  • Access denied for user 'root'@'localhost'
  • Couldn't create 'qpixel_dev' database. Please check your configuration.
  • rails aborted!
  • Mysql2::Error: Access denied for user 'root'@'localhost'
  • /home/istiak/qpixel/bin/rails:9:in `require'
  • /home/istiak/qpixel/bin/rails:9:in `<top (required)>'
  • /home/istiak/qpixel/bin/spring:13:in `require'
  • /home/istiak/qpixel/bin/spring:13:in `<top (required)>'
  • bin/rails:3:in `load'
  • bin/rails:3:in `<main>'
  • Tasks: TOP => db:create
  • (See full trace by running task with --trace)
  • ```
#3: Post edited by (deleted user) · 2021-06-16T08:43:22Z (almost 3 years ago)
#2: Post edited by (deleted user) · 2021-06-16T07:17:14Z (almost 3 years ago)
  • I had installed Ruby.
  • ```bash
  • rvm install 2.6.6
  • ```
  • I had Ruby which version was 3.0.0. I had removed it. Then, installed 2.6.6. When I try
  • ```bash
  • bundle install
  • ```
  • I got no error. When I tried following commands in Terminal. Then, I got some error.
  • ```bash
  • rails db:create
  • rails db:schema:load
  • rails r db/scripts/create_tags_path_view.rb
  • rails db:migrate
  • ```
  • ```bash
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • ```
  • Currently, I have the directory `/home/istiak/.local/share/gem/ruby/3.0.0/`. Not 2.6.6. I had installed Ruby the way I wrote at first. Unfortunately, I couldn't access Ruby. That's why I had to install Ruby again.
  • ```bash
  • sudo pacman -Sy ruby
  • ```
  • I was using 2.6.6 following way.
  • ```
  • /bin/bash --login
  • rvm use 2.6.6 --default
  • ```
  • Here's [the process](https://collab.codidact.org/posts/280451)
  • I had installed Ruby.
  • ```bash
  • rvm install 2.6.6
  • ```
  • I had Ruby which version was 3.0.0. I had removed it. Then, installed 2.6.6. When I try
  • ```bash
  • bundle install
  • ```
  • I got no error. When I tried following commands in Terminal. Then, I got some error.
  • ```bash
  • rails db:create
  • rails db:schema:load
  • rails r db/scripts/create_tags_path_view.rb
  • rails db:migrate
  • ```
  • ```bash
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • Traceback (most recent call last):
  • 4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
  • 3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
  • 2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
  • 1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
  • /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
  • ```
  • Currently, I have the directory `/home/istiak/.local/share/gem/ruby/3.0.0/`. Not 2.6.6. I had installed Ruby the way I wrote at first. Unfortunately, I couldn't access Ruby. That's why I had to install Ruby again.
  • ```bash
  • sudo pacman -Sy ruby
  • ```
  • I was using 2.6.6 following way.
  • ```
  • /bin/bash --login
  • rvm use 2.6.6 --default
  • ```
  • Here's [the process](https://collab.codidact.org/posts/280451)
  • When I tried
  • ```
  • bundle exec rails db:create
  • ```
  • I got some error.
  • ```
  • rails aborted!
  • Cannot load database configuration:
  • Could not load database configuration. No such file - ["config/database.yml"]
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/configuration.rb:185:in `database_configuration'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.6/lib/active_record/railtie.rb:133:in `block (2 levels) in <class:Railtie>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:71:in `instance_eval'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:71:in `block in execute_hook'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:62:in `with_execution_control'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:67:in `execute_hook'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:51:in `each'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.6/lib/active_record/base.rb:328:in `<module:ActiveRecord>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.6/lib/active_record/base.rb:27:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `require'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `block in require'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:255:in `block in load_dependency'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:661:in `new_constants_in'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:255:in `load_dependency'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `require'
  • /home/istiak/qpixel/app/models/application_record.rb:1:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:476:in `load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:476:in `block in load_file'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:661:in `new_constants_in'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:475:in `load_file'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:373:in `block in require_or_load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:37:in `block in load_interlock'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies/interlock.rb:14:in `block in loading'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies/interlock.rb:13:in `loading'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:37:in `load_interlock'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:356:in `require_or_load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:510:in `load_missing_constant'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:195:in `const_missing'
  • /home/istiak/qpixel/app/models/user.rb:3:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:476:in `load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:476:in `block in load_file'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:661:in `new_constants_in'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:475:in `load_file'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:373:in `block in require_or_load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:37:in `block in load_interlock'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies/interlock.rb:14:in `block in loading'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies/interlock.rb:13:in `loading'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:37:in `load_interlock'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:356:in `require_or_load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:510:in `load_missing_constant'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:195:in `const_missing'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/inflector/methods.rb:283:in `const_get'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/inflector/methods.rb:283:in `block in constantize'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/inflector/methods.rb:281:in `each'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/inflector/methods.rb:281:in `inject'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/inflector/methods.rb:281:in `constantize'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:582:in `get'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:613:in `constantize'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise.rb:316:in `get'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/mapping.rb:83:in `to'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/mapping.rb:78:in `modules'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/mapping.rb:95:in `routes'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/mapping.rb:162:in `default_used_route'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/mapping.rb:72:in `initialize'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise.rb:346:in `new'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise.rb:346:in `add_mapping'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/rails/routes.rb:243:in `block in devise_for'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/rails/routes.rb:242:in `each'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/rails/routes.rb:242:in `devise_for'
  • /home/istiak/qpixel/config/routes.rb:2:in `block in <top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/actionpack-5.2.6/lib/action_dispatch/routing/route_set.rb:432:in `instance_exec'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/actionpack-5.2.6/lib/action_dispatch/routing/route_set.rb:432:in `eval_block'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/actionpack-5.2.6/lib/action_dispatch/routing/route_set.rb:414:in `draw'
  • /home/istiak/qpixel/config/routes.rb:1:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:285:in `load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:285:in `block in load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:257:in `load_dependency'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:285:in `load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/routes_reloader.rb:41:in `block in load_paths'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/routes_reloader.rb:41:in `each'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/routes_reloader.rb:41:in `load_paths'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/routes_reloader.rb:20:in `reload!'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/routes_reloader.rb:30:in `block in updater'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/file_update_checker.rb:83:in `execute'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/routes_reloader.rb:10:in `execute'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/finisher.rb:130:in `block in <module:Finisher>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/initializable.rb:32:in `instance_exec'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/initializable.rb:32:in `run'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/initializable.rb:61:in `block in run_initializers'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/initializable.rb:60:in `run_initializers'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application.rb:361:in `initialize!'
  • /home/istiak/qpixel/config/environment.rb:5:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `require'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `block in require'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:257:in `load_dependency'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `require'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application.rb:337:in `require_environment!'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application.rb:520:in `block in run_tasks_blocks'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/commands/rake/rake_command.rb:23:in `block in perform'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/commands/rake/rake_command.rb:20:in `perform'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/command.rb:48:in `invoke'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/commands.rb:18:in `<top (required)>'
  • /home/istiak/qpixel/bin/rails:9:in `require'
  • /home/istiak/qpixel/bin/rails:9:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `call'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/lib/spring/client/command.rb:7:in `call'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/lib/spring/client.rb:30:in `run'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/bin/spring:49:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `<top (required)>'
  • /home/istiak/qpixel/bin/spring:13:in `require'
  • /home/istiak/qpixel/bin/spring:13:in `<top (required)>'
  • bin/rails:3:in `load'
  • bin/rails:3:in `<main>'
  • Caused by:
  • Could not load database configuration. No such file - ["config/database.yml"]
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/configuration.rb:185:in `database_configuration'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.6/lib/active_record/railtie.rb:133:in `block (2 levels) in <class:Railtie>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:71:in `instance_eval'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:71:in `block in execute_hook'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:62:in `with_execution_control'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:67:in `execute_hook'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:51:in `each'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.6/lib/active_record/base.rb:328:in `<module:ActiveRecord>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.6/lib/active_record/base.rb:27:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `require'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `block in require'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:255:in `block in load_dependency'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:661:in `new_constants_in'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:255:in `load_dependency'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `require'
  • /home/istiak/qpixel/app/models/application_record.rb:1:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:476:in `load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:476:in `block in load_file'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:661:in `new_constants_in'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:475:in `load_file'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:373:in `block in require_or_load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:37:in `block in load_interlock'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies/interlock.rb:14:in `block in loading'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies/interlock.rb:13:in `loading'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:37:in `load_interlock'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:356:in `require_or_load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:510:in `load_missing_constant'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:195:in `const_missing'
  • /home/istiak/qpixel/app/models/user.rb:3:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:476:in `load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:476:in `block in load_file'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:661:in `new_constants_in'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:475:in `load_file'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:373:in `block in require_or_load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:37:in `block in load_interlock'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies/interlock.rb:14:in `block in loading'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies/interlock.rb:13:in `loading'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:37:in `load_interlock'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:356:in `require_or_load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:510:in `load_missing_constant'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:195:in `const_missing'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/inflector/methods.rb:283:in `const_get'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/inflector/methods.rb:283:in `block in constantize'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/inflector/methods.rb:281:in `each'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/inflector/methods.rb:281:in `inject'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/inflector/methods.rb:281:in `constantize'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:582:in `get'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:613:in `constantize'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise.rb:316:in `get'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/mapping.rb:83:in `to'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/mapping.rb:78:in `modules'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/mapping.rb:95:in `routes'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/mapping.rb:162:in `default_used_route'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/mapping.rb:72:in `initialize'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise.rb:346:in `new'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise.rb:346:in `add_mapping'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/rails/routes.rb:243:in `block in devise_for'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/rails/routes.rb:242:in `each'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/devise-4.8.0/lib/devise/rails/routes.rb:242:in `devise_for'
  • /home/istiak/qpixel/config/routes.rb:2:in `block in <top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/actionpack-5.2.6/lib/action_dispatch/routing/route_set.rb:432:in `instance_exec'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/actionpack-5.2.6/lib/action_dispatch/routing/route_set.rb:432:in `eval_block'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/actionpack-5.2.6/lib/action_dispatch/routing/route_set.rb:414:in `draw'
  • /home/istiak/qpixel/config/routes.rb:1:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:285:in `load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:285:in `block in load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:257:in `load_dependency'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:285:in `load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/routes_reloader.rb:41:in `block in load_paths'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/routes_reloader.rb:41:in `each'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/routes_reloader.rb:41:in `load_paths'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/routes_reloader.rb:20:in `reload!'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/routes_reloader.rb:30:in `block in updater'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/file_update_checker.rb:83:in `execute'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/routes_reloader.rb:10:in `execute'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application/finisher.rb:130:in `block in <module:Finisher>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/initializable.rb:32:in `instance_exec'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/initializable.rb:32:in `run'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/initializable.rb:61:in `block in run_initializers'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/initializable.rb:60:in `run_initializers'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application.rb:361:in `initialize!'
  • /home/istiak/qpixel/config/environment.rb:5:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `require'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `block in require'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:257:in `load_dependency'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `require'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application.rb:337:in `require_environment!'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/application.rb:520:in `block in run_tasks_blocks'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/commands/rake/rake_command.rb:23:in `block in perform'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/commands/rake/rake_command.rb:20:in `perform'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/command.rb:48:in `invoke'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/railties-5.2.6/lib/rails/commands.rb:18:in `<top (required)>'
  • /home/istiak/qpixel/bin/rails:9:in `require'
  • /home/istiak/qpixel/bin/rails:9:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `call'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/lib/spring/client/command.rb:7:in `call'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/lib/spring/client.rb:30:in `run'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/bin/spring:49:in `<top (required)>'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `load'
  • /home/istiak/.rvm/gems/ruby-2.6.6/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `<top (required)>'
  • /home/istiak/qpixel/bin/spring:13:in `require'
  • /home/istiak/qpixel/bin/spring:13: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)
  • ```
#1: Initial revision by (deleted user) · 2021-06-15T16:22:24Z (almost 3 years ago)
unable to create databases in Ruby
I had installed Ruby. 
```bash
rvm install 2.6.6
```
I had Ruby which version was 3.0.0. I had removed it. Then, installed 2.6.6. When I try 
```bash
bundle install
```

I got no error. When I tried following commands in Terminal. Then, I got some error.
```bash
rails db:create
rails db:schema:load
rails r db/scripts/create_tags_path_view.rb
rails db:migrate
```
```bash
Traceback (most recent call last):
	4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
	3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
	2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
	1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
/home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
Traceback (most recent call last):
	4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
	3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
	2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
	1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
/home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
Traceback (most recent call last):
	4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
	3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
	2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
	1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
/home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
Traceback (most recent call last):
	4: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
	3: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
	2: from /home/istiak/.rvm/gems/ruby-2.6.6/bin/rails:23:in `<main>'
	1: from /home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
/home/istiak/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
```

Currently, I have the directory `/home/istiak/.local/share/gem/ruby/3.0.0/`. Not 2.6.6. I had installed Ruby the way I wrote at first. Unfortunately, I couldn't access Ruby. That's why I had to install Ruby again.
```bash
sudo pacman -Sy ruby
```
I was using 2.6.6 following way.
```
/bin/bash --login
rvm use 2.6.6 --default
```

Here's [the process](https://collab.codidact.org/posts/280451)