Re: [Kill Bill users] Plugin Installation Issue

372 views
Skip to first unread message

Pierre-Alexandre Meyer

unread,
May 4, 2021, 9:54:53 AM5/4/21
to Anurag Phadnis, Kill Bill users mailing-list
Hello,

If you don't see the plugin in Kaui/in the API, it's likely the plugin didn't start correctly. Take a look at the startup logs to understand the underlying error.


Hope this helps,

On Tue, May 4, 2021 at 2:32 PM Anurag Phadnis <anu...@hyperstate.tech> wrote:

Hi,

I am trying to install plugin using kpm on killbill's deployment on docker.
I followed the following steps on stripe plugin:

* Modified code and build plugin using mvn clean install -DskipTests
* Copy target/stripe-*-SNAPSHOT.jar to the container
* Exec into the container and kpm install_java_plugin 'dev:stripe' --from-source-file /var/plugin-binary/stripe-*-SNAPSHOT.jar --destination /var/tmp/bundles
* Restart container using docker restart <container name>

Issue:
When I run kpm inspect inside the container it shows the plugin as installed, but it does not show in the KAUI and also on this API "curl -v -u admin:password http://127.0.0.1:8080/1.0/kb/nodesInfo | python3 -m json.tool"

I have also tried to create a custom image with plugin by using killbill/killbill/1
and Added
RUN kpm install_java_plugin 'dev:stripe' --from-source-file 'stripe-plugin-7.3.1-SNAPSHOT.jar' --destination '/var/tmp/bundles'
Build this image and run container along with kaui and db containers from docker-compose

This also did not work. Kindly please let me know how to install plugins when using docker for deployment of killbill, also how to deploy killbill with custom plugins using docker.

JDK version: 1.8
mvn version: 3.6.3

--
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/daed25fc-b481-4936-b608-e5fe624d88d2n%40googlegroups.com.


--
Pierre

Anurag Phadnis

unread,
May 4, 2021, 10:05:58 AM5/4/21
to Pierre-Alexandre Meyer, Kill Bill users mailing-list
Thanks for the reply, I am checking the logs. Sorry If this got posted multiple times, I was getting the message post deleted, so had added multiple times.

Anurag Phadnis

unread,
May 4, 2021, 10:34:11 AM5/4/21
to Kill Bill users mailing-list
Logs on running kpm install: https://pastebin.com/ycr243Ht
Logs on starting plugin using API: https://pastebin.com/4ezJrVbZ

Sorry, I am not able to understand much with the logs, can you help me?

Pierre-Alexandre Meyer

unread,
May 4, 2021, 10:46:18 AM5/4/21
to Anurag Phadnis, Kill Bill users mailing-list
Hello,

It looks like there are several issues going on with your setup, but it's difficult for me to provide precise guidance.

I would recommend following our instructions again from a clean environment, to see if it helps: https://docs.killbill.io/latest/plugin_development.html

Hope this helps,



--
Pierre

Anurag Phadnis

unread,
May 4, 2021, 10:51:53 AM5/4/21
to Kill Bill users mailing-list
Okay, I will try

Anurag Phadnis

unread,
May 6, 2021, 4:20:28 AM5/6/21
to Kill Bill users mailing-list
The issue was that I was trying to install plugin in the wrong directory, kpm install_java_plugin has the default installation directory set as /var/tmp/bundles but by default killbill expects the plugin to be in /var/lib/killbill/bundles. When I changed the destination parameter in kpm install_java_plugin, it started to work.
Reply all
Reply to author
Forward
0 new messages