Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

portable plugin create command error: fail to install plugin: missing mirror #3458

Open
yoiberdev opened this issue Dec 20, 2024 · 1 comment

Comments

@yoiberdev
Copy link

yoiberdev commented Dec 20, 2024

Can you help me implement a go plugin on ekuiper 1.14.7-dev or any other version?
I always get this error every time I try to register a plugin or a portable even with a zip that I download from the ekuiper documentation itself as mirror.zip from "sdk/go/example/mirror"

yoiber@yoiber:~/Downloads/mirror-portable$ docker cp mirror.zip edgex-kuiper:/kuiper/plugins/portable/
Successfully copied 16.4kB to edgex-kuiper:/kuiper/plugins/portable/
yoiber@yoiber:~/Downloads/mirror-portable$ curl -X POST http://localhost:59720/plugins/portables -H "Content-Type: application/json" -d '{
"name": "sumFunction",
"file": "file:///kuiper/plugins/portable/mirror.zip"
}'
{"error":1000,"message":"portable plugin create command error: fail to install plugin: missing or invalid json file sumFunction.json, found 17 files in total"}
yoiber@yoiber:~/Downloads/mirror-portable$

Does it have to do with the fact that I use edgex-foundry as the main container?
I would appreciate it if you could send me a zip to register as a plugin to use as an example

@ngjaying
Copy link
Collaborator

@yoiberdev The plugin json file must in the root of the zip file. It is likely that you only have a directory in the root. There should be no directory, only files in the root.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants