Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Psych::AliasesNotEnabled error when restoring locally #210

Open
DanielJackson-Oslo opened this issue Nov 21, 2024 · 0 comments
Open

Psych::AliasesNotEnabled error when restoring locally #210

DanielJackson-Oslo opened this issue Nov 21, 2024 · 0 comments

Comments

@DanielJackson-Oslo
Copy link

Help us track down and resolve parity problems faster with this template.

What command did you execute?

❯ development restore-from production

What actually happened?

It downloads the backup, but then I get this Psych::AliasesNotEnabled error:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 20.5M  100 20.5M    0     0  6662k      0  0:00:03  0:00:03 --:--:-- 6664k
/

/Users/danieljackson/.gem/ruby/3.3.6/gems/psych-5.2.0/lib/psych/visitors/to_ruby.rb:432:in `visit_Psych_Nodes_Alias': Alias parsing was not enabled. To enable it, pass `aliases: true` to `Psych::load` or `Psych::safe_load`. (Psych::AliasesNotEnabled)
        from /Users/danieljackson/.gem/ruby/3.3.6/gems/psych-5.2.0/lib/psych/visitors/visitor.rb:30:in `visit'
        from /Users/danieljackson/.gem/ruby/3.3.6/gems/psych-5.2.0/lib/psych/visitors/visitor.rb:6:in `accept'
        from /Users/danieljackson/.gem/ruby/3.3.6/gems/psych-5.2.0/lib/psych/visitors/to_ruby.rb:35:in `accept'
        from /Users/danieljackson/.gem/ruby/3.3.6/gems/psych-5.2.0/lib/psych/visitors/to_ruby.rb:347:in `block in revive_hash'
        from /Users/danieljackson/.gem/ruby/3.3.6/gems/psych-5.2.0/lib/psych/visitors/to_ruby.rb:345:in `each'
        from /Users/danieljackson/.gem/ruby/3.3.6/gems/psych-5.2.0/lib/psych/visitors/to_ruby.rb:345:in `each_slice'
        from /Users/danieljackson/.gem/ruby/3.3.6/gems/psych-5.2.0/lib/psych/visitors/to_ruby.rb:345:in `revive_hash'
        from /Users/danieljackson/.gem/ruby/3.3.6/gems/psych-5.2.0/lib/psych/visitors/to_ruby.rb:169:in `visit_Psych_Nodes_Mapping'
        from /Users/danieljackson/.gem/ruby/3.3.6/gems/psych-5.2.0/lib/psych/visitors/visitor.rb:30:in `visit'
        from /Users/danieljackson/.gem/ruby/3.3.6/gems/psych-5.2.0/lib/psych/visitors/visitor.rb:6:in `accept'
        from /Users/danieljackson/.gem/ruby/3.3.6/gems/psych-5.2.0/lib/psych/visitors/to_ruby.rb:35:in `accept'
        from /Users/danieljackson/.gem/ruby/3.3.6/gems/psych-5.2.0/lib/psych/visitors/to_ruby.rb:347:in `block in revive_hash'
        from /Users/danieljackson/.gem/ruby/3.3.6/gems/psych-5.2.0/lib/psych/visitors/to_ruby.rb:345:in `each'
        from /Users/danieljackson/.gem/ruby/3.3.6/gems/psych-5.2.0/lib/psych/visitors/to_ruby.rb:345:in `each_slice'
        from /Users/danieljackson/.gem/ruby/3.3.6/gems/psych-5.2.0/lib/psych/visitors/to_ruby.rb:345:in `revive_hash'
        from /Users/danieljackson/.gem/ruby/3.3.6/gems/psych-5.2.0/lib/psych/visitors/to_ruby.rb:169:in `visit_Psych_Nodes_Mapping'
        from /Users/danieljackson/.gem/ruby/3.3.6/gems/psych-5.2.0/lib/psych/visitors/visitor.rb:30:in `visit'
        from /Users/danieljackson/.gem/ruby/3.3.6/gems/psych-5.2.0/lib/psych/visitors/visitor.rb:6:in `accept'
        from /Users/danieljackson/.gem/ruby/3.3.6/gems/psych-5.2.0/lib/psych/visitors/to_ruby.rb:35:in `accept'
        from /Users/danieljackson/.gem/ruby/3.3.6/gems/psych-5.2.0/lib/psych/visitors/to_ruby.rb:320:in `visit_Psych_Nodes_Document'
        from /Users/danieljackson/.gem/ruby/3.3.6/gems/psych-5.2.0/lib/psych/visitors/visitor.rb:30:in `visit'
        from /Users/danieljackson/.gem/ruby/3.3.6/gems/psych-5.2.0/lib/psych/visitors/visitor.rb:6:in `accept'
        from /Users/danieljackson/.gem/ruby/3.3.6/gems/psych-5.2.0/lib/psych/visitors/to_ruby.rb:35:in `accept'
        from /Users/danieljackson/.gem/ruby/3.3.6/gems/psych-5.2.0/lib/psych.rb:334:in `safe_load'
        from /Users/danieljackson/.gem/ruby/3.3.6/gems/psych-5.2.0/lib/psych.rb:369:in `load'
        from /opt/homebrew/lib/parity/backup.rb:111:in `development_db'
        from /opt/homebrew/lib/parity/backup.rb:51:in `wipe_development_database'
        from /opt/homebrew/lib/parity/backup.rb:43:in `restore_to_development'
        from /opt/homebrew/lib/parity/backup.rb:18:in `restore'
        from /opt/homebrew/lib/parity/environment.rb:62:in `restore'
        from /opt/homebrew/lib/parity/environment.rb:24:in `run_command'
        from /opt/homebrew/lib/parity/environment.rb:13:in `run'
        from /opt/homebrew/bin/development:9:in `<main>'


Some information about your installation

  • What's your operating system? MacOS
  • What's the output of which development, which staging, which production?

❯ which development
/opt/homebrew/bin/development

❯ which staging
/opt/homebrew/bin/staging

❯ which production
/opt/homebrew/bin/production

  • If installed via Homebrew, what does brew list parity output?

❯ brew list parity
/opt/homebrew/Cellar/parity/3.3.0/bin/development
/opt/homebrew/Cellar/parity/3.3.0/bin/pr_app
/opt/homebrew/Cellar/parity/3.3.0/bin/production
/opt/homebrew/Cellar/parity/3.3.0/bin/staging
/opt/homebrew/Cellar/parity/3.3.0/lib/parity/ (5 files)
/opt/homebrew/Cellar/parity/3.3.0/lib/parity.rb
/opt/homebrew/Cellar/parity/3.3.0/sbom.spdx.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant