birlorg / bitwarden-cli

Cross Platform Bitwarden library and CLI with sudolikeaboss functionality.
MIT License
47 stars 7 forks source link

New Arch Install: Agent did not start for some reason, sorry. #7

Open heywoodlh opened 6 years ago

heywoodlh commented 6 years ago

Set up a new machine running Arch Linux and when I try to start the Bitwarden agent it says that the agent did not start. When I try to login the agent fails to start as well.

Here is the output when I use the --debug flag (removed certain bits of information that I didn't want to disclose):

❯ bitwarden --debug agent start
debug: debug turned on
debug: db:sqlite:////home/<username>/.local/share/birl.org/bitwarden/bitwarden.sqlite
password: : 
debug: setting master key
debug: path None for the agent does not exist, falling back to default:/bin/bitwarden-agent
debug: running agent:['/bin/bitwarden-agent', '127.0.0.1:6277']
debug: sending to agent:{'agent_location': '/home/<username>/.local/share/birl.org/bitwarden',
 'agent_token': '<token>',
 'master_key': '<key>',
 'port': 6277,
 'timeout': 3600}
debug: agent returned:b'':b''
error: Agent did not start for some reason, sorry.

This is on a brand new install of Arch (Manjaro) running Python 3.7.0. I installed bitwarden using pip3.

The above debug message doesn't seem to give me enough information to be sure as to what needs to be fixed. Any help would be appreciated as I rely pretty heavily on this functionality since it's so useful! :)

heywoodlh commented 6 years ago

Looks like Python 3.7 was the issue. I downgraded to Python 3.6 and installed bitwarden via pip3.6 and that worked.

birlorg commented 6 years ago

Blah. python 3.7 annoyances. I haven't even touched py3.7 yet, as nothing I have runs it by default yet...

I'll have to start messing with 3.7 here eventually I guess. :)