Bug#985384: [pcp] Bug#985384: pcp: Need to write permission to /var/log/pcp/pmfind/

2021-03-16 Thread Nathan Scott
Hi Yabuki,

On Wed, Mar 17, 2021 at 11:45 AM YABUKI Yukiharu  wrote:
> [...]
> Your pcp package need to give write permissions to /var/log/pcp/pmfind/
> pcp claims that it could not touch /var/log/pcp/pmfind/pmfind_check.log.

Thanks for letting us know - this will be fixed in the pcp-5.3.0 release.

cheers.

--
Nathan



Bug#985384: pcp: Need to write permission to /var/log/pcp/pmfind/

2021-03-16 Thread YABUKI Yukiharu
Package: pcp
Version: 5.2.6-1
Severity: normal

Dear Maintainer,

Your pcp package need to give write permissions to /var/log/pcp/pmfind/
pcp claims that it could not touch /var/log/pcp/pmfind/pmfind_check.log.

```
root@Odayla:/home/yabuki# LANG=C ls -la /var/log/pcp/pmfind/
total 0
drwxr-xr-x 1 root root  0 Dec 18 06:11 .
drwxrwxr-x 1 pcp  pcp  98 Feb  4 03:25 ..
```


I realized that pcp user got a lot of mails like that:

```
From pcp@localhost Sun Jan 10 14:59:07 2021
Return-path: 
Envelope-to: pcp@localhost
Delivery-date: Sun, 10 Jan 2021 14:59:07 +0900
Received: from pcp by Odayla with local (Exim 4.94)
(envelope-from )
id 1kyTkj-00BDW0-Gl
for pcp@localhost; Sun, 10 Jan 2021 14:59:03 +0900
From: root@localhost (Cron Daemon)
To: pcp@localhost
Subject: Cron   /usr/lib/pcp/bin/pmfind_check
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
Message-Id: 
Date: Sun, 10 Jan 2021 14:59:01 +0900

touch: '/var/log/pcp/pmfind/pmfind_check.log' に touch できません: 許可がありません
/usr/lib/pcp/bin/pmfind_check: 136: cannot create 
/var/log/pcp/pmfind/pmfind_check.log: Permission denied
```

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-4-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages pcp depends on:
ii  gawk1:5.1.0-1
ii  libc6   2.31-9
ii  libncurses6 6.2+20201114-2
ii  libncursesw66.2+20201114-2
ii  libpcp-gui2 5.2.6-1
ii  libpcp-import1  5.2.6-1
ii  libpcp-mmv1 5.2.6-1
ii  libpcp-pmda35.2.6-1
ii  libpcp-trace2   5.2.6-1
ii  libpcp-web1 5.2.6-1
ii  libpcp3 5.2.6-1
ii  libpfm4 4.11.1+git8-gc96ebc0-1
ii  libreadline88.1-1
ii  libssl1.1   1.1.1j-1
ii  libsystemd0 247.3-3
ii  libtinfo6   6.2+20201114-2
ii  libuv1  1.40.0-1
ii  procps  2:3.3.17-4
ii  python3 3.9.2-2
ii  python3-pcp 5.2.6-1

Versions of packages pcp recommends:
ii  libpcp-pmda-perl  5.2.6-1

Versions of packages pcp suggests:
pn  bpftrace
pn  libpcp-import-perl  
ii  pcp-gui 5.2.6-1
pn  redis-server

-- no debconf information