majd / ipatool

Command-line tool that allows searching and downloading app packages (known as ipa files) from the iOS App Store
MIT License
5.35k stars 468 forks source link

Specified keyring backend not available #160

Closed ItzMiracleOwO closed 1 year ago

ItzMiracleOwO commented 1 year ago

What happened?

For every command:

-> ipatool auth login -e xxx@gmail.com -p Aa20080407 <- 2:26PM ERR error="failed to create appstore client: failed to create keyring: failed to open keyring: Specified keyring backend not available" success=false

Version

2.3.2

Relevant log output

2:31PM DBG error="failed to create appstore client: failed to create keyring: failed to open keyring: Specified keyring backend not available" stack=[{"func":"searchCmd.func1","line":"20","source":"search.go"},{"func":"(*Command).execute","line":"916","source":"command.go"},{"func":"(*Command).ExecuteC","line":"1044","source":"command.go"},{"func":"(*Command).Execute","line":"968","source":"command.go"},{"func":"Execute","line":"54","source":"root.go"},{"func":"main","line":"9","source":"main.go"},{"func":"main","line":"250","source":"proc.go"},{"func":"goexit","line":"1594","source":"asm_amd64.s"}]
2:31PM ERR error="failed to create appstore client: failed to create keyring: failed to open keyring: Specified keyring backend not available" success=false
itsbrex commented 1 year ago

@ItzMiracleOwO I encountered that error for some time. However, I managed to fix it by enclosing the email and password with single quotes, like this:

ipatool auth login -e 'email@gmail.com' -p 'XXXXXXXXXXXXXXXXXXXXXXX' --auth-code '123456'

If your account has 2FA setup you need to click Get Verification Code in your iPhone's Settings > Apple ID (click your name) > Password & Security > Get Verification Code and then pass that in with the --auth-code flag.

majd commented 1 year ago

@ItzMiracleOwO What OS are you running ipatool on? If it's macOS, are you connected via SSH or using a third-party terminal?

github-actions[bot] commented 1 year ago

This issue has been automatically closed because there has been no response from the original author.

kotori2 commented 1 year ago

I can reproduce this issue on Ubuntu 22.04 server (no desktop environment). I guess the application tried to use keyring.SecretServiceBackend as the backend, but since I don't have desktop environment install, it failed. I think there should be some fallback code.