From nobody Thu Apr 18 07:57:23 2024 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 4VKqr42Z94z5J52j for ; Thu, 18 Apr 2024 07:57:24 +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 4VKqr40nCHz4b21 for ; Thu, 18 Apr 2024 07:57:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713427044; a=rsa-sha256; cv=none; b=PQt4ad6nK2DTFPbzO3FyroV+07oPZV5Kheij0g6VTz6O7zi3+XBF95lldubPxxVFpM8X4t fpWBaSV6DG0m6DbdfONZ925+ubQPFFyJlE3GwWHcgCEn3UtK4xDFkVrq9L2nN4MlLa68ky SlpcWJs6J6tfzUhiVYVZ1o6wdQDJSWqEeMWzjCBAHyhBl2tXiWWzEvBnpgGFPHLpi1e2ji rwzVH9fwFiv7gDZXbyEoMtuiTwa5fuy14E+KzXFnUOjVbZh3KiCLbPmHrFG3tO1whfCwDC yOj46cBLQ210RLjYFX09e8/U2qJlDIP3af8Qk3q8hd3YsQsEs3v3CX8h19eVkw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713427044; 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=wdnRIeRGLNOb2hw1LhBiZj2sK93k1FeDO36bvEO04Vk=; b=bqTzZEBty5Xa2qk8FhEStK59cKs8uRH68+V8gIb2PodH1Ae2Tw3hmfo4lEVufpfWpaZUWt IKL2rhXsopDrSoiudvQR3aPbwWhT4gybIngRyK/0XTazcm/kYgKLX1FxEjHU3TBjgZCIMG zJAfjKtwuplrHf+bFst8qAKK1HdFElC1DycOtv9Gm1KE6d/7L9FBzXxfzXODEEI1Wbtjsj dJxxLP1bE3vr8hRwg9eJFjsKamslZMKnTd48SiQ3Waumwsmhs9TWSf/ME96UXqG3BIXH4L D8IsMOMHmjYKFD3MAEVJ4rgkBtnGaQQ+HRVPt56UKfBiHxC+Z5jwT5/3V5AKpA== 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 4VKqr40GPXz120m for ; Thu, 18 Apr 2024 07:57:24 +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 43I7vNf0016763 for ; Thu, 18 Apr 2024 07:57:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 43I7vNoc016760 for ports-bugs@FreeBSD.org; Thu, 18 Apr 2024 07:57:23 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 278426] deskutils/py-paperless-ngx: RC scripts don't respect /etc/rc.conf configuration Date: Thu, 18 Apr 2024 07:57:23 +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 Only Me X-Bugzilla-Who: freebsd.bugzilla@mail.tinsuke.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: grembo@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: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278426 Bug ID: 278426 Summary: deskutils/py-paperless-ngx: RC scripts don't respect /etc/rc.conf configuration Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: grembo@FreeBSD.org Reporter: freebsd.bugzilla@mail.tinsuke.com Assignee: grembo@FreeBSD.org Flags: maintainer-feedback?(grembo@FreeBSD.org) TL;DR: The RC scripts (paperless-[beat|consumer|flower|migrate|webui|worker= ]) all have the 'load_rc_config' call after the rc.conf variables are accessed= . As a result, they always use the default values. Long version: I wanted to use gunicorn directly to access the service on my local network, instead of using nginx. So I made the static dir change that the man page suggests for that and sta= rted the 'paperless-webui' service. It wasn't accessible from other machines. Inspecting '/var/log/daemon.log' showed that the webui was: > Listening at: http://127.0.0.1:8000 I checked the 'paperless-webui' RC script and found it used a 'paperless_webui_listen_address' variable with a default value of '127.0.0.= 1', so I set that to 'paperless_webui_listen_address=3D"0.0.0.0"' on my /etc/rc= .conf file and restarted the webui service. It still didn't work, and I could see that it was still listening on '127.0.0.1'. By checking the RC scripting docs, I saw: https://docs.freebsd.org/en/articles/rc-scripting/#rcng-confdummy > =E2=9E=8B Now load_rc_config is invoked earlier in the script, before any= rc.conf(5) variables are accessed. I checked the RC script and verified that this was not the case, for any of them. Moving 'load_rc_config' to before the variables are accessed fixed it= for me, now my setting to listen on '0.0.0.0' is being respected. --=20 You are receiving this mail because: You are the assignee for the bug.=