Skip to content

Problem with uploading secret files  #838

@mll

Description

@mll

We suddenly have a problem uploading a secret file for travis (which used to work for a few years):

travis encrypt-file secrets.tgz --add --com

produces:

System
Ruby: Ruby 3.2.2-p53
Operating System: macOS 13.3.1
RubyGems: RubyGems 3.4.10

CLI
Version: 1.11.1
Plugins: none
Auto-Completion: yes
Last Version Check: 2023-07-27 10:07:06 +0200

Session
API Endpoint: https://api.travis-ci.com/
Logged In: as "mll"
Verify SSL: yes
Enterprise: no

Endpoints
com: https://api.travis-ci.com/ (access token, current)
org: https://api.travis-ci.org/ ()

Last Exception
An error occurred running travis encrypt-file --pro:
Psych::AliasesNotEnabled: Alias parsing was not enabled. To enable it, pass aliases: true to Psych::load or Psych::safe_load.
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:432:in visit_Psych_Nodes_Alias' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/visitor.rb:30:in visit'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/visitor.rb:6:in accept' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:35:in accept'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:347:in block in revive_hash' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:345:in each'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:345:in each_slice' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:345:in revive_hash'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:169:in visit_Psych_Nodes_Mapping' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/visitor.rb:30:in visit'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/visitor.rb:6:in accept' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:35:in accept'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:340:in block in register_empty' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:340:in each'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:340:in register_empty' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:148:in visit_Psych_Nodes_Sequence'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/visitor.rb:30:in visit' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/visitor.rb:6:in accept'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:35:in accept' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:347:in block in revive_hash'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:345:in each' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:345:in each_slice'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:345:in revive_hash' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:169:in visit_Psych_Nodes_Mapping'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/visitor.rb:30:in visit' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/visitor.rb:6:in accept'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:35:in accept' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:340:in block in register_empty'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:340:in each' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:340:in register_empty'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:148:in visit_Psych_Nodes_Sequence' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/visitor.rb:30:in visit'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/visitor.rb:6:in accept' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:35:in accept'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:347:in block in revive_hash' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:345:in each'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:345:in each_slice' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:345:in revive_hash'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:169:in visit_Psych_Nodes_Mapping' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/visitor.rb:30:in visit'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/visitor.rb:6:in accept' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:35:in accept'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:347:in block in revive_hash' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:345:in each'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:345:in each_slice' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:345:in revive_hash'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:169:in visit_Psych_Nodes_Mapping' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/visitor.rb:30:in visit'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/visitor.rb:6:in accept' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:35:in accept'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:320:in visit_Psych_Nodes_Document' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/visitor.rb:30:in visit'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/visitor.rb:6:in accept' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych/visitors/to_ruby.rb:35:in accept'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych.rb:334:in safe_load' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych.rb:369:in load'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych.rb:671:in block in load_file' from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych.rb:670:in open'
from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/psych.rb:670:in load_file' from /opt/homebrew/lib/ruby/gems/3.2.0/gems/travis-1.11.1/lib/travis/cli/repo_command.rb:134:in travis_config'
from /opt/homebrew/lib/ruby/gems/3.2.0/gems/travis-1.11.1/lib/travis/cli/encrypt_file.rb:65:in store_command' from /opt/homebrew/lib/ruby/gems/3.2.0/gems/travis-1.11.1/lib/travis/cli/encrypt_file.rb:45:in run'
from /opt/homebrew/lib/ruby/gems/3.2.0/gems/travis-1.11.1/lib/travis/cli/command.rb:200:in execute' from /opt/homebrew/lib/ruby/gems/3.2.0/gems/travis-1.11.1/lib/travis/cli.rb:64:in run'
from /opt/homebrew/lib/ruby/gems/3.2.0/gems/travis-1.11.1/bin/travis:18:in <top (required)>' from /opt/homebrew/Cellar/travis/1.11.1_2/libexec/bin/travis:25:in load'
from /opt/homebrew/Cellar/travis/1.11.1_2/libexec/bin/travis:25:in `

'

For issues with the command line tool, please visit https://github.com/travis-ci/travis.rb/issues.
For Travis CI in general, go to https://github.com/travis-ci/travis-ci/issues or email support@travis-ci.com

What can I do about it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions