#48304 ns-slapd - LOGINFO:Unable to remove file
Closed: Fixed None Opened 4 years ago by nhosoi.

Description of problem:
Customer reporting the following problem from time to time, when log files are
being rotated:

Apr 15 22:30:03 lh249 ns-slapd: LOGINFO:Unable to remove
file:/dirsrv/var/log/slapd-test/errors.20150325-032304 error -5950
(File not found.)#012

# ls -la /dirsrv/var/log/slapd-test/errors*
-rw------- 1 ldap ldap  5572 Apr 16 03:17 /dirsrv/var/log/slapd-test/errors
-rw------- 1 ldap ldap 40707 Apr  8 22:30 /dirsrv/var/log/slapd-test/errors.20150401-223001
-rw------- 1 ldap ldap 40716 Apr 15 22:30
/dirsrv/var/log/slapd-test/errors.20150408-223002
-rw------- 1 ldap ldap   273 Apr 15 22:30
/dirsrv/var/log/slapd-test/errors.rotationinfo

# cat /dirsrv/var/log/slapd-test/errors.rotationinfo
LOGINFO:Log file created at: 15/Apr/2015:22:30:03 (1429129803)
LOGINFO:Previous Log
File:/dirsrv/var/log/slapd-test/errors.20150408-223002 (1428525002) (40716)
LOGINFO:Previous Log
File:/dirsrv/var/log/slapd-test/errors.20150401-223001 (1427920201) (40707)

The error is not reproducible so far and it also does not come on regular base.
It's only seen from time to time without any clear hint on the cause.

Version-Release number of selected component (if applicable):
389-ds-base-1.2.11.15-34.el6_5.x86_64      Fri Oct 17 09:25:18 2014
389-ds-base-libs-1.2.11.15-34.el6_5.x86_64 Fri Oct 17 09:25:12 2014

How reproducible:
Not able so far.

Steps to Reproduce:
1. N/A

Actual results:
Mar 17 22:30:03 lh249 ns-slapd: LOGINFO:Unable to remove
file:/dirsrv/var/log/slapd-test/errors.20150303-223001 error -5950
(File not found.)#012

Expected results:
No error message to occur as rotation seems to work

Configuration also appears to be OK

sslapd-errorlog-logging-enabled: on
nsslapd-errorlog-mode: 600
nsslapd-errorlog-maxlogsperdir: 3
nsslapd-errorlog-maxlogsize: 100
nsslapd-errorlog-logrotationtime: 1
nsslapd-errorlog-logrotationtimeunit: week
nsslapd-errorlog-logrotationsync-enabled: off
nsslapd-errorlog-logrotationsynchour: 0
nsslapd-errorlog-logrotationsyncmin: 0

Logs are not stored in default location

/dirsrv/var/log/slapd-test/

Reviewed by Mark (Thank you!!)

Pushed to master:
21dda61..e2abffc master -> master
commit e2abffc

Pushed to 389-ds-base-1.3.4:
f09eb8c..6c71c0d 389-ds-base-1.3.4 -> 389-ds-base-1.3.4
commit 6c71c0d

Pushed to 389-ds-base-1.3.3:
264f672..8081a91 389-ds-base-1.3.3 -> 389-ds-base-1.3.3
commit 8081a91

Pushed to 389-ds-base-1.2.11:
a1dc207..217ea08 389-ds-base-1.2.11 -> 389-ds-base-1.2.11
commit 217ea08

Metadata Update from @nhosoi:
- Issue assigned to nhosoi
- Issue set to the milestone: 1.2.11.33

2 years ago

Login to comment on this ticket.

Metadata