files not updating - windows share

Posted on Mar 27, 2025 at 11:38 AM
Log files do not update after initial load. As the logs are written no new entries appear in LogViewPlus. Sometimes the additional lines would be reloaded — but only after >2 minutes (approximate) if at all. This happens for files opened on a shared windows drive on another machine. The files are specified by a directory monitor.

I have a workaround. If I keep the log file open in parallel in the background in both VS Code and LogViewPlus, the LogViewPlus updates seem to be immediate. But this is an awkward solution. The VS Code workaround is not reliable.
Posted on Mar 27, 2025 at 8:04 PM
Thanks for reporting this issue.

I am not able to reproduce the issue, but I think the problem here is how the Windows file share is caching data.  LogViewPlus works by checking the file size in Windows.  If the file size is cached and not changed, LogViewPlus does not attempt to read the file.

The fact that VS code doesn't have the issue is interesting.  VS code isn't asking for file size, it is actually reading the file, and maybe this operation is forcing a cache refresh?  I would be happy to modify our next BETA if you would be able to test for us.  Again, we are not able to reproduce the issue.

Thanks again,

Toby

Posted on Mar 28, 2025 at 8:09 AM

LogViewPlus Support - 27 Mar 2025

Thanks for reporting this issue.

I am not able to reproduce the issue, but I think the problem here is how the Windows file share is caching data.  LogViewPlus works by checking the file size in Windows.  If the file size is cached and not changed, LogViewPlus does not attempt to read the file.

The fact that VS code doesn't have the issue is interesting.  VS code isn't asking for file size, it is actually reading the file, and maybe this operation is forcing a cache refresh?  I would be happy to modify our next BETA if you would be able to test for us.  Again, we are not able to reproduce the issue.

Thanks again,

Toby


Thank you for the quick answer. The issue may be hard to reproduce, because the files are hosted on a HyperV machine which is in turn hosted on VMWare ESXi.

The VS Code fix works partially. In general the behavior seems to be that changes are updated for a while after opening the file. And afterwards at some point they stop. With VS Code the time between updates and the time till the updates stop seem to be higher. But I have seen a case where both VCode and LogViewPlus had to be forced to refresh.

I would be happy to test. I could do some more in depth analysis with a fix candidate
Posted on Apr 11, 2025 at 6:46 AM
Hi,

I just wanted to let you know that we have now released LogViewPlus v3.1.21 as a BETA release.

This release attempts to address the network share / tail issue discussed above.  As mentioned, we do not have the ability to test for this particular issue, so we have had to make some assumptions.  If you do find time to verify the fix on your end, I would appreciate it.

Hope that helps!

Toby
Posted on Apr 11, 2025 at 11:05 AM
I will test and report back. Thank you.
Posted on Aug 4, 2025 at 11:05 AM
As per my testing the issue was not resolved. But the issue is no longer relevant. The project setup has been altered and the system in question no longer exists.
Posted on Aug 5, 2025 at 9:14 PM
Thanks for the update. 

Sorry to hear the fix did not help.  I will take another look at the change and see if there is anything we can do to improve the behaviour for the next release.  Unfortunately, without the ability to reproduce, this is a difficult one to fix.

Thanks again,

Toby

This topic is closed and cannot receive new replies.