Fehler #232

avatar

No log rotation on Windows

Added by Joel Garman 251 days ago. Updated 77 days ago.

Status:Neu Start:July 06, 2009
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:- Spent time: -
Target version:-

Description

The log rotation feature does not work on Windows. When the log file reaches 1MB Instiki generates an application error. No pages of the wiki are accessible until the log file is deleted.

I am able to recreate the problem on Windows Server 2008 and Windows XP using Instiki version 0.16.X.

History

Updated by Jacques Distler 251 days ago

avatar

Joel Garman wrote:

The log rotation feature does not work on Windows. When the log file reaches 1MB Instiki generates an application error. No pages of the wiki are accessible until the log file is deleted.

I am able to recreate the problem on Windows Server 2008 and Windows XP using Instiki version 0.16.X.

It would be useful to record what version of Ruby you are using (and where you got it from).

This is not, at heart, an Instiki issue. It is — if I understand correctly — an issue with the Ruby Logger class.

Not everyone is affected by it (as far as I can tell), so it would be worthwhile figuring out why you are.

Updated by Joel Garman 250 days ago

avatar

Ruby 1.8.6 p111 one-click installer downloaded from ruby-lang.org

Updated by Chris Graves 152 days ago

avatar

I have just experienced the same exact problem. Thank you Joel for discovering this with the help of the other discussion board. It is very strange that all of a sudden instiki just completely stops working with the cryptic error message "instiki Application error (Apache) Something very bad just happened. I just know it. Do you smell smoke?" I've made the edit to config\environments\production.rb and it is OK. I guess the production.log file will grow infinitely now.

Updated by Jacques Distler 77 days ago

avatar

Chris Graves wrote:

I've made the edit to config/environments/production.rb and it is OK. I guess the production.log file will grow infinitely now.

I am surprised that there don't seem to be other reports of what sounds like a fairly obvious bug in Ruby's Logger class, under Windows. On the other hand, there do seem to be lots of reports which say "Don't use Logger's log-rotation with Mongrel, under Windows."

The 1-click Ruby Installer does come with Mongrel. And Instiki will use Mongrel, by default, if it is installed. Perhaps the problem lies in Mongrel, rather that Ruby's Logger class. If so, then starting up Instiki with

./instiki webrick

instead of

./instiki

would solve the problem (and would be preferable to foregoing log-rotation).

Also, it might be worthwhile updating to Instiki 0.18.

Also available in: Atom PDF