X-Loop: [email protected] Subject: bug#634: backuppc: Backuppc fail to start on a clean installation Reply-To: Fabio Muzzi <[email protected]>, [email protected] Resent-From: Fabio Muzzi <[email protected]> Resent-To: [email protected] Resent-CC: [email protected], [email protected] X-Loop: [email protected] Resent-Date: Sun, 21 Nov 2021 16:58:02 +0000 Resent-Message-ID: <[email protected]> Resent-Sender: [email protected] X-Devuan-PR-Message: report 634 X-Devuan-PR-Package: backuppc X-Devuan-PR-Keywords: patch Received: via spool by [email protected] id=B.163751383212685 (code B); Sun, 21 Nov 2021 16:58:02 +0000 Received: (at submit) by bugs.devuan.org; 21 Nov 2021 16:57:12 +0000 Delivered-To: [email protected] Received: from tupac3.dyne.org [195.169.149.119] by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4) for <debbugs@localhost> (single-drop); Sun, 21 Nov 2021 16:57:12 +0000 (UTC) Received: from backupsrv.geldue.locale (host238-61-234-109.static.ehiweb.it [109.234.61.238]) by vm6.ganeti.dyne.org (Postfix) with ESMTP id 60BCFF6091B for <[email protected]>; Sun, 21 Nov 2021 17:57:07 +0100 (CET) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Fabio Muzzi <[email protected]> To: Devuan Bug Tracking System <[email protected]> Message-ID: <163751382572.6203.17544482884423506574.reportbug@backupsrv.geldue.locale> Date: Sun, 21 Nov 2021 17:57:05 +0100 X-Spam-Status: No, score=1.0 required=5.0 tests=SPF_SOFTFAIL autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org Package: backuppc Version: 4.4.0-3 Severity: normal Tags: patch X-Debbugs-Cc: [email protected] Dear Maintainer, Backuppc, installed from the package on a new server (so no upgrade/update from previous versions) fails with this message: # apt install backuppc [... omitted output...] Creating config file /etc/backuppc/config.pl with new version Starting backuppc...BackupPC cannot be started because important parameters are missing from config.pl. If you just upgraded BackupPC, please update /etc/backuppc/config.pl. invoke-rc.d: initscript backuppc, action "start" failed. dpkg: error processing package backuppc (--configure): installed backuppc package post-installation script subprocess returned error exit status 1 This happens because the init script for backuppc contains this check: # Check for incompatible old config files check_old_config() { BAD=0 CONF=/etc/backuppc/config.pl grep -q IncrLevel $CONF || BAD=1 if [ "$BAD" = "1" ]; then echo "BackupPC cannot be started because important parameters are missing from config.pl." echo "If you just upgraded BackupPC, please update /etc/backuppc/config.pl." exit 1 fi } But it seems that this check is not needed anymore in Backuppc 4, it was something related to V2 -> V3 upgrade. This check is called when starting/restarting backuppc. By commenting out the call to check_old_config under start and restart, backuppc works. This will leave you with an unconfigured package in apt, so after modifying the init script you'll also have to run: rmdir /var/lib/backuppc/pc/localhost apt install Kind regards Fabio Muzzi -- System Information: Distributor ID: Devuan Description: Devuan GNU/Linux 4 (chimaera) Release: 4 Codename: chimaera Architecture: x86_64 Kernel: Linux 5.10.0-9-amd64 (SMP w/2 CPU threads) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) LSM: AppArmor: enabled Versions of packages backuppc depends on: ii adduser 3.118 ii apache2 [httpd] 2.4.51-1~deb11u1 ii apache2-utils 2.4.51-1~deb11u1 ii backuppc-rsync 3.1.3.0-3 ii bzip2 1.0.8-4 ii debconf [debconf-2.0] 1.5.77 ii exim4-daemon-light [mail-transport-agent] 4.94.2-7 ii init-system-helpers 1.60+devuan1 ii iputils-ping 3:20210202-1 ii libarchive-zip-perl 1.68-1 ii libbackuppc-xs-perl 0.62-1+b1 ii libc6 2.31-13+deb11u2 ii libcgi-pm-perl 4.51-1 pn libdigest-md5-perl <none> ii libfile-listing-perl 6.14-1 ii libtime-parsedate-perl 2015.103-3 ii lsb-base 11.1.0 ii perl [libio-compress-perl] 5.32.1-4+deb11u2 ii ucf 3.0043 Versions of packages backuppc recommends: ii libio-dirent-perl 0.05-1+b9 ii openssh-client [ssh-client] 1:8.4p1-5 ii rrdtool 1.7.2-3+b7 ii samba-common-bin 2:4.13.13+dfsg-1~deb11u2 ii smbclient 2:4.13.13+dfsg-1~deb11u2 Versions of packages backuppc suggests: pn certbot | acme-tiny | acmetool | dehydrated | lacme | lecm <none> pn libscgi-perl <none> pn par2 <none> ii rsync 3.2.3-4+deb11u1 pn w3m | www-browser <none> -- Configuration Files: /etc/backuppc/apache.conf changed: Alias /backuppc /usr/share/backuppc/cgi-bin/ <Directory /usr/share/backuppc/cgi-bin/> AllowOverride None # Uncomment the line below to ensure that nobody can sniff important # info from network traffic during editing of the BackupPC config or # when browsing/restoring backups. # Requires that you have your webserver set up for SSL (https) access. #SSLRequireSSL Options ExecCGI FollowSymlinks AddHandler cgi-script .cgi DirectoryIndex index.cgi AuthUserFile /etc/backuppc/htpasswd AuthType basic AuthName "BackupPC admin" <RequireAll> # Comment out this line once you have setup HTTPS and uncommented SSLRequireSSL # This line ensures that only authenticated users may access your backups Require valid-user </RequireAll> </Directory> /etc/init.d/backuppc changed: set -e BINDIR=/usr/share/backuppc/bin DATADIR=/var/lib/backuppc RUNDIR=/run/backuppc USER=backuppc GROUP=backuppc NICE=0 IONICE=best-effort test -f /etc/default/backuppc && . /etc/default/backuppc NAME=backuppc DAEMON=BackupPC test -x $BINDIR/$DAEMON || exit 0 . /lib/lsb/init-functions [ -r /etc/default/rcS ] && . /etc/default/rcS if [ ! -d $RUNDIR ]; then mkdir -p $RUNDIR chown ${USER}:${GROUP} $RUNDIR chmod 0755 $RUNDIR fi check_old_config() { BAD=0 CONF=/etc/backuppc/config.pl grep -q IncrLevel $CONF || BAD=1 if [ "$BAD" = "1" ]; then echo "BackupPC cannot be started because important parameters are missing from config.pl." echo "If you just upgraded BackupPC, please update /etc/backuppc/config.pl." exit 1 fi } case "$1" in start) log_begin_msg "Starting $NAME..." start-stop-daemon --start --pidfile $RUNDIR/BackupPC.pid \ --nicelevel $NICE --iosched $IONICE -c $USER --exec $BINDIR/$DAEMON -- -d log_end_msg $? ;; stop) log_begin_msg "Stopping $NAME..." start-stop-daemon --stop --pidfile $RUNDIR/BackupPC.pid -u $USER \ --oknodo --retry 30 log_end_msg $? ;; restart) log_begin_msg "Restarting $NAME..." start-stop-daemon --stop --pidfile $RUNDIR/BackupPC.pid -u $USER \ --oknodo --retry 30 check_old_config start-stop-daemon --start --pidfile $RUNDIR/BackupPC.pid \ --nicelevel $NICE --iosched $IONICE -c $USER --exec $BINDIR/$DAEMON -- -d log_end_msg $? ;; reload|force-reload) log_begin_msg "Reloading $NAME configuration files..." start-stop-daemon --stop --pidfile $RUNDIR/BackupPC.pid -u $USER \ --signal 1 log_end_msg $? ;; status) status_of_proc "$BINDIR/$DAEMON" "$NAME" && exit 0 || exit $? ;; *) log_success_msg "Usage: /etc/init.d/$NAME {start|stop|restart|reload|status}" exit 1 ;; esac exit 0 -- debconf information: backuppc/tmppass: (password omitted) * backuppc/configuration-note: * backuppc/reconfigure-webserver: apache2 backuppc/restart-webserver: true
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 X-Loop: [email protected] From: "Devuan bug Tracking System" <[email protected]> To: Fabio Muzzi <[email protected]> Subject: bug#634: Acknowledgement (backuppc: Backuppc fail to start on a clean installation) Message-ID: <[email protected]> References: <163751382572.6203.17544482884423506574.reportbug@backupsrv.geldue.locale> X-Devuan-PR-Message: ack 634 X-Devuan-PR-Package: backuppc X-Devuan-PR-Keywords: patch Reply-To: [email protected] Date: Sun, 21 Nov 2021 16:58:04 +0000 Thank you for filing a new bug report with Devuan. You can follow progress on this bug here: 634: https://bugs.devuan.org/cgi/= bugreport.cgi?bug=3D634. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. As you requested using X-Debbugs-CC, your message was also forwarded to [email protected] (after having been given a bug report number, if it did not have one). Your message has been sent to the package maintainer(s): [email protected] If you wish to submit further information on this problem, please send it to [email protected]. Please do not send mail to [email protected] unless you wish to report a problem with the Bug-tracking system. --=20 634: https://bugs.devuan.org/cgi/bugreport.cgi?bug=3D634 Devuan Bug Tracking System Contact [email protected] with problems
X-Loop: [email protected] Subject: bug#634: backuppc: Backuppc fail to start on a clean installation Reply-To: Mark Hindley <[email protected]>, [email protected] Resent-From: Mark Hindley <[email protected]> Resent-To: [email protected] Resent-CC: [email protected] X-Loop: [email protected] Resent-Date: Mon, 22 Nov 2021 07:58:02 +0000 Resent-Message-ID: <[email protected]> Resent-Sender: [email protected] X-Devuan-PR-Message: followup 634 X-Devuan-PR-Package: backuppc X-Devuan-PR-Keywords: patch References: <163751382572.6203.17544482884423506574.reportbug@backupsrv.geldue.locale> <163751382572.6203.17544482884423506574.reportbug@backupsrv.geldue.locale> Received: via spool by [email protected] id=B634.163756783225741 (code B ref 634); Mon, 22 Nov 2021 07:58:02 +0000 Received: (at 634) by bugs.devuan.org; 22 Nov 2021 07:57:12 +0000 Delivered-To: [email protected] Received: from tupac3.dyne.org [195.169.149.119] by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4) for <debbugs@localhost> (single-drop); Mon, 22 Nov 2021 07:57:12 +0000 (UTC) Received: from mx.hindley.org.uk (193-36-131-86.cfwn.uk [193.36.131.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by vm6.ganeti.dyne.org (Postfix) with ESMTPS id EDB78F609E9 for <[email protected]>; Mon, 22 Nov 2021 08:56:31 +0100 (CET) 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 <[email protected]>) id 1mp4Bh-00030q-6p; Mon, 22 Nov 2021 07:56:29 +0000 Received: (nullmailer pid 1831 invoked by uid 1000); Mon, 22 Nov 2021 07:56:28 -0000 Date: Mon, 22 Nov 2021 07:56:27 +0000 From: Mark Hindley <[email protected]> To: Fabio Muzzi <[email protected]>, [email protected] Message-ID: <[email protected]> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <163751382572.6203.17544482884423506574.reportbug@backupsrv.geldue.locale> X-Spam-Status: No, score=0.4 required=5.0 tests=RDNS_DYNAMIC,SPF_PASS autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org Control: tags -1 debian Control: forwarded -1 https://bugs.debian.org/992597 Control: fixed -1 4.4.0-4 Fabio, On Sun, Nov 21, 2021 at 05:57:05PM +0100, Fabio Muzzi wrote: > Package: backuppc > Version: 4.4.0-3 > Severity: normal > Tags: patch > X-Debbugs-Cc: [email protected] > > Dear Maintainer, > > Backuppc, installed from the package on a new server (so no > upgrade/update from previous versions) fails with this message: Thanks for this. In Devuan, backuppc is not forked and we use Debian's packages directly without recompilation. This issue has already been reported to Debian's BTS[1] and is fixed in version 4.4.0-4. If you think the fix needs backporting to stable, you will need to make a request on the Debian BTS. Thanks. Mark [1] https://bugs.debian.org/992597
Received: (at 634) by bugs.devuan.org; 22 Nov 2021 07:57:12 +0000 Return-Path: <[email protected]> Delivered-To: [email protected] Received: from tupac3.dyne.org [195.169.149.119] by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4) for <debbugs@localhost> (single-drop); Mon, 22 Nov 2021 07:57:12 +0000 (UTC) Received: from mx.hindley.org.uk (193-36-131-86.cfwn.uk [193.36.131.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by vm6.ganeti.dyne.org (Postfix) with ESMTPS id EDB78F609E9 for <[email protected]>; Mon, 22 Nov 2021 08:56:31 +0100 (CET) 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 <[email protected]>) id 1mp4Bh-00030q-6p; Mon, 22 Nov 2021 07:56:29 +0000 Received: (nullmailer pid 1831 invoked by uid 1000); Mon, 22 Nov 2021 07:56:28 -0000 Date: Mon, 22 Nov 2021 07:56:27 +0000 From: Mark Hindley <[email protected]> To: Fabio Muzzi <[email protected]>, [email protected] Subject: Re: bug#634: backuppc: Backuppc fail to start on a clean installation Message-ID: <[email protected]> References: <163751382572.6203.17544482884423506574.reportbug@backupsrv.geldue.locale> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <163751382572.6203.17544482884423506574.reportbug@backupsrv.geldue.locale> X-Debbugs-No-Ack: No Thanks X-Spam-Status: No, score=0.4 required=5.0 tests=RDNS_DYNAMIC,SPF_PASS autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org Control: tags -1 debian Control: forwarded -1 https://bugs.debian.org/992597 Control: fixed -1 4.4.0-4 Fabio, On Sun, Nov 21, 2021 at 05:57:05PM +0100, Fabio Muzzi wrote: > Package: backuppc > Version: 4.4.0-3 > Severity: normal > Tags: patch > X-Debbugs-Cc: [email protected] > > Dear Maintainer, > > Backuppc, installed from the package on a new server (so no > upgrade/update from previous versions) fails with this message: Thanks for this. In Devuan, backuppc is not forked and we use Debian's packages directly without recompilation. This issue has already been reported to Debian's BTS[1] and is fixed in version 4.4.0-4. If you think the fix needs backporting to stable, you will need to make a request on the Debian BTS. Thanks. Mark [1] https://bugs.debian.org/992597
Received: (at 634) by bugs.devuan.org; 22 Nov 2021 07:57:12 +0000 Return-Path: <[email protected]> Delivered-To: [email protected] Received: from tupac3.dyne.org [195.169.149.119] by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4) for <debbugs@localhost> (single-drop); Mon, 22 Nov 2021 07:57:12 +0000 (UTC) Received: from mx.hindley.org.uk (193-36-131-86.cfwn.uk [193.36.131.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by vm6.ganeti.dyne.org (Postfix) with ESMTPS id EDB78F609E9 for <[email protected]>; Mon, 22 Nov 2021 08:56:31 +0100 (CET) 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 <[email protected]>) id 1mp4Bh-00030q-6p; Mon, 22 Nov 2021 07:56:29 +0000 Received: (nullmailer pid 1831 invoked by uid 1000); Mon, 22 Nov 2021 07:56:28 -0000 Date: Mon, 22 Nov 2021 07:56:27 +0000 From: Mark Hindley <[email protected]> To: Fabio Muzzi <[email protected]>, [email protected] Subject: Re: bug#634: backuppc: Backuppc fail to start on a clean installation Message-ID: <[email protected]> References: <163751382572.6203.17544482884423506574.reportbug@backupsrv.geldue.locale> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <163751382572.6203.17544482884423506574.reportbug@backupsrv.geldue.locale> X-Debbugs-No-Ack: No Thanks X-Spam-Status: No, score=0.4 required=5.0 tests=RDNS_DYNAMIC,SPF_PASS autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org Control: tags -1 debian Control: forwarded -1 https://bugs.debian.org/992597 Control: fixed -1 4.4.0-4 Fabio, On Sun, Nov 21, 2021 at 05:57:05PM +0100, Fabio Muzzi wrote: > Package: backuppc > Version: 4.4.0-3 > Severity: normal > Tags: patch > X-Debbugs-Cc: [email protected] > > Dear Maintainer, > > Backuppc, installed from the package on a new server (so no > upgrade/update from previous versions) fails with this message: Thanks for this. In Devuan, backuppc is not forked and we use Debian's packages directly without recompilation. This issue has already been reported to Debian's BTS[1] and is fixed in version 4.4.0-4. If you think the fix needs backporting to stable, you will need to make a request on the Debian BTS. Thanks. Mark [1] https://bugs.debian.org/992597
Received: (at 634) by bugs.devuan.org; 22 Nov 2021 07:57:12 +0000 Return-Path: <[email protected]> Delivered-To: [email protected] Received: from tupac3.dyne.org [195.169.149.119] by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4) for <debbugs@localhost> (single-drop); Mon, 22 Nov 2021 07:57:12 +0000 (UTC) Received: from mx.hindley.org.uk (193-36-131-86.cfwn.uk [193.36.131.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by vm6.ganeti.dyne.org (Postfix) with ESMTPS id EDB78F609E9 for <[email protected]>; Mon, 22 Nov 2021 08:56:31 +0100 (CET) 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 <[email protected]>) id 1mp4Bh-00030q-6p; Mon, 22 Nov 2021 07:56:29 +0000 Received: (nullmailer pid 1831 invoked by uid 1000); Mon, 22 Nov 2021 07:56:28 -0000 Date: Mon, 22 Nov 2021 07:56:27 +0000 From: Mark Hindley <[email protected]> To: Fabio Muzzi <[email protected]>, [email protected] Subject: Re: bug#634: backuppc: Backuppc fail to start on a clean installation Message-ID: <[email protected]> References: <163751382572.6203.17544482884423506574.reportbug@backupsrv.geldue.locale> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <163751382572.6203.17544482884423506574.reportbug@backupsrv.geldue.locale> X-Debbugs-No-Ack: No Thanks X-Spam-Status: No, score=0.4 required=5.0 tests=RDNS_DYNAMIC,SPF_PASS autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org Control: tags -1 debian Control: forwarded -1 https://bugs.debian.org/992597 Control: fixed -1 4.4.0-4 Fabio, On Sun, Nov 21, 2021 at 05:57:05PM +0100, Fabio Muzzi wrote: > Package: backuppc > Version: 4.4.0-3 > Severity: normal > Tags: patch > X-Debbugs-Cc: [email protected] > > Dear Maintainer, > > Backuppc, installed from the package on a new server (so no > upgrade/update from previous versions) fails with this message: Thanks for this. In Devuan, backuppc is not forked and we use Debian's packages directly without recompilation. This issue has already been reported to Debian's BTS[1] and is fixed in version 4.4.0-4. If you think the fix needs backporting to stable, you will need to make a request on the Debian BTS. Thanks. Mark [1] https://bugs.debian.org/992597
MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) X-Loop: [email protected] From: "Devuan bug Tracking System" <[email protected]> To: Mark Hindley <[email protected]> Subject: bug#634: marked as done (backuppc: Backuppc fail to start on a clean installation) Message-ID: <[email protected]> References: <[email protected]> <163751382572.6203.17544482884423506574.reportbug@backupsrv.geldue.locale> X-Devuan-PR-Message: closed 634 X-Devuan-PR-Package: backuppc X-Devuan-PR-Keywords: debian patch Reply-To: [email protected] Date: Tue, 10 Jan 2023 16:54:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1673369641-16620-0" This is a multi-part message in MIME format... ------------=_1673369641-16620-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your message dated Tue, 10 Jan 2023 16:51:40 +0000 with message-id <[email protected]> and subject line Fixed in Debian #992597 has caused the Devuan bug report #634, regarding backuppc: Backuppc fail to start on a clean installation to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) --=20 634: https://bugs.devuan.org/cgi/bugreport.cgi?bug=3D634 Devuan Bug Tracking System Contact [email protected] with problems ------------=_1673369641-16620-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by bugs.devuan.org; 21 Nov 2021 16:57:12 +0000 Return-Path: <[email protected]> Delivered-To: [email protected] Received: from tupac3.dyne.org [195.169.149.119] by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4) for <debbugs@localhost> (single-drop); Sun, 21 Nov 2021 16:57:12 +0000 (UTC) Received: from backupsrv.geldue.locale (host238-61-234-109.static.ehiweb.it [109.234.61.238]) by vm6.ganeti.dyne.org (Postfix) with ESMTP id 60BCFF6091B for <[email protected]>; Sun, 21 Nov 2021 17:57:07 +0100 (CET) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Fabio Muzzi <[email protected]> To: Devuan Bug Tracking System <[email protected]> Subject: backuppc: Backuppc fail to start on a clean installation Message-ID: <163751382572.6203.17544482884423506574.reportbug@backupsrv.geldue.locale> Date: Sun, 21 Nov 2021 17:57:05 +0100 X-Spam-Status: No, score=1.0 required=5.0 tests=SPF_SOFTFAIL autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org Package: backuppc Version: 4.4.0-3 Severity: normal Tags: patch X-Debbugs-Cc: [email protected] Dear Maintainer, Backuppc, installed from the package on a new server (so no upgrade/update from previous versions) fails with this message: # apt install backuppc [... omitted output...] Creating config file /etc/backuppc/config.pl with new version Starting backuppc...BackupPC cannot be started because important parameters are missing from config.pl. If you just upgraded BackupPC, please update /etc/backuppc/config.pl. invoke-rc.d: initscript backuppc, action "start" failed. dpkg: error processing package backuppc (--configure): installed backuppc package post-installation script subprocess returned error exit status 1 This happens because the init script for backuppc contains this check: # Check for incompatible old config files check_old_config() { BAD=0 CONF=/etc/backuppc/config.pl grep -q IncrLevel $CONF || BAD=1 if [ "$BAD" = "1" ]; then echo "BackupPC cannot be started because important parameters are missing from config.pl." echo "If you just upgraded BackupPC, please update /etc/backuppc/config.pl." exit 1 fi } But it seems that this check is not needed anymore in Backuppc 4, it was something related to V2 -> V3 upgrade. This check is called when starting/restarting backuppc. By commenting out the call to check_old_config under start and restart, backuppc works. This will leave you with an unconfigured package in apt, so after modifying the init script you'll also have to run: rmdir /var/lib/backuppc/pc/localhost apt install Kind regards Fabio Muzzi -- System Information: Distributor ID: Devuan Description: Devuan GNU/Linux 4 (chimaera) Release: 4 Codename: chimaera Architecture: x86_64 Kernel: Linux 5.10.0-9-amd64 (SMP w/2 CPU threads) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) LSM: AppArmor: enabled Versions of packages backuppc depends on: ii adduser 3.118 ii apache2 [httpd] 2.4.51-1~deb11u1 ii apache2-utils 2.4.51-1~deb11u1 ii backuppc-rsync 3.1.3.0-3 ii bzip2 1.0.8-4 ii debconf [debconf-2.0] 1.5.77 ii exim4-daemon-light [mail-transport-agent] 4.94.2-7 ii init-system-helpers 1.60+devuan1 ii iputils-ping 3:20210202-1 ii libarchive-zip-perl 1.68-1 ii libbackuppc-xs-perl 0.62-1+b1 ii libc6 2.31-13+deb11u2 ii libcgi-pm-perl 4.51-1 pn libdigest-md5-perl <none> ii libfile-listing-perl 6.14-1 ii libtime-parsedate-perl 2015.103-3 ii lsb-base 11.1.0 ii perl [libio-compress-perl] 5.32.1-4+deb11u2 ii ucf 3.0043 Versions of packages backuppc recommends: ii libio-dirent-perl 0.05-1+b9 ii openssh-client [ssh-client] 1:8.4p1-5 ii rrdtool 1.7.2-3+b7 ii samba-common-bin 2:4.13.13+dfsg-1~deb11u2 ii smbclient 2:4.13.13+dfsg-1~deb11u2 Versions of packages backuppc suggests: pn certbot | acme-tiny | acmetool | dehydrated | lacme | lecm <none> pn libscgi-perl <none> pn par2 <none> ii rsync 3.2.3-4+deb11u1 pn w3m | www-browser <none> -- Configuration Files: /etc/backuppc/apache.conf changed: Alias /backuppc /usr/share/backuppc/cgi-bin/ <Directory /usr/share/backuppc/cgi-bin/> AllowOverride None # Uncomment the line below to ensure that nobody can sniff important # info from network traffic during editing of the BackupPC config or # when browsing/restoring backups. # Requires that you have your webserver set up for SSL (https) access. #SSLRequireSSL Options ExecCGI FollowSymlinks AddHandler cgi-script .cgi DirectoryIndex index.cgi AuthUserFile /etc/backuppc/htpasswd AuthType basic AuthName "BackupPC admin" <RequireAll> # Comment out this line once you have setup HTTPS and uncommented SSLRequireSSL # This line ensures that only authenticated users may access your backups Require valid-user </RequireAll> </Directory> /etc/init.d/backuppc changed: set -e BINDIR=/usr/share/backuppc/bin DATADIR=/var/lib/backuppc RUNDIR=/run/backuppc USER=backuppc GROUP=backuppc NICE=0 IONICE=best-effort test -f /etc/default/backuppc && . /etc/default/backuppc NAME=backuppc DAEMON=BackupPC test -x $BINDIR/$DAEMON || exit 0 . /lib/lsb/init-functions [ -r /etc/default/rcS ] && . /etc/default/rcS if [ ! -d $RUNDIR ]; then mkdir -p $RUNDIR chown ${USER}:${GROUP} $RUNDIR chmod 0755 $RUNDIR fi check_old_config() { BAD=0 CONF=/etc/backuppc/config.pl grep -q IncrLevel $CONF || BAD=1 if [ "$BAD" = "1" ]; then echo "BackupPC cannot be started because important parameters are missing from config.pl." echo "If you just upgraded BackupPC, please update /etc/backuppc/config.pl." exit 1 fi } case "$1" in start) log_begin_msg "Starting $NAME..." start-stop-daemon --start --pidfile $RUNDIR/BackupPC.pid \ --nicelevel $NICE --iosched $IONICE -c $USER --exec $BINDIR/$DAEMON -- -d log_end_msg $? ;; stop) log_begin_msg "Stopping $NAME..." start-stop-daemon --stop --pidfile $RUNDIR/BackupPC.pid -u $USER \ --oknodo --retry 30 log_end_msg $? ;; restart) log_begin_msg "Restarting $NAME..." start-stop-daemon --stop --pidfile $RUNDIR/BackupPC.pid -u $USER \ --oknodo --retry 30 check_old_config start-stop-daemon --start --pidfile $RUNDIR/BackupPC.pid \ --nicelevel $NICE --iosched $IONICE -c $USER --exec $BINDIR/$DAEMON -- -d log_end_msg $? ;; reload|force-reload) log_begin_msg "Reloading $NAME configuration files..." start-stop-daemon --stop --pidfile $RUNDIR/BackupPC.pid -u $USER \ --signal 1 log_end_msg $? ;; status) status_of_proc "$BINDIR/$DAEMON" "$NAME" && exit 0 || exit $? ;; *) log_success_msg "Usage: /etc/init.d/$NAME {start|stop|restart|reload|status}" exit 1 ;; esac exit 0 -- debconf information: backuppc/tmppass: (password omitted) * backuppc/configuration-note: * backuppc/reconfigure-webserver: apache2 backuppc/restart-webserver: true ------------=_1673369641-16620-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 634-done) by bugs.devuan.org; 10 Jan 2023 16:52:37 +0000 Return-Path: <[email protected]> Delivered-To: [email protected] 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); Tue, 10 Jan 2023 16:52:37 +0000 (UTC) Received: from email.devuan.org by email.devuan.org with LMTP id 6CJtKJ2XvWOmKgAAmSBk0A (envelope-from <[email protected]>) for <[email protected]>; Tue, 10 Jan 2023 16:51:41 +0000 Received: by email.devuan.org (Postfix, from userid 109) id 9F28CDB6; Tue, 10 Jan 2023 16:51:41 +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; [email protected]; 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 5E885B69 for <[email protected]>; Tue, 10 Jan 2023 16:51:41 +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 <[email protected]>) id 1pFHqe-0002yK-Il for [email protected]; Tue, 10 Jan 2023 16:51:40 +0000 Received: (nullmailer pid 23401 invoked by uid 1000); Tue, 10 Jan 2023 16:51:40 -0000 Date: Tue, 10 Jan 2023 16:51:40 +0000 From: Mark Hindley <[email protected]> To: [email protected] Subject: Fixed in Debian #992597 Message-ID: <[email protected]> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Debbugs-No-Ack: No Thanks Version: 4.4.0-4 ------------=_1673369641-16620-0--
MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) X-Loop: [email protected] From: "Devuan bug Tracking System" <[email protected]> To: Fabio Muzzi <[email protected]> Subject: bug#634 closed by Mark Hindley <[email protected]> (Fixed in Debian #992597) Message-ID: <[email protected]> References: <[email protected]> <163751382572.6203.17544482884423506574.reportbug@backupsrv.geldue.locale> X-Devuan-PR-Message: they-closed 634 X-Devuan-PR-Package: backuppc X-Devuan-PR-Keywords: debian patch Reply-To: [email protected] Date: Tue, 10 Jan 2023 16:54:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1673369643-16620-1" This is a multi-part message in MIME format... ------------=_1673369643-16620-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the backuppc package: #634: backuppc: Backuppc fail to start on a clean installation It has been closed by Mark Hindley <[email protected]>. Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Mark Hindley <mark@hin= dley.org.uk> by replying to this email. --=20 634: https://bugs.devuan.org/cgi/bugreport.cgi?bug=3D634 Devuan Bug Tracking System Contact [email protected] with problems ------------=_1673369643-16620-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 634-done) by bugs.devuan.org; 10 Jan 2023 16:52:37 +0000 Return-Path: <[email protected]> Delivered-To: [email protected] 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); Tue, 10 Jan 2023 16:52:37 +0000 (UTC) Received: from email.devuan.org by email.devuan.org with LMTP id 6CJtKJ2XvWOmKgAAmSBk0A (envelope-from <[email protected]>) for <[email protected]>; Tue, 10 Jan 2023 16:51:41 +0000 Received: by email.devuan.org (Postfix, from userid 109) id 9F28CDB6; Tue, 10 Jan 2023 16:51:41 +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; [email protected]; 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 5E885B69 for <[email protected]>; Tue, 10 Jan 2023 16:51:41 +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 <[email protected]>) id 1pFHqe-0002yK-Il for [email protected]; Tue, 10 Jan 2023 16:51:40 +0000 Received: (nullmailer pid 23401 invoked by uid 1000); Tue, 10 Jan 2023 16:51:40 -0000 Date: Tue, 10 Jan 2023 16:51:40 +0000 From: Mark Hindley <[email protected]> To: [email protected] Subject: Fixed in Debian #992597 Message-ID: <[email protected]> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Debbugs-No-Ack: No Thanks Version: 4.4.0-4 ------------=_1673369643-16620-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by bugs.devuan.org; 21 Nov 2021 16:57:12 +0000 Return-Path: <[email protected]> Delivered-To: [email protected] Received: from tupac3.dyne.org [195.169.149.119] by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4) for <debbugs@localhost> (single-drop); Sun, 21 Nov 2021 16:57:12 +0000 (UTC) Received: from backupsrv.geldue.locale (host238-61-234-109.static.ehiweb.it [109.234.61.238]) by vm6.ganeti.dyne.org (Postfix) with ESMTP id 60BCFF6091B for <[email protected]>; Sun, 21 Nov 2021 17:57:07 +0100 (CET) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Fabio Muzzi <[email protected]> To: Devuan Bug Tracking System <[email protected]> Subject: backuppc: Backuppc fail to start on a clean installation Message-ID: <163751382572.6203.17544482884423506574.reportbug@backupsrv.geldue.locale> Date: Sun, 21 Nov 2021 17:57:05 +0100 X-Spam-Status: No, score=1.0 required=5.0 tests=SPF_SOFTFAIL autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org Package: backuppc Version: 4.4.0-3 Severity: normal Tags: patch X-Debbugs-Cc: [email protected] Dear Maintainer, Backuppc, installed from the package on a new server (so no upgrade/update from previous versions) fails with this message: # apt install backuppc [... omitted output...] Creating config file /etc/backuppc/config.pl with new version Starting backuppc...BackupPC cannot be started because important parameters are missing from config.pl. If you just upgraded BackupPC, please update /etc/backuppc/config.pl. invoke-rc.d: initscript backuppc, action "start" failed. dpkg: error processing package backuppc (--configure): installed backuppc package post-installation script subprocess returned error exit status 1 This happens because the init script for backuppc contains this check: # Check for incompatible old config files check_old_config() { BAD=0 CONF=/etc/backuppc/config.pl grep -q IncrLevel $CONF || BAD=1 if [ "$BAD" = "1" ]; then echo "BackupPC cannot be started because important parameters are missing from config.pl." echo "If you just upgraded BackupPC, please update /etc/backuppc/config.pl." exit 1 fi } But it seems that this check is not needed anymore in Backuppc 4, it was something related to V2 -> V3 upgrade. This check is called when starting/restarting backuppc. By commenting out the call to check_old_config under start and restart, backuppc works. This will leave you with an unconfigured package in apt, so after modifying the init script you'll also have to run: rmdir /var/lib/backuppc/pc/localhost apt install Kind regards Fabio Muzzi -- System Information: Distributor ID: Devuan Description: Devuan GNU/Linux 4 (chimaera) Release: 4 Codename: chimaera Architecture: x86_64 Kernel: Linux 5.10.0-9-amd64 (SMP w/2 CPU threads) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) LSM: AppArmor: enabled Versions of packages backuppc depends on: ii adduser 3.118 ii apache2 [httpd] 2.4.51-1~deb11u1 ii apache2-utils 2.4.51-1~deb11u1 ii backuppc-rsync 3.1.3.0-3 ii bzip2 1.0.8-4 ii debconf [debconf-2.0] 1.5.77 ii exim4-daemon-light [mail-transport-agent] 4.94.2-7 ii init-system-helpers 1.60+devuan1 ii iputils-ping 3:20210202-1 ii libarchive-zip-perl 1.68-1 ii libbackuppc-xs-perl 0.62-1+b1 ii libc6 2.31-13+deb11u2 ii libcgi-pm-perl 4.51-1 pn libdigest-md5-perl <none> ii libfile-listing-perl 6.14-1 ii libtime-parsedate-perl 2015.103-3 ii lsb-base 11.1.0 ii perl [libio-compress-perl] 5.32.1-4+deb11u2 ii ucf 3.0043 Versions of packages backuppc recommends: ii libio-dirent-perl 0.05-1+b9 ii openssh-client [ssh-client] 1:8.4p1-5 ii rrdtool 1.7.2-3+b7 ii samba-common-bin 2:4.13.13+dfsg-1~deb11u2 ii smbclient 2:4.13.13+dfsg-1~deb11u2 Versions of packages backuppc suggests: pn certbot | acme-tiny | acmetool | dehydrated | lacme | lecm <none> pn libscgi-perl <none> pn par2 <none> ii rsync 3.2.3-4+deb11u1 pn w3m | www-browser <none> -- Configuration Files: /etc/backuppc/apache.conf changed: Alias /backuppc /usr/share/backuppc/cgi-bin/ <Directory /usr/share/backuppc/cgi-bin/> AllowOverride None # Uncomment the line below to ensure that nobody can sniff important # info from network traffic during editing of the BackupPC config or # when browsing/restoring backups. # Requires that you have your webserver set up for SSL (https) access. #SSLRequireSSL Options ExecCGI FollowSymlinks AddHandler cgi-script .cgi DirectoryIndex index.cgi AuthUserFile /etc/backuppc/htpasswd AuthType basic AuthName "BackupPC admin" <RequireAll> # Comment out this line once you have setup HTTPS and uncommented SSLRequireSSL # This line ensures that only authenticated users may access your backups Require valid-user </RequireAll> </Directory> /etc/init.d/backuppc changed: set -e BINDIR=/usr/share/backuppc/bin DATADIR=/var/lib/backuppc RUNDIR=/run/backuppc USER=backuppc GROUP=backuppc NICE=0 IONICE=best-effort test -f /etc/default/backuppc && . /etc/default/backuppc NAME=backuppc DAEMON=BackupPC test -x $BINDIR/$DAEMON || exit 0 . /lib/lsb/init-functions [ -r /etc/default/rcS ] && . /etc/default/rcS if [ ! -d $RUNDIR ]; then mkdir -p $RUNDIR chown ${USER}:${GROUP} $RUNDIR chmod 0755 $RUNDIR fi check_old_config() { BAD=0 CONF=/etc/backuppc/config.pl grep -q IncrLevel $CONF || BAD=1 if [ "$BAD" = "1" ]; then echo "BackupPC cannot be started because important parameters are missing from config.pl." echo "If you just upgraded BackupPC, please update /etc/backuppc/config.pl." exit 1 fi } case "$1" in start) log_begin_msg "Starting $NAME..." start-stop-daemon --start --pidfile $RUNDIR/BackupPC.pid \ --nicelevel $NICE --iosched $IONICE -c $USER --exec $BINDIR/$DAEMON -- -d log_end_msg $? ;; stop) log_begin_msg "Stopping $NAME..." start-stop-daemon --stop --pidfile $RUNDIR/BackupPC.pid -u $USER \ --oknodo --retry 30 log_end_msg $? ;; restart) log_begin_msg "Restarting $NAME..." start-stop-daemon --stop --pidfile $RUNDIR/BackupPC.pid -u $USER \ --oknodo --retry 30 check_old_config start-stop-daemon --start --pidfile $RUNDIR/BackupPC.pid \ --nicelevel $NICE --iosched $IONICE -c $USER --exec $BINDIR/$DAEMON -- -d log_end_msg $? ;; reload|force-reload) log_begin_msg "Reloading $NAME configuration files..." start-stop-daemon --stop --pidfile $RUNDIR/BackupPC.pid -u $USER \ --signal 1 log_end_msg $? ;; status) status_of_proc "$BINDIR/$DAEMON" "$NAME" && exit 0 || exit $? ;; *) log_success_msg "Usage: /etc/init.d/$NAME {start|stop|restart|reload|status}" exit 1 ;; esac exit 0 -- debconf information: backuppc/tmppass: (password omitted) * backuppc/configuration-note: * backuppc/reconfigure-webserver: apache2 backuppc/restart-webserver: true ------------=_1673369643-16620-1--
Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.
Devuan Bugs Owner <[email protected]>.
Last modified:
Tue, 3 Dec 2024 00:39:01 UTC