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

Unable to build graylog2-server on centos #15

Open
dkowis opened this issue Apr 11, 2013 · 1 comment
Open

Unable to build graylog2-server on centos #15

dkowis opened this issue Apr 11, 2013 · 1 comment

Comments

@dkowis
Copy link

dkowis commented Apr 11, 2013

I've been working on recipies for some of the same things you've got in your repo, so if I can, I'd rather just use the ones you've got, but I can't quite comprehend them fully enough to get them working. Also, I think you're targeting debians, and I'm targeting rpm based, so I'll have to tweak a few dependencies I think. Either way, I'm not sure why this doesn't package. It seems to be a problem within fpm, or maybe fpm-cookery, but I'm not quite certain.

Thanks!

[vagrant@localhost graylog2-server]$ fpm-cook recipe.rb 
===> Starting package creation for graylog2-server-0.10.0 (centos, rpm)
===> 
===> Fetching source: 
######################################################################## 100.0%
===> Building in /vagrant/recipies/additional/graylog2-server/tmp-build/graylog2-server-0.10.0/graylog2-server-0.10.0
===> Installing into /vagrant/recipies/additional/graylog2-server/tmp-dest
===> [FPM] Converting dir to rpm {"file":"fpm/package.rb","method":"convert","line":"189"}
/usr/lib/ruby/gems/1.8/gems/fpm-0.4.31/lib/fpm/package/rpm.rb:124: warning: toplevel constant Gem referenced by FPM::Package::Gem
===> [FPM] Reading template {"file":"fpm/package.rb","method":"template","line":"319","path":"/usr/lib/ruby/gems/1.8/gems/fpm-0.4.31/lib/fpm/../../templates/rpm.erb"}
===> [FPM] Running rpmbuild {"file":"fpm/package/rpm.rb","method":"output","line":"266","args":["rpmbuild","-bb","--define","buildroot /tmp/package-rpm-build20130411-17023-1vrf7ew/BUILD","--define","_topdir /tmp/package-rpm-build20130411-17023-1vrf7ew","--define","_sourcedir /tmp/package-rpm-build20130411-17023-1vrf7ew","--define","_rpmdir /tmp/package-rpm-build20130411-17023-1vrf7ew/RPMS","/tmp/package-rpm-build20130411-17023-1vrf7ew/SPECS/graylog2-server.spec"]}
===> [FPM] Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.3sq7ZW {"file":"cabin/mixins/pipe.rb","method":"send","line":"46"}
===> [FPM] Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.hYdcQB {"file":"cabin/mixins/pipe.rb","method":"send","line":"46"}
===> [FPM] Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.WosNGg {"file":"cabin/mixins/pipe.rb","method":"send","line":"46"}
ERROR: [FPM] error: Two files on one line: /etc/graylog2.conf {"file":"cabin/mixins/pipe.rb","method":"send","line":"46"}
===> [FPM] Processing files: graylog2-server-0.10.0.aussielunix2-1.x86_64 {"file":"cabin/mixins/pipe.rb","method":"send","line":"46"}
ERROR: [FPM] error: File must begin with "/": elasticsearch.yml.example {"file":"cabin/mixins/pipe.rb","method":"send","line":"46"}
===> [FPM]  {"file":"cabin/mixins/pipe.rb","method":"send","line":"46"}
ERROR: [FPM]     Two files on one line: /etc/graylog2.conf {"file":"cabin/mixins/pipe.rb","method":"send","line":"46"}
===> [FPM]  {"file":"cabin/mixins/pipe.rb","method":"send","line":"46"}
ERROR: [FPM]     File must begin with "/": elasticsearch.yml.example {"file":"cabin/mixins/pipe.rb","method":"send","line":"46"}
===> [FPM] RPM build errors: {"file":"cabin/mixins/pipe.rb","method":"send","line":"46"}
===> Created package: /vagrant/recipies/additional/graylog2-server/pkg/graylog2-server-0.10.0.aussielunix2-1.x86_64.rpm
/usr/lib/ruby/gems/1.8/gems/fpm-0.4.31/lib/fpm/util.rb:42:in `safesystem': rpmbuild failed (exit code 1). Full command was:["rpmbuild", "-bb", "--define", "buildroot /tmp/package-rpm-build20130411-17023-1vrf7ew/BUILD", "--define", "_topdir /tmp/package-rpm-build20130411-17023-1vrf7ew", "--define", "_sourcedir /tmp/package-rpm-build20130411-17023-1vrf7ew", "--define", "_rpmdir /tmp/package-rpm-build20130411-17023-1vrf7ew/RPMS", "/tmp/package-rpm-build20130411-17023-1vrf7ew/SPECS/graylog2-server.spec"] (FPM::Util::ProcessFailed)
        from /usr/lib/ruby/gems/1.8/gems/fpm-0.4.31/lib/fpm/package/rpm.rb:267:in `output'
        from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.13.0/lib/fpm/cookery/packager.rb:165:in `build_package'
        from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.13.0/lib/fpm/cookery/packager.rb:124:in `chdir'
        from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.13.0/lib/fpm/cookery/packager.rb:124:in `build_package'
        from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.13.0/lib/fpm/cookery/packager.rb:112:in `dispense'
        from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.13.0/lib/fpm/cookery/cli.rb:122:in `run'
        from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.13.0/lib/fpm/cookery/cli.rb:119:in `each'
        from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.13.0/lib/fpm/cookery/cli.rb:119:in `run'
        from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.13.0/lib/fpm/cookery/book.rb:8:in `call'
        from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.13.0/lib/fpm/cookery/book.rb:8:in `load_recipe'
        from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.13.0/lib/fpm/cookery/cli.rb:115:in `run'
        from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.13.0/bin/fpm-cook:7
        from /usr/bin/fpm-cook:19:in `load'
        from /usr/bin/fpm-cook:19
@bernd
Copy link
Owner

bernd commented Apr 16, 2013

Have you tried to execute the rpmbuild command directly?

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