Your message dated Sun, 1 Dec 2024 15:05:38 +0100
with message-id <[email protected]>
and subject line Re: Bug#1057234: sbuild: Generates weird messages in 
/var/log/syslog
has caused the Debian Bug report #1057234,
regarding sbuild: Generates weird messages in /var/log/syslog
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.)


-- 
1057234: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1057234
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sbuild
Version: 0.85.0
Severity: normal

I run sbuild as following:

sbuild --no-run-lintian --arch-all --dist=sid *.dsc -d unstable-amd64-sbuild

, where unstable-amd64-sbuild references a chroot. Updating the chroot is done:

sudo sbuild-update -udcar unstable-amd64-sbuild

Both commands generate weird messages in /var/log/syslog like this:

2023-12-01T09:36:52.230653+01:00 haka2 schroot[3182]: [unstable-
amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] (root->root) Running
command: "perl -e #012    use strict;#012
   use warnings;#012    use POSIX;#012    <snip>

Sample file is attached. These #012 are page feed chars IIRC. Unfortunately
logcheck is not able to handle the situation and generates E-Mails, which
report the full command line by line. There is definitely a white list rule for
schroot in /etc/logcheck/ignore.d.server/schroot, but it is not able to handle
the lot of special characters. Consider to not print the full perl script into
the log file (if possible).

It may be an issue in logcheck, but rather prefer to avoid message instead of
trying to white list afterwards.

Hilmar


-- System Information:
Debian Release: 12.2
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable-debug'), (500, 
'proposed-updates-debug'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-13-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages sbuild depends on:
ii  adduser         3.134
ii  libsbuild-perl  0.85.0
ii  perl            5.36.0-7

Versions of packages sbuild recommends:
ii  autopkgtest  5.28
ii  debootstrap  1.0.128+nmu2
ii  schroot      1.6.13-3+b2
pn  uidmap       <none>

Versions of packages sbuild suggests:
ii  deborphan  1.7.35
ii  e2fsprogs  1.47.0-2
ii  kmod       30+20221128-1
ii  wget       1.21.3-1+b2

