Re: www/opensearch-dashboards not counted as rcctl start-ed since OpenBSD 7.4
On 08.11.23 09:24, Omar Polo wrote: On 2023/11/07 21:49:56 +0100, Alexander Klimov wrote: Hello dear maintainers, Not very dramatic, but also not very convenient: pkg_add opensearch opensearch-dashboards echo 'plugins.security.disabled: true' >>/etc/opensearch/opensearch.yml rcctl start opensearch sed -i s/https/http/g /etc/opensearch-dashboards/opensearch_dashboards.yml sed -i 's/^opensearch_security/#opensearch_security/' /etc/opensearch-dashboards/opensearch_dashboards.yml rcctl start opensearch_dashboards It's up and running and I can even open it in the browser. But! rcctl stop opensearch_dashboards says nothing as if it's stopped. rcctl -d start opensearch_dashboards tries to start it (as if it's stopped), but complains about the already used :5601. Ask me anything. Seems that with a previous update the pexp doesn't match the opensearch-dashboards process anymore, so that rcctl thinks the daemon failed. Are you running -stable by chance? I'm wondering whether this change Yes, I apply all package updates ASAP btw. happened with the 2.11 update or earlier. Index: Makefile === RCS file: /home/cvs/ports/www/opensearch-dashboards/Makefile,v retrieving revision 1.15 diff -u -p -r1.15 Makefile --- Makefile21 Oct 2023 11:30:54 - 1.15 +++ Makefile8 Nov 2023 08:06:57 - @@ -3,6 +3,7 @@ COMMENT = visualization tool for data in V = 2.11.0 DISTNAME =opensearch-dashboards-$V-linux-x64 PKGNAME = opensearch-dashboards-$V +REVISION = 0 CATEGORIES = www Index: pkg/opensearch_dashboards.rc === RCS file: /home/cvs/ports/www/opensearch-dashboards/pkg/opensearch_dashboards.rc,v retrieving revision 1.2 diff -u -p -r1.2 opensearch_dashboards.rc --- pkg/opensearch_dashboards.rc3 Mar 2023 18:36:04 - 1.2 +++ pkg/opensearch_dashboards.rc8 Nov 2023 08:07:15 - Too bad packages may not change /etc and all the "service files" are located there! @@ -6,7 +6,7 @@ daemon_execdir="${TRUEPREFIX}/opensearch . /etc/rc.d/rc.subr -pexp="${TRUEPREFIX}/bin/node ${TRUEPREFIX}/opensearch-dashboards/bin/../src/cli/dist${daemon_flags:+ ${daemon_flags}}" +pexp="${TRUEPREFIX}/bin/node ${TRUEPREFIX}/opensearch-dashboards/src/cli/dist${daemon_flags:+ ${daemon_flags}}" Indeed it helped changing mine to /usr/local/bin/node /usr/local/opensearch-dashboards/src/cli/dist as per ps aux. Thanks for the hint! rc_bg=YES rc_reload=NO
Re: www/opensearch-dashboards not counted as rcctl start-ed since OpenBSD 7.4
On 2023/11/08 20:12:53 +0100, Alexander Klimov wrote: > > [...] > > Are you running -stable by chance? I'm wondering whether this change > Yes, I apply all package updates ASAP btw. I've replicated the issue on -STABLE too. So it was introduced at least with the 2.10 update, if not earlier. Usually I don't stop/restart opensearch-dashboards, but from now on I'll pay extra attention when updating. I've backported the fix to -stable, so in the next days opensearch-dashboards-2.10.0p0 should be available with the fixed rc script. Thanks! > [...] > > --- pkg/opensearch_dashboards.rc3 Mar 2023 18:36:04 - 1.2 > > +++ pkg/opensearch_dashboards.rc8 Nov 2023 08:07:15 - > Too bad packages may not change /etc and all the "service files" are located > there! I'm not sure I'm understanding. pkg has 'magic' to install these files in /etc/rc.d, so this is actually fixing /etc/rc.d/opensearch_dashboards.rc (see the @rcscript entry in pkg/PLIST and pkg_create(1) if you're curious to see what happens behind the scenes.) > > @@ -6,7 +6,7 @@ daemon_execdir="${TRUEPREFIX}/opensearch > > > > . /etc/rc.d/rc.subr > > > > -pexp="${TRUEPREFIX}/bin/node > > ${TRUEPREFIX}/opensearch-dashboards/bin/../src/cli/dist${daemon_flags:+ > > ${daemon_flags}}" > > +pexp="${TRUEPREFIX}/bin/node > > ${TRUEPREFIX}/opensearch-dashboards/src/cli/dist${daemon_flags:+ > > ${daemon_flags}}" > Indeed it helped changing mine to > /usr/local/bin/node /usr/local/opensearch-dashboards/src/cli/dist > as per ps aux. > > Thanks for the hint! Yes, in the meantime you can just edit the file by hand. I'm not sure if pkg_check or pkg_add -u will complain later though. > > rc_bg=YES > > rc_reload=NO > > > >
Re: www/opensearch-dashboards not counted as rcctl start-ed since OpenBSD 7.4
On 2023/11/07 21:49:56 +0100, Alexander Klimov wrote: > Hello dear maintainers, > > Not very dramatic, but also not very convenient: > > pkg_add opensearch opensearch-dashboards > echo 'plugins.security.disabled: true' >>/etc/opensearch/opensearch.yml > rcctl start opensearch > sed -i s/https/http/g /etc/opensearch-dashboards/opensearch_dashboards.yml > sed -i 's/^opensearch_security/#opensearch_security/' > /etc/opensearch-dashboards/opensearch_dashboards.yml > rcctl start opensearch_dashboards > > It's up and running and I can even open it in the browser. But! > > rcctl stop opensearch_dashboards says nothing as if it's stopped. > > rcctl -d start opensearch_dashboards tries to start it (as if it's stopped), > but complains about the already used :5601. > > Ask me anything. Seems that with a previous update the pexp doesn't match the opensearch-dashboards process anymore, so that rcctl thinks the daemon failed. Are you running -stable by chance? I'm wondering whether this change happened with the 2.11 update or earlier. Index: Makefile === RCS file: /home/cvs/ports/www/opensearch-dashboards/Makefile,v retrieving revision 1.15 diff -u -p -r1.15 Makefile --- Makefile21 Oct 2023 11:30:54 - 1.15 +++ Makefile8 Nov 2023 08:06:57 - @@ -3,6 +3,7 @@ COMMENT = visualization tool for data in V =2.11.0 DISTNAME = opensearch-dashboards-$V-linux-x64 PKGNAME = opensearch-dashboards-$V +REVISION = 0 CATEGORIES = www Index: pkg/opensearch_dashboards.rc === RCS file: /home/cvs/ports/www/opensearch-dashboards/pkg/opensearch_dashboards.rc,v retrieving revision 1.2 diff -u -p -r1.2 opensearch_dashboards.rc --- pkg/opensearch_dashboards.rc3 Mar 2023 18:36:04 - 1.2 +++ pkg/opensearch_dashboards.rc8 Nov 2023 08:07:15 - @@ -6,7 +6,7 @@ daemon_execdir="${TRUEPREFIX}/opensearch . /etc/rc.d/rc.subr -pexp="${TRUEPREFIX}/bin/node ${TRUEPREFIX}/opensearch-dashboards/bin/../src/cli/dist${daemon_flags:+ ${daemon_flags}}" +pexp="${TRUEPREFIX}/bin/node ${TRUEPREFIX}/opensearch-dashboards/src/cli/dist${daemon_flags:+ ${daemon_flags}}" rc_bg=YES rc_reload=NO
www/opensearch-dashboards not counted as rcctl start-ed since OpenBSD 7.4
Hello dear maintainers, Not very dramatic, but also not very convenient: pkg_add opensearch opensearch-dashboards echo 'plugins.security.disabled: true' >>/etc/opensearch/opensearch.yml rcctl start opensearch sed -i s/https/http/g /etc/opensearch-dashboards/opensearch_dashboards.yml sed -i 's/^opensearch_security/#opensearch_security/' /etc/opensearch-dashboards/opensearch_dashboards.yml rcctl start opensearch_dashboards It's up and running and I can even open it in the browser. But! rcctl stop opensearch_dashboards says nothing as if it's stopped. rcctl -d start opensearch_dashboards tries to start it (as if it's stopped), but complains about the already used :5601. Ask me anything. Best, A/K