run the dify-plugin-daemon on linux but error #139

Open
opened 2026-02-16 00:20:04 -05:00 by yindo · 3 comments
Owner

Originally created by @easonton on GitHub (Jun 17, 2025).

i clone the repo and run on linux.
start command is 'go run cmd/server/main.go'.
and the log is

` [INFO]plugin langgenius/alphavantage:0.0.2 python path: /cwd/langgenius/alphavantage-0.0.2@8626421c73cf895774bc112173553faaa2df792dee09dd8e2239a33f9eb7b794/.venv/bin/python
2025/06/17 14:25:21 run.go:122: [INFO]plugin langgenius/alphavantage:0.0.2 starting with working dir: cwd/langgenius/alphavantage-0.0.2@8626421c73cf895774bc112173553faaa2df792dee09dd8e2239a33f9eb7b794
2025/06/17 14:25:21 run.go:195: [INFO]plugin langgenius/alphavantage:0.0.2 started
[ERROR]plugin langgenius/alphavantage:0.0.2 final error state: exit status 255
.0.2@8626421c73cf895774bc112173553faaa2df792dee09dd8e2239a33f9eb7b794/tools/pycache/query_stock.cpython-312.pyc matches /cwd/langgenius/alphavantage-0.0.2@8626421c73cf895774bc112173553faaa2df792dee09dd8e2239a33f9eb7b794/tools/query_stock.py

code object from '/cwd/langgenius/alphavantage-0.0.2@8626421c73cf895774bc112173553faaa2df792dee09dd8e2239a33f9eb7b794/tools/pycache/query_stock.cpython-312.pyc'

import 'tools.query_stock' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd183759dc0>

destroy provider.alphavantage

/cwd/langgenius/alphavantage-0.0.2@8626421c73cf895774bc112173553faaa2df792dee09dd8e2239a33f9eb7b794/tools/pycache/query_stock.cpython-312.pyc matches /cwd/langgenius/alphavantage-0.0.2@8626421c73cf895774bc112173553faaa2df792dee09dd8e2239a33f9eb7b794/tools/query_stock.py

code object from '/cwd/langgenius/alphavantage-0.0.2@8626421c73cf895774bc112173553faaa2df792dee09dd8e2239a33f9eb7b794/tools/pycache/query_stock.cpython-312.pyc'

destroy tools.query_stock`

then I run the plugin on linux

Image

Originally created by @easonton on GitHub (Jun 17, 2025). i clone the repo and run on linux. start command is 'go run cmd/server/main.go'. and the log is ` [INFO]plugin langgenius/alphavantage:0.0.2 python path: /cwd/langgenius/alphavantage-0.0.2@8626421c73cf895774bc112173553faaa2df792dee09dd8e2239a33f9eb7b794/.venv/bin/python 2025/06/17 14:25:21 run.go:122: [INFO]plugin langgenius/alphavantage:0.0.2 starting with working dir: cwd/langgenius/alphavantage-0.0.2@8626421c73cf895774bc112173553faaa2df792dee09dd8e2239a33f9eb7b794 2025/06/17 14:25:21 run.go:195: [INFO]plugin langgenius/alphavantage:0.0.2 started [ERROR]plugin langgenius/alphavantage:0.0.2 final error state: exit status 255 .0.2@8626421c73cf895774bc112173553faaa2df792dee09dd8e2239a33f9eb7b794/tools/__pycache__/query_stock.cpython-312.pyc matches /cwd/langgenius/alphavantage-0.0.2@8626421c73cf895774bc112173553faaa2df792dee09dd8e2239a33f9eb7b794/tools/query_stock.py # code object from '/cwd/langgenius/alphavantage-0.0.2@8626421c73cf895774bc112173553faaa2df792dee09dd8e2239a33f9eb7b794/tools/__pycache__/query_stock.cpython-312.pyc' import 'tools.query_stock' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd183759dc0> # destroy provider.alphavantage # /cwd/langgenius/alphavantage-0.0.2@8626421c73cf895774bc112173553faaa2df792dee09dd8e2239a33f9eb7b794/tools/__pycache__/query_stock.cpython-312.pyc matches /cwd/langgenius/alphavantage-0.0.2@8626421c73cf895774bc112173553faaa2df792dee09dd8e2239a33f9eb7b794/tools/query_stock.py # code object from '/cwd/langgenius/alphavantage-0.0.2@8626421c73cf895774bc112173553faaa2df792dee09dd8e2239a33f9eb7b794/tools/__pycache__/query_stock.cpython-312.pyc' # destroy tools.query_stock` then I run the plugin on linux ![Image](https://github.com/user-attachments/assets/16d261da-4c1c-4d94-9e09-a8a535739c87)
Author
Owner

@easonton commented on GitHub (Jun 17, 2025):

Do dify services and plugin services have to run on the same machine? Can you modify PLUGIN-DAEMON-URL in the dify service env to a remote address and split the plugin service

@easonton commented on GitHub (Jun 17, 2025): Do dify services and plugin services have to run on the same machine? Can you modify PLUGIN-DAEMON-URL in the dify service env to a remote address and split the plugin service
Author
Owner

@xiaomeixw commented on GitHub (Aug 12, 2025):

Do dify services and plugin services have to run on the same machine? Can you modify PLUGIN-DAEMON-URL in the dify service env to a remote address and split the plugin service

It can definitely be separated. The Dify server and Dify-plugin do not need to be on the same server.

@xiaomeixw commented on GitHub (Aug 12, 2025): > Do dify services and plugin services have to run on the same machine? Can you modify PLUGIN-DAEMON-URL in the dify service env to a remote address and split the plugin service It can definitely be separated. The Dify server and Dify-plugin do not need to be on the same server.
Author
Owner

@xiaomeixw commented on GitHub (Aug 12, 2025):

But they need to share the same set of middleware, so the separately deployed Dify-plugin needs to be configured with the middleware's IP address and parameters.

@xiaomeixw commented on GitHub (Aug 12, 2025): But they need to share the same set of middleware, so the separately deployed Dify-plugin needs to be configured with the middleware's IP address and parameters.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#139