I'm trying the CLI on my Mac.
$ uname -a OS: Darwin MacBook Pro 17.6.0 Darwin Kernel Version 17.6.0: Tue May 8 15:22:16 PDT 2018; root:xnu-4570.61.1~1/RELEASE_X86_64 x86_64
$ op --version 0.5.2
$ op signin xxxxx.1password.com [email protected] A3-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX Enter the password for [email protected] at xxxxx.1password.com: export OP_SESSION_xxxxx="SESSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" # This command is meant to be used with your shell's eval function. # Run 'eval $(op signin xxxxx)' to sign into your 1Password account. # If you wish to use the session token itself, pass the --output=raw flag value. $ export OP_SESSION_xxxxx="SESSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" $ op list items [LOG] 2018/08/17 11:11:44 (ERROR) You are not currently signed in. Please run `op signin --help` for instructions
But, when I do this, it works:
$ echo "SESSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" | op list items [ ...lots of JSON... ]
So, I guess that op
does not know for which subdomain to get the OP_SESSION_xxxxx
? And how would this work with multiple teams?
1Password Version: Not Provided
Extension Version: Not Provided
OS Version: 10.13.5
Sync Type: Not Provided
Comments
Team Member
@tader hrm, I'm not able to reproduce the env var issue on my Mac. Could you run this and ensure that a file exists in the directory with
ls -a
:cd $TMPDIR$(ls $TMPDIR | grep agilebits.op)
That should contain the session file. If nothing is there, or if the `com.agilebits.op.{UID} directory doesn't exist in $TMPDIR, then at least we have a place to start debugging this.
Hello! I'm experiencing the same issue:
And can repro the rest of @tader's case.
After following @cohix's debugging instructions, I can get to a valid directory with a few dotfiles (most likely for each attempt I've made to log in with the full syntax):
It may be worth noting that the account can't be fetched when using the short syntax, even after following the first step with the full domain, email and secret key:
Hello,
I just joined 1pass today and experiencing the same issue.
uname -a
Linux my_ubuntu 4.15.0-29-generic #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
op --version
0.5.2
My $TMPDIR was empty, but after running
export TMPDIR=/var/tmp/
I had some files existing:
drwxr-xr-x 2 me me 4096 Aug 19 16:58 .
drwxrwxrwt 10 root root 4096 Aug 19 16:52 ..
-rw------- 1 me me 521 Aug 19 16:58 .0kHVXXXXXXXXXXXXXXXXX
-rw------- 1 me me 522 Aug 19 16:52 .-Qm_KXXXXXXXXXXXXXXXXX
@cohix thank you for your response!
I have two files in the
$TEMPDIR/com.agilebits.op.$UID
folder:Same thing here.
@cohix here's how it goes (looks like the OP_SESSION environment variable is not properly recognized, sounds like a bug):
Team Member
Thanks to all who provided info about this. We're looking into this as we speak, and we'll make sure to comment here when we have any updates.
Team Member
@jplhomer @aldanor @tader @rybot
We tracked down the issue (the config file was not being written upon first sign-in), and we've fixed it. Version 0.5.3 is out now, please give it a try and let us know how it goes. We're sorry about this, please don't hesitate to write in again with any other issues you may encounter.
Thanks @cohix it works!
Team Member
Good to hear.
Rick