Bug#987467: autopkgtest library fails with: FAIL stderr: pkill: killing pid 1764 failed: Operation not permitted

2021-04-27 Thread Gianfranco Costamagna
control: fixed -1 2.0.10-6
control: close -1

thanks

On Sat, 24 Apr 2021 16:19:48 +0200 Chris Hofstaedtler  wrote:
> * Brian Thompson  [210424 14:04]:
> > > autopkgtest [21:45:54]: test library: [---
> > > pkill: killing pid 1764 failed: Operation not permitted
> [..]
> 
> > I'm not a maintainer, but I see that in the code the command does what
> > it intends to do, checks out with the man pages although I haven't read
> > it myself:
> > 
> > # Tell Mosquitto to reload certificates and configuration
> > pkill -HUP -x mosquitto
> 
> Not sure which code you were looking at, but my copy of
> debian/tests/library only has:
> 
> | pkill -x mosquitto
> | make -C test/lib test
> 
> That code seems irritating to me. It certainly does not work, see
> "Operation not permitted" above.
> 
> Chris
> 
> 



Bug#987467: autopkgtest library fails with: FAIL stderr: pkill: killing pid 1764 failed: Operation not permitted

2021-04-24 Thread Chris Hofstaedtler
* Brian Thompson  [210424 14:04]:
> > autopkgtest [21:45:54]: test library: [---
> > pkill: killing pid 1764 failed: Operation not permitted
[..]

> I'm not a maintainer, but I see that in the code the command does what
> it intends to do, checks out with the man pages although I haven't read
> it myself:
> 
> # Tell Mosquitto to reload certificates and configuration
> pkill -HUP -x mosquitto

Not sure which code you were looking at, but my copy of
debian/tests/library only has:

| pkill -x mosquitto
| make -C test/lib test

That code seems irritating to me. It certainly does not work, see
"Operation not permitted" above.

Chris



Bug#987467: autopkgtest library fails with: FAIL stderr: pkill: killing pid 1764 failed: Operation not permitted

2021-04-24 Thread Brian Thompson
On Sat, Apr 24, 2021 at 01:06:04PM +0200, Chris Hofstaedtler wrote:
> Source: mosquitto
> Version: 2.0.10-4
> Severity: serious
> 
> Dear Maintainer,
> 
> your autopkgtest appears to fail:
> 
> autopkgtest [21:45:54]: test library: [---
> pkill: killing pid 1764 failed: Operation not permitted
> make: Entering directory 
> '/tmp/autopkgtest-lxc.zrj4yodu/downtmp/build.er2/src/test/lib'
> [..]
> autopkgtest [21:46:36]: test library: ---]
> autopkgtest [21:46:36]: test library:  - - - - - - - - - - results - - - - - 
> - - - - -
> library  FAIL stderr: pkill: killing pid 1764 failed: Operation 
> not permitted
> autopkgtest [21:46:36]: test library:  - - - - - - - - - - stderr - - - - - - 
> - - - -
> pkill: killing pid 1764 failed: Operation not permitted
> 
> I do not quite understand what the pkill -x mosquitto is good for in
> the tests, but certainly it does not work.
> 
> Filing as serious, as this prevents migration to testing.
> 
> Chris
> 

I'm not a maintainer, but I see that in the code the command does what
it intends to do, checks out with the man pages although I haven't read
it myself:

# Tell Mosquitto to reload certificates and configuration
pkill -HUP -x mosquitto

Additionally, this code looks like it should work:

# Set ownership to Mosquitto
chown mosquitto: /etc/mosquitto/certs/server.pem \
/etc/mosquitto/certs/server.key

# Ensure permissions are restrictive
chmod 0600 \
/etc/mosquitto/certs/server.pem \
/etc/mosquitto/certs/server.key

But I think this is more accurate (omitting the ":"):

chown mosquitto /etc/mosquitto/certs/server.pem \
/etc/mosquitto/certs/server.key

Best regards,

Brian


signature.asc
Description: PGP signature


Bug#987467: autopkgtest library fails with: FAIL stderr: pkill: killing pid 1764 failed: Operation not permitted

2021-04-24 Thread Chris Hofstaedtler
Source: mosquitto
Version: 2.0.10-4
Severity: serious

Dear Maintainer,

your autopkgtest appears to fail:

autopkgtest [21:45:54]: test library: [---
pkill: killing pid 1764 failed: Operation not permitted
make: Entering directory 
'/tmp/autopkgtest-lxc.zrj4yodu/downtmp/build.er2/src/test/lib'
[..]
autopkgtest [21:46:36]: test library: ---]
autopkgtest [21:46:36]: test library:  - - - - - - - - - - results - - - - - - 
- - - -
library  FAIL stderr: pkill: killing pid 1764 failed: Operation not 
permitted
autopkgtest [21:46:36]: test library:  - - - - - - - - - - stderr - - - - - - - 
- - -
pkill: killing pid 1764 failed: Operation not permitted

I do not quite understand what the pkill -x mosquitto is good for in
the tests, but certainly it does not work.

Filing as serious, as this prevents migration to testing.

Chris