Closed NNicoletti closed 2 months ago
I've put it in both stream_plugins and plugins and nothing works.
Could you please describe how you did that? (I wanted to make sure if you did that correctly.)
@NNicoletti apisix/admin/plugins/list
doesn't show stream_plugins and only shows plugins.
@shreemaan-abhishek I meant I tried a deployment with mqtt-proxy
in the regular plugin list as well as a deployment with it in the stream plugin list and have been unable to access it.
@Revolyssup That's what I was thinking. Is there an api call to show stream plugins? If not, this seems like a bit of an oversight.
This also leads to another question: are stream_routes and stream_plugins only available through the Admin API or can they be created/used via the dashboard? When manually putting in mqtt-proxy
on a route using the dashboard (using the raw data editor) I can't submit as the dashboard can't find the mqtt-proxy
plugin.
Is there an api call to show stream plugins?
Not yet.
are stream_routes and stream_plugins only available through the Admin API or can they be created/used via the dashboard?
The dashboard should work as well. Just so you know, it is not maintained anymore.
That said, please try using the mqtt proxy plugin to confirm if it has actually loaded.
are stream_routes and stream_plugins only available through the Admin API or can they be created/used via the dashboard?
The dashboard should work as well. Just so you know, it is not maintained anymore.
How do you create a stream route in dashboard? Just set upstream to TCP?
So the dashboard isn't going to be officially updated anymore?
That said, please try using the mqtt proxy plugin to confirm if it has actually loaded.
Let me try and create a stream_route with mqtt-proxy
and see if it works.
Thank you for your patience and answering all of my questions, I really appreciate it.
@NNicoletti, did it work?
This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.
This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.
Description
Using helm chart 1.4.0 to install apisix 3.3.0 in decoupled mode.
When trying to test out MQTT stuff I attempted to install the
mqtt-proxy
plugin. I've put it in bothstream_plugins
andplugins
and nothing works. I didn't expect putting it into plugins to work, but it was worth a shot (it installs, but can't find files. Expected).When in
stream_plugins
it successfully reads that it exists in the logs with12023/06/26 17:15:07 [warn] 49#49: *2 [lua] plugin.lua:252: load_stream(): new plugins: {"mqtt-proxy":true}, context: init_worker_by_lua*
however when I do a request to get all plugins withcurl [CLUSTER_IP]:9180/apisix/admin/plugins/list -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1'
and it's not in the returned response:Relevant parts of configs:
Control Plane config.yaml:
I have the same thing in the data plane but without enable admin (I wasn't sure where plugins were needed, so I kept them the same to simplify figuring it out - I don't believe it effects anything since admin api isn't even enabled on the data plane side).
Environment
apisix version
): 3.3.0uname -a
): x86_64 GNU/Linuxopenresty -V
ornginx -V
): nginx version: openresty/1.21.4.1curl http://127.0.0.1:9090/v1/server_info
): 3.5.0luarocks --version
):