From nobody Thu Jul 20 02:10:43 2023 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4R5x436y3zz4dSds for ; Thu, 20 Jul 2023 02:10:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R5x434LYLz40vV for ; Thu, 20 Jul 2023 02:10:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689819043; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0ns624ds2weVJnMLQvOk78Gh5YpI7TwiH7Xmroxd09c=; b=uXQXXooWSV/ojHUnQTBKV8mlqmrB0PL+iByefaQ1cYsTOzhUnA6WQjaTgFLXD2ByurKJon TSQFmPhePIc/0ngaVI7tAR8mt1UTljJnZ5G3BAcukK8PuGZcT7oNW/Yt+UYYjJ3WEq0R0G BDJ2Stg6NXpXMoCFYVJdEusJFYtCSJ/b5LrdKz3sFZhgHMyhS3ap0WfwF5udelID5ItPsa Mc0j2GDVoUuYR2u/7rqENQjsTGwY5/JNylc93YN7FrNF2yvdYhV/f8ouRwGQyCwjNRn3Rc U39IMl11BhGGY8ZyLlco3RifXdqtDtmlYskTSYaRwUXzFJu0KTQ96oVLh+XLyg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689819043; a=rsa-sha256; cv=none; b=JA9Vb4TVsfQr+Bn4z8jZaEEF9k+Jf662TVpEEweq+9dj3WvYhJnUwWemLX5g+qyLofVwFK QZe21L4RSsHvN2J74NBxyZcWLR9FK0IQgMhXzbih7wrsExK9ObgRnUiYIyZWPR711gKQbn mnOhLdqI9gbndEciLTAOgmaxynCT3N3V+elxkSJwAX3eQsfpRARmH58sZGq1mp+0Yu/Sc5 fjOzPVjztGgGPAhxI8mQjO596MVxGx5hwnN3AGDes3mB0GoYGn1vbFp2d0f6m+7YFZMcWF wXfRQvnAstNlpAFv/m/NYyupA0x9co6KaS9iVI5ZjLSzPZ6jQcZH3jISDKFxgQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4R5x433Q3hz1CKb for ; Thu, 20 Jul 2023 02:10:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 36K2AhWk010376 for ; Thu, 20 Jul 2023 02:10:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 36K2AhuV010375 for ports-bugs@FreeBSD.org; Thu, 20 Jul 2023 02:10:43 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 270997] net-mgmt/netdata: sometimes not running when expected, sometimes running but http://localhost:19999 not responding Date: Thu, 20 Jul 2023 02:10:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: grahamperrin@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270997 --- Comment #22 from Graham Perrin --- (In reply to Graham Perrin from comment #11) > Without attempting to diagnose what's wrong, is there some way that I can= =20 > simply start afresh?=20 >=20 > Without preferences/config/settings. >=20 > If it's also necessary to lose data, =E2=80=A6 Abandoning hope of diagnosis =E2=80=A6 I stopped netdata, uninstalled,=20 removed /usr/local/etc/netdata, then:=20 root@mowa219-gjp4-8570p-freebsd:~ # du -hs /var/cache/netdata 252M /var/cache/netdata root@mowa219-gjp4-8570p-freebsd:~ # du -hs /var/db/netdata 141K /var/db/netdata root@mowa219-gjp4-8570p-freebsd:~ # du -hs /var/log/netdata 27M /var/log/netdata root@mowa219-gjp4-8570p-freebsd:~ # ls -hln /var/log/netdata total 27131 -rw-r--r-- 1 302 302 2.7M Jul 9 00:32 access.log -rw-r--r-- 1 302 302 14M Jul 19 06:44 collector.log -rw-r--r-- 1 302 302 0B Jul 28 2021 debug.log -rw-r--r-- 1 302 302 562M Jul 19 06:44 error.log -rw-r--r-- 1 302 302 5.9M Jul 19 06:43 health.log root@mowa219-gjp4-8570p-freebsd:~ # du -hs /var/mail/netdata 5.6M /var/mail/netdata root@mowa219-gjp4-8570p-freebsd:~ # ls -hln /var/mail/netdata -rw--w---- 1 302 6 88M Jul 19 02:39 /var/mail/netdata root@mowa219-gjp4-8570p-freebsd:~ # rm -r /var/cache/netdata root@mowa219-gjp4-8570p-freebsd:~ # rm -r /var/db/netdata root@mowa219-gjp4-8570p-freebsd:~ # rm -r /var/log/netdata root@mowa219-gjp4-8570p-freebsd:~ # rm -r /var/mail/netdata root@mowa219-gjp4-8570p-freebsd:~ # file /usr/local/etc/netdata /usr/local/etc/netdata: cannot open `/usr/local/etc/netdata' (No such file = or directory) root@mowa219-gjp4-8570p-freebsd:~ # pkg install --yes netdata Updating FreeBSD repository catalogue... FreeBSD repository is up to date. Updating poudriere repository catalogue... Fetching meta.conf: 100% 163 B 0.2kB/s 00:01=20=20=20=20 Fetching packagesite.pkg: 100% 672 B 0.7kB/s 00:01=20=20=20=20 The provides database is up-to-date. Processing entries: 100% poudriere repository update completed. 1 packages processed. All repositories are up to date. pkg: Cannot get an advisory lock on a database, it is locked by another pro= cess root@mowa219-gjp4-8570p-freebsd:~ # service cron stop Stopping cron. Waiting for PIDS: 2564. =E2=80=A6 root@mowa219-gjp4-8570p-freebsd:~ # pkg install --yes netdata Updating FreeBSD repository catalogue... FreeBSD repository is up to date. Updating poudriere repository catalogue... Fetching meta.conf: 100% 163 B 0.2kB/s 00:01=20=20=20=20 Fetching packagesite.pkg: 100% 672 B 0.7kB/s 00:01=20=20=20=20 The provides database is up-to-date. Processing entries: 100% poudriere repository update completed. 1 packages processed. All repositories are up to date. The following 1 package(s) will be affected (of 0 checked): New packages to be INSTALLED: netdata: 1.40.1 [FreeBSD] Number of packages to be installed: 1 The process will require 32 MiB more space. 9 MiB to be downloaded. [1/1] Fetching netdata-1.40.1.pkg: 100% 9 MiB 4.7MB/s 00:02=20=20= =20=20 Checking integrity... done (0 conflicting) [1/1] Installing netdata-1.40.1... =3D=3D=3D> Creating groups. Using existing group 'netdata'. =3D=3D=3D> Creating users Using existing user 'netdata'. =3D=3D=3D> Creating homedir(s) [1/1] Extracting netdata-1.40.1: 100% =3D=3D=3D=3D=3D Message from netdata-1.40.1: =E2=80=A6 pkg: Package database is busy while closing! root@mowa219-gjp4-8570p-freebsd:~ # pkg delete --quiet --yes netdata =3D=3D> You should manually remove the "netdata" user.=20 =3D=3D> You should manually remove the "netdata" group=20 root@mowa219-gjp4-8570p-freebsd:~ # pkg install --quiet --yes netdata The provides database is up-to-date. =3D=3D=3D> Creating groups. Using existing group 'netdata'. =3D=3D=3D> Creating users Using existing user 'netdata'. =3D=3D=3D> Creating homedir(s) =3D=3D=3D=3D=3D Message from netdata-1.40.1: -- Quick start for local-only use: 1. sysrc netdata_enable=3D"YES" 2. service netdata start 3. Go to http://localhost:19999/ 4. Connect to Netdata Cloud using the netdata-claim.sh script: https://learn.netdata.cloud/docs/agent/claim#claiming-script root@mowa219-gjp4-8570p-freebsd:~ # date ; uptime Thu Jul 20 03:00:05 BST 2023 3:00AM up 17:46, 5 users, load averages: 1.26, 1.35, 1.38 root@mowa219-gjp4-8570p-freebsd:~ # sysrc netdata_enable=3D"YES" netdata_enable: NO -> YES root@mowa219-gjp4-8570p-freebsd:~ # tail -n 5 /var/log/messages Jul 20 02:37:37 mowa219-gjp4-8570p-freebsd kscreenlocker_greet[55341]: in _pam_exec(): pam_sm_setcred: pam_get_authtok(): authentication token not available Jul 20 02:37:37 mowa219-gjp4-8570p-freebsd kernel: hdaa0: Pin sense: nid=3D3 sense=3D0xffffffff (connected, ELD valid) Jul 20 02:57:26 mowa219-gjp4-8570p-freebsd pkg[12002]: netdata-1.40.1 insta= lled Jul 20 02:58:50 mowa219-gjp4-8570p-freebsd pkg[12313]: netdata-1.40.1 deinstalled Jul 20 02:59:52 mowa219-gjp4-8570p-freebsd pkg[12502]: netdata-1.40.1 insta= lled root@mowa219-gjp4-8570p-freebsd:~ # service netdata start Starting netdata. root@mowa219-gjp4-8570p-freebsd:~ # --=20 You are receiving this mail because: You are the assignee for the bug.=