-- no debconf information
2023-12-01T09:36:51.872961+01:00 haka2 schroot[3159]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "getent group sbuild"
2023-12-01T09:36:51.903873+01:00 haka2 schroot[3161]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "getent passwd sbuild"
2023-12-01T09:36:51.918894+01:00 haka2 schroot[3163]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "getent passwd root"
2023-12-01T09:36:51.933531+01:00 haka2 schroot[3165]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "/bin/sh -c set -e; if [ ! -d /build ] ; then 
mkdir -p -m 0775 /build; fi"
2023-12-01T09:36:51.953954+01:00 haka2 schroot[3167]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "chown sbuild:sbuild /build"
2023-12-01T09:36:51.969383+01:00 haka2 schroot[3169]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "chmod 02770 /build"
2023-12-01T09:36:51.984742+01:00 haka2 schroot[3171]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "/bin/sh -c set -e; if [ ! -d /var/lib/sbuild ] ; 
then mkdir -m 2775 /var/lib/sbuild; fi"
2023-12-01T09:36:51.999574+01:00 haka2 schroot[3173]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "/bin/sh -c set -e; if [ ! -d 
/var/lib/sbuild/srcdep-lock ] ; then mkdir -m 2770 /var/lib/sbuild/srcdep-lock; 
fi"
2023-12-01T09:36:52.014331+01:00 haka2 schroot[3175]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "chown -R sbuild:sbuild /var/lib/sbuild"
2023-12-01T09:36:52.030178+01:00 haka2 schroot[3177]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "chmod 02775 /var/lib/sbuild"
2023-12-01T09:36:52.044707+01:00 haka2 schroot[3179]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "/usr/bin/debconf-set-selections"
2023-12-01T09:36:52.230653+01:00 haka2 schroot[3182]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "perl -e #012    use strict;#012    use 
warnings;#012    use POSIX;#012    use FileHandle;#012#012    my 
$lockfile="/var/lock/sbuild";#012    my $try = 0;#012#012  repeat:#012    if 
(!sysopen( F, $lockfile, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644 )){#012#011if 
($! == EEXIST) {#012#011    # lock file exists, wait#012#011    goto repeat if 
!open( F, "<$lockfile" );#012#011    my $line = <F>;#012#011    my ($job, $pid, 
$user);#012#011    close( F );#012#011    if ($line !~ 
/^(\S+)\s+(\S+)\s+(\S+)/) {#012#011#011print STDERR "Bad lock file contents 
($lockfile) -- still trying\n";#012#011    } else {#012#011#011($job, $pid, 
$user) = ($1, $2, $3);#012#011#011if (kill( 0, $pid ) == 0 && $! == ESRCH) 
{#012#011#011    # process no longer exists, remove stale lock#012#011#011    
print STDERR "Removing stale lock file $lockfile ".#012#011#011#011"(job $job, 
pid $pid, user $user)\n";#012#011#011    if (!unlink($lockfile)) 
{#012#011#011#011if ($! != ENOENT) {#012#011#011#011    print STDERR "Cannot 
remove chroot lock file $lockfile: $!\n";#012#011#011#011    exit 
1;#012#011#011#011}#012#011#011    }#012#011#011}#012#011    }#012#011    
++$try;#012#011    if ($try > 120) {#012#011#011print STDERR "Lockfile 
$lockfile still present after " .#012#011#011    120 * 5 . " seconds -- giving 
up\n";#012#011#011exit 1;#012#011    }#012#011    print STDERR "Another sbuild 
process (job $job, pid $pid by user $user) is currently using the build chroot; 
waiting...\n"#012#011#011if $try == 1;#012#011    sleep 5;#012#011    goto 
repeat;#012#011} else {#012#011    print STDERR "Failed to create lock file 
$lockfile: $!\n";#012#011    exit 1;#012#011}#012    }#012#012    
F->print("SBUILD_UPDATE 3031 root\n");#012    F->close();#012#012    exit 
0;#012"
2023-12-01T09:36:52.264838+01:00 haka2 schroot[3184]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "dpkg --assert-multi-arch"
2023-12-01T09:36:52.284946+01:00 haka2 schroot[3186]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "dpkg --print-foreign-architectures"
2023-12-01T09:36:52.300589+01:00 haka2 schroot[3188]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "mktemp /var/lib/sbuild/apt.conf.XXXXXX"
2023-12-01T09:36:52.316367+01:00 haka2 schroot[3190]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "sh -c cat > /var/lib/sbuild/apt.conf.M7sqFt"
2023-12-01T09:36:52.332078+01:00 haka2 schroot[3193]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "mv /var/lib/sbuild/apt.conf.M7sqFt 
/var/lib/sbuild/apt.conf"
2023-12-01T09:36:52.349768+01:00 haka2 schroot[3195]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "chown root:sbuild /var/lib/sbuild/apt.conf"
2023-12-01T09:36:52.364721+01:00 haka2 schroot[3197]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "chmod 0664 /var/lib/sbuild/apt.conf"
2023-12-01T09:36:52.380475+01:00 haka2 schroot[3199]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "apt-get update"

2023-12-01T09:37:58.428630+01:00 haka2 schroot[3877]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "apt-get -y clean"
2023-12-01T09:37:58.465302+01:00 haka2 schroot[3879]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "apt-get -y autoclean"
2023-12-01T09:37:58.990246+01:00 haka2 boinc[1498]: Authorization required, but 
no authorization protocol specified
2023-12-01T09:37:58.990481+01:00 haka2 boinc[1498]: Authorization required, but 
no authorization protocol specified
2023-12-01T09:37:59.369913+01:00 haka2 schroot[3884]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "apt-get -y autoremove"
2023-12-01T09:37:59.994617+01:00 haka2 boinc[1498]: Authorization required, but 
no authorization protocol specified
2023-12-01T09:37:59.994766+01:00 haka2 boinc[1498]: Authorization required, but 
no authorization protocol specified
2023-12-01T09:38:00.017010+01:00 haka2 schroot[3889]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "rm 
/etc/apt/sources.list.d/sbuild-build-depends-archive.list -f"
2023-12-01T09:38:00.033860+01:00 haka2 schroot[3891]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "rm 
/etc/apt/sources.list.d/sbuild-extra-repositories.list -f"
2023-12-01T09:38:00.050305+01:00 haka2 schroot[3893]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "rm 
/etc/apt/sources.list.d/sbuild-extra-packages-archive.list -f"
2023-12-01T09:38:00.066394+01:00 haka2 schroot[3895]: 
[unstable-amd64-sbuild-327cf8c2-30d1-4469-aa7b-9bc3653dbc45 chroot] 
(root->root) Running command: "perl -e #012    use strict;#012    use 
warnings;#012    use POSIX;#012#012    my $lockfile="/var/lock/sbuild";#012    
if (!unlink($lockfile)) {#012#011print STDERR "Cannot remove chroot lock file 
$lockfile: $!\n"#012#011    if $! != ENOENT;#012#011exit 1;#012    }#012    
exit 0;#012"
2023-12-01T09:38:00.143771+01:00 haka2 systemd[1]: 
run-schroot-mount-unstable\x2damd64\x2dsbuild\x2d327cf8c2\x2d30d1\x2d4469\x2daa7b\x2d9bc3653dbc45-build.mount:
 Deactivated successfully.
2023-12-01T09:38:00.153391+01:00 haka2 systemd[1]: 
run-schroot-mount-unstable\x2damd64\x2dsbuild\x2d327cf8c2\x2d30d1\x2d4469\x2daa7b\x2d9bc3653dbc45-dev-shm.mount:
 Deactivated successfully.
2023-12-01T09:38:00.158951+01:00 haka2 systemd[1]: 
run-schroot-mount-unstable\x2damd64\x2dsbuild\x2d327cf8c2\x2d30d1\x2d4469\x2daa7b\x2d9bc3653dbc45-dev-pts.mount:
 Deactivated successfully.
2023-12-01T09:38:00.173254+01:00 haka2 systemd[1]: 
run-schroot-mount-unstable\x2damd64\x2dsbuild\x2d327cf8c2\x2d30d1\x2d4469\x2daa7b\x2d9bc3653dbc45-sys.mount:
 Deactivated successfully.
2023-12-01T09:38:00.173560+01:00 haka2 systemd[1]: 
run-schroot-mount-unstable\x2damd64\x2dsbuild\x2d327cf8c2\x2d30d1\x2d4469\x2daa7b\x2d9bc3653dbc45-proc.mount:
 Deactivated successfully.
2023-12-01T09:38:01.000025+01:00 haka2 boinc[1498]: Authorization required, but 
no authorization protocol specified
2023-12-01T09:38:01.000292+01:00 haka2 boinc[1498]: Authorization required, but 
no authorization protocol specified
2023-12-01T09:38:01.146251+01:00 haka2 systemd[1]: 
run-schroot-mount-unstable\x2damd64\x2dsbuild\x2d327cf8c2\x2d30d1\x2d4469\x2daa7b\x2d9bc3653dbc45.mount:
 Deactivated successfully.
2023-12-01T09:52:39.179147+01:00 haka2 kernel: [    6.205934] audit: type=1400 
audit(1701420758.782:7): apparmor="STATUS" operation="profile_load" 
profile="unconfined" 
name="/usr/lib/x86_64-linux-gnu/lightdm/lightdm-guest-session//chromium" 
pid=773 comm="apparmor_parser"
2023-12-01T09:52:39.179150+01:00 haka2 kernel: [    6.209511] audit: type=1400 
audit(1701420758.786:8): apparmor="STATUS" operation="profile_load" 
profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" 
pid=776 comm="apparmor_parser"
2023-12-01T09:52:39.179151+01:00 haka2 kernel: [    6.209518] audit: type=1400 
audit(1701420758.786:9): apparmor="STATUS" operation="profile_load" 
profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-helper" pid=776 
comm="apparmor_parser"
2023-12-01T09:52:39.179152+01:00 haka2 kernel: [    6.209523] audit: type=1400 
audit(1701420758.786:10): apparmor="STATUS" operation="profile_load" 
profile="unconfined" name="/usr/lib/connman/scripts/dhclient-script" pid=776 
comm="apparmor_parser"
2023-12-01T09:52:39.179152+01:00 haka2 kernel: [    6.209526] audit: type=1400 
audit(1701420758.786:11): apparmor="STATUS" operation="profile_load" 
profile="unconfined" name="/{,usr/}sbin/dhclient" pid=776 comm="apparmor_parser"

--- End Message ---
--- Begin Message ---
affects 1057302 sbuild
thanks

On Sun, Dec 03, 2023 at 12:06:23AM +0100, =?UTF-8?Q?Preu=C3=9Fe wrote:
> Control: clone 1057234 -1
> Control: reassign -1 schroot
> Control: retitle -1 schroot: Generates weird messages in /var/log/syslog

[..]
> > 
> > What should sbuild do to fix this?
> 
> I wasn't sure b/c I use mostly sbuild. Cloning to schroot.

The question is still valid. The bug was cloned to schroot (good),
but if nothing is left to do in sbuild, then the sbuild bug should
be closed IMO.

Doing that.

Chris

--- End Message ---

Reply via email to