From nobody Fri Dec 23 13:20:04 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 4Ndnps0KmDz1J3yv for ; Fri, 23 Dec 2022 13:20:05 +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 4Ndnpr5fBtz3MK9 for ; Fri, 23 Dec 2022 13:20:04 +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=1671801604; 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=2f3DV8v0VSTqiPCiB6qakj999MaFYqmsPCYfWLv75MU=; b=MOo6Q29T90QGemirWagkfd5jDTtZBeEwb2hdn4JFC2wr+wgh8loaS4dq70PzULpMpT8iQb EKQc8cNxqpCv9Q/A8hCI09Am2oxMo/3C1/dpYIMnSx4klL7N5ONF1Ydh02bBeSEaaerXI9 s5PSCFnvi08P5vi/P8973UYwa1x5iuCEKPP9DKtv/GQyP6sJa6Eg9cxQKz+RUVm5yL8FUs UnRAbggFmPjLemD0dNtseSwHsXKJeMEhwtHCox6+Ff41wG5Mk41oez0OaW3JiqTntk0uho 0qbZmnz0JIUlzssVODztAyWjHzXIV6lvCLrx52cSZNVpjuYUHvn/SQzMnrzuyg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671801604; a=rsa-sha256; cv=none; b=bxQKjYGdESUQqzHrNXYeWUtE7sy9i1dzEHYV1tRrAznO+wEkYa8ibC/gMY7kN/dxvQGZDw OKF6BRdXu8UqYluQ4FPr8H17X47IoJkEUST4/YfdzxaGptNC/MPVZf2dQ7XTnebepE0ksU C3kGAgKUCW0NC9GlkahVcyAOU3WN1esgV4DvHX3+fmrL9UMvfgaHJRHfRGxx/N9CNZhzx9 J2hgHJEaNj48UgvpTYvlHnJ+OZCc10ONBih7KjnVcVBEopvLTanmLKTur3OfJ6afw1HYZl D4HEnWQj+N9UcsL3kBS3T4CDRGeg3OIwrJc7NP2LFR46aCffjal1TNOhoG1DRQ== 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 4Ndnpr4RcbzbJv for ; Fri, 23 Dec 2022 13:20:04 +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 2BNDK4ew074737 for ; Fri, 23 Dec 2022 13:20:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2BNDK45w074736 for ports-bugs@FreeBSD.org; Fri, 23 Dec 2022 13:20:04 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 268526] databases/neo4j: port partially broken and does not separate installation from runtime data Date: Fri, 23 Dec 2022 13:20:04 +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 Some People X-Bugzilla-Who: michael.osipov@siemens.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wen@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=3D268526 Bug ID: 268526 Summary: databases/neo4j: port partially broken and does not separate installation from runtime data Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: wen@FreeBSD.org Reporter: michael.osipov@siemens.com Assignee: wen@FreeBSD.org Flags: maintainer-feedback?(wen@FreeBSD.org) I don't know where to start, there are several issues where I have a proble= m to use this port, likely I need to break up in several tickets later. (note: I have gone through this with devel/nexus2-oss as a maintainer). * It does not start, JAVA_HOME is not set in neo4j.sh since JAVA_HOME is on= ly set when the java(1) wrapper is called which isn't done in neo4j.sh: =3D=3D=3D # service neo4j start Error: JAVA_HOME is not defined correctly. We cannot execute =3D=3D=3D This I had to work around in rc.conf first (neo4j_env) * The service runs as root which is a no-go. You must reverse a uid/gid in UIDs/GIDs files. * The neo4j.conf file is never used due to misconfiguration: * Lack of separation between read-only installation and runtime data: =3D=3D=3D # service neo4j start Directories in use: home: /usr/local/neo4j config: /usr/local/neo4j/conf logs: /usr/local/neo4j/logs plugins: /usr/local/neo4j/plugins import: /usr/local/neo4j data: /usr/local/neo4j/data certificates: /usr/local/neo4j/certificates licenses: /usr/local/neo4j/licenses run: /usr/local/neo4j/run =3D=3D=3D because of =3D=3D=3D # procstat penv 43356 | grep ENV envp[13]: NEO4J_CONF_ENV=3DNEO4J_CONF=3D/usr/local/etc =3D=3D=3D does not work and does not exist: https://github.com/neo4j/neo4j/search?q=3DNEO4J_CONF_ENV This I had to work around in rc.conf first (neo4j_env). Then =3D=3D=3D Directories in use: home: /usr/local/neo4j config: /usr/local/etc logs: /var/log/neo4j plugins: /usr/local/neo4j/plugins import: /usr/local/neo4j/import data: /var/db/neo4j certificates: /usr/local/neo4j/certificates licenses: /usr/local/neo4j/licenses run: /var/run =3D=3D=3D Still, certificates doe not correspond to pkg-plist, likely licenes should = be in ETCDIR as well. * post-patch either too many vars which aren't even defined or patch-* don't add them. See missing JAVA_HOME. This is actually rooted in a bad script of= the appassembler-maven-plugin which I might address upstream somewhere in the future. Maybe even more things I haven't taken care of/noticed ATM. I used this for reference for dirs/files and ro vs rw: https://neo4j.com/docs/operations-manual/4.4/configuration/file-locations/ I am not the target neo4j user, but just the sysadmin and software develope= r. Ideally, this would would install configure /usr/local/share/java/neo4j (owned by root) =3D=3D=3D=3D=3D (owned by neo4j:neo4j) /var/db/neo4j/data /var/run/neo4j (can't be run/ because service user cannot write to run/) /var/log/neo4j /var/db/neo4j/metrics /var/db/neo4j/import =3D=3D=3D=3D=3D (owned by root) /usr/local/etc/neo4j/ /usr/local/etc/neo4j/neo4j.conf /usr/local/etc/neo4j/licenses /usr/local/etc/neo4j/certificates =3D=3D=3D=3D=3D At least this is basically how I have taken devel/nexus2-oss apart and upgrading is a snap. I'd be happy to engage into a discussion to make this right according to hier(7). --=20 You are receiving this mail because: You are the assignee for the bug.=