From owner-freebsd-elastic@freebsd.org Tue Mar 17 13:28:04 2020 Return-Path: Delivered-To: freebsd-elastic@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AB768266360 for ; Tue, 17 Mar 2020 13:28:04 +0000 (UTC) (envelope-from SRS0=Y9hZ=5C=quip.cz=000.fbsd@elsa.codelab.cz) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 48hYrg4Wh1z3yLV for ; Tue, 17 Mar 2020 13:28:03 +0000 (UTC) (envelope-from SRS0=Y9hZ=5C=quip.cz=000.fbsd@elsa.codelab.cz) Received: by mailman.nyi.freebsd.org (Postfix) id 92BE826635F; Tue, 17 Mar 2020 13:28:03 +0000 (UTC) Delivered-To: elastic@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 91E4026635E for ; Tue, 17 Mar 2020 13:28:03 +0000 (UTC) (envelope-from SRS0=Y9hZ=5C=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48hYrc1jN4z3yBB for ; Tue, 17 Mar 2020 13:27:59 +0000 (UTC) (envelope-from SRS0=Y9hZ=5C=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 7A2D428417; Tue, 17 Mar 2020 14:27:57 +0100 (CET) Received: from illbsd.quip.test (ip-62-24-92-232.net.upcbroadband.cz [62.24.92.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 060A728422; Tue, 17 Mar 2020 14:27:55 +0100 (CET) Subject: Re: Beats 7 To: =?UTF-8?Q?Peter_Ankerst=c3=a5l?= Cc: "elastic@freebsd.org" References: <97FB5F71-B110-4F31-9E62-C0EFCF2E0464@pean.org> <51a99528-d45e-95dc-a365-621c2966f545@quip.cz> From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <5bdda9b8-9e76-088b-4289-8c04dbb7acc1@quip.cz> Date: Tue, 17 Mar 2020 14:27:54 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.3 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 48hYrc1jN4z3yBB X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of SRS0=Y9hZ=5C=quip.cz=000.fbsd@elsa.codelab.cz has no SPF policy when checking 94.124.105.4) smtp.mailfrom=SRS0=Y9hZ=5C=quip.cz=000.fbsd@elsa.codelab.cz X-Spamd-Result: default: False [4.04 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; IP_SCORE(0.84)[ip: (0.30), ipnet: 94.124.104.0/21(0.15), asn: 42000(3.64), country: CZ(0.09)]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[quip.cz]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(1.00)[1.000,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[4.105.124.94.list.dnswl.org : 127.0.10.0]; NEURAL_SPAM_LONG(1.00)[0.999,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[000.fbsd@quip.cz,SRS0=Y9hZ=5C=quip.cz=000.fbsd@elsa.codelab.cz]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:42000, ipnet:94.124.104.0/21, country:CZ]; FROM_NEQ_ENVFROM(0.00)[000.fbsd@quip.cz,SRS0=Y9hZ=5C=quip.cz=000.fbsd@elsa.codelab.cz]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-elastic@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Support of ElasticSearch-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Mar 2020 13:28:04 -0000 Peter Ankerstål wrote on 2020/03/17 08:31: > > >> On 17 Mar 2020, at 01:42, Miroslav Lachman <000.fbsd@quip.cz> wrote: >> >> Peter Ankerstål wrote on 2020/03/17 00:10: >>> Hi! >>> https://forums.freebsd.org/threads/logstash6-issue.74359/#post-454612 >>> Would it be possible to update the port for beat? or add a new one. It seems it builds without any big changes. I removed all patches, but other than that I just changed the version number of the port. >>> torus:/usr/ports/sysutils/beats # svn diff >>> Index: Makefile >>> =================================================================== >>> --- Makefile (revision 528517) >>> +++ Makefile (working copy) >>> @@ -2,7 +2,7 @@ >>> # $FreeBSD$ >>> PORTNAME= beats >>> -PORTVERSION= 6.8.7 >>> +PORTVERSION= 7.6.1 >>> DISTVERSIONPREFIX=v >>> CATEGORIES= sysutils >>> Index: distinfo >>> =================================================================== >>> --- distinfo (revision 528517) >>> +++ distinfo (working copy) >>> @@ -1,3 +1,3 @@ >>> -TIMESTAMP = 1584068609 >>> -SHA256 (elastic-beats-v6.8.7_GH0.tar.gz) = 2de29f889d0ee806e479c1607d5e36b3fba4232502771ef3196ee564b4a3e0bc >>> -SIZE (elastic-beats-v6.8.7_GH0.tar.gz) = 35559504 >>> +TIMESTAMP = 1584399934 >>> +SHA256 (elastic-beats-v7.6.1_GH0.tar.gz) = ab7921a6f76fa5010cc3f2ef6fcff8fba9fb06ac4afa703a5fb2901be0698c5b >>> +SIZE (elastic-beats-v7.6.1_GH0.tar.gz) = 77795975 >> >> There must be some changes in pkg-plist too. >> >> Would you mind to test this version? >> >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244849 >> >> Kind regards >> Miroslav Lachman >> > Oh, there it is. > > I tested it and there seems to be some problem with the post install: > > Installing beats7-7.6.1... > pkg-static: Fail to create hardlink: /var/db/beats/filebeat/kibana/7/dashboard/.pkgtemp.Filebeat-Kafka-overview.json.67sFQiaemu2r:Cross-device link > cp: /usr/local/etc/heartbeat.yml.sample: No such file or directory > cp: /usr/local/etc/metricbeat.yml.sample: No such file or directory > pkg-static: POST-INSTALL script failed > *** Error code 70 It's a strange error. What is your filesystem layout (partitions)? It seems the install is trying to hardlink file to a different partitions. Also I don't know why you see the "No such file or directory" error for sample files. They are conditional in plist according to options you selected: %%FILEBEAT%%@sample etc/filebeat.yml.sample %%HEARTBEAT%%@sample etc/heartbeat.yml.sample %%METRICBEAT%%@sample etc/metricbeat.yml.sample Did you use this shar? https://bugs.freebsd.org/bugzilla/attachment.cgi?id=212453&action=edit Miroslav Lachman