From nobody Fri Nov 18 09:04:10 2022 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 4ND9nk5T3bz4hwJR for ; Fri, 18 Nov 2022 09:04:10 +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 4ND9nk4Ch0z4d5h for ; Fri, 18 Nov 2022 09:04:10 +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=1668762250; 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; bh=+TGA99xHG0k6YPYatVfPXR2CmAFt/Rmq7R2q0xkCrtM=; b=xrtfCWKdM1liiIwME0zZtABft6/IPBj/WAiXxFVlhYLWEEnk4aNQUG2xsFwNZTCjwNbPxg YiI3fu9QynLJN3lronXE2rkL0kRsDxDWM024oEzsm81CTzcrf4bG26e8Zh7ml6/snvsTHK u4H1FWY+OZEicq5zkmRFkEvo/5Pb926i1znEjmMNCOszM7uWtvIFSxYxshH72xMlESCe7U RvaS7osY1dFJVYBhnhZGpFudACTQP3/cE1vpPgZNhVa/CR6bK8kyvbUi0ZTqTBe+rxncgx O+EdeP1ibyKGLr2Icv0BgHe3FJ6nlJUE9YN95fyCa1i+VJziJVao8v06l22N3A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668762250; a=rsa-sha256; cv=none; b=VkHyqfdGbZ0axUEl9+4GPCtAUxz1pdIOhbinnAtNvWOsdivqjhvvFZw9gm9xTTlRdagHSt VQ6VHggy08mmAtP523+GLnHqaK2fNPwUdQe13tC8f99DA890rd0cQAwgKI/T+TMzc4mRU9 eFq6J8w7UNMRtLmQGU/lIRMdLS/66wAOSHxvqVXdXcBZAjn2kkgULfD8lzSREV+nyWBhTm yFvOh4TQ3l107U2j5qhwqOXzCx+N4ydk5RzC2my03KOwbblmxTyZvUQxVPxE/42ZH//vwY d5R1iEgXPNxrhbrA/m15cws6ytNcQlGmRT0EE0FGnclQcHlDHMmfBrnG7zan9g== 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 4ND9nk3J3Hz1FgH for ; Fri, 18 Nov 2022 09:04:10 +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 2AI94AXw057479 for ; Fri, 18 Nov 2022 09:04:10 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2AI94AEk057478 for ports-bugs@FreeBSD.org; Fri, 18 Nov 2022 09:04:10 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 267844] security/clamav: ERROR: Can't save PID to file /var/run/clamav/clamd.pid Date: Fri, 18 Nov 2022 09:04:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: ohartmann@walstatt.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: yasu@freebsd.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267844 Bug ID: 267844 Summary: security/clamav: ERROR: Can't save PID to file /var/run/clamav/clamd.pid Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: yasu@freebsd.org Reporter: ohartmann@walstatt.org Flags: maintainer-feedback?(yasu@freebsd.org) Assignee: yasu@freebsd.org Running security/clamav on recent CURRENT (14.0-CURRENT #108 main-n259290-f556a05c4926: Thu Nov 17 19:44:14 CET 2022 amd64). After the l= ast update, a couple of day ago from today (performing daily updates), clamd wo= n't startup again, see the error below. This issue is well known if /var/run is on tmpfs or any other memory backed filesystem vanishing after a reboot (this is a very common procedure in environments of elevated security): [...] #:/usr/src # service clamav-clamd restart clamav_clamd not running? (check /var/run/clamav/clamd.pid). Starting clamav_clamd. ERROR: Can't save PID to file /var/run/clamav/clamd.pid: No such file or directory /usr/local/etc/rc.d/clamav-clamd: WARNING: failed to start clamav_clamd In /etc/rc.conf the tag=20 var_run_enable=3D"YES" is set (all other var_run_ options are left untouched so far). The issue sh= own below has been discussed recently, I provided an alteration to the rc script checking for the existence of /var/run at startup of clamav. According to m= an rc.conf(5) setting this variable/tag to YES should provide saving the folder tree layout of /var/run and saving this to /var/db/mtree. Obvously, this is= n't correctly done, /var/db/mtree is empty on those hosts (var/db is on a non-volatile device). When I did the update of security/clamav, clamav-clamd was already running, var/run/clamav existed. Shutting down/rebooting the system then left var/run untouched after recreating, so I suppose this method is either flawed or it doesn't work properly with clamav-clamd. --=20 You are receiving this mail because: You are the assignee for the bug.=