empiricaly / empirica

Open source project to tackle the problem of long development cycles required to produce software to conduct multi-participant and real-time human experiments online.
https://empirica.ly/
Apache License 2.0
47 stars 8 forks source link

Deadlock error in `1.8.10` #460

Closed aliciamchen closed 9 months ago

aliciamchen commented 10 months ago

Is there an existing issue for this?

What happened?

I upgraded to 1.8.10, and although I haven't been getting the failed load: [GraphQL] transition step: invalid state error anymore, my experiment did crash in the middle and gave me a POTENTIAL DEADLOCK error that I haven't seen before.

Steps To Reproduce

No response

Empirica Version

Version: v1.8.10
SHA:     ea74918
Build:   151
Branch:  main
Time:    2023-12-10T08:41:25Z

What OS are you seeing the problem on?

macOS

What browser are you seeing the problem on?

Does not apply

Relevant log output

{"level":"warn","time":"2023-12-10T21:56:44.064110443Z","message":"changes: conn write timeout"}
{"level":"warn","time":"2023-12-10T21:56:44.065247953Z","message":"changes: write buffer full, abandoning connection"}
POTENTIAL DEADLOCK:
Previous place where the lock was grabbed
goroutine 195783 lock 0xc000142ac0
/go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/runtime/attribute.go:26 runtime.(*Runtime).SetAttributes ??? <<<<<
/go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/runtime/attribute.go:25 runtime.(*Runtime).SetAttributes ???
/go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/graph/attribute.resolvers.go:67 graph.(*mutationResolver).SetAttributes ???
/go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/graph/generated.go:5567 graph.(*executionContext)._Mutation_setAttributes.func2 ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:71 executor.processExtensions.func4 ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:109 executor.processExtensions.func8.1 ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/handler/apollotracing/tracer.go:83 apollotracing.Tracer.InterceptField ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:108 executor.processExtensions.func8 ???
/go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/graph/generated.go:5569 graph.(*executionContext)._Mutation_setAttributes ???
/go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/graph/generated.go:14603 graph.(*executionContext)._Mutation.func1 ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:68 executor.processExtensions.func3 ???
/go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/graph/generated.go:14602 graph.(*executionContext)._Mutation ???
/go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/graph/generated.go:1727 graph.(*executableSchema).Exec.func2 ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/executor.go:119 executor.(*Executor).DispatchOperation.func1.1.1 ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:65 executor.processExtensions.func2 ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:91 executor.processExtensions.func6.1 ???
/go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/server/graphql.go:216 server.graphqlHandler.func6 ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:159 executor.aroundRespFunc.InterceptResponse ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:90 executor.processExtensions.func6 ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:91 executor.processExtensions.func6.1 ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/handler/apollotracing/tracer.go:110 apollotracing.Tracer.InterceptResponse ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:90 executor.processExtensions.func6 ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/executor.go:126 executor.(*Executor).DispatchOperation.func1.1 ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/handler/transport/http_post.go:90 transport.POST.Do ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/handler/server.go:121 handler.(*Server).ServeHTTP ???
/go/pkg/mod/github.com/rs/zerolog@v1.27.0/log/log.go:129 log.Ctx ???
/go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/auth/authhttp/middleware.go:37 server.Enable.Middleware.func1 ???
/go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/server/server.go:147 server.Enable.requestMetadata.func2 ???
/go/pkg/mod/github.com/julienschmidt/httprouter@v1.3.0/router.go:387 httprouter.(*Router).ServeHTTP ???
/go/pkg/mod/github.com/rs/cors@v1.8.2/cors.go:232 server.(*Server).Start.(*Cors).Handler.func4 ???
/usr/local/go/src/net/http/server.go:2136 http.HandlerFunc.ServeHTTP ???
/usr/local/go/src/net/http/server.go:2938 http.serverHandler.ServeHTTP ???
/usr/local/go/src/net/http/server.go:2009 http.(*conn).serve ???

