mirror of
https://github.com/langgenius/dify-plugin-daemon.git
synced 2026-07-21 17:25:23 -04:00
add ollama model ,bug error #241
Open
opened 2026-02-16 01:15:05 -05:00 by yindo
·
12 comments
No Branch/Tag Specified
main
build/fix-serverless-runtime-error-propagation
gh-pages
build/test-document2
build/test-document
build/onboarding-ui
build/slim-extract
codex/depot-builds
codex/mac-runner-benchmark
feat/storage-path-prefix
feat/multi-db-user
feat/slim-action
deploy/dev
feat/dify-cli
feat/add-e2e
build/pg-bouncer
codex/add-multimodal-rerank-and-embedding-apis
refactor/local-runtime
build/multimodal-embeddings
codex/refactor-routine.submit-label-handling
codex/refactor-service-layer-based-on-provided-plan
feat/trigger-response
feat/trigger
build/trigger
deploy/trigger-dev
codex/remove-claude-code-reviewer-from-github-ci
codex/add-manifest-check-to-upload-endpoint
feat/no-root-dockerfile
fix/json-schema
fix/blocking-anthorized-langgenius
454-bump-cli-template
build/datasource
feat/datasource
bump-cloud-kit
feat/rag-tag
fix/change-session-not-found-to-400
feat/plugin-readme
add-claude-github-actions-1756274550417
docs/comprehensive-development-documentation
chore/remove-json-schema-validation-error
71cef04
fix/missing-parameter-type
fix/sessions-log
fix/template.env
bump/go-git
build/oauth
feat/oauth-refresh-token
feat/plugin-oauth
feat/tool-oauth-cli
build/plugin-oauth
feat/readme-i18n
fix/memory-leak
feat/icon-dark
feat/default-icon
plugin_launch_concurent
feat/collect-active-requests
feat/dark-icon
feat/support-structured-llm-output
feat/dynamic-selector
fix/reduce-logs
feat/decode-plugin-package
feat/db-extras
fix/backwards-invocation-overflow
feat/length-prefixed-chunking
fix/http-request-reader-header
chore/unify-configurations
fix/hardcoded-serverless-runtime-timeout
fix/cmd
fix/signature
refactor/implement-gen-routes
fix/redis-lock
refactor/codegen
feat/add-authorized-category
chore/style
feat/run-plugin-cli
reduce/run-once
feat/reinstall-serverless-runtime
feat/support-setup-process
fix/apply-stdio-buffer-size
chore/add-warning-messages-to-installed-bucket
feat/repo
enhance/stdio
feat/make-buffer-size-configurable
fix/moderation-init
fix/only-validate-profile-on-quick-mode
feat/support-quick-init-plugins
refactor/oauth-parameters
feat/oauth
refactor/simplify-plugin-invocation
test/integration-test-for-plugins
fix/backwards-compatible-to-llm-result-chunk
feat/auto-scale
enhance/reduce-ci-tests
fix/cli-ci
enhance/removes-llm-result-prompt-messages
fix/disable-benchmark-logs
benchmark/local-runtime
chore/remove-useless-benchmark
feat/benchmark
feat/fetch-app-info
fix/windows-remap-assets
fix/skip-hidden-file
feat/stream-tool-blob-message
fix/path-travel
feat/template-add-ci
enhance/version-compare
feat/sign-apple-os-cli
feat/support-minimal-dify-version-required
refactor/stdip
feat/add-serverless-connector-launching-timeout
fix/remove-prompt_messages-from-llm-result-chunk
feat/standardize-plugin-sdk-versions
chore/update-docs-and-refine-wording
update/readme-cli
fix/infinity-environment-setup
fix/cbor-unmarshaling
fix/use-aws-iam-baseendpoint
fix/lost-query-params-in-endpoint
fix/tiktoken
cohre/update-readme
fix/redis-tests
fix/friendly-identity
fix/marshal-any-map
chore/upgrade-ants
fix/graceful-precompile
enhance/tiktoken
feat/graceful-shutdown
fix/close-serverless-response
fix/correct-cli-guide
fix/plugin-active-log
fix/remove-proxy-args-from-uv
fix/endpoint-hook-url
fix/ci-credentials
feat/disable-gevent
fix/add-gcc
fix/hardcoded-endpoint-timeout
fix/bump-cli-sdk-version
fix/deadloop-when-redis-disconnect
fix/enhence/speed-up-environment-setup
enhance/introduce-uv
fix/change-default-db
fix/deadlock
readme
chore/env.example
feat/add-action-in-url
fix/add-more-pip-args
fix/optimize-local-heartbeat
optimize/db-init
fix/optimize-internal-server-error
fix/increase-default-plugin-max-execution-timeout
fix/force-patch-older-version
enhance/increase-installing-process
LICENSE
fix/set-user-id-to-unrequired
fix/max-launching-concurrent
improve/error-handing-in-serverless
refactor/json-unmarshaler-enhancement
fix/add-pip-mirror-url
enhance/serverless-connector
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.9
0.5.8
0.5.7
0.5.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.1
0.4.0
0.3.3
0.3.2
0.3.1
0.3.0
0.3.0b1
0.2.0
0.1.3
0.1.2
0.1.1
0.1.0
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
0.0.1-beta.23
0.0.1-beta.22
0.0.1-beta.21
0.0.1-beta.20
0.0.1-beta.19
0.0.1-beta.18
0.0.1-beta.17
0.0.1-beta.16
0.0.1-beta.15
0.0.1-beta.14
0.0.1-beta.13
0.0.1-beta.12
0.0.1-beta.11
0.0.1-beta.10
0.0.1-beta.9
0.0.1-beta.8
0.0.1-beta.7
0.0.1-beta.6
0.0.1-beta.5
0.0.1-beta.4
0.0.1-beta.3
0.0.1-beta.2
0.0.1-beta.1
Milestone
No items
No Milestone
Projects
Clear projects
No project
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: langgenius/dify-plugin-daemon#241
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ufgufg on GitHub (Feb 4, 2026).
Self Checks
To make sure we get to you in time, please check the following :)
Versions
Describe the bug
error="copy plugin to working directory error: open _assets\icon_l_en.svg: file does not exist\nopen _assets\icon_l_en.svg: file does not exist\nextract plugin to working directory error\nextract plugin to working path error\nfailed to init environment
the _assets is not ,only have assets,and the svg filename is not icon_I_en
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.
@dosubot[bot] commented on GitHub (Feb 4, 2026):
Hi @ufgufg! I'm Dosu and I’m helping the dify-plugin-daemon team.
The error happens because dify-plugin-daemon expects all plugin asset files (like SVG icons) to be in a directory named
_assets, notassets, and the filenames must match exactly what’s declared in yourmanifest.yaml. For Ollama and similar plugins, the expected icon filenames are usuallyicon.svgandicon-dark.svg(or locale-specific variants). If the manifest references a file likeicon_l_en.svg, that file must exist in_assets—otherwise, initialization fails with a file not found error. This is strictly enforced by the asset validation logic in the daemon, and any mismatch in directory name or filename will cause errors during plugin extraction and setup (source, source).To fix this: rename your
assetsdirectory to_assets, make sure the SVG icon files are named exactly as referenced in yourmanifest.yaml, and update the manifest if needed. On Windows, make sure you use forward slashes (/) in paths, as backslashes can cause issues (source). If you still see errors after making these changes, let me know what you’ve tried so far or share more details.To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
@ufgufg commented on GitHub (Feb 4, 2026):
thankyou,i dont know how to edit
@dosubot[bot] commented on GitHub (Feb 4, 2026):
The error happens because dify-plugin-daemon only looks for icon files in a folder named
_assets, and the filenames must match exactly what is written in yourmanifest.yamlfile (for example,icon_l_en.svg)—not the long hashed names you see now. Here’s how you can fix it on Windows:storage/assetsfolder, but the actual plugin’s folder—usually insidepluginorplugin_packages).assets, right-click it, choose “Rename”, and change it to_assets._assetsfolder. Make sure the SVG icon files inside are named exactly as listed in yourmanifest.yaml(for example,icon_l_en.svg). If not, right-click each file and choose “Rename” to match the correct name.manifest.yaml(you can use Notepad or any text editor), and look for lines likeicon: icon_l_en.svg. That’s the name your SVG file must have._assetsfolder with the right names.The files with long hashed names in your screenshot are not correct—they must match the names in
manifest.yamlexactly, or the plugin won’t start source source.If you need step-by-step help finding your plugin folder or editing
manifest.yaml, let me know!To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
@ufgufg commented on GitHub (Feb 4, 2026):
I installed the Ollama model from the Dify model provider, but there is no manifest.yaml file as you mentioned, nor have I found the _assets folder. Could you please take a look
@dosubot[bot] commented on GitHub (Feb 4, 2026):
You don't need to worry about manifest.yaml or the _assets folder when adding Ollama as a model provider in Dify—those files and folders are only required for custom plugins, not for provider-based models like Ollama, Azure, or Cohere. The provider integration is handled internally by Dify, so you won't see or need to manage those files yourself. If you're not seeing any errors after adding Ollama as a provider, everything is working as expected — no manual asset management is needed source.
If you do run into errors after adding Ollama, the most common cause is missing dependencies (like numpy) in the plugin-daemon container, not missing manifest.yaml or _assets. If you see a specific error, let me know the details and I can help troubleshoot source.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
@ufgufg commented on GitHub (Feb 4, 2026):
@dosubot add ollama

