You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/10/30 03:54:22 UTC
[GitHub] [apisix-dashboard] thekingofworld opened a new issue #646: request help: let custom plugin show in dashboard
thekingofworld opened a new issue #646:
URL: https://github.com/apache/apisix-dashboard/issues/646
### Issue description
I have added a custom plugin, how to let the custom plugin show in dashboard?
![image](https://user-images.githubusercontent.com/8169665/97656163-c4dff300-1aa1-11eb-8b17-4f4e6f48ea06.png)
![image](https://user-images.githubusercontent.com/8169665/97656238-f35dce00-1aa1-11eb-977c-a6c1e5525752.png)
thx for help.
### Environment
* apisix version (cmd: `apisix version`): `2.0`
* OS: `mac os`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] nic-chen commented on issue #646: request help: let custom plugin show in dashboard
Posted by GitBox <gi...@apache.org>.
nic-chen commented on issue #646:
URL: https://github.com/apache/apisix-dashboard/issues/646#issuecomment-719430552
@thekingofworld
need to re-generate json schema for your custom plugin.
here is how to use the tool to generate json schema:
https://github.com/apache/apisix-dashboard/blob/v2.0/docs/develop.md#sync-jsonschema
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] membphis commented on issue #646: request help: let custom plugin show in dashboard
Posted by GitBox <gi...@apache.org>.
membphis commented on issue #646:
URL: https://github.com/apache/apisix-dashboard/issues/646#issuecomment-723135729
> @thekingofworld We have reproduced this problem in the local environment, thank you for your feedback.
do you find an easier way to reproduce this issue? or as the reporter?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] thekingofworld commented on issue #646: request help: let custom plugin show in dashboard
Posted by GitBox <gi...@apache.org>.
thekingofworld commented on issue #646:
URL: https://github.com/apache/apisix-dashboard/issues/646#issuecomment-719163126
@juzhiyuan
![image](https://user-images.githubusercontent.com/8169665/97659798-e0033080-1aaa-11eb-8780-47d109a019fd.png)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] nic-chen commented on issue #646: request help: let custom plugin show in dashboard
Posted by GitBox <gi...@apache.org>.
nic-chen commented on issue #646:
URL: https://github.com/apache/apisix-dashboard/issues/646#issuecomment-724554276
fix by #676 #765
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] membphis commented on issue #646: request help: let custom plugin show in dashboard
Posted by GitBox <gi...@apache.org>.
membphis commented on issue #646:
URL: https://github.com/apache/apisix-dashboard/issues/646#issuecomment-723137410
I was confused with those labels. Welcome to split them into multiple different issues for easy tracking and fix.
![image](https://user-images.githubusercontent.com/6814606/98382709-81c7e600-2086-11eb-8bb6-ddf2037b3229.png)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] juzhiyuan commented on issue #646: request help: let custom plugin show in dashboard
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #646:
URL: https://github.com/apache/apisix-dashboard/issues/646#issuecomment-719157222
Hi, please follow those steps to have a check first:
1. Get all plugin list
```sh
$ curl $API_HOST/apisix/admin/plugins
```
2. Check if your `cgi-proxy` plugin is included in that list.
Looking forward to your feedback.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] membphis edited a comment on issue #646: request help: let custom plugin show in dashboard
Posted by GitBox <gi...@apache.org>.
membphis edited a comment on issue #646:
URL: https://github.com/apache/apisix-dashboard/issues/646#issuecomment-723137410
I was confused with those labels. Welcome to split them into multiple different issues for easy tracking and fix.
@juzhiyuan @idbeta
![image](https://user-images.githubusercontent.com/6814606/98382709-81c7e600-2086-11eb-8bb6-ddf2037b3229.png)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] idbeta commented on issue #646: request help: let custom plugin show in dashboard
Posted by GitBox <gi...@apache.org>.
idbeta commented on issue #646:
URL: https://github.com/apache/apisix-dashboard/issues/646#issuecomment-723820193
> > @thekingofworld We have reproduced this problem in the local environment, thank you for your feedback.
>
> do you find an easier way to reproduce this issue? or as the reporter?
make a plugin with reference to example-plugin to reproduce the problem, update schema.json with `schema-sync.sh` and it will report an error
```
--2020-11-06 19:47:50-- https://github.com/apache/apisix/archive/2.0.zip
...
...
200 OK
...
...
Archive: 2.0.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of 2.0.zip or
2.0.zip.zip, and cannot find 2.0.zip.ZIP, period.
mv: rename ./apisix-2.0/apisix/* to ./api/build-tools/apisix/*: No such file or directory
lua: schema-sync.lua:89: module 'apisix.schema_def' not found:
no field package.preload['apisix.schema_def']
no file '/usr/local/share/lua/5.3/apisix/schema_def.lua'
no file '/usr/local/share/lua/5.3/apisix/schema_def/init.lua'
no file '/usr/local/lib/lua/5.3/apisix/schema_def.lua'
no file '/usr/local/lib/lua/5.3/apisix/schema_def/init.lua'
no file './apisix/schema_def.lua'
no file './apisix/schema_def/init.lua'
no file '/usr/local/lib/lua/5.3/apisix/schema_def.so'
no file '/usr/local/lib/lua/5.3/loadall.so'
no file './apisix/schema_def.so'
no file '/usr/local/lib/lua/5.3/apisix.so'
no file '/usr/local/lib/lua/5.3/loadall.so'
no file './apisix.so'
stack traceback:
[C]: in function 'require'
schema-sync.lua:89: in main chunk
[C]: in ?
sync success:
/Users/idbeta/1106/apisix-dashboard/api/conf/schema.json
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] juzhiyuan commented on issue #646: request help: let custom plugin show in dashboard
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #646:
URL: https://github.com/apache/apisix-dashboard/issues/646#issuecomment-719239031
OK then, this error is returned from 2.0 RC2 may be, let's visit the dashboard then check this API:
![image](https://user-images.githubusercontent.com/2106987/97666230-2743ee00-1ab8-11eb-9567-e5059f35ba03.png)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] membphis commented on issue #646: request help: let custom plugin show in dashboard
Posted by GitBox <gi...@apache.org>.
membphis commented on issue #646:
URL: https://github.com/apache/apisix-dashboard/issues/646#issuecomment-724029512
@thekingofworld welcome to make a try too, wait for your response ^_^
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] juzhiyuan commented on issue #646: request help: let custom plugin show in dashboard
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #646:
URL: https://github.com/apache/apisix-dashboard/issues/646#issuecomment-719448351
Oh! That’s it!!! The Dashboard needs this tool to regenerate plugin schemas, this trick tip should be removed and improve this part in the future.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] juzhiyuan commented on issue #646: request help: let custom plugin show in dashboard
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #646:
URL: https://github.com/apache/apisix-dashboard/issues/646#issuecomment-723863141
This issue is reported 3 times at least, so it's a blocked issue IMO.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] thekingofworld commented on issue #646: request help: let custom plugin show in dashboard
Posted by GitBox <gi...@apache.org>.
thekingofworld commented on issue #646:
URL: https://github.com/apache/apisix-dashboard/issues/646#issuecomment-719306037
![image](https://user-images.githubusercontent.com/8169665/97669576-5f9afa80-1abf-11eb-9058-3d8b7ce7e40f.png)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] thekingofworld edited a comment on issue #646: request help: let custom plugin show in dashboard
Posted by GitBox <gi...@apache.org>.
thekingofworld edited a comment on issue #646:
URL: https://github.com/apache/apisix-dashboard/issues/646#issuecomment-719306037
@justinmclean not found my custom plugin.
![image](https://user-images.githubusercontent.com/8169665/97669576-5f9afa80-1abf-11eb-9058-3d8b7ce7e40f.png)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] thekingofworld edited a comment on issue #646: request help: let custom plugin show in dashboard
Posted by GitBox <gi...@apache.org>.
thekingofworld edited a comment on issue #646:
URL: https://github.com/apache/apisix-dashboard/issues/646#issuecomment-719306037
@justinmclean not found my custom plugin.
![image](https://user-images.githubusercontent.com/8169665/97669576-5f9afa80-1abf-11eb-9058-3d8b7ce7e40f.png)
```
{"code":0,"message":"","data":["limit-count","kafka-logger","request-validation","referer-restriction","zipkin","example-plugin","request-id","node-status","grpc-transcode","wolf-rbac","basic-auth","syslog","consumer-restriction","cors","openid-connect","hmac-auth","udp-logger","proxy-cache","fault-injection","proxy-mirror","proxy-rewrite","key-auth","log-rotate","response-rewrite","prometheus","tcp-logger","http-logger","authz-keycloak","limit-conn","uri-blocker","skywalking","redirect","batch-requests","limit-req","jwt-auth","echo","ip-restriction"],"request_id":"26dc294c-6e4f-480d-8763-322b136f0553"}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] idbeta commented on issue #646: request help: let custom plugin show in dashboard
Posted by GitBox <gi...@apache.org>.
idbeta commented on issue #646:
URL: https://github.com/apache/apisix-dashboard/issues/646#issuecomment-722945209
@thekingofworld We have reproduced this problem in the local environment, thank you for your feedback.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] juzhiyuan commented on issue #646: request help: let custom plugin show in dashboard
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #646:
URL: https://github.com/apache/apisix-dashboard/issues/646#issuecomment-719399674
Ok then this issue is not because of frontend, let’s cc @nic-chen @membphis to have more discussions with you :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] nic-chen closed issue #646: request help: let custom plugin show in dashboard
Posted by GitBox <gi...@apache.org>.
nic-chen closed issue #646:
URL: https://github.com/apache/apisix-dashboard/issues/646
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] membphis commented on issue #646: request help: let custom plugin show in dashboard
Posted by GitBox <gi...@apache.org>.
membphis commented on issue #646:
URL: https://github.com/apache/apisix-dashboard/issues/646#issuecomment-724029223
@idbeta please make a try with the latest branch `v2.0`, confirm if it works fine for you.
if it works fine, then we can close this issue.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] moonming commented on issue #646: request help: let custom plugin show in dashboard
Posted by GitBox <gi...@apache.org>.
moonming commented on issue #646:
URL: https://github.com/apache/apisix-dashboard/issues/646#issuecomment-723855687
@nic-chen is this a blocked issue?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] juzhiyuan commented on issue #646: request help: let custom plugin show in dashboard
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #646:
URL: https://github.com/apache/apisix-dashboard/issues/646#issuecomment-719157575
BTW, please use the latest dashboard 2.0 RC2 to have a test.
https://github.com/apache/apisix-dashboard/blob/v2.0/docs/deploy.md
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] thekingofworld edited a comment on issue #646: request help: let custom plugin show in dashboard
Posted by GitBox <gi...@apache.org>.
thekingofworld edited a comment on issue #646:
URL: https://github.com/apache/apisix-dashboard/issues/646#issuecomment-719163126
@juzhiyuan here is output, seems like need a Authentication.
![image](https://user-images.githubusercontent.com/8169665/97659798-e0033080-1aaa-11eb-8780-47d109a019fd.png)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org