chirpstack-network-server icon indicating copy to clipboard operation
chirpstack-network-server copied to clipboard

Logrotate config has wrong permissions

Open diamondo25 opened this issue 5 years ago • 0 comments

Is this a bug or a feature request?

Bug

What did you expect?

Logrotate to function with the logrotate config file

What happened?

Logrotate reports error:

$ sudo logrotate --force /etc/logrotate.d/chirpstack-network-server
error: Ignoring /etc/logrotate.d/chirpstack-network-server because of bad file mode - must be 0644 or 0444.

Folder contents also show that the permissions are not -rw-r--r--

$ ls -asl /etc/logrotate.d
...
4 -rw-rw-r--   1 root root  156 Jan  7  2020 chirpstack-application-server
4 -rw-rw-r--   1 root root  148 Jan 13  2020 chirpstack-gateway-bridge
4 -rw-rw-r--   1 root root  148 Dec 17  2019 chirpstack-network-server
4 -rw-r--r--   1 root root  232 Jun 26  2018 dpkg

What version are your using?

  application_server: 3.7.0
  network_server: 3.6.0
  gateway_bridge: 3.6.0 

How can your issue be reproduced?

Run logrotate with the config file

Could you share your log output?

See above

NOTE: also applies to Application Server and Gateway bridge.

diamondo25 avatar Feb 25 '20 13:02 diamondo25