All logs are only written by the MainThread.
Make sure,that there is no other process locking the maillog.txt file if 
it is closed by assp. For example, an online filesystem virus scanner 
(defender or any other). Configure exceptions for the assp folder.

Thomas





Von:    "Scott MacLean" <a...@hollsco.com>
An:     "ASSP Development Mailing List" <assp-test@lists.sourceforge.net>
Datum:  20.11.2017 05:07
Betreff:        [Assp-test] Log rollovers



Hi Thomas,

Some time ago, I mentioned to you that periodically my logs did not roll
over - ASSP would continue writing to the previous day's log and I would
end up with logs containing two and sometimes three days worth of data.

When this occurred, I would see:

Oct-04-17 00:00:00: Rolling log file -- archive will be saved as
'logs/17-10-03.maillog.txt'
error: unable to rename file D:/ASSP/logs/maillog.txt to
D:/ASSP/logs/17-10-03.maillog.txt - Permission denied

Oct-02-17 00:00:01: Rolling log file -- archive will be saved as
'logs/17-10-01.maillog.txt'
error: unable to rename file D:/ASSP/logs/maillog.txt to
D:/ASSP/logs/17-10-01.maillog.txt - Permission denied

Nov-08-17 00:00:00: Rolling log file -- archive will be saved as
'logs/17-11-07.maillog.txt'
error: unable to rename file D:/ASSP/logs/maillog.txt to
D:/ASSP/logs/17-11-07.maillog.txt - Permission denied

I am now running ASSP on an entirely new platform, with much more CPU,
much more memory, much faster storage (all SSD)  and much lower overall
CPU load, on a different Perl (Strawberry instead of Active State) - and
yet I still see this happening at least once a week.

Usually - but not always - I see a "Main_Thread got connection request"
IMMEDIATELY after the "Rolling log file" log entry, with several lines
where the Main Thread is transferring the connection, and then the log
rolling fails with Permission Denied.

I can't say for sure without looking at the code, but is it possible
that because the log is being written to by a different thread/worker
when it is rolling the log, it is unable to rename the file?

Would it be worthwhile giving the rename process several retries if it
fails the first time, to try to get around this issue?




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test





DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally 
privileged and protected in law and are intended solely for the use of the 

individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no 
known virus in this email!
*******************************************************

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test

Reply via email to