Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

View log feature from Web UI error

Got problems with your B2 or B3? Share and get helped!
Post Reply
Tompa
Posts: 81
Joined: 03 Feb 2007, 12:50

View log feature from Web UI error

Post 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
Binkem
Posts: 388
Joined: 10 Jul 2008, 02:26

Post 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
squadra
Posts: 96
Joined: 19 Sep 2008, 09:02

Post 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?
Tompa
Posts: 81
Joined: 03 Feb 2007, 12:50

Post 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
carl
Posts: 474
Joined: 07 May 2008, 04:41

Post 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
/Carl Fürstenberg, Excito Software Developer
http://www.excito.com
[email protected]
Post Reply