From nobody Thu Jun 8 22:36:40 2023 X-Original-To: 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 4QcfG16Bd2z4bmgQ for ; Thu, 8 Jun 2023 22:36:41 +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 4QcfG150Sfz3Jn5 for ; Thu, 8 Jun 2023 22:36:41 +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=1686263801; 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=Q6KCO+AAStlcs/mUULd4oP7Nbhk9r2kHEAIRHBMblOg=; b=SQayfmWCV8MqF+spUEKUSMjqhroCyS91fS2JtRm2DIt1U+pas5fvRn5EKXGVqpqe4Ge93C gG+vwjLIkcVZGhCBrgczHnl+OsTMcX7Zkq83M90De9Nuw809CedIIikkJm91wozCxop+O2 49Hy7VQ9qG64nIHhFx2DKc2V4UJlbM3yj9Vc9iBhs78YmbazCdjmZZbgGwx6DO9Ny6DtCW udUNOMeHmXfPLcKnivdE7hFaFC5tQIK5qIOvXWg0tirg5CDLb3xiuWo/m1Q5rXZmScCQTA DowZgqYkg4iTebZru5gBbHR78pQqnZEJ7dgTNY0hbO7DduqqsEhb7F9olhOGCA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686263801; a=rsa-sha256; cv=none; b=RPR9IEVHmQ3xMNsdJ1o5nAcMbV5gtTRm5lB3vQbfms6MZk6PbNLgSG4whvZy0fEA6yugsj Th5a7pMaRpfg5dosejBDhsF5zPPEyfz5GnZA9YKf4xMngdXGhkkZumdo60/8KqReZSKnsJ dvFCqVYEDTRXixZKTbTD0cdWXf0N7tJc8TDrF11nEY8bKN86hGlSsG4ulC4167qK44Sz/E IO/Lw63uH8QGDZcO4H9C6Ln82T/13Ne7YGhbqPRB4VDrZNdiohg9dq8L9ww4ecsN7DcNiK TeEOJyO+Ap8swrXR+hhbBDc+lQXmKK0al6uKPsr3c5hfxG4TBwBKZacZ5L1gJA== 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 4QcfG13zzMz1Bdt for ; Thu, 8 Jun 2023 22:36:41 +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 358MafK4081812 for ; Thu, 8 Jun 2023 22:36:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 358Maf5V081811 for bugs@FreeBSD.org; Thu, 8 Jun 2023 22:36:41 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: bugs@FreeBSD.org Subject: [Bug 271069] syslogd service inside client jail requires restart before server jail receives logs Date: Thu, 08 Jun 2023 22:36:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: me@svmhdvn.name X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271069 --- Comment #4 from Siva Mahadevan --- Further information, I think this bug has to do with the order of operations for: * setting an IPv6 address for the jail * starting the services enabled in /etc/rc.conf I am testing a mail server jail and noticed this in the logs: =3D=3D=3D=3D=3D /var/log/fullsyslog.log =3D=3D=3D=3D=3D <19>1 2023-06-08T22:25:08.819854+00:00 mail.my.domain dovecot 10235 - - mas= ter: Error: bind(::, 993) failed: Can't assign requested address <19>1 2023-06-08T22:25:08.820010+00:00 mail.my.domain dovecot 10235 - - mas= ter: Error: service(imap-login): listen(::, 993) failed: Can't assign requested address <18>1 2023-06-08T22:25:08.821619+00:00 mail.my.domain dovecot 10235 - - mas= ter: Fatal: Failed to start listeners <13>1 2023-06-08T22:25:08.827442+00:00 mail.my.domain siva 10239 - - /etc/r= c: WARNING: failed to start dovecot <78>1 2023-06-08T22:25:08.836812+00:00 mail.my.domain /usr/sbin/cron 10243 = - - (CRON) WARNING (madvise() failed) <35>1 2023-06-08T22:25:08.911037+00:00 mail.my.domain sshd 10260 - - error: Bind to port 22 on :: failed: Can't assign requested address. <34>1 2023-06-08T22:25:08.911360+00:00 mail.my.domain sshd 10260 - - fatal: Cannot bind any address. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D To me, it looks like the services are started *before* any IP address is available in the jail to bind. I have only a single IPv6 address set in /etc/jail.conf for each jail. If I log into the jail with jexec after the jail is started, I notice the I= Pv6 address is available in `ifconfig`. Then, if I manually restart all enabled services, everything works fine. --=20 You are receiving this mail because: You are the assignee for the bug.=