Have been trying to lock it again for more than 30s
goroutine 195758 lock 0xc000142ac0
/go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/runtime/attribute.go:26 runtime.(*Runtime).SetAttributes ??? <<<<<
/go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/runtime/attribute.go:25 runtime.(*Runtime).SetAttributes ???
/go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/graph/attribute.resolvers.go:67 graph.(*mutationResolver).SetAttributes ???
/go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/graph/generated.go:5567 graph.(*executionContext)._Mutation_setAttributes.func2 ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:71 executor.processExtensions.func4 ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:109 executor.processExtensions.func8.1 ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/handler/apollotracing/tracer.go:83 apollotracing.Tracer.InterceptField ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:108 executor.processExtensions.func8 ???
/go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/graph/generated.go:5569 graph.(*executionContext)._Mutation_setAttributes ???
/go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/graph/generated.go:14603 graph.(*executionContext)._Mutation.func1 ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:68 executor.processExtensions.func3 ???
/go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/graph/generated.go:14602 graph.(*executionContext)._Mutation ???
/go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/graph/generated.go:1727 graph.(*executableSchema).Exec.func2 ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/executor.go:119 executor.(*Executor).DispatchOperation.func1.1.1 ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:65 executor.processExtensions.func2 ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:91 executor.processExtensions.func6.1 ???
/go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/server/graphql.go:216 server.graphqlHandler.func6 ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:159 executor.aroundRespFunc.InterceptResponse ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:90 executor.processExtensions.func6 ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:91 executor.processExtensions.func6.1 ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/handler/apollotracing/tracer.go:110 apollotracing.Tracer.InterceptResponse ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:90 executor.processExtensions.func6 ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/executor.go:126 executor.(*Executor).DispatchOperation.func1.1 ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/handler/transport/http_post.go:90 transport.POST.Do ???
/go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/handler/server.go:121 handler.(*Server).ServeHTTP ???
/go/pkg/mod/github.com/rs/zerolog@v1.27.0/log/log.go:129 log.Ctx ???
/go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/auth/authhttp/middleware.go:37 server.Enable.Middleware.func1 ???
/go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/server/server.go:147 server.Enable.requestMetadata.func2 ???
/go/pkg/mod/github.com/julienschmidt/httprouter@v1.3.0/router.go:387 httprouter.(*Router).ServeHTTP ???
/go/pkg/mod/github.com/rs/cors@v1.8.2/cors.go:232 server.(*Server).Start.(*Cors).Handler.func4 ???
/usr/local/go/src/net/http/server.go:2136 http.HandlerFunc.ServeHTTP ???
/usr/local/go/src/net/http/server.go:2938 http.serverHandler.ServeHTTP ???
/usr/local/go/src/net/http/server.go:2009 http.(*conn).serve ???

Here is what goroutine 195783 doing now
goroutine 195783 [select]:
github.com/empiricaly/tajriba/internal/runtime.(*scopedAttributesSub).Send(0xc00be09f40, {0xc00c9a6d30, 0x2, 0x1a?})
    /go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/runtime/scope.go:281 +0xee
github.com/empiricaly/tajriba/internal/runtime.(*Runtime).pushAttributesForScopedAttributes(0xc000142a80, {0xe9b410?, 0xc0063d0c30?}, {0xc00c9a6c70, 0x2, 0x0?})
    /go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/runtime/scope.go:481 +0x38c
github.com/empiricaly/tajriba/internal/runtime.(*Runtime).pushAttributes(0xc000142a80?, {0xe9b410, 0xc0063d0c30}, {0xc00c9a6c70, 0x2, 0x2})
    /go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/runtime/attribute.go:313 +0x5d
github.com/empiricaly/tajriba/internal/runtime.(*Runtime).setAttributes(0xc000142a80, {0xe9b410, 0xc0063d0c30}, {0xc00c9a6c70?, 0x2, 0x2})
    /go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/runtime/attribute.go:241 +0x292
github.com/empiricaly/tajriba/internal/runtime.(*Runtime).SetAttributes(0xc000142a80, {0xe9b410, 0xc0063d0c30}, {0xc00c9a6bc0, 0x2, 0x2})
    /go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/runtime/attribute.go:34 +0x17d
github.com/empiricaly/tajriba/internal/graph.(*mutationResolver).SetAttributes(0xc82280?, {0xe9b410, 0xc0063d0c30}, {0xc00c9a6bc0, 0x2, 0x2})
    /go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/graph/attribute.resolvers.go:67 +0x85
github.com/empiricaly/tajriba/internal/graph.(*executionContext)._Mutation_setAttributes.func2({0xe9b410?, 0xc0063d0c30})
    /go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/graph/generated.go:5568 +0xd0
github.com/99designs/gqlgen/graphql/executor.processExtensions.func4({0xe9b410?, 0xc0063d0c30?}, 0x4cdc4f?)
    /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:72 +0x22
github.com/99designs/gqlgen/graphql/executor.processExtensions.func8.1({0xe9b410?, 0xc0063d0c30?})
    /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:110 +0x28
github.com/99designs/gqlgen/graphql/handler/apollotracing.Tracer.InterceptField({}, {0xe9b410?, 0xc0063d0c30}, 0xc00947fd28)
    /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/handler/apollotracing/tracer.go:84 +0x10b
github.com/99designs/gqlgen/graphql/executor.processExtensions.func8({0xe9b410, 0xc0063d0c30}, 0xc00977c900)
    /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:109 +0xa2
