From nobody Thu May 9 14:23:24 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 4VZvPn5KrTz5Jp3r for ; Thu, 09 May 2024 14:23:25 +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 4VZvPn2G2Hz44xv for ; Thu, 9 May 2024 14:23:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715264605; a=rsa-sha256; cv=none; b=tXS9B2wXBg4NHInFnm1diQovc5B3/yJTt1Ku4kqmgmfaQNOS7SW03InPL7SkKYOJ7UG5Oy fzDbFPklNfwdri19uXF2LIVr3BorLUuZusCOc+KiFgrtWrkIsS/g5EdmkQugFyTQsOw7H9 HAWp1IGvqFDMdNWU/er91m2s6lIC2lmoNKO/WHT3bDcqvCelWjrlUKV1gU7S21HAewdydt LqD4vAkxIarRMV90eF9I9siJoadh87Cgg7hNloCy66sfIcujKyWkv5eN5MFCgpT3dU4NFl AXV5qzImt8P2HMFplmHuW66vdWCgMINgygv5hW9ty/oM3/7CFcNbVIVL50Vg+Q== 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=1715264605; 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=Rrd3mG4/GidG4m7jmPxphkjemexsgrxJ+gIefMYqVqs=; b=qykRqFrLSt6enHl56ouWpPgIT/E61K4BC/YhUZ8KV9lAvuh/6KQbPOJW6JsuUakVmYgXeI H3vhi2xXeKb4bHENv1eiB5dFgCnwwBV8ueGBz5auXwSWEVX63VRk5hCY/lTGIAUicY+NXl x/vR2d/knRTYC4FvR2OlCLxFpTDqGtR9BOb417V3f9eiwuXSSwQ8P+DQQnTv1bbodugpR3 zozk3zZhd1Xo2lEJTWcCZCYS+2Oe8ZJu+gMp56N6Xqs2fz0fMAXhSmspTTpCY1nRhfHQ5i cu+eg+B9iARESmi21S8epHTeGP4jL6veLh2R7tr7wcJg/e7QKUxbxHetffV9jg== 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 4VZvPn1r8Fz1Bth for ; Thu, 9 May 2024 14:23:25 +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 449ENPsj069705 for ; Thu, 9 May 2024 14:23:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 449ENPji069704 for ports-bugs@FreeBSD.org; Thu, 9 May 2024 14:23:25 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 278855] www/forgejo 1.21.10.0_1 does not start Date: Thu, 09 May 2024 14:23:24 +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: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: stb@lassitu.de X-Bugzilla-Status: New 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: 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=3D278855 --- Comment #1 from Stefan Bethke --- You are correct. With forgejo-1.21.10.0_1, a service forgejo start does not report anything, and no process is running. If I create /usr/local/etc/syslog.d/forgejo.conf with this contents: !forgejo *.* /var/log/forgejo.log and create the file and kick syslogd, I get this at the next attempt to sta= rt forgejo: May 9 16:14:02 fbsd14 forgejo[1382]: 2024/05/09 16:14:02 cmd/web.go:242:runWeb() [I] Starting Forgejo on PID: 1383 May 9 16:14:02 fbsd14 forgejo[1382]: 2024/05/09 16:14:02 ...es/setting/oauth2.go:147:loadOAuth2From() [F] save oauth2.JWT_SECRET fai= led: failed to save "/usr/local/etc/forgejo/conf/app.ini": open /usr/local/etc/forgejo/conf/app.ini: permission denied So the issue is that the config file is missing some information that forge= jo is trying to add itself, but since the config file is not writeable by the = git user by default, this fails. This is due to changes that were made to the default app.ini that now conta= in "CHANGE_ME" instead of valid secrets, leading to exactly this startup probl= em. Additionally, gitea/forgejo have historically lacked a method to check the config file for verifying the config. I will try and add forgejo doctor to = the start script to make it easier to diagnose when the config is invalid. --=20 You are receiving this mail because: You are the assignee for the bug.=