Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003382 [Resin] minor always 03-10-09 14:07 03-11-09 12:30
Reporter ferg View Status public  
Assigned To ferg
Priority high Resolution fixed  
Status closed   Product Version
Summary 0003382: windows logs opened in read-only
Description (rep by Kai Virkki)

I just migrated from Resin 3.0.15 pro to 3.1.8 pro and have a problem
with log rollovers on Windows. I have defined the logs like this into

 <stderr-log path="${resin.home}/../log/app.log" rollover-size="1kb"/>
 <stdout-log path="${resin.home}/../log/app.log" rollover-size="1kb"/>

Actually I use rollover-period with a longer time in production, the
above config just makes it faster to get to the error.

I'm running Resin as a Windows service with local system account. Now,
when the rollover happens, I see that the old log file gets renamed
and a new log file created, but the new file gets created as read-only
and writing to it fails with the following stack trace:

[2009-03-10 22:44:59] Can't create log directory /C:/Progs/app/log/app.log 'C:\Progs\app\log\app.log' permission denied
    at com.caucho.vfs.JniFilePathImpl.nativeOpenWrite(Native Method)
    at com.caucho.vfs.JniFilePathImpl.openAppendImpl(
    at com.caucho.vfs.Path.openAppend(
    at com.caucho.log.AbstractRolloverLog.openLog(

Does anyone have any idea why Resin creates the new log file as read-only?

Additional Information
Attached Files

- Relationships

- Notes
03-11-09 05:28

I did some more investigation and it seems that if I remove the Pro
license, the rollovers start to work! So, this has definitely
something to do with the Pro-stuff. The behavior is also not
consistent in pro, because it sometimes manages to create the new log
file correctly, but mostly fails this and creates it as read-only.
Pretty spooky stuff...
03-11-09 12:30

missing mode argument to open() for win32 truncate (log rotation)

- Issue History
Date Modified Username Field Change
03-10-09 14:07 ferg New Issue
03-10-09 15:40 iRideSnow Issue Monitored: iRideSnow
03-11-09 05:27 kvirkki Issue Monitored: kvirkki
03-11-09 05:28 kvirkki Note Added: 0003870
03-11-09 09:55 emil Priority normal => high
03-11-09 12:30 ferg Note Added: 0003873
03-11-09 12:30 ferg Assigned To  => ferg
03-11-09 12:30 ferg Status new => closed
03-11-09 12:30 ferg Resolution open => fixed
03-11-09 12:30 ferg Fixed in Version  => 3.1.9

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
35 total queries executed.
29 unique queries executed.
Powered by Mantis Bugtracker