FAQ  •  Register  •  Login

Tips: Clean up serviio.log to the size of zero KiB

<<

colemanlee

User avatar

Streaming enthusiast

Posts: 23

Joined: Mon Oct 07, 2019 10:57 am

Post Thu Oct 10, 2019 1:45 am

Tips: Clean up serviio.log to the size of zero KiB

Hi,
My D:\Program Files\Serviio\log\serviio.log file size is 4.5MiB, I want to clean up this file. I do these steps:
  1. stop Serviio server in Serviio Console;
  2. clean up the content of serviio.log and save it;
  3. restart Serviio server in Serviio Console;
  4. then the serviio.log file size become 4.5Mib again, the serviio.log file content is full of "NUL" in Notepad2.exe text editor like this(which displayed in Notepad2.exe text editor)
  Code:
NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL
NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL
NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL
NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL
NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL

Then i want to delete the serviio.log directly, but it shows:
  Code:
 serviio.log is used in ServiioServices.exe

I use stop/restart Serviio Services instead of Serviio Server and do the four steps above, successful.
It was a problem for me at first, then I found the solution, share it with all friends.
Jeff
<<

atc98092

User avatar

DLNA master

Posts: 3449

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Thu Oct 10, 2019 1:11 pm

Re: Tips: Clean up serviio.log to the size of zero KiB

There's no problem with simply deleting the log file and letting Serviio create a new one. But as you mention the only way you can do that is by stopping the Serviio service, as it keeps the file open as long as it's running.
Dan

Panasonic ST30 Plasma, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku 4, Ultra and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 8 gig ram, Windows 10 Pro, 18 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

DenyAll

DLNA master

Posts: 2249

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Sat Oct 12, 2019 10:47 am

Re: Tips: Clean up serviio.log to the size of zero KiB

Maybe I'm mssing something, but I can simply open the log file in Notepad++, delete all the content and save it again - all while Serviio is running.

Sometimes you may have to try the save more than once if Serviio is also accessing the file at the same time, but this works for me. You end up with a zero byte file (for a liitle while at least, until Serviio writes something)... dont know why you're getting nulls???
DenyAll
Panasonic Viera FX800A | Panasonic Viera CS610A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.10.1 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

atc98092

User avatar

DLNA master

Posts: 3449

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Sat Oct 12, 2019 3:45 pm

Re: Tips: Clean up serviio.log to the size of zero KiB

I hadn't tried that in quite a while, but you're right. I don't know if it was a change to Serviio, or to Windows, but you can delete everything within the log and save the empty file without stopping the service. I know that didn't work in the past, but it's been a long time since I tried it. But you can't just delete the file while the service is running.

But I did notice that it only worked with Notepad++. Using the regular Windows Notepad I got the unable to save message. Maybe it's just something magical about Notepad++. :lol:
Dan

Panasonic ST30 Plasma, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku 4, Ultra and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 8 gig ram, Windows 10 Pro, 18 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

colemanlee

User avatar

Streaming enthusiast

Posts: 23

Joined: Mon Oct 07, 2019 10:57 am

Post Mon Oct 14, 2019 3:43 pm

Re: Tips: Clean up serviio.log to the size of zero KiB

atc98092 wrote:I hadn't tried that in quite a while, but you're right. I don't know if it was a change to Serviio, or to Windows, but you can delete everything within the log and save the empty file without stopping the service. I know that didn't work in the past, but it's been a long time since I tried it. But you can't just delete the file while the service is running.

But I did notice that it only worked with Notepad++. Using the regular Windows Notepad I got the unable to save message. Maybe it's just something magical about Notepad++. :lol:

Hi,
I tried again today, I found I can delete everything within the log and save the empty file without stopping the service. I use Notepad2.
Jeff

Return to General discussion

Who is online

Users browsing this forum: No registered users and 7 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.