Devuan bug report logs - #721
Jabberd2 start failture on devuan

version graph

Package: jabberd2; Maintainer for jabberd2 is (unknown); Source for jabberd2 is src:jabberd2.

Reported by: Leonid <cppleo@ya.ru>

Date: Tue, 1 Nov 2022 07:32:02 UTC

Severity: normal

Tags: debian, moreinfo, patch

Found in version 2.7.0-2

Full log


Message #17 received at 721@bugs.devuan.org (full text, mbox, reply):

Received: (at 721) by bugs.devuan.org; 11 Jan 2023 19:40:36 +0000
Return-Path: <mark@hindley.org.uk>
Delivered-To: bugs@devuan.org
Received: from email.devuan.org [2001:41d0:2:d06e::5c4:2612]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Wed, 11 Jan 2023 19:40:36 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id EAVKOogQv2NYEQAAmSBk0A
	(envelope-from <mark@hindley.org.uk>)
	for <bugs@devuan.org>; Wed, 11 Jan 2023 19:39:52 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id E0518B85; Wed, 11 Jan 2023 19:39:52 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=0.4 required=5.0 tests=RDNS_DYNAMIC,SPF_PASS
	autolearn=no autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=193.36.131.86; helo=mx.hindley.org.uk; envelope-from=mark@hindley.org.uk; receiver=<UNKNOWN> 
Received: from mx.hindley.org.uk (193-36-131-86.cfwn.uk [193.36.131.86])
	by email.devuan.org (Postfix) with ESMTPS id 9EEAD2A8
	for <721@bugs.devuan.org>; Wed, 11 Jan 2023 19:39:49 +0000 (UTC)
Received: from apollo.hindleynet ([192.168.1.3] helo=hindley.org.uk)
	by mx.hindley.org.uk with smtp (Exim 4.84_2)
	(envelope-from <mark@hindley.org.uk>)
	id 1pFgwu-0004It-Fj; Wed, 11 Jan 2023 19:39:48 +0000
Received: (nullmailer pid 2349 invoked by uid 1000);
	Wed, 11 Jan 2023 19:39:48 -0000
Date: Wed, 11 Jan 2023 19:39:48 +0000
From: Mark Hindley <mark@hindley.org.uk>
To: 721@bugs.devuan.org
Cc: Leonid <cppleo@ya.ru>
Subject: Re: bug#721: Jabberd2 start failture on devuan
Message-ID: <Y78QhMM6sqDjpSvp@hindley.org.uk>
References: <1319341666799561@mail.yandex.ru>
 <d99ceb41-2fb0-8475-46d3-d126116c3b69@ya.ru>
 <d99ceb41-2fb0-8475-46d3-d126116c3b69@ya.ru>
 <Y2I3M90unJiLr9Qz@hindley.org.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Y2I3M90unJiLr9Qz@hindley.org.uk>
X-Debbugs-No-Ack: No Thanks
Control: tags -1 patch

On Wed, Nov 02, 2022 at 09:24:03AM +0000, Mark Hindley wrote: 
>  - What group is jabber trying to run as? It looks[2] as if it should be
>    jabber. Does the group exist? It should be created in the preinst[3]

I have had a quick look at this and the USER and GROUP environment variables
need to be exported so that they are passed to the scripts in
/etc/jabberd2/component.d.

USER is already an exported variable, so actually works either way, but GROUP
isn't so fails.

Try this.

diff -u /home/mark/Downloads/jabberd2.init /home/mark/Downloads/jabberd2.init.new
--- /home/mark/Downloads/jabberd2.init	2023-01-11 19:36:24.104716244 +0000
+++ /home/mark/Downloads/jabberd2.init.new	2023-01-11 19:37:12.319574513 +0000
@@ -14,8 +14,8 @@
 set -e
 
 # user and group
-USER=jabber
-GROUP=jabber
+export USER=jabber
+export GROUP=jabber
 test -f /etc/default/jabberd2 && . /etc/default/jabberd2
 
 COMPONENTDPATH=/etc/jabberd2/component.d

Diff finished.  Wed Jan 11 19:38:28 2023

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Sun Nov 24 04:42:46 2024;