lastpass / lastpass-cli

LastPass command line interface tool
GNU General Public License v2.0
2.85k stars 289 forks source link

CLI 1.3.6 no more working #690

Open lerminou opened 1 week ago

lerminou commented 1 week ago

We used the v 1.3.6 version since a few months, it was OK until a 1 or 2 weeks.

The login is OK but the ls command returns an error:

Environment: docker redhat system 9 lastpass-cli 1.3.6

no newer versions are availables

Success: Logged in as XXXXXX.
[user@858dcd7458be ~]$ lpass ls
Error: Unable to fetch blob. Either your session is invalid and you need to login with `lpass login`, you need to synchronize, your blob is empty, or there is something wrong with your internet connection.

It seems to work with the 1.3.7 on a fedora docker,

Please build the newer versions 1.5.0 for these systems.

plemelin commented 3 days ago

Being hit with the same issue here. Stopped working around July 1st.

Is there any kind of debug information we can provide or any idea on when an update can be expected?

There are multiple reports of this by now:

plemelin commented 3 days ago

For now, here is how I'm working around this issue on my CentOS 7 installation until I migrate away:

sed -i -e "s/^mirrorlist/#mirrorlist/" -e "s/^#baseurl/baseurl/g" -e "s/mirror.centos.org/vault.centos.org/g" /etc/yum.repos.d/CentOS-*
yum install -y git python-dns cmake libxml2-devel openssl-devel curl-devel
yum groupinstall -y "Development Tools"

git clone --branch v1.5.0 https://github.com/lastpass/lastpass-cli.git
cd lastpass-cli
make
make install

I'm brushing up on my RPM building skills and will see if I get anywhere

plemelin commented 3 days ago

Here's how to make an RPM for yourself (there is an old spec file in the contrib folder, I used that as a base):

sed -i -e "s/^mirrorlist/#mirrorlist/" -e "s/^#baseurl/baseurl/g" -e "s/mirror.centos.org/vault.centos.org/g" /etc/yum.repos.d/CentOS-*
yum install -y git python-dns cmake libxml2-devel openssl-devel curl-devel wget rpmdevtools
yum groupinstall -y "Development Tools"

rpmdev-setuptree
cd ~/rpmbuild/SOURCES
wget https://github.com/lastpass/lastpass-cli/releases/download/v1.5.0/lastpass-cli-1.5.0.tar.gz
cd ../SPECS
# see further down for the content of the spec file
vi lastpass-cli.spec
rpmbuild -bb ~/rpmbuild/SPECS/lastpass-cli.spec

You can find the rpm under ~/rpmbuild/RPMS/x86_64/

The content of the spec file:

Name:           lastpass-cli
Version:        1.5.0
Release:        1%{?dist}
Summary:        C99 command line interface to LastPass.com

License:        GPLv2
URL:            https://github.com/LastPass/lastpass-cli
Source0:        lastpass-cli-1.5.0.tar.gz

BuildRequires:  openssl-devel,libxml2-devel,libcurl-devel
Requires:       libcurl,libxml2,pinentry

%description
A command line interface to LastPass.com. Made open source and available on
github.

%prep
%setup -q

%build
make %{?_smp_mflags}

%files
/usr/bin/lpass

%install
rm -rf $RPM_BUILD_ROOT
%make_install
make install