github.com/empiricaly/tajriba/internal/graph.(*executionContext)._Mutation_setAttributes(0xc00977c7c0, {0xe9b410, 0xc0063d09c0}, {0xc008e9e5a0, {0xc00c9a6b70, 0x1, 0x1}, 0x0})
    /go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/graph/generated.go:5566 +0x214
github.com/empiricaly/tajriba/internal/graph.(*executionContext)._Mutation.func1({0xe9b410?, 0xc0063d09c0?})
    /go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/graph/generated.go:14604 +0x45
github.com/99designs/gqlgen/graphql/executor.processExtensions.func3({0xe9b410?, 0xc0063d09c0?}, 0xc45580?)
    /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:69 +0x22
github.com/empiricaly/tajriba/internal/graph.(*executionContext)._Mutation(0xc00977c7c0, {0xe9b410, 0xc0063d0900}, {0xc00c9a6330, 0x1, 0x1})
    /go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/graph/generated.go:14603 +0xebb
github.com/empiricaly/tajriba/internal/graph.(*executableSchema).Exec.func2({0xe9b410?, 0xc0063d08a0?})
    /go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/graph/generated.go:1726 +0x8a
github.com/99designs/gqlgen/graphql/executor.(*Executor).DispatchOperation.func1.1.1({0xe9b410, 0xc0063d08a0})
    /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/executor.go:119 +0x25
github.com/99designs/gqlgen/graphql/executor.processExtensions.func2({0xe9b410?, 0xc0063d08a0?}, 0x4cdc4f?)
    /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:66 +0x22
github.com/99designs/gqlgen/graphql/executor.processExtensions.func6.1({0xe9b410?, 0xc0063d08a0?})
    /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:92 +0x28
github.com/empiricaly/tajriba/internal/server.graphqlHandler.func6({0xe9b410, 0xc0063d08a0}, 0xc00947fce0)
    /go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/server/graphql.go:217 +0x91
github.com/99designs/gqlgen/graphql/executor.aroundRespFunc.InterceptResponse(0xd672c0?, {0xe9b410?, 0xc0063d08a0?}, 0x80?)
    /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:160 +0x29
github.com/99designs/gqlgen/graphql/executor.processExtensions.func6({0xe9b410, 0xc0063d08a0}, 0xc00c9a6b60)
    /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:91 +0xa2
github.com/99designs/gqlgen/graphql/executor.processExtensions.func6.1({0xe9b410?, 0xc0063d08a0?})
    /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:92 +0x28
github.com/99designs/gqlgen/graphql/handler/apollotracing.Tracer.InterceptResponse({}, {0xe9b410, 0xc0063d08a0}, 0xc00947fcc8)
    /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/handler/apollotracing/tracer.go:111 +0x232
github.com/99designs/gqlgen/graphql/executor.processExtensions.func6({0xe9b410, 0xc0063d08a0}, 0xc00c9a6b60)
    /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:91 +0xa2
github.com/99designs/gqlgen/graphql/executor.(*Executor).DispatchOperation.func1.1({0xe9b410, 0xc0063d07b0})
    /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/executor.go:118 +0x104
github.com/99designs/gqlgen/graphql/handler/transport.POST.Do({0xe9b410?}, {0xe995a0?, 0xc0038ae0e0}, 0xc00b764e00, {0xe9b170, 0xc0004d0320})
    /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/handler/transport/http_post.go:91 +0x556
github.com/99designs/gqlgen/graphql/handler.(*Server).ServeHTTP(0xc00051d4e0, {0xe995a0?, 0xc0038ae0e0}, 0xc00b764e00)
    /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/handler/server.go:121 +0x278
github.com/empiricaly/tajriba/internal/server.graphqlHandler.func7({0xe995a0, 0xc0038ae0e0}, 0xc00c7fb830?, {0xc00050ed20?, 0xd44300?, 0xa1f001?})
    /go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/server/graphql.go:252 +0x70
github.com/empiricaly/tajriba/internal/server.Enable.Middleware.func1({0xe995a0, 0xc0038ae0e0}, 0xc00b764c00, {0x0, 0x0, 0x0})
    /go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/auth/authhttp/middleware.go:37 +0x18e
github.com/empiricaly/tajriba/internal/server.Enable.requestMetadata.func2({0xe995a0, 0xc0038ae0e0}, 0xc00b764b00, {0x0, 0x0, 0x0})
    /go/pkg/mod/github.com/empiricaly/tajriba@v1.5.3/internal/server/server.go:147 +0xda
github.com/julienschmidt/httprouter.(*Router).ServeHTTP(0xc0001428a0, {0xe995a0, 0xc0038ae0e0}, 0xc00b764b00)
    /go/pkg/mod/github.com/julienschmidt/httprouter@v1.3.0/router.go:387 +0x7eb
