Issue using kpm with kpm.yml config file

215 views
Skip to first unread message

Becca Gaspard

unread,
Jan 11, 2016, 1:18:55 PM1/11/16
to Kill Bill users mailing-list
Hi All - 

I am having an issue trying to use kpm with a kpm.yml config file.  When I run 'kpm install kpm.yml', I get the following error:

I, [2016-01-11T13:04:50.085017 #89500]  INFO -- : Starting download of https://s3.amazonaws.com/kb-binaries/apache-tomcat-7.0.42.tar.gz to /var/folders/hg/tq8h3_y52dvfd07t9cvn0mx81z_x20/T/d20160111-89500-2v5x4g/tomcat.tar.gz

I, [2016-01-11T13:04:51.977582 #89500]  INFO -- : Successful installation of https://s3.amazonaws.com/kb-binaries/apache-tomcat-7.0.42.tar.gz to /Users/beccagaspard/Projects/temp/killbill

undefined method `[]=' for nil:NilClass


My kpm.yml is very simple and almost identical to the example on github.
killbill:

  version: 0.16.0

  plugins:

    java:

      - name: analytics

    ruby:

      - name: stripe


If I just run 'kpm install', everything works fine and killbill/kaui is installed with default settings, but I want to be able to define what plugins to use, etc. in the yml file..


I am using kpm (0.1.4).


Here is my ruby version:

ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14]


Here is my kpm info:

Dependencies for version LATEST

  killbill 0.16.0

  killbill-oss-parent 0.79

  killbill-api 0.32

  killbill-plugin-api 0.18

  killbill-commons 0.12

  killbill-platform 0.19


Any ideas?


Thanks! 

-Becca :)

Pierre-Alexandre Meyer

unread,
Jan 11, 2016, 4:54:24 PM1/11/16
to Becca Gaspard, Kill Bill users mailing-list
Hi Becca,

Happy New Year 2016!

On Mon, Jan 11, 2016 at 1:18 PM, Becca Gaspard <beccag...@gmail.com> wrote:
I am having an issue trying to use kpm with a kpm.yml config file.  When I run 'kpm install kpm.yml', I get the following error:

I, [2016-01-11T13:04:50.085017 #89500]  INFO -- : Starting download of https://s3.amazonaws.com/kb-binaries/apache-tomcat-7.0.42.tar.gz to /var/folders/hg/tq8h3_y52dvfd07t9cvn0mx81z_x20/T/d20160111-89500-2v5x4g/tomcat.tar.gz

I, [2016-01-11T13:04:51.977582 #89500]  INFO -- : Successful installation of https://s3.amazonaws.com/kb-binaries/apache-tomcat-7.0.42.tar.gz to /Users/beccagaspard/Projects/temp/killbill

undefined method `[]=' for nil:NilClass


There was indeed a regression in kpm 0.1.4 when no Kaui section was specified. I've pushed a patch -- kpm 0.1.5 is now available.

Cheers,

--
Pierre

Becca Gaspard

unread,
Jan 12, 2016, 11:18:27 AM1/12/16
to Kill Bill users mailing-list, beccag...@gmail.com
That did the trick - thanks and happy new year! :)

Александр Суховетченко

unread,
Aug 4, 2016, 9:25:11 AM8/4/16
to Kill Bill users mailing-list, beccag...@gmail.com
Got the same problem here in Docker container:

bash-4.3# jruby -S kpm version
KPM version 0.2.3
 
bash-4.3# cat /etc/killbill/kpm.yml
---
kaui:
  version: 0.7.0
  properties:
  webapp_path: "/usr/local/tomcat/webapps/ROOT.war"
 
bash-4.3# jruby -S kpm install /etc/killbill/kpm.yml
undefined method `[]' for nil:NilClass
/usr/local/bundle/gems/kpm-0.2.3/lib/kpm/installer.rb:56:in `install'
/usr/local/bundle/gems/kpm-0.2.3/lib/kpm/tasks.rb:40:in `install'
/usr/local/bundle/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
/usr/local/bundle/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
/usr/local/bundle/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
/usr/local/bundle/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
/usr/local/bundle/gems/kpm-0.2.3/bin/kpm:6:in `<top>'
org/jruby/RubyKernel.java:962:in `load'
/usr/local/bundle/bin/kpm:22:in `<top>'

Can anyone help me to solve this problem? 

Pierre-Alexandre Meyer

unread,
Aug 4, 2016, 11:25:15 AM8/4/16
to Александр Суховетченко, Kill Bill users mailing-list
Could you try adding an empty killbill: block at the same level of the kaui one?

The installer always assume you want Kill Bill to be installed (Kaui being optional).


--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to killbilling-users@googlegroups.com.
Visit this group at https://groups.google.com/group/killbilling-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/522ec819-afc0-4c5f-a467-2d037e14054f%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Pierre

Pierre-Alexandre Meyer

unread,
Aug 5, 2016, 12:28:46 PM8/5/16
to Александр Суховетченко, killbill...@googlegroups.com
[Adding mailing-list]

I've just released 0.2.4 - could you give it a try?

On Thu, Aug 4, 2016 at 2:59 PM, Александр Суховетченко <acy...@gmail.com> wrote:
Hi, Pierre!

Thanks for the answer. Unfortunately the empty killbill block doesn't work, so I had to specify the version and webapp_path in kpm.yml. Then kpm installed killbill and then kaui, overwriting the killbill's war file as they both are ROOT.war. It's kind of hacky and I hope you'll fix this this issue soon.

Thanks again for your help. 
--
С уважением,
Александр.



--
Pierre
Reply all
Reply to author
Forward
0 new messages