Comments (5)
Confirmed, binary built from the current v2
branch works fine and recreates the cache file if it doesn't exist. Panic doesn't happen.
from aws-sso-cli.
pretty sure this bug is fixed in the v2
branch already... care to try? You can build yourself or here's a preview build of beta2
aws-sso-2.0.0-beta2-linux-amd64.gz
from aws-sso-cli.
Unfortunately, the issue persists even with the build aws-sso-2.0.0-beta2-linux-amd64.gz you provided:
/tmp/aws-sso-2.0.0-beta2-linux-amd64 login -L trace -u printurl --sts-refresh
INFO open /home/REDACTED/.aws-sso/cache.json: no such file or directory
DEBUG loading SSO using 10 retries and max 5sec backoff
INFO You are already logged in. :)
DEBUG Checking the current active accounts vs. our cache
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xa139cf]
goroutine 1 [running]:
github.com/synfinatic/aws-sso-cli/sso.(*SSOCache).NeedsRefresh(...)
github.com/synfinatic/aws-sso-cli/sso/cache.go:132
main.(*LoginCmd).Run(0xc00023ac80, 0xc00023f980)
github.com/synfinatic/aws-sso-cli/cmd/aws-sso/login_cmd.go:45 +0x18f
reflect.Value.call({0xa92700?, 0xc00023ac80?, 0xb58860?}, {0xb59fac, 0x4}, {0xc0004491b8, 0x1, 0x0?})
reflect/value.go:596 +0xce7
reflect.Value.Call({0xa92700?, 0xc00023ac80?, 0xaadce0?}, {0xc0004491b8?, 0xb58860?, 0x0?})
reflect/value.go:380 +0xb9
github.com/alecthomas/kong.callFunction({0xa92700?, 0xc00023ac80?, 0x0?}, 0xb59a6b?)
github.com/alecthomas/[email protected]/callbacks.go:98 +0x40b
github.com/alecthomas/kong.(*Context).RunNode(0xc00023f600, 0xc00024e690, {0xc00037fe08, 0x1, 0x0?})
github.com/alecthomas/[email protected]/context.go:765 +0x810
github.com/alecthomas/kong.(*Context).Run(0xc00032c5b0?, {0xc00037fe08?, 0x0?, 0x0?})
github.com/alecthomas/[email protected]/context.go:790 +0x132
main.main()
github.com/synfinatic/aws-sso-cli/cmd/aws-sso/main.go:219 +0xbae
But stack trace is slightly different.
The easiest reproducer is to delete cache.json
and run aws-sso login
from aws-sso-cli.
thanks, that's helpful.
from aws-sso-cli.
Should work now. Uploading aws-sso-2.0.0-beta2-linux-amd64.gz…
from aws-sso-cli.
Related Issues (20)
- Invalid character '<' error when running aws-sso console against China AWS SSO HOT 6
- Change default ProfileFormat to be more user friendly
- Even when the computer is in sleep mode, SSO sessions can expire and result in multiple session requests being opened in the browser HOT 7
- Use desktop notifications for login user code HOT 2
- `--threads X` flag doesn't do anything
- `aws-sso cache` should report a diff of changes
- Remove deprecated features
- Update asciinema to show login/logout workflow HOT 1
- `FATAL AWS Config failure error="<nil>"` during setup wizard on 2.0.0beta1
- Multiple SSO's confuse aws-sso when authenticating HOT 2
- command argument of aws-sso exec is not parsed as expected HOT 1
- config-profiles crashes on duplicates account/profile names with multiple SSOs HOT 1
- Support exec / eval for non-sso profiles HOT 2
- Pre-built releases link against glibc and thus do not work on musl-based Linuxes HOT 4
- aws-sso crashes if user has access to 0 accounts
- Wizard should prompt between open or print
- Use official Mozilla FireFox container tabs? HOT 3
- Make profile list interactive, to save typing HOT 2
- Documentation update showing how to use multiple accounts HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-sso-cli.