github.com/empiricaly/empirica/internal/server.(*Server).Start.(*Cors).Handler.func4({0xe995a0, 0xc0038ae0e0}, 0xc00b764b00)
    /go/pkg/mod/github.com/rs/cors@v1.8.2/cors.go:231 +0x184
net/http.HandlerFunc.ServeHTTP(0x4123a5?, {0xe995a0?, 0xc0038ae0e0?}, 0xc0038ae001?)
    /usr/local/go/src/net/http/server.go:2136 +0x29
net/http.serverHandler.ServeHTTP({0xe97160?}, {0xe995a0?, 0xc0038ae0e0?}, 0x6?)
    /usr/local/go/src/net/http/server.go:2938 +0x8e
net/http.(*conn).serve(0xc00b0982d0, {0xe9b410, 0xc00031a390})
    /usr/local/go/src/net/http/server.go:2009 +0x5f4
created by net/http.(*Server).Serve in goroutine 31
    /usr/local/go/src/net/http/server.go:3086 +0x5cb

22:57:37.610 WRN failed load: [Network] request to http://localhost:3000/query failed, reason: socket hang up
22:57:37.612 WRN failed load: [Network] request to http://localhost:3000/query failed, reason: socket hang up
Error: Unhandled error. (connect ECONNREFUSED 127.0.0.1:3000)
    at Ia.Ot.emit (/tmp/69b85f8d2d33cc16/node_modules/@empirica/tajriba/src/events.js:146:14)
    at error (/tmp/69b85f8d2d33cc16/node_modules/@empirica/tajriba/src/tajriba.ts:332:9)
    at Object.emit (/tmp/69b85f8d2d33cc16/node_modules/graphql-ws/lib/client.mjs:104:21)
    at Ge.de.onerror (/tmp/69b85f8d2d33cc16/node_modules/graphql-ws/lib/client.mjs:162:47)
    at kf (/tmp/69b85f8d2d33cc16/node_modules/ws/lib/event-target.js:290:14)
    at Ge.n (/tmp/69b85f8d2d33cc16/node_modules/ws/lib/event-target.js:230:9)
    at Ge.emit (node:events:513:28)
    at Ef (/tmp/69b85f8d2d33cc16/node_modules/ws/lib/websocket.js:1027:13)
    at ClientRequest.<anonymous> (/tmp/69b85f8d2d33cc16/node_modules/ws/lib/websocket.js:874:5)
    at ClientRequest.emit (node:events:513:28) {
  context: M1 {
    [Symbol(kTarget)]: Ge {
      _events: [Object: null prototype] {
        error: [Function: n] {
          [Symbol(kIsForOnEventAttribute)]: true,
          [Symbol(kListener)]: [Function (anonymous)]
        },
        close: [Function: n] {
          [Symbol(kIsForOnEventAttribute)]: true,
          [Symbol(kListener)]: [Function (anonymous)]
        },
        open: [Function: n] {
          [Symbol(kIsForOnEventAttribute)]: true,
          [Symbol(kListener)]: [AsyncFunction (anonymous)]
        },
        message: [Function: n] {
          [Symbol(kIsForOnEventAttribute)]: true,
          [Symbol(kListener)]: [Function (anonymous)]
        }
      },
      _eventsCount: 4,
      _maxListeners: undefined,
      _binaryType: 'nodebuffer',
      _closeCode: 1006,
      _closeFrameReceived: false,
      _closeFrameSent: false,
      _closeMessage: Buffer(0) [Uint8Array] [],
      _closeTimer: null,
      _extensions: {},
      _paused: false,
      _protocol: '',
      _readyState: 2,
      _receiver: null,
      _sender: null,
      _socket: null,
      _bufferedAmount: 0,
      _isServer: false,
      _redirects: 0,
      _url: 'ws://localhost:3000/query',
      _req: null,
      [Symbol(kCapture)]: false
    },
    [Symbol(kType)]: 'error',
    [Symbol(kError)]: Error: connect ECONNREFUSED 127.0.0.1:3000
        at __node_internal_captureLargerStackTrace (node:internal/errors:477:5)
        at __node_internal_exceptionWithHostPort (node:internal/errors:655:12)
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1247:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '127.0.0.1',
      port: 3000
    },
    [Symbol(kMessage)]: 'connect ECONNREFUSED 127.0.0.1:3000'
  }
}
{"level":"fatal","error":"npm run --silent serve -- --token PFHdSUXYnatSDCzi --url http://localhost:3000/query --sessionTokenPath /root/.empirica/local/callBackSessionToken: exit status 1","time":"2023-12-10T22:57:40.656803873Z","message":"empirica: failed to start"}

Anything else?

No response

Code of Conduct

