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

RuntimeError - Can't store password in Keychain #230

Open
drogerschariot opened this issue Jul 14, 2022 · 0 comments
Open

RuntimeError - Can't store password in Keychain #230

drogerschariot opened this issue Jul 14, 2022 · 0 comments

Comments

@drogerschariot
Copy link

Adding keys suddenly stopped working for us in our Jenkins enviornment, throwing error RuntimeError - Can't store password in Keychain which was working before. When I either SSH or VNC into the MacOS host and run bundle exec pod keys set "KeyName" "0000-00000-00000" it works fine.

Keychain is unlocked

(Sorry I can't copy whole template do to Jenkins formatting)

Command

/Users/user/.rbenv/versions/3.1.2/bin/pod keys set KeyName 0000-00000-00000

Report

  • What did you do?
    Jenkins ran pod keys set command
  • What did you expect to happen?
    Create key
  • What happened instead?
    RuntimeError - Can't store password in Keychain

Stack

CocoaPods : 1.11.3
 Ruby : ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-darwin21]
RubyGems : 3.3.7
Host : macOS 12.3.1 (21E258)
Xcode : 13.3.1 (13E500a)
Git : git version 2.36.1
trunk - CDN - [https://cdn.cocoapods.org/](https://cdn.cocoapods.org/%1B[0m)

Plugins

cocoapods-deintegrate              : 1.0.5
cocoapods-keys                     : 2.2.1
cocoapods-plugins                  : 1.0.0
cocoapods-s3-download              : 0.0.3
cocoapods-search                   : 1.0.1
cocoapods-trunk                    : 1.6.0
cocoapods-try                      : 1.2.0
cocoapods-user-defined-build-types : 0.0.7
slather                            : 2.7.2

Error

RuntimeError - Can't store password in Keychain
/Users/ec2-user/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/osx_keychain-1.0.2/lib/osx_keychain.rb:10:in `set'
/Users/ec2-user/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/osx_keychain-1.0.2/lib/osx_keychain.rb:10:in `[]='
/Users/ec2-user/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cocoapods-keys-2.2.1/lib/keyring.rb:34:in `save'
/Users/ec2-user/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cocoapods-keys-2.2.1/lib/pod/command/keys/set.rb:46:in `run'
/Users/ec2-user/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Users/ec2-user/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in `run'
/Users/ec2-user/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cocoapods-1.11.3/bin/pod:55:in `<top (required)>'
/Users/ec2-user/.rbenv/versions/3.1.2/bin/pod:25:in `load'
/Users/ec2-user/.rbenv/versions/3.1.2/bin/pod:25:in `<top (required)>'
/Users/ec2-user/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.2.32/lib/bundler/cli/exec.rb:58:in `load'
/Users/ec2-user/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.2.32/lib/bundler/cli/exec.rb:58:in `kernel_load'
/Users/ec2-user/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.2.32/lib/bundler/cli/exec.rb:23:in `run'
/Users/ec2-user/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.2.32/lib/bundler/cli.rb:478:in `exec'
/Users/ec2-user/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.2.32/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/Users/ec2-user/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.2.32/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/Users/ec2-user/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.2.32/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
/Users/ec2-user/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.2.32/lib/bundler/cli.rb:31:in `dispatch'
/Users/ec2-user/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.2.32/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
/Users/ec2-user/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.2.32/lib/bundler/cli.rb:25:in `start'
/Users/ec2-user/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.2.32/exe/bundle:49:in `block in <top (required)>'
/Users/ec2-user/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.2.32/lib/bundler/friendly_errors.rb:103:in `with_friendly_errors'
/Users/ec2-user/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.2.32/exe/bundle:37:in `<top (required)>'
/Users/ec2-user/.rbenv/versions/3.1.2/bin/bundle:25:in `load'
/Users/ec2-user/.rbenv/versions/3.1.2/bin/bundle:25:in `<main>'
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