MESSAGE
DATE | 2021-09-21 |
FROM | Chris Cromer
|
SUBJECT | Re: [Hangout - NYLXS] [artix-general] [s6] clamd + freshclam
|
From hangout-bounces-at-nylxs.com Tue Sep 21 23:22:43 2021 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: from www2.mrbrklyn.com (www2.mrbrklyn.com [96.57.23.82]) by mrbrklyn.com (Postfix) with ESMTP id E38C0163FD7; Tue, 21 Sep 2021 23:22:42 -0400 (EDT) X-Original-To: hangout-at-www2.mrbrklyn.com Delivered-To: hangout-at-www2.mrbrklyn.com Received: by mrbrklyn.com (Postfix, from userid 1000) id C9DED163FCE; Tue, 21 Sep 2021 23:22:22 -0400 (EDT) Resent-From: Ruben Safir Resent-Date: Tue, 21 Sep 2021 23:22:22 -0400 Resent-Message-ID: <20210922032222.GD3761-at-www2.mrbrklyn.com> Resent-To: hangout-at-mrbrklyn.com X-Original-To: ruben-at-mrbrklyn.com Delivered-To: ruben-at-mrbrklyn.com Received: from mail.artixlinux.org (mail.artixlinux.org [144.91.88.22]) by mrbrklyn.com (Postfix) with ESMTP id 0074C163FCA for ; Tue, 21 Sep 2021 02:31:10 -0400 (EDT) Received: by mail.artixlinux.org (Postfix, from userid 182) id 52862A227F7; Tue, 21 Sep 2021 08:21:39 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on endymion X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,HTML_MESSAGE, MAILING_LIST_MULTI,MISSING_HEADERS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from localhost.localdomain (localhost [127.0.0.1]) by mail.artixlinux.org (Postfix) with ESMTP id C4D98A227D1; Tue, 21 Sep 2021 08:21:28 +0200 (CEST) X-Original-To: artix-general-at-artixlinux.org Delivered-To: artix-general-at-localhost Received: from [192.168.0.4] (pc-170-24-47-190.cm.vtr.net [190.47.24.170]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.artixlinux.org (Postfix) with ESMTPSA id E4716A227D0 for ; Tue, 21 Sep 2021 08:21:26 +0200 (CEST) In-Reply-To: <021cc6d1-cbec-4486-4e79-f350597ca707-at-e.email> References: <021cc6d1-cbec-4486-4e79-f350597ca707-at-e.email> X-Referenced-Uid: 10579 Thread-Topic: [artix-general] [s6] clamd + freshclam configs and internet connectivity User-Agent: Android X-Is-Generated-Message-Id: true MIME-Version: 1.0 From: Chris Cromer Date: Tue, 21 Sep 2021 03:21:20 -0300 CC: artix-general Message-ID: <67bb79bc-e238-49f6-af28-fd339772e347-at-artixlinux.org> X-BeenThere: artix-general-at-artixlinux.org X-Mailman-Version: 2.1.34 Precedence: list Content-Type: multipart/mixed; boundary="===============2124390470935289025==" Subject: Re: [Hangout - NYLXS] [artix-general] [s6] clamd + freshclam configs and internet connectivity X-BeenThere: hangout-at-nylxs.com List-Id: NYLXS Tech Talk and Politics List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: hangout-bounces-at-nylxs.com Sender: "Hangout"
--===============2124390470935289025== Content-Type: multipart/alternative; boundary="----H7WPCRKY0LA73OC82IODG894P8A4QH" Content-Transfer-Encoding: 7bit
------H7WPCRKY0LA73OC82IODG894P8A4QH Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8
You could try to implement net-online from OpenRC in s6: https://github=2Ec= om/OpenRC/openrc/blob/master/init=2Ed/net-online=2Ein
Basically an infinit= e loop with a configurable timeout that pings a url/ip over and over until = it can connect, so that service gets marked as "up" once the ping succeeds= =2E
I am not an s6 expert, so maybe Dudeman guy might have an idea or be a= ble to implement this=2E
=E2=81=A3-- Chris Cromer Artix Linux Developer=E2= =80=8B
On Sep 20, 2021, 11:23 PM, at 11:23 PM, Javier wr= ote: >Hi, > >I'm wondering if I should comment out: > >> LogFile /var/log/c= lamav/clamd=2Elog > >from /etc/clamav/clamd=2Econf, and: > >> UpdateLogFile= /var/log/clamav/freshclam=2Elog > >from /etc/clamav/freshclam=2Econf > >Al= so I'm wondering if there's a way for s6 services/oneshots to know if >ther= e's already internet connectivity available (not that the ethernet >interfa= ces are up, or that dhcpcd for example is up, but rather that >there's inte= rnet up and running)=2E I believe since last s6 upgrade >(last week), now = freshclam starts too early, and fills the starting >console with inability = to download the DB=2E=2E=2E See logs: > >> 2021-09-20 20:14:32=2E645666876= ERROR: Problem with internal logger >(UpdateLogFile =3D /var/log/clamav/f= reshclam=2Elog)=2E >> 2021-09-20 20:14:32=2E645762441 ERROR: initialize: l= ibfreshclam init >failed=2E >> 2021-09-20 20:14:32=2E645768452 ERROR: Init= ialization error! >> 2021-09-20 20:14:32=2E661246349 ERROR: /var/log/clama= v/freshclam=2Elog >is locked by another process >> 2021-09-20 20:14:33=2E51= 6879873 ERROR: Problem with internal logger >(UpdateLogFile =3D /var/log/c= lamav/freshclam=2Elog)=2E >> 2021-09-20 20:14:33=2E525522860 ERROR: initia= lize: libfreshclam init >failed=2E >> 2021-09-20 20:14:33=2E525591955 ERRO= R: Initialization error! >> 2021-09-20 20:14:33=2E526189974 ERROR: /var/lo= g/clamav/freshclam=2Elog >is locked by another process >> 2021-09-20 20:14:= 34=2E481701826 ERROR: Problem with internal logger >(UpdateLogFile =3D /va= r/log/clamav/freshclam=2Elog)=2E >> 2021-09-20 20:14:34=2E485201946 ERROR:= initialize: libfreshclam init >failed=2E >> 2021-09-20 20:14:34=2E48525536= 0 ERROR: Initialization error! >> 2021-09-20 20:14:34=2E485807613 ERROR: = /var/log/clamav/freshclam=2Elog >is locked by another process >> 2021-09-20= 20:14:35=2E482655430 ERROR: Problem with internal logger >(UpdateLogFile = =3D /var/log/clamav/freshclam=2Elog)=2E >> 2021-09-20 20:14:35=2E482720095 = ERROR: initialize: libfreshclam init >failed=2E >> 2021-09-20 20:14:35=2E4= 82758594 ERROR: Initialization error! >> 2021-09-20 20:14:35=2E483257024 = ERROR: /var/log/clamav/freshclam=2Elog >is locked by another process >> 202= 1-09-20 20:14:36=2E483704169 ERROR: Problem with internal logger >(UpdateL= ogFile =3D /var/log/clamav/freshclam=2Elog)=2E >> 2021-09-20 20:14:36=2E488= 522094 ERROR: initialize: libfreshclam init >failed=2E >> 2021-09-20 20:14= :36=2E488574701 ERROR: Initialization error! >> 2021-09-20 20:14:36=2E4890= 75278 ERROR: /var/log/clamav/freshclam=2Elog >is locked by another process=
>> 2021-09-20 20:14:37=2E489173050 ERROR: Problem with internal logger >(= UpdateLogFile =3D /var/log/clamav/freshclam=2Elog)=2E >> 2021-09-20 20:14:3= 7=2E489193288 ERROR: initialize: libfreshclam init >failed=2E >> 2021-09-2= 0 20:14:37=2E489198444 ERROR: Initialization error! >> 2021-09-20 20:14:37= =2E489655235 ERROR: /var/log/clamav/freshclam=2Elog >is locked by another = process >> 2021-09-20 20:14:38=2E489196317 ERROR: Problem with internal lo= gger >(UpdateLogFile =3D /var/log/clamav/freshclam=2Elog)=2E >> 2021-09-20 = 20:14:38=2E489275089 ERROR: initialize: libfreshclam init >failed=2E >> 20= 21-09-20 20:14:38=2E489312739 ERROR: Initialization error! >> 2021-09-20 2= 0:14:38=2E489830220 ERROR: /var/log/clamav/freshclam=2Elog >is locked by a= nother process >> 2021-09-20 20:14:39=2E486066312 ERROR: Problem with inte= rnal logger >(UpdateLogFile =3D /var/log/clamav/freshclam=2Elog)=2E >> 2021= -09-20 20:14:39=2E488542981 ERROR: initialize: libfreshclam init >failed= =2E >> 2021-09-20 20:14:39=2E488600637 ERROR: Initialization error! >> 202= 1-09-20 20:14:39=2E489145708 ERROR: /var/log/clamav/freshclam=2Elog >is lo= cked by another process >> 2021-09-20 20:14:40=2E489017143 ERROR: Problem = with internal logger >(UpdateLogFile =3D /var/log/clamav/freshclam=2Elog)= =2E >> 2021-09-20 20:14:40=2E489097324 ERROR: initialize: libfreshclam ini= t >failed=2E >> 2021-09-20 20:14:40=2E489135807 ERROR: Initialization erro= r! >> 2021-09-20 20:14:40=2E489652317 ERROR: /var/log/clamav/freshclam=2El= og >is locked by another process >> 2021-09-20 20:14:41=2E492482369 ERROR:= Problem with internal logger >(UpdateLogFile =3D /var/log/clamav/freshclam= =2Elog)=2E >> 2021-09-20 20:14:41=2E495202256 ERROR: initialize: libfreshc= lam init >failed=2E >> 2021-09-20 20:14:41=2E495259903 ERROR: Initializati= on error! >> 2021-09-20 20:14:41=2E495833709 ERROR: /var/log/clamav/freshc= lam=2Elog >is locked by another process >> 2021-09-20 20:14:42=2E492479416 = ERROR: Problem with internal logger >(UpdateLogFile =3D /var/log/clamav/fr= eshclam=2Elog)=2E >> 2021-09-20 20:14:42=2E492561067 ERROR: initialize: li= bfreshclam init >failed=2E >> 2021-09-20 20:14:42=2E492599624 ERROR: Initi= alization error! >> 2021-09-20 20:14:42=2E493123969 ERROR: /var/log/clamav= /freshclam=2Elog >is locked by another process >> 2021-09-20 20:14:43=2E490= 707475 ClamAV update process started at Mon >Sep 20 20:14:43 2021 >> 2021-= 09-20 20:14:43=2E495391476 WARNING: Can't query >current=2Ecvd=2Eclamav=2E= net >> 2021-09-20 20:14:43=2E495462233 WARNING: Invalid DNS reply=2E Falli= ng >back to HTTP mode=2E >> 2021-09-20 20:14:43=2E495693667 Trying to retr= ieve CVD header from >https://database=2Eclamav=2Enet/daily=2Ecvd >> 2021-0= 9-20 20:14:43=2E496772814 WARNING: remote_cvdhead: Download >failed (6) WA= RNING: Message: Couldn't resolve host name >> 2021-09-20 20:14:43=2E496785= 468 WARNING: Failed to get daily database >version information from server= : https://database=2Eclamav=2Enet >> 2021-09-20 20:14:43=2E496793499 ERROR= : check_for_new_database_version: >Failed to find daily database using serv= er https://database=2Eclamav=2Enet=2E >> 2021-09-20 20:14:43=2E496798150 T= rying again in 5 secs=2E=2E=2E >> 2021-09-20 20:14:48=2E497159402 Trying t= o retrieve CVD header from >https://database=2Eclamav=2Enet/daily=2Ecvd >> = 2021-09-20 20:14:48=2E986050859 daily=2Ecld database is up-to-date >(versi= on: 26298, sigs: 1934493, f-level: 90, builder: raynman) >> 2021-09-20 20:1= 4:48=2E986067873 Trying to retrieve CVD header from >https://database=2Ecl= amav=2Enet/main=2Ecvd >> 2021-09-20 20:14:49=2E221972555 main=2Ecld databa= se is up-to-date >(version: 62, sigs: 6647427, f-level: 90, builder: sigmgr= ) >> 2021-09-20 20:14:49=2E221988805 Trying to retrieve CVD header from >h= ttps://database=2Eclamav=2Enet/bytecode=2Ecvd >> 2021-09-20 20:14:49=2E4096= 22147 bytecode=2Ecld database is up-to-date >(version: 333, sigs: 92, f-le= vel: 63, builder: awillia2) > >On the console what I get to see is that it = couldn't download the daily >DB, not the whole thing=2E=2E=2E About confli= cting logging, perhaps I >actually can extend those configs to ALL services= /oneshots, if managed >by s6=2E=2E=2E For example, perhaps I should remove= : > >> log_file "/var/log/mpd=2Elog > >From /etc/mpd=2Econf, an= d the same for all other services/oneshots=2E=2E=2E Is >that right? Also,= what about internet connection discovery as a >dependency to services, whi= ch depend on having internet access? > >Thanks ! > >-- >Javier > > >------= ------------------------------------------------------------------ > >-- >= artix-general mailing list >artix-general-at-artixlinux=2Eorg >https://lists= =2Eartixlinux=2Eorg/listinfo/artix-general
------H7WPCRKY0LA73OC82IODG894P8A4QH Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
You could tr= y to implement net-online from OpenRC in s6:
Basically an infinite loop with a= configurable timeout that pings a url/ip over and over until it can connec= t, so that service gets marked as "up" once the ping succeeds=2E iv> I am not an s6 expert, so maybe Dudeman guy might hav= e an idea or be able to implement this=2E
<= !-- tmjah_g_1299s -->--
<= !-- tmjah_g_1299s -->Chris Cromer
=3D"auto">Artix Linux Developer=
On Sep 20, 2021, at 11:23 PM, Javier <= ; je-vv-at-e=2Eemail&g= t; wrote: =2E8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> e class=3D"blue">Hi,
I'm wondering if I should comment out:
<= blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 1ex 0=2E8ex; bord= er-left: 1px solid #729fcf; padding-left: 1ex;"> LogFile /var/log/clamav/cl= amd=2Elog
from /etc/clamav/clamd=2Econf, and: lockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 1ex 0=2E8ex; borde= r-left: 1px solid #729fcf; padding-left: 1ex;"> UpdateLogFile /var/log/clam= av/freshclam=2Elog
from /etc/clamav/freshclam=2Econf > Also I'm wondering if there's a way for s6 services/oneshots to know i= f there's already internet connectivity available (not that the ethernet in= terfaces are up, or that dhcpcd for example is up, but rather that there's = internet up and running)=2E I believe since last s6 upgrade (last week), n= ow freshclam starts too early, and fills the starting console with inabilit= y to download the DB=2E=2E=2E See logs:
quote" style=3D"margin: 0pt 0pt 1ex 0=2E8ex; border-left: 1px solid #729fcf= ; padding-left: 1ex;"> 2021-09-20 20:14:32=2E645666876 ERROR: Problem with= internal logger (UpdateLogFile =3D /var/log/clamav/freshclam=2Elog)=2E = 2021-09-20 20:14:32=2E645762441 ERROR: initialize: libfreshclam init fail= ed=2E 2021-09-20 20:14:32=2E645768452 ERROR: Initialization error! = 2021-09-20 20:14:32=2E661246349 ERROR: /var/log/clamav/freshclam=2Elog is= locked by another process 2021-09-20 20:14:33=2E516879873 ERROR: Prob= lem with internal logger (UpdateLogFile =3D /var/log/clamav/freshclam=2Elog= )=2E 2021-09-20 20:14:33=2E525522860 ERROR: initialize: libfreshclam i= nit failed=2E 2021-09-20 20:14:33=2E525591955 ERROR: Initialization er= ror! 2021-09-20 20:14:33=2E526189974 ERROR: /var/log/clamav/freshclam= =2Elog is locked by another process 2021-09-20 20:14:34=2E481701826 ER= ROR: Problem with internal logger (UpdateLogFile =3D /var/log/clamav/freshc= lam=2Elog)=2E 2021-09-20 20:14:34=2E485201946 ERROR: initialize: libfr= eshclam init failed=2E 2021-09-20 20:14:34=2E485255360 ERROR: Initiali= zation error! 2021-09-20 20:14:34=2E485807613 ERROR: /var/log/clamav/f= reshclam=2Elog is locked by another process 2021-09-20 20:14:35=2E48265= 5430 ERROR: Problem with internal logger (UpdateLogFile =3D /var/log/clama= v/freshclam=2Elog)=2E 2021-09-20 20:14:35=2E482720095 ERROR: initializ= e: libfreshclam init failed=2E 2021-09-20 20:14:35=2E482758594 ERROR: = Initialization error! 2021-09-20 20:14:35=2E483257024 ERROR: /var/log/= clamav/freshclam=2Elog is locked by another process 2021-09-20 20:14:36= =2E483704169 ERROR: Problem with internal logger (UpdateLogFile =3D /var/l= og/clamav/freshclam=2Elog)=2E 2021-09-20 20:14:36=2E488522094 ERROR: i= nitialize: libfreshclam init failed=2E 2021-09-20 20:14:36=2E488574701 = ERROR: Initialization error! 2021-09-20 20:14:36=2E489075278 ERROR: /= var/log/clamav/freshclam=2Elog is locked by another process 2021-09-20 = 20:14:37=2E489173050 ERROR: Problem with internal logger (UpdateLogFile = =3D /var/log/clamav/freshclam=2Elog)=2E 2021-09-20 20:14:37=2E489193288= ERROR: initialize: libfreshclam init failed=2E 2021-09-20 20:14:37=2E= 489198444 ERROR: Initialization error! 2021-09-20 20:14:37=2E489655235= ERROR: /var/log/clamav/freshclam=2Elog is locked by another process 2= 021-09-20 20:14:38=2E489196317 ERROR: Problem with internal logger (Update= LogFile =3D /var/log/clamav/freshclam=2Elog)=2E 2021-09-20 20:14:38=2E4= 89275089 ERROR: initialize: libfreshclam init failed=2E 2021-09-20 20:= 14:38=2E489312739 ERROR: Initialization error! 2021-09-20 20:14:38=2E4= 89830220 ERROR: /var/log/clamav/freshclam=2Elog is locked by another proce= ss 2021-09-20 20:14:39=2E486066312 ERROR: Problem with internal logger= (UpdateLogFile =3D /var/log/clamav/freshclam=2Elog)=2E 2021-09-20 20:1= 4:39=2E488542981 ERROR: initialize: libfreshclam init failed=2E 2021-0= 9-20 20:14:39=2E488600637 ERROR: Initialization error! 2021-09-20 20:1= 4:39=2E489145708 ERROR: /var/log/clamav/freshclam=2Elog is locked by anoth= er process 2021-09-20 20:14:40=2E489017143 ERROR: Problem with interna= l logger (UpdateLogFile =3D /var/log/clamav/freshclam=2Elog)=2E 2021-09= -20 20:14:40=2E489097324 ERROR: initialize: libfreshclam init failed=2E > 2021-09-20 20:14:40=2E489135807 ERROR: Initialization error! 2021-09= -20 20:14:40=2E489652317 ERROR: /var/log/clamav/freshclam=2Elog is locked = by another process 2021-09-20 20:14:41=2E492482369 ERROR: Problem with= internal logger (UpdateLogFile =3D /var/log/clamav/freshclam=2Elog)=2E = 2021-09-20 20:14:41=2E495202256 ERROR: initialize: libfreshclam init fail= ed=2E 2021-09-20 20:14:41=2E495259903 ERROR: Initialization error! = 2021-09-20 20:14:41=2E495833709 ERROR: /var/log/clamav/freshclam=2Elog is= locked by another process 2021-09-20 20:14:42=2E492479416 ERROR: Prob= lem with internal logger (UpdateLogFile =3D /var/log/clamav/freshclam=2Elog= )=2E 2021-09-20 20:14:42=2E492561067 ERROR: initialize: libfreshclam i= nit failed=2E 2021-09-20 20:14:42=2E492599624 ERROR: Initialization er= ror! 2021-09-20 20:14:42=2E493123969 ERROR: /var/log/clamav/freshclam= =2Elog is locked by another process 2021-09-20 20:14:43=2E490707475 Cl= amAV update process started at Mon Sep 20 20:14:43 2021 2021-09-20 20:1= 4:43=2E495391476 WARNING: Can't query amav=2Enet">current=2Ecvd=2Eclamav=2Enet 2021-09-20 20:14:43=2E4954= 62233 WARNING: Invalid DNS reply=2E Falling back to HTTP mode=2E 2021-= 09-20 20:14:43=2E495693667 Trying to retrieve CVD header from ttps://database=2Eclamav=2Enet/daily=2Ecvd">https://database=2Eclamav=2Enet= /daily=2Ecvd 2021-09-20 20:14:43=2E496772814 WARNING: remote_cvdhe= ad: Download failed (6) WARNING: Message: Couldn't resolve host name 2= 021-09-20 20:14:43=2E496785468 WARNING: Failed to get daily database versi= on information from server: htt= ps://database=2Eclamav=2Enet 2021-09-20 20:14:43=2E496793499 ERROR= : check_for_new_database_version: Failed to find daily database using serve= r https://database=2Eclamav=2En= et=2E 2021-09-20 20:14:43=2E496798150 Trying again in 5 secs=2E=2E= =2E 2021-09-20 20:14:48=2E497159402 Trying to retrieve CVD header from= https://database= =2Eclamav=2Enet/daily=2Ecvd 2021-09-20 20:14:48=2E986050859 daily= =2Ecld database is up-to-date (version: 26298, sigs: 1934493, f-level: 90, = builder: raynman) 2021-09-20 20:14:48=2E986067873 Trying to retrieve C= VD header from https= ://database=2Eclamav=2Enet/main=2Ecvd 2021-09-20 20:14:49=2E2219725= 55 main=2Ecld database is up-to-date (version: 62, sigs: 6647427, f-level:= 90, builder: sigmgr) 2021-09-20 20:14:49=2E221988805 Trying to retrie= ve CVD header from d">https://database=2Eclamav=2Enet/bytecode=2Ecvd 2021-09-20 20:14:= 49=2E409622147 bytecode=2Ecld database is up-to-date (version: 333, sigs: = 92, f-level: 63, builder: awillia2)
On the console what= I get to see is that it couldn't download the daily DB, not the whole thin= g=2E=2E=2E About conflicting logging, perhaps I actually can extend those = configs to ALL services/oneshots, if managed by s6=2E=2E=2E For example, p= erhaps I should remove:
argin: 0pt 0pt 1ex 0=2E8ex; border-left: 1px solid #729fcf; padding-left: 1= ex;"> log_file "/var/log/mpd=2Elog
From /e= tc/mpd=2Econf, and the same for all other services/oneshots=2E=2E=2E Is th= at right? Also, what about internet connection discovery as a dependency t= o services, which depend on having internet access?
Thanks ! e>------H7WPCRKY0LA73OC82IODG894P8A4QH-- --===============2124390470935289025== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- artix-general mailing list artix-general-at-artixlinux.org https://lists.artixlinux.org/listinfo/artix-general --===============2124390470935289025== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Hangout mailing list Hangout-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/hangout --===============2124390470935289025==-- --===============2124390470935289025== Content-Type: multipart/alternative; boundary="----H7WPCRKY0LA73OC82IODG894P8A4QH" Content-Transfer-Encoding: 7bit ------H7WPCRKY0LA73OC82IODG894P8A4QH Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 You could try to implement net-online from OpenRC in s6: https://github=2Ec= om/OpenRC/openrc/blob/master/init=2Ed/net-online=2Ein Basically an infinit= e loop with a configurable timeout that pings a url/ip over and over until = it can connect, so that service gets marked as "up" once the ping succeeds= =2E I am not an s6 expert, so maybe Dudeman guy might have an idea or be a= ble to implement this=2E =E2=81=A3-- Chris Cromer Artix Linux Developer=E2= =80=8B On Sep 20, 2021, 11:23 PM, at 11:23 PM, Javier wr= ote: >Hi, > >I'm wondering if I should comment out: > >> LogFile /var/log/c= lamav/clamd=2Elog > >from /etc/clamav/clamd=2Econf, and: > >> UpdateLogFile= /var/log/clamav/freshclam=2Elog > >from /etc/clamav/freshclam=2Econf > >Al= so I'm wondering if there's a way for s6 services/oneshots to know if >ther= e's already internet connectivity available (not that the ethernet >interfa= ces are up, or that dhcpcd for example is up, but rather that >there's inte= rnet up and running)=2E I believe since last s6 upgrade >(last week), now = freshclam starts too early, and fills the starting >console with inability = to download the DB=2E=2E=2E See logs: > >> 2021-09-20 20:14:32=2E645666876= ERROR: Problem with internal logger >(UpdateLogFile =3D /var/log/clamav/f= reshclam=2Elog)=2E >> 2021-09-20 20:14:32=2E645762441 ERROR: initialize: l= ibfreshclam init >failed=2E >> 2021-09-20 20:14:32=2E645768452 ERROR: Init= ialization error! >> 2021-09-20 20:14:32=2E661246349 ERROR: /var/log/clama= v/freshclam=2Elog >is locked by another process >> 2021-09-20 20:14:33=2E51= 6879873 ERROR: Problem with internal logger >(UpdateLogFile =3D /var/log/c= lamav/freshclam=2Elog)=2E >> 2021-09-20 20:14:33=2E525522860 ERROR: initia= lize: libfreshclam init >failed=2E >> 2021-09-20 20:14:33=2E525591955 ERRO= R: Initialization error! >> 2021-09-20 20:14:33=2E526189974 ERROR: /var/lo= g/clamav/freshclam=2Elog >is locked by another process >> 2021-09-20 20:14:= 34=2E481701826 ERROR: Problem with internal logger >(UpdateLogFile =3D /va= r/log/clamav/freshclam=2Elog)=2E >> 2021-09-20 20:14:34=2E485201946 ERROR:= initialize: libfreshclam init >failed=2E >> 2021-09-20 20:14:34=2E48525536= 0 ERROR: Initialization error! >> 2021-09-20 20:14:34=2E485807613 ERROR: = /var/log/clamav/freshclam=2Elog >is locked by another process >> 2021-09-20= 20:14:35=2E482655430 ERROR: Problem with internal logger >(UpdateLogFile = =3D /var/log/clamav/freshclam=2Elog)=2E >> 2021-09-20 20:14:35=2E482720095 = ERROR: initialize: libfreshclam init >failed=2E >> 2021-09-20 20:14:35=2E4= 82758594 ERROR: Initialization error! >> 2021-09-20 20:14:35=2E483257024 = ERROR: /var/log/clamav/freshclam=2Elog >is locked by another process >> 202= 1-09-20 20:14:36=2E483704169 ERROR: Problem with internal logger >(UpdateL= ogFile =3D /var/log/clamav/freshclam=2Elog)=2E >> 2021-09-20 20:14:36=2E488= 522094 ERROR: initialize: libfreshclam init >failed=2E >> 2021-09-20 20:14= :36=2E488574701 ERROR: Initialization error! >> 2021-09-20 20:14:36=2E4890= 75278 ERROR: /var/log/clamav/freshclam=2Elog >is locked by another process=
>> 2021-09-20 20:14:37=2E489173050 ERROR: Problem with internal logger >(= UpdateLogFile =3D /var/log/clamav/freshclam=2Elog)=2E >> 2021-09-20 20:14:3= 7=2E489193288 ERROR: initialize: libfreshclam init >failed=2E >> 2021-09-2= 0 20:14:37=2E489198444 ERROR: Initialization error! >> 2021-09-20 20:14:37= =2E489655235 ERROR: /var/log/clamav/freshclam=2Elog >is locked by another = process >> 2021-09-20 20:14:38=2E489196317 ERROR: Problem with internal lo= gger >(UpdateLogFile =3D /var/log/clamav/freshclam=2Elog)=2E >> 2021-09-20 = 20:14:38=2E489275089 ERROR: initialize: libfreshclam init >failed=2E >> 20= 21-09-20 20:14:38=2E489312739 ERROR: Initialization error! >> 2021-09-20 2= 0:14:38=2E489830220 ERROR: /var/log/clamav/freshclam=2Elog >is locked by a= nother process >> 2021-09-20 20:14:39=2E486066312 ERROR: Problem with inte= rnal logger >(UpdateLogFile =3D /var/log/clamav/freshclam=2Elog)=2E >> 2021= -09-20 20:14:39=2E488542981 ERROR: initialize: libfreshclam init >failed= =2E >> 2021-09-20 20:14:39=2E488600637 ERROR: Initialization error! >> 202= 1-09-20 20:14:39=2E489145708 ERROR: /var/log/clamav/freshclam=2Elog >is lo= cked by another process >> 2021-09-20 20:14:40=2E489017143 ERROR: Problem = with internal logger >(UpdateLogFile =3D /var/log/clamav/freshclam=2Elog)= =2E >> 2021-09-20 20:14:40=2E489097324 ERROR: initialize: libfreshclam ini= t >failed=2E >> 2021-09-20 20:14:40=2E489135807 ERROR: Initialization erro= r! >> 2021-09-20 20:14:40=2E489652317 ERROR: /var/log/clamav/freshclam=2El= og >is locked by another process >> 2021-09-20 20:14:41=2E492482369 ERROR:= Problem with internal logger >(UpdateLogFile =3D /var/log/clamav/freshclam= =2Elog)=2E >> 2021-09-20 20:14:41=2E495202256 ERROR: initialize: libfreshc= lam init >failed=2E >> 2021-09-20 20:14:41=2E495259903 ERROR: Initializati= on error! >> 2021-09-20 20:14:41=2E495833709 ERROR: /var/log/clamav/freshc= lam=2Elog >is locked by another process >> 2021-09-20 20:14:42=2E492479416 = ERROR: Problem with internal logger >(UpdateLogFile =3D /var/log/clamav/fr= eshclam=2Elog)=2E >> 2021-09-20 20:14:42=2E492561067 ERROR: initialize: li= bfreshclam init >failed=2E >> 2021-09-20 20:14:42=2E492599624 ERROR: Initi= alization error! >> 2021-09-20 20:14:42=2E493123969 ERROR: /var/log/clamav= /freshclam=2Elog >is locked by another process >> 2021-09-20 20:14:43=2E490= 707475 ClamAV update process started at Mon >Sep 20 20:14:43 2021 >> 2021-= 09-20 20:14:43=2E495391476 WARNING: Can't query >current=2Ecvd=2Eclamav=2E= net >> 2021-09-20 20:14:43=2E495462233 WARNING: Invalid DNS reply=2E Falli= ng >back to HTTP mode=2E >> 2021-09-20 20:14:43=2E495693667 Trying to retr= ieve CVD header from >https://database=2Eclamav=2Enet/daily=2Ecvd >> 2021-0= 9-20 20:14:43=2E496772814 WARNING: remote_cvdhead: Download >failed (6) WA= RNING: Message: Couldn't resolve host name >> 2021-09-20 20:14:43=2E496785= 468 WARNING: Failed to get daily database >version information from server= : https://database=2Eclamav=2Enet >> 2021-09-20 20:14:43=2E496793499 ERROR= : check_for_new_database_version: >Failed to find daily database using serv= er https://database=2Eclamav=2Enet=2E >> 2021-09-20 20:14:43=2E496798150 T= rying again in 5 secs=2E=2E=2E >> 2021-09-20 20:14:48=2E497159402 Trying t= o retrieve CVD header from >https://database=2Eclamav=2Enet/daily=2Ecvd >> = 2021-09-20 20:14:48=2E986050859 daily=2Ecld database is up-to-date >(versi= on: 26298, sigs: 1934493, f-level: 90, builder: raynman) >> 2021-09-20 20:1= 4:48=2E986067873 Trying to retrieve CVD header from >https://database=2Ecl= amav=2Enet/main=2Ecvd >> 2021-09-20 20:14:49=2E221972555 main=2Ecld databa= se is up-to-date >(version: 62, sigs: 6647427, f-level: 90, builder: sigmgr= ) >> 2021-09-20 20:14:49=2E221988805 Trying to retrieve CVD header from >h= ttps://database=2Eclamav=2Enet/bytecode=2Ecvd >> 2021-09-20 20:14:49=2E4096= 22147 bytecode=2Ecld database is up-to-date >(version: 333, sigs: 92, f-le= vel: 63, builder: awillia2) > >On the console what I get to see is that it = couldn't download the daily >DB, not the whole thing=2E=2E=2E About confli= cting logging, perhaps I >actually can extend those configs to ALL services= /oneshots, if managed >by s6=2E=2E=2E For example, perhaps I should remove= : > >> log_file "/var/log/mpd=2Elog > >From /etc/mpd=2Econf, an= d the same for all other services/oneshots=2E=2E=2E Is >that right? Also,= what about internet connection discovery as a >dependency to services, whi= ch depend on having internet access? > >Thanks ! > >-- >Javier > > >------= ------------------------------------------------------------------ > >-- >= artix-general mailing list >artix-general-at-artixlinux=2Eorg >https://lists= =2Eartixlinux=2Eorg/listinfo/artix-general
------H7WPCRKY0LA73OC82IODG894P8A4QH Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
You could tr= y to implement net-online from OpenRC in s6:
Basically an infinite loop with a= configurable timeout that pings a url/ip over and over until it can connec= t, so that service gets marked as "up" once the ping succeeds=2E iv> I am not an s6 expert, so maybe Dudeman guy might hav= e an idea or be able to implement this=2E
<= !-- tmjah_g_1299s -->--
<= !-- tmjah_g_1299s -->Chris Cromer
=3D"auto">Artix Linux Developer=
On Sep 20, 2021, at 11:23 PM, Javier <= ; je-vv-at-e=2Eemail&g= t; wrote: =2E8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> e class=3D"blue">Hi,
I'm wondering if I should comment out:
<= blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 1ex 0=2E8ex; bord= er-left: 1px solid #729fcf; padding-left: 1ex;"> LogFile /var/log/clamav/cl= amd=2Elog
from /etc/clamav/clamd=2Econf, and: lockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 1ex 0=2E8ex; borde= r-left: 1px solid #729fcf; padding-left: 1ex;"> UpdateLogFile /var/log/clam= av/freshclam=2Elog
from /etc/clamav/freshclam=2Econf > Also I'm wondering if there's a way for s6 services/oneshots to know i= f there's already internet connectivity available (not that the ethernet in= terfaces are up, or that dhcpcd for example is up, but rather that there's = internet up and running)=2E I believe since last s6 upgrade (last week), n= ow freshclam starts too early, and fills the starting console with inabilit= y to download the DB=2E=2E=2E See logs:
quote" style=3D"margin: 0pt 0pt 1ex 0=2E8ex; border-left: 1px solid #729fcf= ; padding-left: 1ex;"> 2021-09-20 20:14:32=2E645666876 ERROR: Problem with= internal logger (UpdateLogFile =3D /var/log/clamav/freshclam=2Elog)=2E = 2021-09-20 20:14:32=2E645762441 ERROR: initialize: libfreshclam init fail= ed=2E 2021-09-20 20:14:32=2E645768452 ERROR: Initialization error! = 2021-09-20 20:14:32=2E661246349 ERROR: /var/log/clamav/freshclam=2Elog is= locked by another process 2021-09-20 20:14:33=2E516879873 ERROR: Prob= lem with internal logger (UpdateLogFile =3D /var/log/clamav/freshclam=2Elog= )=2E 2021-09-20 20:14:33=2E525522860 ERROR: initialize: libfreshclam i= nit failed=2E 2021-09-20 20:14:33=2E525591955 ERROR: Initialization er= ror! 2021-09-20 20:14:33=2E526189974 ERROR: /var/log/clamav/freshclam= =2Elog is locked by another process 2021-09-20 20:14:34=2E481701826 ER= ROR: Problem with internal logger (UpdateLogFile =3D /var/log/clamav/freshc= lam=2Elog)=2E 2021-09-20 20:14:34=2E485201946 ERROR: initialize: libfr= eshclam init failed=2E 2021-09-20 20:14:34=2E485255360 ERROR: Initiali= zation error! 2021-09-20 20:14:34=2E485807613 ERROR: /var/log/clamav/f= reshclam=2Elog is locked by another process 2021-09-20 20:14:35=2E48265= 5430 ERROR: Problem with internal logger (UpdateLogFile =3D /var/log/clama= v/freshclam=2Elog)=2E 2021-09-20 20:14:35=2E482720095 ERROR: initializ= e: libfreshclam init failed=2E 2021-09-20 20:14:35=2E482758594 ERROR: = Initialization error! 2021-09-20 20:14:35=2E483257024 ERROR: /var/log/= clamav/freshclam=2Elog is locked by another process 2021-09-20 20:14:36= =2E483704169 ERROR: Problem with internal logger (UpdateLogFile =3D /var/l= og/clamav/freshclam=2Elog)=2E 2021-09-20 20:14:36=2E488522094 ERROR: i= nitialize: libfreshclam init failed=2E 2021-09-20 20:14:36=2E488574701 = ERROR: Initialization error! 2021-09-20 20:14:36=2E489075278 ERROR: /= var/log/clamav/freshclam=2Elog is locked by another process 2021-09-20 = 20:14:37=2E489173050 ERROR: Problem with internal logger (UpdateLogFile = =3D /var/log/clamav/freshclam=2Elog)=2E 2021-09-20 20:14:37=2E489193288= ERROR: initialize: libfreshclam init failed=2E 2021-09-20 20:14:37=2E= 489198444 ERROR: Initialization error! 2021-09-20 20:14:37=2E489655235= ERROR: /var/log/clamav/freshclam=2Elog is locked by another process 2= 021-09-20 20:14:38=2E489196317 ERROR: Problem with internal logger (Update= LogFile =3D /var/log/clamav/freshclam=2Elog)=2E 2021-09-20 20:14:38=2E4= 89275089 ERROR: initialize: libfreshclam init failed=2E 2021-09-20 20:= 14:38=2E489312739 ERROR: Initialization error! 2021-09-20 20:14:38=2E4= 89830220 ERROR: /var/log/clamav/freshclam=2Elog is locked by another proce= ss 2021-09-20 20:14:39=2E486066312 ERROR: Problem with internal logger= (UpdateLogFile =3D /var/log/clamav/freshclam=2Elog)=2E 2021-09-20 20:1= 4:39=2E488542981 ERROR: initialize: libfreshclam init failed=2E 2021-0= 9-20 20:14:39=2E488600637 ERROR: Initialization error! 2021-09-20 20:1= 4:39=2E489145708 ERROR: /var/log/clamav/freshclam=2Elog is locked by anoth= er process 2021-09-20 20:14:40=2E489017143 ERROR: Problem with interna= l logger (UpdateLogFile =3D /var/log/clamav/freshclam=2Elog)=2E 2021-09= -20 20:14:40=2E489097324 ERROR: initialize: libfreshclam init failed=2E > 2021-09-20 20:14:40=2E489135807 ERROR: Initialization error! 2021-09= -20 20:14:40=2E489652317 ERROR: /var/log/clamav/freshclam=2Elog is locked = by another process 2021-09-20 20:14:41=2E492482369 ERROR: Problem with= internal logger (UpdateLogFile =3D /var/log/clamav/freshclam=2Elog)=2E = 2021-09-20 20:14:41=2E495202256 ERROR: initialize: libfreshclam init fail= ed=2E 2021-09-20 20:14:41=2E495259903 ERROR: Initialization error! = 2021-09-20 20:14:41=2E495833709 ERROR: /var/log/clamav/freshclam=2Elog is= locked by another process 2021-09-20 20:14:42=2E492479416 ERROR: Prob= lem with internal logger (UpdateLogFile =3D /var/log/clamav/freshclam=2Elog= )=2E 2021-09-20 20:14:42=2E492561067 ERROR: initialize: libfreshclam i= nit failed=2E 2021-09-20 20:14:42=2E492599624 ERROR: Initialization er= ror! 2021-09-20 20:14:42=2E493123969 ERROR: /var/log/clamav/freshclam= =2Elog is locked by another process 2021-09-20 20:14:43=2E490707475 Cl= amAV update process started at Mon Sep 20 20:14:43 2021 2021-09-20 20:1= 4:43=2E495391476 WARNING: Can't query amav=2Enet">current=2Ecvd=2Eclamav=2Enet 2021-09-20 20:14:43=2E4954= 62233 WARNING: Invalid DNS reply=2E Falling back to HTTP mode=2E 2021-= 09-20 20:14:43=2E495693667 Trying to retrieve CVD header from ttps://database=2Eclamav=2Enet/daily=2Ecvd">https://database=2Eclamav=2Enet= /daily=2Ecvd 2021-09-20 20:14:43=2E496772814 WARNING: remote_cvdhe= ad: Download failed (6) WARNING: Message: Couldn't resolve host name 2= 021-09-20 20:14:43=2E496785468 WARNING: Failed to get daily database versi= on information from server: htt= ps://database=2Eclamav=2Enet 2021-09-20 20:14:43=2E496793499 ERROR= : check_for_new_database_version: Failed to find daily database using serve= r https://database=2Eclamav=2En= et=2E 2021-09-20 20:14:43=2E496798150 Trying again in 5 secs=2E=2E= =2E 2021-09-20 20:14:48=2E497159402 Trying to retrieve CVD header from= https://database= =2Eclamav=2Enet/daily=2Ecvd 2021-09-20 20:14:48=2E986050859 daily= =2Ecld database is up-to-date (version: 26298, sigs: 1934493, f-level: 90, = builder: raynman) 2021-09-20 20:14:48=2E986067873 Trying to retrieve C= VD header from https= ://database=2Eclamav=2Enet/main=2Ecvd 2021-09-20 20:14:49=2E2219725= 55 main=2Ecld database is up-to-date (version: 62, sigs: 6647427, f-level:= 90, builder: sigmgr) 2021-09-20 20:14:49=2E221988805 Trying to retrie= ve CVD header from d">https://database=2Eclamav=2Enet/bytecode=2Ecvd 2021-09-20 20:14:= 49=2E409622147 bytecode=2Ecld database is up-to-date (version: 333, sigs: = 92, f-level: 63, builder: awillia2)
On the console what= I get to see is that it couldn't download the daily DB, not the whole thin= g=2E=2E=2E About conflicting logging, perhaps I actually can extend those = configs to ALL services/oneshots, if managed by s6=2E=2E=2E For example, p= erhaps I should remove:
argin: 0pt 0pt 1ex 0=2E8ex; border-left: 1px solid #729fcf; padding-left: 1= ex;"> log_file "/var/log/mpd=2Elog
From /e= tc/mpd=2Econf, and the same for all other services/oneshots=2E=2E=2E Is th= at right? Also, what about internet connection discovery as a dependency t= o services, which depend on having internet access?
Thanks ! e>------H7WPCRKY0LA73OC82IODG894P8A4QH-- --===============2124390470935289025== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- artix-general mailing list artix-general-at-artixlinux.org https://lists.artixlinux.org/listinfo/artix-general --===============2124390470935289025== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Hangout mailing list Hangout-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/hangout --===============2124390470935289025==-- |
|