frasalvi commented 10 months ago

I am getting a very similar error, on version 1.8.5.

{"level":"warn","time":"2023-12-11T10:38:13.9504333Z","message":"changes: conn write timeout"}
{"level":"warn","time":"2023-12-11T10:38:14.052626653Z","message":"changes: conn write timeout"}
{"level":"warn","time":"2023-12-11T10:38:14.153818495Z","message":"changes: conn write timeout"}
{"level":"warn","time":"2023-12-11T10:38:14.255410684Z","message":"changes: conn write timeout"}
{"level":"warn","time":"2023-12-11T10:38:14.356193981Z","message":"changes: conn write timeout"}
{"level":"warn","time":"2023-12-11T10:38:14.456914478Z","message":"changes: conn write timeout"}
{"level":"warn","time":"2023-12-11T10:38:14.557760724Z","message":"changes: conn write timeout"}
{"level":"warn","time":"2023-12-11T10:38:14.696770053Z","message":"changes: conn write timeout"}
{"level":"warn","time":"2023-12-11T10:38:14.797518295Z","message":"changes: conn write timeout"}
{"level":"warn","time":"2023-12-11T10:38:14.898194971Z","message":"changes: conn write timeout"}
{"level":"warn","time":"2023-12-11T10:38:14.999075242Z","message":"changes: conn write timeout"}
{"level":"warn","time":"2023-12-11T10:38:15.100602096Z","message":"changes: conn write timeout"}
{"level":"warn","time":"2023-12-11T10:38:15.201444205Z","message":"changes: conn write timeout"}
{"level":"warn","time":"2023-12-11T10:38:15.30197743Z","message":"changes: conn write timeout"}
POTENTIAL DEADLOCK:
Previous place where the lock was grabbed
goroutine 69259 lock 0xc00012d3c0
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/runtime/attribute.go:26 runtime.(*Runtime).SetAttributes ??? <<<<<
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/runtime/attribute.go:25 runtime.(*Runtime).SetAttributes ???
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/graph/attribute.resolvers.go:67 graph.(*mutationResolver).SetAttributes ???
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/graph/generated.go:5567 graph.(*executionContext)._Mutation_setAttributes.func2 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:71 executor.processExtensions.func4 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:109 executor.processExtensions.func8.1 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/handler/apollotracing/tracer.go:83 apollotracing.Tracer.InterceptField ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:108 executor.processExtensions.func8 ???
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/graph/generated.go:5569 graph.(*executionContext)._Mutation_setAttributes ???
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/graph/generated.go:14603 graph.(*executionContext)._Mutation.func1 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:68 executor.processExtensions.func3 ???
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/graph/generated.go:14602 graph.(*executionContext)._Mutation ???
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/graph/generated.go:1727 graph.(*executableSchema).Exec.func2 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/executor.go:119 executor.(*Executor).DispatchOperation.func1.1.1 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:65 executor.processExtensions.func2 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:91 executor.processExtensions.func6.1 ???
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/server/graphql.go:216 server.graphqlHandler.func6 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:159 executor.aroundRespFunc.InterceptResponse ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:90 executor.processExtensions.func6 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:91 executor.processExtensions.func6.1 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/handler/apollotracing/tracer.go:110 apollotracing.Tracer.InterceptResponse ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:90 executor.processExtensions.func6 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/executor.go:126 executor.(*Executor).DispatchOperation.func1.1 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/handler/transport/websocket.go:383 transport.(*wsConnection).subscribe.func1 ???

Have been trying to lock it again for more than 30s
goroutine 68996 lock 0xc00012d3c0
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/runtime/attribute.go:26 runtime.(*Runtime).SetAttributes ??? <<<<<
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/runtime/attribute.go:25 runtime.(*Runtime).SetAttributes ???
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/graph/attribute.resolvers.go:67 graph.(*mutationResolver).SetAttributes ???
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/graph/generated.go:5567 graph.(*executionContext)._Mutation_setAttributes.func2 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:71 executor.processExtensions.func4 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:109 executor.processExtensions.func8.1 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/handler/apollotracing/tracer.go:83 apollotracing.Tracer.InterceptField ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:108 executor.processExtensions.func8 ???
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/graph/generated.go:5569 graph.(*executionContext)._Mutation_setAttributes ???
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/graph/generated.go:14603 graph.(*executionContext)._Mutation.func1 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:68 executor.processExtensions.func3 ???
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/graph/generated.go:14602 graph.(*executionContext)._Mutation ???
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/graph/generated.go:1727 graph.(*executableSchema).Exec.func2 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/executor.go:119 executor.(*Executor).DispatchOperation.func1.1.1 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:65 executor.processExtensions.func2 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:91 executor.processExtensions.func6.1 ???
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/server/graphql.go:216 server.graphqlHandler.func6 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:159 executor.aroundRespFunc.InterceptResponse ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:90 executor.processExtensions.func6 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:91 executor.processExtensions.func6.1 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/handler/apollotracing/tracer.go:110 apollotracing.Tracer.InterceptResponse ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:90 executor.processExtensions.func6 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/executor.go:126 executor.(*Executor).DispatchOperation.func1.1 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/handler/transport/websocket.go:383 transport.(*wsConnection).subscribe.func1 ???

