Caused by: Psych::BadAlias: Unknown alias: default - ruby-on-rails

I see to have a very similar issue to this post visit_Psych_Nodes_Alias: Unknown alias: default (Psych::BadAlias) (if not exactly the same)
rake aborted!
Psych::BadAlias: Cannot load database configuration:
Unknown alias: default
Caused by:
Psych::BadAlias: Unknown alias: default
Running:
Rails 7.0.4.1
ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [arm64-darwin22]
Which I believe has whatever patch was being talked about here? : https://bugs.ruby-lang.org/issues/17866
Are there other things I need to update too?

Related

rake aborted while creating admin user

I am using ubuntu 18.4, Ruby 2.7.3 , rails 4.2.11.1, Rake 10.0.0
While trying to run the rake admin:create, I am getting the below error message. Can any one help me on this.
/home/ubuntu/.rbenv/versions/2.7.3/lib/ruby/2.7.0/uri/version.rb:3: warning: already initialized constant URI::VERSION_CODE
/home/ubuntu/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/uri-0.10.1/lib/uri/version.rb:3: warning: previous definition of VERSION_CODE was here
/home/ubuntu/.rbenv/versions/2.7.3/lib/ruby/2.7.0/uri/version.rb:4: warning: already initialized constant URI::VERSION

URI Error running rails server

I am attempting to setup the rails server from the following github project:
https://github.com/Bernie-2016/fieldthebern-api
I know that people were recently able to pull this project and have the server up and running. However, when I attempt after bundle install when I type rake db:setup I obtain the following error:
ground_game_dev already exists
D, [2018-01-17T15:49:44.313281 #7026] DEBUG -- : ** [Raven] Event not sent due to excluded environment: development
rake aborted!
URI::InvalidURIError: bad URI(is not URI?):
I was hoping for some insight into this, I can't figure out a solution

heroku db:pull results in TypeError

When running heroku db:pull, I immediately see this error:
Failed to connect to database:
Sequel::DatabaseConnectionError -> TypeError: wrong argument type nil (expected Hash)
Even adding the --debug flag doesn't show anything extra.
heroku heroku-toolbelt/2.35.0 (x86_64-darwin10.8.0) ruby/1.9.3
taps 0.3.24
ruby 2.0.0-p0
rails 4.0.0.beta1
Is your development DB correctly setup? e.g. can you start rails console and run a query?

My rake db:migrate is failing and I can't figure out how to fix it

when I run the rake db:migrate I get this
Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
session_store.rb:3: syntax error, unexpected ':', expecting $end
...sion_store :cookie_store, key:
Now I'm running it on a fresh ubutu box.
$ rails -v = Rails 3.1.3
$ ruby -v = ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]
The file I get error on contains some comments and this line of code
Edm2::Application.config.session_store :cookie_store, key: '_edm2_session'
Notes...
I'm not calling $ sudo rake db:migrate. so the like questions up here doesn't have the answer.
what I've read indicates that the hash is wrong, and putting in the old one seems to stop the bleeding.. But I don't want a hymopheliactic application where I am stopping the bleeding all over. I'd rather know what's causing the issue and fix it at the source.
It might help the "helpers" to mention that if I call $rails new demo the file session_store has a different format.. it seems to use the old hash markings... this might be a clue to some, but it is just a pointer to this newb

trying to run rails_upgrade plugin and getting a fork() error:

I am investigating whether I should upgrade from rails 2.3.5 to rails 3, so installed the upgrade plugin and ran it:
rake rails:upgrade:check
Got an error:
** Invoke rails:upgrade:check (first_time)
** Execute rails:upgrade:check
rake aborted!
fork() function is unimplemented on this machine
I just had the same problem. You need to install the win32-open3 gem (gem install win32-open3) and then edit this file in your webapp:
vendor\plugins\rails_upgrade\lib\application_checker.rb
and change:
require 'open3'
to:
require 'win32/open3'

Resources