Page 1 of 1

View log feature from Web UI error

Posted: 26 Nov 2008, 06:44
by Tompa
When I try to view the apache2/access.log from the web interface I receive an "Internal Server Error".

Other log files works fine to view. Permission problems?

/Tompa

Posted: 26 Nov 2008, 15:44
by Binkem
Same for me. This is the first time i checked this log, so i can't tell if this i a new error or a fault in the logs

Posted: 27 Nov 2008, 06:31
by squadra
I guess file size problem!

I have the same error. Then i use SSH and go to
/var/log/apache2
du -h
gives 9.8M filesize of the log which itself is ok.

PHP (so your admin UI) has a standard 2Mb filesize restriction. I think you should download this file locally to see it's total content. If i use nano it goes slow. But looking at that log is also not good for your eyes :-), better to install a statistics utility for it maybe?

Posted: 27 Nov 2008, 15:26
by Tompa
Ah I guess youre right as my file was over 11mb and readable through ssh.

Maybe the php-viewer in the web ui could retrieve only the last 500kb or so of the file? I think it's kind of a nice feature to be able to view the files using the web.

/Tompa

Posted: 27 Nov 2008, 20:30
by carl
Yes, it's a fault from my side; I never though of the situation with logfiles over one mebibyte. As usually only the newest part of the log file is intresting, I will try modify the code to only read the last mebibyte or so from the file in question.

/Carl