{"level":"warn","time":"2023-12-11T10:38:15.531058742Z","message":"changes: conn write timeout"}
Here is what goroutine 69259 doing now
goroutine 69259 [sync.Mutex.Lock]:
sync.runtime_SemacquireMutex(0x42?, 0xf4?, 0xdeb097?)
        /usr/local/go/src/runtime/sema.go:77 +0x26
sync.(*Mutex).lockSlow(0xc000124240)
        /usr/local/go/src/sync/mutex.go:171 +0x165
sync.(*Mutex).Lock(...)
        /usr/local/go/src/sync/mutex.go:90
github.com/sasha-s/go-deadlock.(*lockOrder).postUnlock(0xc000124240, {0xcfbf00, 0xc000864b94})
        /go/pkg/mod/github.com/sasha-s/go-deadlock@v0.3.1/deadlock.go:330 +0x45
github.com/sasha-s/go-deadlock.postUnlock(...)
        /go/pkg/mod/github.com/sasha-s/go-deadlock@v0.3.1/deadlock.go:167
github.com/sasha-s/go-deadlock.(*Mutex).Unlock(0xa8996a?)
        /go/pkg/mod/github.com/sasha-s/go-deadlock@v0.3.1/deadlock.go:97 +0x56
github.com/empiricaly/tajriba/internal/runtime.(*changesSub).Send(0xc000864b40, {0xc00328e3a0, 0x1, 0x7fcc5f4865b8?})
        /go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/runtime/change.go:111 +0x5bd
github.com/empiricaly/tajriba/internal/runtime.(*changesSub).publish(0xc000864b40, {0xc0004b1d10?, 0xc00045e300?}, {0xc00261a730, 0x1, 0x1})
        /go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/runtime/change.go:249 +0x59b
github.com/empiricaly/tajriba/internal/runtime.(*Runtime).pushAttributesForChanges(0xc00012d380, {0xf0f5e8, 0xc0012d46c0}, {0xc00261a720, 0x1, 0x0?})
        /go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/runtime/change.go:338 +0x452
github.com/empiricaly/tajriba/internal/runtime.(*Runtime).pushAttributes(0xc00012d380?, {0xf0f5e8, 0xc0012d46c0}, {0xc00261a720, 0x1, 0x1})
        /go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/runtime/attribute.go:309 +0x3b
github.com/empiricaly/tajriba/internal/runtime.(*Runtime).setAttributes(0xc00012d380, {0xf0f5e8, 0xc0012d46c0}, {0xc00261a720?, 0x1, 0x1})
        /go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/runtime/attribute.go:241 +0x28c
github.com/empiricaly/tajriba/internal/runtime.(*Runtime).SetAttributes(0xc00012d380, {0xf0f5e8, 0xc0012d46c0}, {0xc000a084a8, 0x1, 0x1})
        /go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/runtime/attribute.go:34 +0x18e
github.com/empiricaly/tajriba/internal/graph.(*mutationResolver).SetAttributes(0xcee820?, {0xf0f5e8, 0xc0012d46c0}, {0xc000a084a8, 0x1, 0x1})
        /go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/graph/attribute.resolvers.go:67 +0x89
github.com/empiricaly/tajriba/internal/graph.(*executionContext)._Mutation_setAttributes.func2({0xf0f5e8?, 0xc0012d46c0})
        /go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/graph/generated.go:5568 +0xcc
github.com/99designs/gqlgen/graphql/executor.processExtensions.func4({0xf0f5e8?, 0xc0012d46c0?}, 0x4ce737?)
        /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:72 +0x26
github.com/99designs/gqlgen/graphql/executor.processExtensions.func8.1({0xf0f5e8?, 0xc0012d46c0?})
        /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:110 +0x2b
github.com/99designs/gqlgen/graphql/handler/apollotracing.Tracer.InterceptField({}, {0xf0f5e8, 0xc0012d46c0}, 0xc000e96108)
        /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/handler/apollotracing/tracer.go:84 +0x112
github.com/99designs/gqlgen/graphql/executor.processExtensions.func8({0xf0f5e8, 0xc0012d46c0}, 0xc0012d0520)
        /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:109 +0xb0