@ufgufg commented on GitHub (Feb 4, 2026):
@dosubot this firest wrong

@dosubot[bot] commented on GitHub (Feb 4, 2026):
The error is happening because the Ollama plugin package is missing a required SVG icon file named
_assets/icon_l_en.svg. The plugin system checks for this exact file during installation, and if it’s not present, initialization fails — this is a strict requirement enforced by the code, not a user mistake (source, source).To fix it:
pluginorplugin_packages)._assetsif it doesn’t exist.icon_l_en.svgto_assets. You can use any SVG image as a placeholder if you don’t have the original.manifest.yaml, make sure the icon filename matches what’s referenced there.After you add the missing file, try installing the plugin again. If you need help creating or finding an SVG file, let me know where you got the plugin package and I can suggest a workaround or a generic icon you can use.
This issue is common with some plugin packages and is not caused by your environment or setup (source).
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
@ufgufg commented on GitHub (Feb 4, 2026):
@dosubot
i create _assets and copy .svg file
also wrong,is placeholder wrong?
https://github.com/langgenius/dify-plugin-daemon/issues/595#issuecomment-3845648777
and Adding "ollama" to "dify" should be quite simple, shouldn't it
@dosubot[bot] commented on GitHub (Feb 4, 2026):
The placeholder SVG file itself is not the problem—as long as it’s a valid SVG (even a minimal one), the daemon only checks that the filename matches exactly what’s referenced in manifest.yaml and that it’s present in the
_assetsfolder. It does not check the SVG content, size, or format beyond basic file existence — so a simple SVG like this is enough:If you’re still seeing the same error, double-check that the filename is exactly
icon_l_en.svg(not a typo, not uppercase/lowercase mismatch), and that it’s inside the_assetsfolder—notassets—in your plugin directory. Also, make sure your manifest.yaml references the correct filename and uses forward slashes (/) in paths, especially on Windows, as backslashes can cause issues source.Adding Ollama as a plugin requires the package to include both a manifest.yaml and the correct assets. If you’re adding Ollama as a model provider (not as a plugin), you don’t need to manage these files—the integration is handled internally by Dify source. If you’re trying to install a plugin and the package is missing manifest.yaml or the required assets, it won’t work until those are added and named exactly as expected source.
If the error persists after these checks, there may be invisible formatting or encoding issues in the manifest.yaml or filenames (like BOM, CRLF line endings, or tabs). Let me know the exact error message you see after adding the placeholder, and I can help troubleshoot further.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
@ufgufg commented on GitHub (Feb 4, 2026):
@dosubot
filename is right,
I am at the dity model supplier's location, and I am encountering an error when installing ollama
@dosubot[bot] commented on GitHub (Feb 4, 2026):
The error happens because the Ollama plugin package you’re installing from the Dify model provider is missing required files inside the package itself—specifically, manifest.yaml and the SVG icon(s) in the _assets folder. The plugin system checks for these files inside the package during installation, not in your local storage folders, so manually creating _assets or copying SVGs outside the package won’t fix it. This is a strict requirement enforced by the asset validation logic, and installation will always fail if the package is incomplete or incorrectly structured — even if the filename is correct or you add a placeholder SVG yourself source.
To resolve this, you’ll need a plugin package that includes both manifest.yaml and the required icons in _assets, as distributed by the plugin author. If the official Ollama package is missing these files, installation cannot succeed until the package is updated upstream. You can check for a newer or corrected Ollama plugin package in the Dify marketplace or on GitHub. If you have access to the plugin zip/tarball, verify its contents before installing: it should contain manifest.yaml and _assets/icon_l_en.svg (and possibly icon-dark.svg) source.
If you see further errors after updating or replacing the package, share the exact error message and I can help interpret the logs.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other