gmvault icon indicating copy to clipboard operation
gmvault copied to clipboard

Stored password does not work

Open toyg opened this issue 9 years ago • 3 comments

qtkdnthqcmmexqgmI installed gmvault 1.9.1 in a python 2.7 virtualenv (with python setup.py install). Then I created an app password in gmail. The first sync works fine with this command:

> ./venv/bin/gmvault sync [email protected] -p --store-passwd -d /path/to/my/mail-db

Use gmvault-db located in /path/to/my/mail-db.

Activate Gmvault db cleaning.
Create defaults in /home/myuser/.gmvault/gmvault_defaults.conf. Please touch this file only if you know what to do.
 Authentication performed with Gmail password.

 Please enter gmail password for [email protected] and press ENTER:
 Store password for [email protected] in $HOME/.gmvault.
 Connect to Gmail server.
 Start synchronization (2016-11-18T18h01m35s). [...]

However, when I try to run it again, it fails:

> ./venv/bin/gmvault sync [email protected] -p -d /path/to/my/mail-db

Use gmvault-db located in /path/to/my/mail-db.
Activate Gmvault db cleaning.
Create defaults in /home/myuser/.gmvault/gmvault_defaults.conf. Please touch this file only if you know what to do.
Authentication performed with Gmail password.
Use password stored in $HOME/.gmvault dir (Storing your password here is not recommended).
Connect to Gmail server.
  
ERROR: Invalid credentials, cannot login to the gmail server. Please check your login and password or xoauth token.

toyg avatar Nov 18 '16 18:11 toyg

@toyg Ok need to try. I left that method but it is not recommended to use it anyway. I might remove it.

gaubert avatar Jan 03 '17 10:01 gaubert

This still does not work 😢 I have to type the app password every time.

LowPowerLab avatar May 11 '20 22:05 LowPowerLab

Just a note that it's working for me, in a python 2.7 virtualenv.

michael1006 avatar Jan 08 '23 02:01 michael1006