PluginDaemonInternalServerError: failed to get plugin runtime when invoking tool with file upload via remote debug

Open
#771 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
go, python
Domain
api, backend

Research direction

Start by reproducing the remote debug router workflow with command="add" and an uploaded .zip passed through files, then trace plugin runtime acquisition before the tool's _invoke runs. Compare that path with the confirmed local python -m main flow and the successful file-download and zip-extraction simulation. Done means the remote invocation obtains the plugin runtime and reaches the tool code without PluginDaemonInternalServerError.

Written by the indexing model from the issue text.

Description

bug plugin-daemon project#dify-plugin-daemon

Environment

  • Remote debug install (debug.dify.ai:5003)
  • dify-plugin SDK v0.9.1
  • Python 3.12

Steps to reproduce
A router workflow calls a tool with command="add" and an uploaded .zip file (passed via the files param). The plugin process is confirmed running locally (python -m main logs Installed tool: ...).

Error
PluginDaemonInternalServerError: failed to get plugin runtime — occurring before any of the tool's own code executes.

What's been ruled out

  • manifest.yaml validated against the current SDK's Pydantic models (PluginConfiguration, I18nObject, etc.) — fully compliant
  • Simulated the exact file-download + zip-extraction flow locally using the real upload URL — succeeds without error
  • Added debug instrumentation directly in the tool's _invoke to confirm request routing/reachability

manifest.yaml

version: 0.0.2
type: plugin
author: pareek-ml
name: agent_skills
label:
  en_US: agent_skills
description:
  en_US: allows you to install and use custom skills
icon: icon.svg
icon_dark: icon-dark.svg
resource:
  memory: 268435456
  permission:
    tool:
      enabled: true
    model:
      enabled: true
      llm: true
      text_embedding: false
      rerank: false
      tts: false
      speech2text: false
      moderation: false
    endpoint:
      enabled: true
    app:
      enabled: true
    storage:
      enabled: true
      size: 104857600
plugins:
  tools:
    - provider/agent_skills.yaml
meta:
  version: 0.0.2
  arch:
    - amd64
    - arm64
  runner:
    language: python
    version: "3.12"
    entrypoint: main
  minimum_dify_version: null
created_at: 2026-07-15T16:56:51.72279+02:00
privacy: PRIVACY.md
verified: false
Dominant language
Go
Stars
462
Forks
326
Avg merge
22h 15m
Merged PRs (30d)
8

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from langgenius/dify-plugin-daemon

All issues in langgenius/dify-plugin-daemon

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.