Signing back into the Community for the first time? You'll need to reset your password to access your account. Find out more.
Forum Discussion
Former Member
3 years agoCouldn't connect to the sign-in address you provided
Hi
I am trying with CLI (version 2.0.0) on GCP cloud run and getting below error
Couldn't connect to the sign-in address you provided. Check the address and your network connection, then try again
No accounts configured for use with 1Password CLI.
You can either:
- Sign in with biometric unlock; see https://developer.1password.com/docs/cli/get-started/#sign-in for details.
- - Add an account manually with op account add
; see op account add --help
for details.
I am trying command
eval$(echo "password" | op account add --signin --address xyz.1password.com --email myemail@xyz.com --secret-key A5T-)
This is working perfectly fine when I run it on local mac machine with OP CLI .
1Password Version: 2.0.0
Extension Version: 2.0.0
OS Version: GCP Cloud Run
Referrer: forum-search:Couldn't connect to the sign-in address you provided
- Former Member
Hey @avinashdubeyse,
My colleague, @"Justin.Yoon_1P" has updated the ticket with the details of this report.
Alas, our issue tracking is handled internally. Here is a link to the original AWS Lambda thread, in the meantime:
https://1password.community/discussion/123194/cli-exiting-with-error-code-133-on-aws-lambdaWe'll make sure to keep you updated, as we make progress with this.
Thank you for your patience.Best,
Horia - Former Member
Thanks a lot .. please let me posted with solution or any progress with CLI on serverless instance (cloudrun or AWS Lambda). please share the link for AWS Lamba issue as well so I can track that
- Former Member
Thanks for the info, I am going to add this issue to the ongoing investigation we have with the CLI not working on another serverless instance (AWS Lambda).
- Former Member
thanks for the reply I tried the curl and still its same error
even-though the curl is returning 200 (pls see here).
just for info - I am running this in cloud run (which is serverless)2022-04-28 12:37:45.727 CESTInside success script
Default
2022-04-28 12:37:45.827 CEST4 qipakwsw77hx6pjpezhqnu2rq
Default
2022-04-28 12:37:45.827 CEST
Default
2022-04-28 12:38:18.527 CESTInside success script
Default
2022-04-28 12:38:18.527 CEST 200
Default
2022-04-28 12:38:47.026 CESTInside Error
Default
2022-04-28 12:38:47.027 CEST[ERROR] 2022/04/28 10:38:46 Couldn't connect to the sign-in address you provided. Check the address and your network connection, then try again.
Default
2022-04-28 12:38:47.027 CEST
Default
2022-04-28 12:38:52.928 CESTInside Error
Default
2022-04-28 12:38:53.427 CESTNo accounts configured for use with 1Password CLI.
Default
2022-04-28 12:38:53.427 CEST
Default
2022-04-28 12:38:53.427 CESTYou can either:
Default
2022-04-28 12:38:53.427 CEST - Sign in with biometric unlock; see https://developer.1password.com/docs/cli/get-started/#sign-in for details.
Default
2022-04-28 12:38:53.427 CEST - Add an account manually withop account add
; seeop account add --help
for details. - Former Member
do I need to set OP_DEVICE before running script for add or signin ?
I think what you have there being set is fine. Do you mind trying this command from inside the cloud instance and let me know what the response is? It should print the http response code of trying to reach the signin address page.
curl -o /dev/null --silent -Iw '%{http_code}' https://www.<1password signin address>
If that call does not return a 200, there may be some networking issues to resolve.
- Former Member
No saved device ID. Set the OP_DEVICE environment variable and try again: `export OP_DEVICE=lpeh2gmufiw2ecfjo4k4uw35
do I need to set OP_DEVICE before running script for add or signin ?
I setted up OP_DEVICE also but still its same error
I am now clueless and tired with same error :(
- Former Member
Above is how I am installing OP CLI together with ubuntu for cloud run
- Former Member
FROM ubuntu:latest
RUN apt-get updateRUN apt-get -y install curl gnupg coreutils
RUN curl -sL https://deb.nodesource.com/setup_17.x | bash -
RUN apt-get -y install nodejsInstall OP CLI
RUN curl -sS https://downloads.1password.com/linux/keys/1password.asc | \
gpg --dearmor --output /usr/share/keyrings/1password-archive-keyring.gpgRUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/1password-archive-keyring.gpg] https://downloads.1password.com/linux/debian/$(dpkg --print-architecture) stable main" | \
tee /etc/apt/sources.list.d/1password.listRUN mkdir -p /etc/debsig/policies/AC2D62742012EA22/
RUN curl -sS https://downloads.1password.com/linux/debian/debsig/1password.pol | \
tee /etc/debsig/policies/AC2D62742012EA22/1password.pol
RUN mkdir -p /usr/share/debsig/keyrings/AC2D62742012EA22
RUN curl -sS https://downloads.1password.com/linux/keys/1password.asc | \
gpg --dearmor --output /usr/share/debsig/keyrings/AC2D62742012EA22/debsig.gpgRUN apt update && apt install 1password-cli
- Former Member
Hi
Thanks a lot
I tried earlier with --signin and add together , but it was giving the same error so I separated it . will try together again.the docker image is built with ubuntu:latest (created one image with nodejs and CLI debian together)
- Former Member
Hey @avinashdubeyse - I see some things that could be improved in the script you provided but nothing that is conclusive.
- Try wrapping each env var in double quotes: eg.
eval $(echo "$PAASWORD" | op account add --address "$ONE_PASSWORD_ADDRESS" --email "$SA_EMAIL" --secret-key "$SA_SECRET_KEY")
- You can have the
op account add
command sign in as well by adding--signin
flag, that would eliminate the signin line, less points of possible failure
I am still wondering what OS the docker image is running, we have noticed some issues in the past with some configurations of the Arch linux OS.
- Try wrapping each env var in double quotes: eg.