|
Mantis - Resin
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 3382 | minor | always | 03-10-09 14:07 | 03-11-09 12:30 | |
|
|
|||||
| Reporter: | ferg | Platform: | |||
| Assigned To: | ferg | OS: | |||
| Priority: | high | OS Version: | |||
| Status: | closed | Product Version: | |||
| Product Build: | Resolution: | fixed | |||
| Projection: | none | ||||
| ETA: | none | Fixed in Version: | 3.1.9 | ||
|
|
|||||
| 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 web-app-default: <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 java.io.IOException: 'C:\Progs\app\log\app.log' permission denied at com.caucho.vfs.JniFilePathImpl.nativeOpenWrite(Native Method) at com.caucho.vfs.JniFilePathImpl.openAppendImpl(JniFilePathImpl.java:422) at com.caucho.vfs.Path.openAppend(Path.java:1119) at com.caucho.log.AbstractRolloverLog.openLog(AbstractRolloverLog.java:504) ... Does anyone have any idea why Resin creates the new log file as read-only? |
||||
| Steps To Reproduce: | |||||
| Additional Information: | |||||
| Relationships | |||||
| Attached Files: | |||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||