add ollama model ,bug error #241

Open
opened 2026-02-16 01:15:05 -05:00 by yindo · 12 comments
Owner

Originally created by @ufgufg on GitHub (Feb 4, 2026).

Self Checks

To make sure we get to you in time, please check the following :)

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • "Please do not modify this template :) and fill in all the required fields."

Versions

  1. dify-plugin-daemon last
  2. dify-api last

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.

Originally created by @ufgufg on GitHub (Feb 4, 2026). **Self Checks** To make sure we get to you in time, please check the following :) - [ ] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify-plugin-daemon/issues), including closed ones. - [ ] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [ ] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [ ] "Please do not modify this template :) and fill in all the required fields." **Versions** 1. dify-plugin-daemon last 2. dify-api last **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: <!-- Failed to upload "image.png" --> **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.
yindo added the bug label 2026-02-16 01:15:05 -05:00
Author
Owner

@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, not assets, and the filenames must match exactly what’s declared in your manifest.yaml. For Ollama and similar plugins, the expected icon filenames are usually icon.svg and icon-dark.svg (or locale-specific variants). If the manifest references a file like icon_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 assets directory to _assets, make sure the SVG icon files are named exactly as referenced in your manifest.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

Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Feb 4, 2026): <!-- Greeting --> Hi @ufgufg! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the dify-plugin-daemon team. <!-- Answer --> The error happens because dify-plugin-daemon expects all plugin asset files (like SVG icons) to be in a directory named `_assets`, not `assets`, and the filenames must match exactly what’s declared in your `manifest.yaml`. For Ollama and similar plugins, the expected icon filenames are usually `icon.svg` and `icon-dark.svg` (or locale-specific variants). If the manifest references a file like `icon_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](https://github.com/langgenius/dify-plugin-daemon/issues/166), [source](https://github.com/langgenius/dify-plugin-daemon/blob/f272e6c3fcd8a18c6ff571d7fcbfde857f63ef99/pkg/plugin_packager/decoder/helper.go#L343-L495)). To fix this: rename your `assets` directory to `_assets`, make sure the SVG icon files are named exactly as referenced in your `manifest.yaml`, and update the manifest if needed. On Windows, make sure you use forward slashes (`/`) in paths, as backslashes can cause issues ([source](https://github.com/langgenius/dify-plugin-daemon/issues/133)). If you still see errors after making these changes, let me know what you’ve tried so far or share more details. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/4b35fe0d-9f9d-4095-9da4-015361f17c80?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/4b35fe0d-9f9d-4095-9da4-015361f17c80?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/4b35fe0d-9f9d-4095-9da4-015361f17c80?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/4b35fe0d-9f9d-4095-9da4-015361f17c80?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/4b35fe0d-9f9d-4095-9da4-015361f17c80?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/4b35fe0d-9f9d-4095-9da4-015361f17c80?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/4b35fe0d-9f9d-4095-9da4-015361f17c80?feedback_type=other)</sup> [![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=The%20error%20happens%20because%20dify-plugin-daemon%20expects%20all%20plugin%20asset%20files%20%28like%20SVG%20icons%29%20to%20be%20in%20a%20directory%20named%20%60_assets%60%2C%20not%20%60assets%60%2C%20and%20the%20filenames%20must%20match%20exactly%20what%E2%80%99s%20declared%20in%20your%20%60manifest.yaml%60.%20For%20Ollama%20and%20similar%20plugins%2C%20the%20expected%20icon%20filenames%20are%20usually%20%60icon.svg%60%20and%20%60icon-dark.svg%60%20%28or%20locale-specific%20variants%29.%20If%20the%20manifest%20references%20a%20file%20like%20%60icon_l_en.svg%60%2C%20that%20file%20must%20exist%20in%20%60_assets%60%E2%80%94otherwise%2C%20initialization%20fails%20with%20a%20file%20not%20found%20error.%20This%20is%20strictly%20enforced%20by%20the%20asset%20validation%20logic%20in%20the%20daemon%2C%20and%20any%20mismatch%20in%20directory%20name%20or%20filename%20will%20cause%20errors%20during%20plugin%20extraction%20and%20setup%20%28%5Bsource%5D%28https%3A//github.com/langgenius/dify-plugin-daemon/issues/166%29%2C%20%5Bsource%5D%28https%3A//github.com/langgenius/dify-plugin-daemon/blob/f272e6c3fcd8a18c6ff571d7fcbfde857f63ef99/pkg/plugin_packager/decoder/helper.go%23L343-L495%29%29.%0A%0ATo%20fix%20this%3A%20rename%20your%20%60assets%60%20directory%20to%20%60_assets%60%2C%20make%20sure%20the%20SVG%20icon%20files%20are%20named%20exactly%20as%20referenced%20in%20your%20%60manifest.yaml%60%2C%20and%20update%20the%20manifest%20if%20needed.%20On%20Windows%2C%20make%20sure%20you%20use%20forward%20slashes%20%28%60/%60%29%20in%20paths%2C%20as%20backslashes%20can%20cause%20issues%20%28%5Bsource%5D%28https%3A//github.com/langgenius/dify-plugin-daemon/issues/133%29%29.%20If%20you%20still%20see%20errors%20after%20making%20these%20changes%2C%20let%20me%20know%20what%20you%E2%80%99ve%20tried%20so%20far%20or%20share%20more%20details.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-plugin-daemon/issues/595)
Author
Owner

@ufgufg commented on GitHub (Feb 4, 2026):

thankyou,i dont know how to edit

Image Image
@ufgufg commented on GitHub (Feb 4, 2026): thankyou,i dont know how to edit <img width="639" height="113" alt="Image" src="https://github.com/user-attachments/assets/2927a8a3-9723-4a94-8fb3-fbaeec3aea4d" /> <img width="361" height="210" alt="Image" src="https://github.com/user-attachments/assets/204a7a1e-1593-4cd5-88f2-dd04eba0f6ff" />
Author
Owner

@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 your manifest.yaml file (for example, icon_l_en.svg)—not the long hashed names you see now. Here’s how you can fix it on Windows:

  1. In Windows Explorer, go to your plugin folder (not the storage/assets folder, but the actual plugin’s folder—usually inside plugin or plugin_packages).
  2. If you see a folder named assets, right-click it, choose “Rename”, and change it to _assets.
  3. Open the _assets folder. Make sure the SVG icon files inside are named exactly as listed in your manifest.yaml (for example, icon_l_en.svg). If not, right-click each file and choose “Rename” to match the correct name.
  4. If you don’t know which filenames are needed, open manifest.yaml (you can use Notepad or any text editor), and look for lines like icon: icon_l_en.svg. That’s the name your SVG file must have.
  5. If you don’t have the correct SVG files, you’ll need to create or download them and put them in the _assets folder with the right names.

The files with long hashed names in your screenshot are not correct—they must match the names in manifest.yaml exactly, 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

Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Feb 4, 2026): <!-- Answer --> 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 your `manifest.yaml` file (for example, `icon_l_en.svg`)—not the long hashed names you see now. Here’s how you can fix it on Windows: 1. In Windows Explorer, go to your plugin folder (not the `storage/assets` folder, but the actual plugin’s folder—usually inside `plugin` or `plugin_packages`). 2. If you see a folder named `assets`, right-click it, choose “Rename”, and change it to `_assets`. 3. Open the `_assets` folder. Make sure the SVG icon files inside are named exactly as listed in your `manifest.yaml` (for example, `icon_l_en.svg`). If not, right-click each file and choose “Rename” to match the correct name. 4. If you don’t know which filenames are needed, open `manifest.yaml` (you can use Notepad or any text editor), and look for lines like `icon: icon_l_en.svg`. That’s the name your SVG file must have. 5. If you don’t have the correct SVG files, you’ll need to create or download them and put them in the `_assets` folder with the right names. The files with long hashed names in your screenshot are not correct—they must match the names in `manifest.yaml` exactly, or the plugin won’t start [source](https://github.com/langgenius/dify-plugin-daemon/issues/166) [source](https://github.com/langgenius/dify-plugin-daemon/blob/f272e6c3fcd8a18c6ff571d7fcbfde857f63ef99/pkg/plugin_packager/decoder/helper.go#L343-L495). If you need step-by-step help finding your plugin folder or editing `manifest.yaml`, let me know! <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/826a9569-3ed9-4d30-bdf4-de1efea9854a?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/826a9569-3ed9-4d30-bdf4-de1efea9854a?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/826a9569-3ed9-4d30-bdf4-de1efea9854a?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/826a9569-3ed9-4d30-bdf4-de1efea9854a?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/826a9569-3ed9-4d30-bdf4-de1efea9854a?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/826a9569-3ed9-4d30-bdf4-de1efea9854a?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/826a9569-3ed9-4d30-bdf4-de1efea9854a?feedback_type=other)</sup> [![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=The%20error%20happens%20because%20dify-plugin-daemon%20only%20looks%20for%20icon%20files%20in%20a%20folder%20named%20%60_assets%60%2C%20and%20the%20filenames%20must%20match%20exactly%20what%20is%20written%20in%20your%20%60manifest.yaml%60%20file%20%28for%20example%2C%20%60icon_l_en.svg%60%29%E2%80%94not%20the%20long%20hashed%20names%20you%20see%20now.%20Here%E2%80%99s%20how%20you%20can%20fix%20it%20on%20Windows%3A%0A%0A1.%20In%20Windows%20Explorer%2C%20go%20to%20your%20plugin%20folder%20%28not%20the%20%60storage/assets%60%20folder%2C%20but%20the%20actual%20plugin%E2%80%99s%20folder%E2%80%94usually%20inside%20%60plugin%60%20or%20%60plugin_packages%60%29.%0A2.%20If%20you%20see%20a%20folder%20named%20%60assets%60%2C%20right-click%20it%2C%20choose%20%E2%80%9CRename%E2%80%9D%2C%20and%20change%20it%20to%20%60_assets%60.%0A3.%20Open%20the%20%60_assets%60%20folder.%20Make%20sure%20the%20SVG%20icon%20files%20inside%20are%20named%20exactly%20as%20listed%20in%20your%20%60manifest.yaml%60%20%28for%20example%2C%20%60icon_l_en.svg%60%29.%20If%20not%2C%20right-click%20each%20file%20and%20choose%20%E2%80%9CRename%E2%80%9D%20to%20match%20the%20correct%20name.%0A4.%20If%20you%20don%E2%80%99t%20know%20which%20filenames%20are%20needed%2C%20open%20%60manifest.yaml%60%20%28you%20can%20use%20Notepad%20or%20any%20text%20editor%29%2C%20and%20look%20for%20lines%20like%20%60icon%3A%20icon_l_en.svg%60.%20That%E2%80%99s%20the%20name%20your%20SVG%20file%20must%20have.%0A5.%20If%20you%20don%E2%80%99t%20have%20the%20correct%20SVG%20files%2C%20you%E2%80%99ll%20need%20to%20create%20or%20download%20them%20and%20put%20them%20in%20the%20%60_assets%60%20folder%20with%20the%20right%20names.%0A%0AThe%20files%20with%20long%20hashed%20names%20in%20your%20screenshot%20are%20not%20correct%E2%80%94they%20must%20match%20the%20names%20in%20%60manifest.yaml%60%20exactly%2C%20or%20the%20plugin%20won%E2%80%99t%20start%20%5Bsource%5D%28https%3A//github.com/langgenius/dify-plugin-daemon/issues/166%29%20%5Bsource%5D%28https%3A//github.com/langgenius/dify-plugin-daemon/blob/f272e6c3fcd8a18c6ff571d7fcbfde857f63ef99/pkg/plugin_packager/decoder/helper.go%23L343-L495%29.%0A%0AIf%20you%20need%20step-by-step%20help%20finding%20your%20plugin%20folder%20or%20editing%20%60manifest.yaml%60%2C%20let%20me%20know%21)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-plugin-daemon/issues/595)
Author
Owner

@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

Image Image
@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 <img width="1072" height="581" alt="Image" src="https://github.com/user-attachments/assets/2abff1ef-8e3a-4fc9-b948-899eeb95b712" /> <img width="497" height="229" alt="Image" src="https://github.com/user-attachments/assets/e210a1bf-03dd-4d18-9463-25d95ad722aa" />
Author
Owner

@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

Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Feb 4, 2026): <!-- Answer --> 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](https://github.com/langgenius/dify-plugin-daemon/issues/331). 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](https://github.com/langgenius/dify-plugin-daemon/issues/331). <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/2585618c-0b8f-4289-bbc1-7e245f4682ff?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/2585618c-0b8f-4289-bbc1-7e245f4682ff?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/2585618c-0b8f-4289-bbc1-7e245f4682ff?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/2585618c-0b8f-4289-bbc1-7e245f4682ff?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/2585618c-0b8f-4289-bbc1-7e245f4682ff?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/2585618c-0b8f-4289-bbc1-7e245f4682ff?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/2585618c-0b8f-4289-bbc1-7e245f4682ff?feedback_type=other)</sup> [![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=You%20don%27t%20need%20to%20worry%20about%20manifest.yaml%20or%20the%20_assets%20folder%20when%20adding%20Ollama%20as%20a%20model%20provider%20in%20Dify%E2%80%94those%20files%20and%20folders%20are%20only%20required%20for%20custom%20plugins%2C%20not%20for%20provider-based%20models%20like%20Ollama%2C%20Azure%2C%20or%20Cohere.%20The%20provider%20integration%20is%20handled%20internally%20by%20Dify%2C%20so%20you%20won%27t%20see%20or%20need%20to%20manage%20those%20files%20yourself.%20If%20you%27re%20not%20seeing%20any%20errors%20after%20adding%20Ollama%20as%20a%20provider%2C%20everything%20is%20working%20as%20expected%E2%80%AF%E2%80%94%E2%80%AFno%20manual%20asset%20management%20is%20needed%20%5Bsource%5D%28https%3A//github.com/langgenius/dify-plugin-daemon/issues/331%29.%0A%0AIf%20you%20do%20run%20into%20errors%20after%20adding%20Ollama%2C%20the%20most%20common%20cause%20is%20missing%20dependencies%20%28like%20numpy%29%20in%20the%20plugin-daemon%20container%2C%20not%20missing%20manifest.yaml%20or%20_assets.%20If%20you%20see%20a%20specific%20error%2C%20let%20me%20know%20the%20details%20and%20I%20can%20help%20troubleshoot%20%5Bsource%5D%28https%3A//github.com/langgenius/dify-plugin-daemon/issues/331%29.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-plugin-daemon/issues/595)
Author
Owner

@ufgufg commented on GitHub (Feb 4, 2026):

@dosubot add ollama
Image

Image
@ufgufg commented on GitHub (Feb 4, 2026): @dosubot add ollama <img width="983" height="181" alt="Image" src="https://github.com/user-attachments/assets/0cc62abc-697b-4fcf-bd49-f09699b30723" /> <img width="983" height="170" alt="Image" src="https://github.com/user-attachments/assets/8d0000fa-f447-4ca9-a5d8-40ae2555b899" />
Author
Owner

@ufgufg commented on GitHub (Feb 4, 2026):

@dosubot this firest wrong
Image

@ufgufg commented on GitHub (Feb 4, 2026): @dosubot this firest wrong <img width="602" height="405" alt="Image" src="https://github.com/user-attachments/assets/c63a5ef0-fe07-4b77-a100-8641cf3a7e25" />
Author
Owner

@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:

  1. Go to your plugin folder (usually inside plugin or plugin_packages).
  2. Create a folder named _assets if it doesn’t exist.
  3. Add an SVG file named icon_l_en.svg to _assets. You can use any SVG image as a placeholder if you don’t have the original.
  4. If your plugin has a 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

Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Feb 4, 2026): <!-- Answer --> 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](https://github.com/langgenius/dify-plugin-daemon/issues/166), [source](https://github.com/langgenius/dify-plugin-daemon/blob/f272e6c3fcd8a18c6ff571d7fcbfde857f63ef99/pkg/plugin_packager/decoder/helper.go#L343-L495)). To fix it: 1. Go to your plugin folder (usually inside `plugin` or `plugin_packages`). 2. Create a folder named `_assets` if it doesn’t exist. 3. Add an SVG file named `icon_l_en.svg` to `_assets`. You can use any SVG image as a placeholder if you don’t have the original. 4. If your plugin has a `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](https://github.com/langgenius/dify-plugin-daemon/issues/133)). <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/c50c8b58-45ee-4a4c-bbd0-5fef4707b207?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/c50c8b58-45ee-4a4c-bbd0-5fef4707b207?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/c50c8b58-45ee-4a4c-bbd0-5fef4707b207?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/c50c8b58-45ee-4a4c-bbd0-5fef4707b207?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/c50c8b58-45ee-4a4c-bbd0-5fef4707b207?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/c50c8b58-45ee-4a4c-bbd0-5fef4707b207?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/c50c8b58-45ee-4a4c-bbd0-5fef4707b207?feedback_type=other)</sup> [![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=The%20error%20is%20happening%20because%20the%20Ollama%20plugin%20package%20is%20missing%20a%20required%20SVG%20icon%20file%20named%20%60_assets/icon_l_en.svg%60.%20The%20plugin%20system%20checks%20for%20this%20exact%20file%20during%20installation%2C%20and%20if%20it%E2%80%99s%20not%20present%2C%20initialization%20fails%E2%80%AF%E2%80%94%E2%80%AFthis%20is%20a%20strict%20requirement%20enforced%20by%20the%20code%2C%20not%20a%20user%20mistake%20%28%5Bsource%5D%28https%3A//github.com/langgenius/dify-plugin-daemon/issues/166%29%2C%20%5Bsource%5D%28https%3A//github.com/langgenius/dify-plugin-daemon/blob/f272e6c3fcd8a18c6ff571d7fcbfde857f63ef99/pkg/plugin_packager/decoder/helper.go%23L343-L495%29%29.%0A%0ATo%20fix%20it%3A%20%20%0A1.%20Go%20to%20your%20plugin%20folder%20%28usually%20inside%20%60plugin%60%20or%20%60plugin_packages%60%29.%0A2.%20Create%20a%20folder%20named%20%60_assets%60%20if%20it%20doesn%E2%80%99t%20exist.%0A3.%20Add%20an%20SVG%20file%20named%20%60icon_l_en.svg%60%20to%20%60_assets%60.%20You%20can%20use%20any%20SVG%20image%20as%20a%20placeholder%20if%20you%20don%E2%80%99t%20have%20the%20original.%0A4.%20If%20your%20plugin%20has%20a%20%60manifest.yaml%60%2C%20make%20sure%20the%20icon%20filename%20matches%20what%E2%80%99s%20referenced%20there.%0A%0AAfter%20you%20add%20the%20missing%20file%2C%20try%20installing%20the%20plugin%20again.%20If%20you%20need%20help%20creating%20or%20finding%20an%20SVG%20file%2C%20let%20me%20know%20where%20you%20got%20the%20plugin%20package%20and%20I%20can%20suggest%20a%20workaround%20or%20a%20generic%20icon%20you%20can%20use.%0A%0AThis%20issue%20is%20common%20with%20some%20plugin%20packages%20and%20is%20not%20caused%20by%20your%20environment%20or%20setup%20%28%5Bsource%5D%28https%3A//github.com/langgenius/dify-plugin-daemon/issues/133%29%29.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-plugin-daemon/issues/595)
Author
Owner

@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

Image Image

and Adding "ollama" to "dify" should be quite simple, shouldn't it

@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 <img width="656" height="218" alt="Image" src="https://github.com/user-attachments/assets/cdacfdc1-477f-4c1e-96c0-b1979e2e83bc" /> <img width="637" height="179" alt="Image" src="https://github.com/user-attachments/assets/c70454e5-a989-4d10-aab0-9ecad23405bc" /> and Adding "ollama" to "dify" should be quite simple, shouldn't it
Author
Owner

@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 _assets folder. It does not check the SVG content, size, or format beyond basic file existence — so a simple SVG like this is enough:

<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64"><rect width="64" height="64" fill="#ccc"/></svg>

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 _assets folder—not assets—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

Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Feb 4, 2026): <!-- Answer --> 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 `_assets` folder. It does not check the SVG content, size, or format beyond basic file existence — so a simple SVG like this is enough: ```xml <svg xmlns="http://www.w3.org/2000/svg" width="64" height="64"><rect width="64" height="64" fill="#ccc"/></svg> ``` 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 `_assets` folder—not `assets`—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](https://github.com/langgenius/dify-plugin-daemon/issues/133). 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](https://github.com/langgenius/dify-plugin-daemon/issues/331). 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](https://github.com/langgenius/dify-plugin-daemon/blob/f272e6c3fcd8a18c6ff571d7fcbfde857f63ef99/pkg/plugin_packager/decoder/helper.go#L343-L495). 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. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/c5102600-2f57-43c7-b670-d08f2705eb74?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/c5102600-2f57-43c7-b670-d08f2705eb74?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/c5102600-2f57-43c7-b670-d08f2705eb74?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/c5102600-2f57-43c7-b670-d08f2705eb74?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/c5102600-2f57-43c7-b670-d08f2705eb74?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/c5102600-2f57-43c7-b670-d08f2705eb74?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/c5102600-2f57-43c7-b670-d08f2705eb74?feedback_type=other)</sup> [![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=The%20placeholder%20SVG%20file%20itself%20is%20not%20the%20problem%E2%80%94as%20long%20as%20it%E2%80%99s%20a%20valid%20SVG%20%28even%20a%20minimal%20one%29%2C%20the%20daemon%20only%20checks%20that%20the%20filename%20matches%20exactly%20what%E2%80%99s%20referenced%20in%20manifest.yaml%20and%20that%20it%E2%80%99s%20present%20in%20the%20%60_assets%60%20folder.%20It%20does%20not%20check%20the%20SVG%20content%2C%20size%2C%20or%20format%20beyond%20basic%20file%20existence%E2%80%AF%E2%80%94%E2%80%AFso%20a%20simple%20SVG%20like%20this%20is%20enough%3A%0A%0A%60%60%60xml%0A%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2264%22%20height%3D%2264%22%3E%3Crect%20width%3D%2264%22%20height%3D%2264%22%20fill%3D%22%23ccc%22/%3E%3C/svg%3E%0A%60%60%60%0A%0AIf%20you%E2%80%99re%20still%20seeing%20the%20same%20error%2C%20double-check%20that%20the%20filename%20is%20exactly%20%60icon_l_en.svg%60%20%28not%20a%20typo%2C%20not%20uppercase/lowercase%20mismatch%29%2C%20and%20that%20it%E2%80%99s%20inside%20the%20%60_assets%60%20folder%E2%80%94not%20%60assets%60%E2%80%94in%20your%20plugin%20directory.%20Also%2C%20make%20sure%20your%20manifest.yaml%20references%20the%20correct%20filename%20and%20uses%20forward%20slashes%20%28%60/%60%29%20in%20paths%2C%20especially%20on%20Windows%2C%20as%20backslashes%20can%20cause%20issues%20%5Bsource%5D%28https%3A//github.com/langgenius/dify-plugin-daemon/issues/133%29.%0A%0AAdding%20Ollama%20as%20a%20plugin%20requires%20the%20package%20to%20include%20both%20a%20manifest.yaml%20and%20the%20correct%20assets.%20If%20you%E2%80%99re%20adding%20Ollama%20as%20a%20model%20provider%20%28not%20as%20a%20plugin%29%2C%20you%20don%E2%80%99t%20need%20to%20manage%20these%20files%E2%80%94the%20integration%20is%20handled%20internally%20by%20Dify%20%5Bsource%5D%28https%3A//github.com/langgenius/dify-plugin-daemon/issues/331%29.%20If%20you%E2%80%99re%20trying%20to%20install%20a%20plugin%20and%20the%20package%20is%20missing%20manifest.yaml%20or%20the%20required%20assets%2C%20it%20won%E2%80%99t%20work%20until%20those%20are%20added%20and%20named%20exactly%20as%20expected%20%5Bsource%5D%28https%3A//github.com/langgenius/dify-plugin-daemon/blob/f272e6c3fcd8a18c6ff571d7fcbfde857f63ef99/pkg/plugin_packager/decoder/helper.go%23L343-L495%29.%0A%0AIf%20the%20error%20persists%20after%20these%20checks%2C%20there%20may%20be%20invisible%20formatting%20or%20encoding%20issues%20in%20the%20manifest.yaml%20or%20filenames%20%28like%20BOM%2C%20CRLF%20line%20endings%2C%20or%20tabs%29.%20Let%20me%20know%20the%20exact%20error%20message%20you%20see%20after%20adding%20the%20placeholder%2C%20and%20I%20can%20help%20troubleshoot%20further.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-plugin-daemon/issues/595)
Author
Owner

@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

Image Image
@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 <img width="1089" height="525" alt="Image" src="https://github.com/user-attachments/assets/dbb75cb0-ecf1-4d30-9a76-3567b251ecd0" /> <img width="617" height="340" alt="Image" src="https://github.com/user-attachments/assets/646ace24-2ced-4338-bc6c-72bc57c8780f" />
Author
Owner

@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

Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Feb 4, 2026): <!-- Answer --> 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](https://github.com/langgenius/dify-plugin-daemon/blob/f272e6c3fcd8a18c6ff571d7fcbfde857f63ef99/pkg/plugin_packager/decoder/helper.go#L22-L495). 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](https://github.com/langgenius/dify-plugin-daemon/pull/388). If you see further errors after updating or replacing the package, share the exact error message and I can help interpret the logs. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/d6abf99b-4a5a-4af7-8716-9642a82da740?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/d6abf99b-4a5a-4af7-8716-9642a82da740?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/d6abf99b-4a5a-4af7-8716-9642a82da740?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/d6abf99b-4a5a-4af7-8716-9642a82da740?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/d6abf99b-4a5a-4af7-8716-9642a82da740?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/d6abf99b-4a5a-4af7-8716-9642a82da740?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/d6abf99b-4a5a-4af7-8716-9642a82da740?feedback_type=other)</sup> [![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=The%20error%20happens%20because%20the%20Ollama%20plugin%20package%20you%E2%80%99re%20installing%20from%20the%20Dify%20model%20provider%20is%20missing%20required%20files%20inside%20the%20package%20itself%E2%80%94specifically%2C%20manifest.yaml%20and%20the%20SVG%20icon%28s%29%20in%20the%20_assets%20folder.%20The%20plugin%20system%20checks%20for%20these%20files%20inside%20the%20package%20during%20installation%2C%20not%20in%20your%20local%20storage%20folders%2C%20so%20manually%20creating%20_assets%20or%20copying%20SVGs%20outside%20the%20package%20won%E2%80%99t%20fix%20it.%20This%20is%20a%20strict%20requirement%20enforced%20by%20the%20asset%20validation%20logic%2C%20and%20installation%20will%20always%20fail%20if%20the%20package%20is%20incomplete%20or%20incorrectly%20structured%E2%80%AF%E2%80%94%E2%80%AFeven%20if%20the%20filename%20is%20correct%20or%20you%20add%20a%20placeholder%20SVG%20yourself%20%5Bsource%5D%28https%3A//github.com/langgenius/dify-plugin-daemon/blob/f272e6c3fcd8a18c6ff571d7fcbfde857f63ef99/pkg/plugin_packager/decoder/helper.go%23L22-L495%29.%0A%0ATo%20resolve%20this%2C%20you%E2%80%99ll%20need%20a%20plugin%20package%20that%20includes%20both%20manifest.yaml%20and%20the%20required%20icons%20in%20_assets%2C%20as%20distributed%20by%20the%20plugin%20author.%20If%20the%20official%20Ollama%20package%20is%20missing%20these%20files%2C%20installation%20cannot%20succeed%20until%20the%20package%20is%20updated%20upstream.%20You%20can%20check%20for%20a%20newer%20or%20corrected%20Ollama%20plugin%20package%20in%20the%20Dify%20marketplace%20or%20on%20GitHub.%20If%20you%20have%20access%20to%20the%20plugin%20zip/tarball%2C%20verify%20its%20contents%20before%20installing%3A%20it%20should%20contain%20manifest.yaml%20and%20_assets/icon_l_en.svg%20%28and%20possibly%20icon-dark.svg%29%20%5Bsource%5D%28https%3A//github.com/langgenius/dify-plugin-daemon/pull/388%29.%0A%0AIf%20you%20see%20further%20errors%20after%20updating%20or%20replacing%20the%20package%2C%20share%20the%20exact%20error%20message%20and%20I%20can%20help%20interpret%20the%20logs.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-plugin-daemon/issues/595)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#241