github.com/empiricaly/tajriba/internal/graph.(*executionContext)._Mutation_setAttributes(0xc0012d0460, {0xf0f5e8, 0xc0012d4510}, {0xc0012c0fc0, {0xc0033d79d0, 0x1, 0x1}, 0x0})
        /go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/graph/generated.go:5566 +0x232
github.com/empiricaly/tajriba/internal/graph.(*executionContext)._Mutation.func1({0xf0f5e8?, 0xc0012d4510?})
        /go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/graph/generated.go:14604 +0x47
github.com/99designs/gqlgen/graphql/executor.processExtensions.func3({0xf0f5e8?, 0xc0012d4510?}, 0xca9be0?)
        /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:69 +0x26
github.com/empiricaly/tajriba/internal/graph.(*executionContext)._Mutation(0xc0012d0460, {0xf0f5e8, 0xc0012d4450}, {0xc0033d7370, 0x1, 0x1})
        /go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/graph/generated.go:14603 +0xee4
github.com/empiricaly/tajriba/internal/graph.(*executableSchema).Exec.func2({0xf0f5e8?, 0xc0012d43f0?})
        /go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/graph/generated.go:1726 +0x93
github.com/99designs/gqlgen/graphql/executor.(*Executor).DispatchOperation.func1.1.1({0xf0f5e8, 0xc0012d43f0})
        /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/executor.go:119 +0x2b
github.com/99designs/gqlgen/graphql/executor.processExtensions.func2({0xf0f5e8?, 0xc0012d43f0?}, 0x4ce737?)
        /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:66 +0x26
github.com/99designs/gqlgen/graphql/executor.processExtensions.func6.1({0xf0f5e8?, 0xc0012d43f0?})
        /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:92 +0x2b
github.com/empiricaly/tajriba/internal/server.graphqlHandler.func6({0xf0f5e8, 0xc0012d43f0}, 0xc000e960c0)
        /go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/server/graphql.go:217 +0x99
github.com/99designs/gqlgen/graphql/executor.aroundRespFunc.InterceptResponse(0xddaa7f?, {0xf0f5e8?, 0xc0012d43f0?}, 0x80?)
        /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:160 +0x2f
github.com/99designs/gqlgen/graphql/executor.processExtensions.func6({0xf0f5e8, 0xc0012d43f0}, 0xc0033d79c0)
        /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:91 +0xb0
github.com/99designs/gqlgen/graphql/executor.processExtensions.func6.1({0xf0f5e8?, 0xc0012d43f0?})
        /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:92 +0x2b
github.com/99designs/gqlgen/graphql/handler/apollotracing.Tracer.InterceptResponse({}, {0xf0f5e8, 0xc0012d43f0}, 0xc000e960a8)
        /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/handler/apollotracing/tracer.go:111 +0x245
github.com/99designs/gqlgen/graphql/executor.processExtensions.func6({0xf0f5e8, 0xc0012d43f0}, 0xc0033d79c0)
        /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:91 +0xb0
github.com/99designs/gqlgen/graphql/executor.(*Executor).DispatchOperation.func1.1({0xf0f5e8, 0xc0012d4330})
        /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/executor.go:118 +0x113
github.com/99designs/gqlgen/graphql/handler/transport.(*wsConnection).subscribe.func1()
        /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/handler/transport/websocket.go:383 +0x1c3
created by github.com/99designs/gqlgen/graphql/handler/transport.(*wsConnection).subscribe
        /go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/handler/transport/websocket.go:356 +0x55f
Other goroutines holding locks:
goroutine 69259 lock 0xc000864b94
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/runtime/change.go:65 runtime.(*changesSub).Send ??? <<<<<
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/runtime/change.go:64 runtime.(*changesSub).Send ???
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/runtime/change.go:250 runtime.(*changesSub).publish ???
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/runtime/change.go:337 runtime.(*Runtime).pushAttributesForChanges ???
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/runtime/attribute.go:308 runtime.(*Runtime).pushAttributes ???
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/runtime/attribute.go:240 runtime.(*Runtime).setAttributes ???
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/runtime/attribute.go:33 runtime.(*Runtime).SetAttributes ???
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/graph/attribute.resolvers.go:67 graph.(*mutationResolver).SetAttributes ???
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/graph/generated.go:5567 graph.(*executionContext)._Mutation_setAttributes.func2 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:71 executor.processExtensions.func4 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:109 executor.processExtensions.func8.1 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/handler/apollotracing/tracer.go:83 apollotracing.Tracer.InterceptField ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:108 executor.processExtensions.func8 ???
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/graph/generated.go:5569 graph.(*executionContext)._Mutation_setAttributes ???
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/graph/generated.go:14603 graph.(*executionContext)._Mutation.func1 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:68 executor.processExtensions.func3 ???
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/graph/generated.go:14602 graph.(*executionContext)._Mutation ???
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/graph/generated.go:1727 graph.(*executableSchema).Exec.func2 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/executor.go:119 executor.(*Executor).DispatchOperation.func1.1.1 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:65 executor.processExtensions.func2 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:91 executor.processExtensions.func6.1 ???
go/pkg/mod/github.com/empiricaly/tajriba@v1.4.0/internal/server/graphql.go:216 server.graphqlHandler.func6 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:159 executor.aroundRespFunc.InterceptResponse ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:90 executor.processExtensions.func6 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:91 executor.processExtensions.func6.1 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/handler/apollotracing/tracer.go:110 apollotracing.Tracer.InterceptResponse ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/extensions.go:90 executor.processExtensions.func6 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/executor/executor.go:126 executor.(*Executor).DispatchOperation.func1.1 ???
go/pkg/mod/github.com/99designs/gqlgen@v0.17.36/graphql/handler/transport/websocket.go:383 transport.(*wsConnection).subscribe.func1 ???

