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

aws-vault: error: Server failed: exit status 1 #207

Closed
FernandoMiguel opened this issue Dec 20, 2017 · 8 comments
Closed

aws-vault: error: Server failed: exit status 1 #207

FernandoMiguel opened this issue Dec 20, 2017 · 8 comments

Comments

@FernandoMiguel
Copy link
Collaborator

$ aws-vault server --debug
2017/12/20 11:49:21 Loading config file /Users/fernando/.aws/config
2017/12/20 11:49:21 Parsing config file /Users/fernando/.aws/config
aws-vault: error: Server failed: exit status 1

$ aws-vault --version
v4.1.0

MacOS 10.13.3 Beta (17D20a)

@astanciu
Copy link

maybe run with sudo since it binds on port 80?

@lox
Copy link
Collaborator

lox commented Dec 21, 2017

aws-vault server isn't meant to be run directly, it should be an invisible command. What are you trying to do @FernandoMiguel?

@FernandoMiguel
Copy link
Collaborator Author

@astanciu if it requires sudo, my expectations is that it should ask for it when needed

@lox was trying to run in server mode, and that option showed in the help menu, so I tried.

After poking a bit I found the -s in the exec command too, and that seems to work for most cases. Couldn't get it to work with terraform and assume roles, but without server mode it works fine.

But back to your question, if it is supposed to be an invisible command why is it listed as one of the options of --help?

@astanciu
Copy link

How is it supposed to be run then? The docs are not clear on this.

@FernandoMiguel
Copy link
Collaborator Author

FernandoMiguel commented Dec 22, 2017 via email

@astanciu
Copy link

@FernandoMiguel and even that is a bit unconventional. It appears to start a new shell session and the server is running in the background. Would be nice if this was cleaned up a bit. An option to run server as daemon/background, otherwise show server logs would be good.

@lox
Copy link
Collaborator

lox commented Dec 22, 2017

Yup, I hear you, it's not well documented or clear. The design has been carefully thought over though, and is the way it is for good reason. I've started a PR that will improve the docs and make this clearer, check out #208.

@lox
Copy link
Collaborator

lox commented Jan 2, 2018

I'm going to close this one. We will work on docs in #208, but as it stands this is the expected behaviour of manually calling the server command.

@lox lox closed this as completed Jan 2, 2018
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

3 participants