(ERROR) You are not currently signed in.

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

  • cohixcohix

    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:

    $ uname -a
    OS: 17.7.0 Darwin Kernel Version 17.7.0: Fri Jul  6 19:54:51 PDT 2018; root:xnu-4570.71.3~2/RELEASE_X86_64 x86_64
    
    $ op --version
    0.5.2
    

    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):

    $ cd $TMPDIR$(ls $TMPDIR | grep agilebits.op)
    $ # com.agilebits.op.501 
    $ ls -la
    total 24
    drwxr-xr-x    5 myname  staff   160 Aug 19 13:31 .
    [email protected] 148 myname  staff  4736 Aug 19 13:32 ..
    -rw-------    1 myname  staff   512 Aug 19 13:26 .5JAjXXXXXXXXXXXXXXXXX
    -rw-------    1 myname  staff   512 Aug 19 13:22 .FWj5XXXXXXXXXXXXXXXXX
    -rw-------    1 myname  staff   512 Aug 19 13:31 .NYFhXXXXXXXXXXXXXXXXX
    

    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:

    $ op signin myteamsubdomain
    [LOG] 2018/08/19 13:39:50 (ERROR) Account not found: myteamsubdomain
    
    To sign in to an account above: op signin <subdomain>
    To sign in to another account:  op signin --help
    
  • 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:

    $ ls -asl
    total 16
    0 drwxr-xr-x    4 tader  staff   128 Aug 17 11:24 .
    0 [email protected] 280 tader  staff  8960 Aug 20 09:45 ..
    8 -rw-------    1 tader  staff   507 Aug 17 11:26 .XXXXXXXXXXXXXXXXXXXXXXXX
    8 -rw-------    1 tader  staff   506 Aug 17 11:13 .XXXXXXXXXXXXXXXXXXXXXXXX
    
  • Same thing here.

    @cohix here's how it goes (looks like the OP_SESSION environment variable is not properly recognized, sounds like a bug):

    $ mkdir tmp
    $ export TMPDIR=tmp
    
    $ op signin myaccount [email protected]
    Enter the Secret Key for [email protected] at myaccount.1password.com: A3-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX
    Enter the password for [email protected] at myaccount.1password.com:
    export OP_SESSION_myaccount="SESSION-KEY-XXXXXX"
    # This command is meant to be used with your shell's eval function.
    # Run 'eval $(op signin myaccount)' to sign into your 1Password account.
    # If you wish to use the session token itself, pass the --output=raw flag value.
    
    $ export OP_SESSION_myaccount="SESSION-KEY-XXXXXX"
    
    $ op get account
    [LOG] 2018/08/20 12:32:20 (ERROR) You are not currently signed in. Please run `op signin --help` for instructions
    
    $ op get account --account=myaccount
    {"uuid":"...",...}
    
    $ op get account
    [LOG] 2018/08/20 12:32:31 (ERROR) You are not currently signed in. Please run `op signin --help` for instructions
    
    $ op get account --session="SESSION-KEY-XXXXXX"
    {"uuid":"...",...}
    
    $ op get account
    [LOG] 2018/08/20 12:32:48 (ERROR) You are not currently signed in. Please run `op signin --help` for instructions
    
    $ find tmp/com.agilebits.op.501
    tmp/com.agilebits.op.501
    tmp/com.agilebits.op.501/.XXXXXXXXXXXXXXXXXXXXXXXXXX
    
  • cohixcohix

    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.

  • cohixcohix

    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!

  • rickfillionrickfillion Junior Member

    Team Member

    Good to hear. :)

    Rick

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file