Error: Unhandled error. (connect ECONNREFUSED 127.0.0.1:3000)
    at Oa.ht.emit (/tmp/3ff8438d80aefde2/node_modules/@empirica/tajriba/src/events.js:156:9)
    at error (/tmp/3ff8438d80aefde2/node_modules/@empirica/tajriba/src/tajriba.ts:323:16)
    at Object.emit (/tmp/3ff8438d80aefde2/node_modules/graphql-ws/lib/client.mjs:104:21)
    at Pe.X.onerror (/tmp/3ff8438d80aefde2/node_modules/graphql-ws/lib/client.mjs:162:47)
    at Yh (/tmp/3ff8438d80aefde2/node_modules/ws/lib/event-target.js:290:14)
    at Pe.n (/tmp/3ff8438d80aefde2/node_modules/ws/lib/event-target.js:230:9)
    at Pe.emit (node:events:513:28)
    at Qh (/tmp/3ff8438d80aefde2/node_modules/ws/lib/websocket.js:1016:13)
    at ClientRequest.<anonymous> (/tmp/3ff8438d80aefde2/node_modules/ws/lib/websocket.js:864:5)
    at ClientRequest.emit (node:events:513:28) {
  context: Yu {
    [Symbol(kTarget)]: Pe {
      _events: [Object: null prototype] {
        error: [Function: n] {
          [Symbol(kIsForOnEventAttribute)]: true,
          [Symbol(kListener)]: [Function (anonymous)]
        },
        close: [Function: n] {
          [Symbol(kIsForOnEventAttribute)]: true,
          [Symbol(kListener)]: [Function (anonymous)]
        },
        open: [Function: n] {
          [Symbol(kIsForOnEventAttribute)]: true,
          [Symbol(kListener)]: [AsyncFunction (anonymous)]
        },
        message: [Function: n] {
          [Symbol(kIsForOnEventAttribute)]: true,
          [Symbol(kListener)]: [Function (anonymous)]
        }
      },
      _eventsCount: 4,
      _maxListeners: undefined,
      _binaryType: 'nodebuffer',
      _closeCode: 1006,
      _closeFrameReceived: false,
      _closeFrameSent: false,
      _closeMessage: Buffer(0) [Uint8Array] [],
      _closeTimer: null,
      _extensions: {},
      _paused: false,
      _protocol: '',
      _readyState: 2,
      _receiver: null,
      _sender: null,
      _socket: null,
      _bufferedAmount: 0,
      _isServer: false,
      _redirects: 0,
      _url: 'ws://localhost:3000/query',
      _req: null,
      [Symbol(kCapture)]: false
    },
    [Symbol(kType)]: 'error',
    [Symbol(kError)]: Error: connect ECONNREFUSED 127.0.0.1:3000
        at __node_internal_captureLargerStackTrace (node:internal/errors:477:5)
        at __node_internal_exceptionWithHostPort (node:internal/errors:655:12)
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1247:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '127.0.0.1',
      port: 3000
    },
    [Symbol(kMessage)]: 'connect ECONNREFUSED 127.0.0.1:3000'
  }
}
npm notice
npm notice New major version of npm available! 8.15.0 -> 10.2.5
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.5>
npm notice Run `npm install -g npm@10.2.5` to update!
npm notice
{"level":"fatal","error":"npm run --silent serve -- --token iWHGzvMWkhogPCHP --url http://localhost:3000/query --sessionTokenPath /.empirica/local/callBackSessionToken: exit status 1","time":"2023-12-11T10:38:19.221962031Z","message":"empirica: failed to start"}
npaton commented 9 months ago

This should be fixed.