Error cli - connecting to desktop app: cannot connect to 1Password app, make sure it is running

edgarrios97edgarrios97
Community Member

Hello, I have a developed a script that utilizes the 1password cli and I keep receiving this error "connecting to desktop app: cannot connect to 1Password app, make sure it is running" after a few commands. When I run the individual commands it works fine. The issue started today and last time it worked fine was back on June 14th.


1Password Version: 8.7.3
Extension Version: Not Provided
OS Version: Not Provided
Browser:_ Not Provided
Referrer: forum-search:connecting to desktop app: cannot connect to 1Password app, make sure it is running

Comments

  • Horia.Culea_1PHoria.Culea_1P

    Team Member

    Hey @edgarrios97,

    Thank you for reaching out to us!
    Can you let us know, to start with, what version of the CLI are you using?
    Did this occur as after an update, or across the same CLI version?

    Thanks,
    Horia

  • edgarrios97edgarrios97
    Community Member

    I was previously using 2.4.1 but updated to 2.5.1. Just upgrade my machine to Windows 11 as well. It happened across the same cli version I believe since updating to 2.5.1 was a very manual process.

  • edgarrios97edgarrios97
    Community Member

    Also getting this error

    runtime: waitforsingleobject wait_failed; errno=6
    fatal error: runtime.semasleep wait_failed

    runtime stack:
    runtime: setevent failed; errno=6
    runtime: setevent failed; errno=6
    fatal error: runtime.semawakeup
    runtime: waitforsingleobject wait_failed; errno=6
    fatal error: runtime.semasleep wait_failed
    panic during panic

    runtime stack:
    runtime.throw({0x116d0a0, 0xb03305})
    /usr/local/go/src/runtime/panic.go:1198 +0x76
    runtime.semasleep.func2()
    /usr/local/go/src/runtime/os_windows.go:855 +0x70
    runtime.semasleep(0x11ab8f8)
    /usr/local/go/src/runtime/os_windows.go:853 +0x132
    runtime.lock2(0x12a9512)
    /usr/local/go/src/runtime/lock_sema.go:90 +0x198
    runtime.lockWithRank(...)
    /usr/local/go/src/runtime/lockrank_off.go:23
    runtime.lock(...)
    /usr/local/go/src/runtime/lock_sema.go:37
    runtime.printlock()
    /usr/local/go/src/runtime/print.go:71 +0x45
    runtime.gentraceback(0x0, 0x0, 0x7ffd5355742d, 0xc000500298, 0x0, 0x0, 0x64, 0x0, 0xb3839e, 0x1)
    /usr/local/go/src/runtime/traceback.go:462 +0x149e
    runtime.traceback1(0x1160eac, 0xc000504000, 0xc18fbff568, 0xc000504000, 0x10)
    /usr/local/go/src/runtime/traceback.go:825 +0x1cc
    runtime.traceback(0x1160eac, 0xc0000003e8, 0xc18fbff5a8, 0xb0b0c5)
    /usr/local/go/src/runtime/traceback.go:777 +0x1b
    runtime.dopanic_m(0xc000504000, 0x1, 0x1)
    /usr/local/go/src/runtime/panic.go:1394 +0x1b1
    runtime.fatalthrow.func1()
    /usr/local/go/src/runtime/panic.go:1253 +0x48
    runtime.fatalthrow()
    /usr/local/go/src/runtime/panic.go:1250 +0x50
    runtime.throw({0x116d0a0, 0xb03305})
    /usr/local/go/src/runtime/panic.go:1198 +0x76
    runtime.semasleep.func2()
    /usr/local/go/src/runtime/os_windows.go:855 +0x70
    runtime.semasleep(0x0)
    /usr/local/go/src/runtime/os_windows.go:853 +0x132
    runtime.notesleep(0xc000500120)
    /usr/local/go/src/runtime/lock_sema.go:182 +0x85
    runtime.mPark()
    /usr/local/go/src/runtime/proc.go:1441 +0x2a
    runtime.stopm()
    /usr/local/go/src/runtime/proc.go:2408 +0x78
    runtime.findrunnable()
    /usr/local/go/src/runtime/proc.go:2984 +0x885
    runtime.schedule()
    /usr/local/go/src/runtime/proc.go:3367 +0x239
    runtime.park_m(0xc00004e9c0)
    /usr/local/go/src/runtime/proc.go:3516 +0x14d
    runtime.mcall()
    /usr/local/go/src/runtime/asm_amd64.s:307 +0x4a

    goroutine 1 [running]:
    goroutine running on other thread; stack unavailable

    goroutine 7 [syscall, locked to thread]:
    syscall.Syscall6(0x7ffd552c6320, 0x5, 0x238, 0xc0000bbf84, 0xc0000bbf88, 0xc0000bbf98, 0xffffffff, 0x0)
    /usr/local/go/src/runtime/syscall_windows.go:497 +0xfa
    github.com/Microsoft/go-winio.getQueuedCompletionStatus(0x0, 0xc0000bbf84, 0xc0000bbf88, 0xc0000bbf98, 0xffffffff)
    /builds/dev/b5/op/vendor/github.com/Microsoft/go-winio/zsyscall_windows.go:357 +0xb4
    github.com/Microsoft/go-winio.ioCompletionProcessor(0x0)
    /builds/dev/b5/op/vendor/github.com/Microsoft/go-winio/file.go:173 +0x8a
    created by github.com/Microsoft/go-winio.initIo
    /builds/dev/b5/op/vendor/github.com/Microsoft/go-winio/file.go:74 +0x67

    goroutine 47 [IO wait]:
    internal/poll.runtime_pollWait(0x219d08f0ff0, 0x72)
    /usr/local/go/src/runtime/netpoll.go:303 +0x85
    internal/poll.(pollDesc).wait(0x9, 0xd, 0x0)
    /usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x32
    internal/poll.execIO(0xc0002e4a18, 0x11ab210)
    /usr/local/go/src/internal/poll/fd_windows.go:175 +0xe5
    internal/poll.(
    FD).Read(0xc0002e4a00, {0xc000401800, 0x17c6, 0x17c6})
    /usr/local/go/src/internal/poll/fd_windows.go:441 +0x25f
    net.(netFD).Read(0xc0002e4a00, {0xc000401800, 0xc00040180d, 0x19})
    /usr/local/go/src/net/fd_posix.go:56 +0x29
    net.(
    conn).Read(0xc000288100, {0xc000401800, 0x17b9, 0xc0000df7f8})
    /usr/local/go/src/net/net.go:183 +0x45
    crypto/tls.(atLeastReader).Read(0xc0002086c0, {0xc000401800, 0x0, 0xada4ad})
    /usr/local/go/src/crypto/tls/conn.go:777 +0x3d
    bytes.(
    Buffer).ReadFrom(0xc0002d0978, {0x1244d40, 0xc0002086c0})
    /usr/local/go/src/bytes/buffer.go:204 +0x98
    crypto/tls.(Conn).readFromUntil(0xc0002d0700, {0x219d08f50e0, 0xc000288100}, 0x17c6)
    /usr/local/go/src/crypto/tls/conn.go:799 +0xe5
    crypto/tls.(
    Conn).readRecordOrCCS(0xc0002d0700, 0x0)
    /usr/local/go/src/crypto/tls/conn.go:606 +0x112
    crypto/tls.(Conn).readRecord(...)
    /usr/local/go/src/crypto/tls/conn.go:574
    crypto/tls.(
    Conn).Read(0xc0002d0700, {0xc000443000, 0x1000, 0xc0002564e0})
    /usr/local/go/src/crypto/tls/conn.go:1277 +0x16f
    bufio.(Reader).Read(0xc00043c480, {0xc000430818, 0x9, 0xc000086120})
    /usr/local/go/src/bufio/bufio.go:227 +0x1b4
    io.ReadAtLeast({0x1244bc0, 0xc00043c480}, {0xc000430818, 0x9, 0x9}, 0x9)
    /usr/local/go/src/io/io.go:328 +0x9a
    io.ReadFull(...)
    /usr/local/go/src/io/io.go:347
    net/http.http2readFrameHeader({0xc000430818, 0x9, 0xc00030d050}, {0x1244bc0, 0xc00043c480})
    /usr/local/go/src/net/http/h2_bundle.go:1555 +0x6e
    net/http.(
    http2Framer).ReadFrame(0xc0004307e0)
    /usr/local/go/src/net/http/h2_bundle.go:1813 +0x95
    net/http.(http2clientConnReadLoop).run(0xc0004adf98)
    /usr/local/go/src/net/http/h2_bundle.go:8608 +0x130
    net/http.(
    http2ClientConn).readLoop(0xc00040a300)
    /usr/local/go/src/net/http/h2_bundle.go:8531 +0x6f
    created by net/http.(*http2Transport).newClientConn
    /usr/local/go/src/net/http/h2_bundle.go:7325 +0xb85

    goroutine 56 [select]:
    net/http.(http2clientStream).writeRequest(0xc000354180, 0xc0000ae200)
    /usr/local/go/src/net/http/h2_bundle.go:7865 +0xaa8
    net/http.(
    http2clientStream).doRequest(0x0, 0x0)
    /usr/local/go/src/net/http/h2_bundle.go:7727 +0x1e
    created by net/http.(*http2ClientConn).RoundTrip
    /usr/local/go/src/net/http/h2_bundle.go:7656 +0x30f
    runtime: waitforsingleobject wait_failed; errno=6
    fatal error: runtime.semasleep wait_failed
    stack trace unavailable

  • andi.t_1Pandi.t_1P

    Team Member

    Thanks for the info @edgarrios97! Could you provide a/the breaking script so we could try to reproduce the error and get a better feeling of what is going on?

    All the best,
    Andi

Leave a Comment

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