I did think the same when I saw the error. It's not pinned as you say in the 
release gemfile [1]. 

Unfortunately, I haven't had a chance to look at it any further as it's not 
something I need for my deployment. Should I create a bug on Jira?

[1] https://github.com/elastic/logstash/blob/v5.4.1/Gemfile

-----Original Message-----
From: Masatake Iwasaki [mailto:[email protected]] 
Sent: 30 August 2021 05:09
To: [email protected]; English,N,Nathan,VIR R <[email protected]>
Subject: Re: V1.5.0 Logstash RPM Build failure

[You don't often get email from [email protected]. Learn why this is 
important at http://aka.ms/LearnAboutSenderIdentification.]

> I'm having issues building the Logstash rpm. It looks to be failing on the 
> command 'rake artifact-tar'. With a missing file 
> 'vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-11.0.4-java/lib/logstash/outputs/templates/ecs-v1/elasticsearch-8x.json'.
>  It looks to be a broken symlink to 
> 'lib/logstash/outputs/elasticsearch/templates/ecs-v1/User/yaauie/src/elastic/logstash/plugins/logsta'
>  Which that directory structure beyond lib doesn't even exist.

This can be reproduced even in master branch on CentOS 8.
It looks like the versions of logstash plugins are not pinned and the latest 
logstash-output-elasticsearch-11.0.4-java have issue (against 
logstash-5.4.1??).::

   [artifact:tar] building build/logstash-5.4.1.tar.gz
   rake aborted!
   Errno::ENOENT: No such file or directory - 
vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-11.0.4-java/lib/logstash/outputs/elasticsearch/templates/ecs-v1/elasticsearch-8x.json
   
/home/centos/srcs/bigtop/build/logstash/rpm/BUILD/logstash-5.4.1/rakelib/artifacts.rake:239:in
 `block in write_to_tar'
   
/home/centos/srcs/bigtop/build/logstash/rpm/BUILD/logstash-5.4.1/vendor/bundle/jruby/2.3.0/gems/minitar-0.5.4/lib/archive/tar/minitar.rb:344:in
 `add_file_simple'
   
/home/centos/srcs/bigtop/build/logstash/rpm/BUILD/logstash-5.4.1/rakelib/artifacts.rake:238:in
 `write_to_tar'
   
/home/centos/srcs/bigtop/build/logstash/rpm/BUILD/logstash-5.4.1/rakelib/artifacts.rake:215:in
 `block in build_tar'
   
/home/centos/srcs/bigtop/build/logstash/rpm/BUILD/logstash-5.4.1/rakelib/artifacts.rake:214:in
 `build_tar'
   
/home/centos/srcs/bigtop/build/logstash/rpm/BUILD/logstash-5.4.1/rakelib/artifacts.rake:82:in
 `block in (root)'
   Tasks: TOP => artifact:tar
   (See full trace by running task with --trace)
   error: Bad exit status from /var/tmp/rpm-tmp.cn5QyU (%build)


On 2021/08/29 20:38, [email protected] wrote:
> Hi All,
>
> I'm having issues building the Logstash rpm. It looks to be failing on the 
> command 'rake artifact-tar'. With a missing file 
> 'vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-11.0.4-java/lib/logstash/outputs/templates/ecs-v1/elasticsearch-8x.json'.
>  It looks to be a broken symlink to 
> 'lib/logstash/outputs/elasticsearch/templates/ecs-v1/User/yaauie/src/elastic/logstash/plugins/logsta'
>  Which that directory structure beyond lib doesn't even exist.
>
> I did apply the changes from BIGTOP-3562 to get this stage, as previously, it 
> would fail as the website no longer existed, along with BIGTOP-3499 for the 
> gem issue.
>
> I haven't tried building this with the master branch.
>
> I was wondering if there was anything else I am missing or should try?
>
> Kind Regards,
>
> Nathan
>

Reply via email to