CLI calls reliability

Hi,

I have noticed that the performance of the CLI seems to be worse. The call of op commands randomly fails with the error:

(ERROR) Get https://MYSUBDOMAIN.1password.eu/api/v1/account/keysets: net/http: TLS handshake timeout

This becomes really annoying. Randomly, I need to retry 4-5 times op commands to create a single entry.

Do you have some plans to improve the situation ?

We struggled to adapt our script around the bad performance of the CLI but it looks like we have reached a point where we can't do anything on our side now and we can't execute our scripts that rely on op calls without expecting random errors :(


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Sync Type: Not Provided

Comments

  • graham_1Pgraham_1P

    Team Member

    Hi @mickael,

    That is indeed a problem. op should not be consistently throwing errors in regular usage. Can you tell me a little more about how you are getting these errors? I would like to reproduce the issue you are seeing.

    Graham

  • Hi @graham_1P ,

    Thanks for coming back to me quickly.

    Sadly, I don't run op commands directly, but rather use some of our wrappers available here: https://github.com/mickaelperrin/onepassword-tools.

    Yesterday, I needed to deploy a new website and wanted to create a new server credential by using the following command:

    op-tools new-server-account --username="mynewaccount" --hostname="myserver.com" --return-field=UUID
    
    

    This script doesn't handle authentication. Authentication is done manually in another command. It only spawns op create item commands with the appropriate parameters.

    It looks like there are intermittent issues reaching your .eu hosting or your hosting have from time to time load pikes that prevent them to process requests correctly.

  • mickaelmickael
    edited August 21

    I forgot to say that this also randomly happens when trying to authenticate with simple op login commands. This morning I got again the issue. This is annoying but less problematic in my case because the process is done interactively not in scripts.

    Enter the password for EMAIL at TEAM.1password.eu:
    [LOG] 2019/08/21 10:08:09 (ERROR) Get https://TEAM.1password.eu/api/v2/auth/EMAIL/A3/SOMECHARS/CHARS/CHARSAGAIN: net/http: TLS handshake timeout
    

    @graham_1P, So this morning I retried 7 times and gave up. The service looks like it was simply unavaible.

    [LOG] 2019/08/21 10:08:09 (ERROR) Get https://TEAM.1password.eu/api/v2/auth/EMAIL/A3/XXXXXX/xxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxx: net/http: TLS handshake timeout
    [LOG] 2019/08/21 10:11:55 (ERROR) Get https://TEAM.1password.eu/api/v2/auth/EMAIL/A3/XXXXXX/xxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxx: net/http: TLS handshake timeout
    [LOG] 2019/08/21 10:12:15 (ERROR) Get https://TEAM.1password.eu/api/v2/auth/EMAIL/A3/XXXXXX/xxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxx: net/http: TLS handshake timeout
    [LOG] 2019/08/21 10:12:37 (ERROR) Get https://TEAM.1password.eu/api/v2/auth/EMAIL/A3/XXXXXX/xxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxx: net/http: TLS handshake timeout
    [LOG] 2019/08/21 10:12:56 (ERROR) Get https://TEAM.1password.eu/api/v2/auth/EMAIL/A3/XXXXXX/xxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxx: net/http: TLS handshake timeout
    [LOG] 2019/08/21 10:13:18 (ERROR) Get https://TEAM.1password.eu/api/v2/auth/EMAIL/A3/XXXXXX/xxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxx: net/http: TLS handshake timeout
    [LOG] 2019/08/21 10:13:38 (ERROR) Get https://TEAM.1password.eu/api/v2/auth/EMAIL/A3/XXXXXX/xxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxx: net/http: TLS handshake timeout
    
    

    I finally successfully logged in at 10:26, it looks like the service was unavailable for at least 18 minutes even if nothing is reported on https://1password.statuspage.io

  • graham_1Pgraham_1P

    Team Member

    Thanks for the email with more details mickael.

    We are looking into this on our end, and hopefully will come back with some positive results.

Leave a Comment

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