Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

logrotate.service failed [closed]

Bonjour

Ocs fraichement installé sur une debian 10

● logrotate.service - Rotate log files

   Loaded: loaded (/lib/systemd/system/logrotate.service; static; vendor preset: enabled)

   Active: failed (Result: exit-code) since Fri 2020-07-31 00:00:08 CEST; 10h ago

     Docs: man:logrotate(8)

           man:logrotate.conf(5)

  Process: 9075 ExecStart=/usr/sbin/logrotate /etc/logrotate.conf (code=exited, status=1/FAILURE)

 Main PID: 9075 (code=exited, status=1/FAILURE)

juil. 31 00:00:06 ks185434654 systemd[1]: Starting Rotate log files...

juil. 31 00:00:08 ks185434654 logrotate[9075]: error: skipping "/var/log/ocsinventory-server/activity.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" dir

juil. 31 00:00:08 ks185434654 systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURE

juil. 31 00:00:08 ks185434654 systemd[1]: logrotate.service: Failed with result 'exit-code'.

juil. 31 00:00:08 ks185434654 systemd[1]: Failed to start Rotate log files.

~

~
closed with the note: chmod 640 /var/log/ocsinventory-server
in OCS Inventory NG server for Unix by (220 points)
closed by

2 Answers

0 votes

Sorry, I can't answer you in french.

Please let as know the permission on the /var/log/ocsinventory-server. You might also add in the logrote configuration su username group

Let us know if you solve this.

by (760 points)
0 votes

-rw-r----- 1 root     adm       294752 août   2 00:00 messages.1

drwxr-s--- 2 mysql    adm         4096 août   3 15:40 mysql

drwxrwxr-x 2 www-data www-data    4096 juil. 28 23:50 ocsinventory-server

drwx------ 2 root     root        4096 juil. 28 20:13 private

drwxr-x--- 2 root     adm         4096 sept.  2  2019 samba

by (220 points)
 
Powered by Question2Answer
...