Self Checks
To make sure we get to you in time, please check the following :)
Versions
- dify-plugin-daemon Version
- dify-api Version
Describe the bug
panic error
"goroutine 10317701 [running]:github.com/langgenius/dify-plugin-daemon/pkg/utils/routine.Submit.func1.1.1()/app/pkg/utils/routine/pool.go:64 +0x65panic({0x2b49440?, 0x5131a10?})/usr/local/go/src/runtime/panic.go:783 +0x132bufio.(*Writer).Flush(0xc00a744ec0)/usr/local/go/src/bufio/bufio.go:645 +0x45net/http.(*response).FlushError(0xc00e269860)/usr/local/go/src/net/http/server.go:1764 +0x33net/http.(*response).Flush(0xc00ce1d200?)/usr/local/go/src/net/http/server.go:1757 +0x13github.com/gin-gonic/gin.(*responseWriter).Flush(0xc00a6ef800?)/go/pkg/mod/github.com/gin-gonic/[email protected]/response_writer.go:129 +0xa2github.com/langgenius/dify-plugin-daemon/internal/core/io_tunnel/backwards_invocation/transaction.(*serverlessTransactionWriteCloser).Flush(0xc00f7a9b00?)/app/internal/core/io_tunnel/backwards_invocation/transaction/serverless_handler.go:41 +0x13github.com/langgenius/dify-plugin-daemon/internal/core/io_tunnel/backwards_invocation/transaction.(*ServerlessTransactionWriter).Write(0xc00cdfcd50, {0x3148b9b?, 0xc01102e750?}, {0x2931940?, 0xc009f1fe00?})/app/internal/core/io_tunnel/backwards_invocation/transaction/serverless_writer.go:42 +0x9fgithub.com/langgenius/dify-plugin-daemon/internal/core/io_tunnel/backwards_invocation.(*BackwardsInvocation).WriteError(0xc0096214a0, {0x3657700?, 0xc012350d90?})/app/internal/core/io_tunnel/backwards_invocation/request.go:60 +0xefgithub.com/langgenius/dify-plugin-daemon/internal/core/io_tunnel/backwards_invocation.executeDifyInvocationLLMTask(0xc0096214a0, 0xc00cdfcdb0?)/app/internal/core/io_tunnel/backwards_invocation/task.go:361 +0x2f8github.com/langgenius/dify-plugin-daemon/internal/core/io_tunnel/backwards_invocation.genericDispatchTask[...](0xc0096214a0?, 0x325f340)/app/internal/core/io_tunnel/backwards_invocation/task.go:297 +0x9dgithub.com/langgenius/dify-plugin-daemon/internal/core/io_tunnel/backwards_invocation.init.func19(0x2c0ec80?)/app/internal/core/io_tunnel/backwards_invocation/task.go:235 +0x25github.com/langgenius/dify-plugin-daemon/internal/core/io_tunnel/backwards_invocation.dispatchDifyInvocationTask(0xc0096214a0)/app/internal/core/io_tunnel/backwards_invocation/task.go:319 +0x385github.com/langgenius/dify-plugin-daemon/internal/core/io_tunnel/backwards_invocation.InvokeDify.func1()/app/internal/core/io_tunnel/backwards_invocation/task.go:64 +0x28github.com/langgenius/dify-plugin-daemon/pkg/utils/routine.Submit.func1.1({0x3690cb8?, 0xc01597e0f0?})/app/pkg/utils/routine/pool.go:68 +0x44runtime/pprof.Do({0x3690c80?, 0x51e4f80?}, {{0xc007998720?, 0x315cc8d?, 0x29ea400?}}, 0xc00f2f9f68)/usr/local/go/src/runtime/pprof/runtime.go:51 +0x8cgithub.com/langgenius/dify-plugin-daemon/pkg/utils/routine.Submit.func1()/app/pkg/utils/routine/pool.go:58 +0x14agithub.com/panjf2000/ants/v2.(*goWorker).run.func1()/go/pkg/mod/github.com/panjf2000/ants/[email protected]/worker.go:71 +0x8acreated by github.com/panjf2000/ants/v2.(*goWorker).run in goroutine 10270098/go/pkg/mod/github.com/panjf2000/ants/[email protected]/worker.go:48 +0x5c"
error
"github.com/langgenius/dify-plugin-daemon/internal/core/control_panel.(*ControlPanel).onDebuggingRuntimeDisconnected/app/internal/core/control_panel/server_debugger.go:56github.com/langgenius/dify-plugin-daemon/internal/core/control_panel.(*DebuggingRuntimeSignal).OnRuntimeDisconnected/app/internal/core/control_panel/debugging_signal.go:27github.com/panjf2000/gnet/v2.(*eventloop).close/go/pkg/mod/github.com/panjf2000/gnet/[email protected]/eventloop_unix.go:274github.com/panjf2000/gnet/v2.(*conn).Close.func1/go/pkg/mod/github.com/panjf2000/gnet/[email protected]/connection_unix.go:509github.com/panjf2000/gnet/v2/internal/netpoll.(*Poller).Polling/go/pkg/mod/github.com/panjf2000/gnet/[email protected]/internal/netpoll/poller_epoll_default.go:150github.com/panjf2000/gnet/v2.(*eventloop).run/go/pkg/mod/github.com/panjf2000/gnet/[email protected]/reactor_default.go:87golang.org/x/sync/errgroup.(*Group).Go.func1/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:93"
--
| log.file.pathtype tagdata type string | "/var/log/pods/dify-plugin_dify-plugindaemon-5977d8c866-hzmtl_53c5cfa1-977b-41fb-addd-2fd9221bfd47/dify-plugindaemon/0.log"
test failed
panic: test timed out after 1m0s
running tests:
TestStreamBlockingWrite (55s)
goroutine 9 [running]:
testing.(*M).startAlarm.func1()
/home/runner/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:2682 +0x345
created by time.goFunc
/home/runner/go/pkg/mod/golang.org/[email protected]/src/time/sleep.go:215 +0x2d
goroutine 1 [chan receive]:
testing.(*T).Run(0xc000102c40, {0x657138?, 0xc000179b30?}, 0x6679e0)
/home/runner/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:2005 +0x485
testing.runTests.func1(0xc000102c40)
/home/runner/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:2477 +0x37
testing.tRunner(0xc000102c40, 0xc000179c70)
/home/runner/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:1934 +0xea
testing.runTests(0xc0001280f0, {0x853fc0, 0x5, 0x5}, {0x7?, 0xc00012ab80?, 0x85ba60?})
/home/runner/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:2475 +0x4b4
testing.(*M).Run(0xc000118960)
/home/runner/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:2337 +0x63a
main.main()
_testmain.go:55 +0x9b
goroutine 25 [chan receive]:
github.com/langgenius/dify-plugin-daemon/pkg/utils/stream.TestStreamBlockingWrite(0xc0001036c0)
/home/runner/work/dify-plugin-daemon/dify-plugin-daemon/pkg/utils/stream/stream_test.go:128 +0x1d2
testing.tRunner(0xc0001036c0, 0x6679e0)
/home/runner/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:1934 +0xea
created by testing.(*T).Run in goroutine 1
/home/runner/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:1997 +0x465
goroutine 27 [chan receive]:
github.com/langgenius/dify-plugin-daemon/pkg/utils/stream.(*Stream[...]).Next(0x6ad2a0)
/home/runner/work/dify-plugin-daemon/dify-plugin-daemon/pkg/utils/stream/stream.go:79 +0x14d
github.com/langgenius/dify-plugin-daemon/pkg/utils/stream.TestStreamBlockingWrite.func2()
/home/runner/work/dify-plugin-daemon/dify-plugin-daemon/pkg/utils/stream/stream_test.go:119 +0x85
created by github.com/langgenius/dify-plugin-daemon/pkg/utils/stream.TestStreamBlockingWrite in goroutine 25
/home/runner/work/dify-plugin-daemon/dify-plugin-daemon/pkg/utils/stream/stream_test.go:113 +0x1c6
goroutine 26 [sleep]:
time.Sleep(0x3e8)
/home/runner/go/pkg/mod/golang.org/[email protected]/src/runtime/time.go:363 +0x165
github.com/langgenius/dify-plugin-daemon/pkg/utils/stream.TestStreamBlockingWrite.func1()
/home/runner/work/dify-plugin-daemon/dify-plugin-daemon/pkg/utils/stream/stream_test.go:106 +0x3b
created by github.com/langgenius/dify-plugin-daemon/pkg/utils/stream.TestStreamBlockingWrite in goroutine 25
/home/runner/work/dify-plugin-daemon/dify-plugin-daemon/pkg/utils/stream/stream_test.go:103 +0x12a
FAIL github.com/langgenius/dify-plugin-daemon/pkg/utils/stream 60.004s
? github.com/langgenius/dify-plugin-daemon/pkg/utils/strings [no test files]
? github.com/langgenius/dify-plugin-daemon/pkg/utils/tmpfile [no test files]
? github.com/langgenius/dify-plugin-daemon/pkg/validators [no test files]
FAIL
remote plugin has not init, then disconnect the server
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Self Checks
To make sure we get to you in time, please check the following :)
Versions
Describe the bug
panic error
error
test failed
remote plugin has not init, then disconnect the server
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.