Skip to content
Download

Troubleshooting

A program cannot write to its log while TKTail has it open

Section titled “A program cannot write to its log while TKTail has it open”

TKTail opens files with full sharing (read, write and delete), so normal log writers keep working and files can be rotated or deleted while they are open. Some writers, however, ask Windows for exclusive write access and fail while any program reads the file. Windows PowerShell 5.1 Add-Content is one example - it fails the same way with other viewers. Programs that open the file with sharing (most logging libraries, .NET FileStream with FileShare.ReadWrite) are not affected.

The status bar says how the file is followed: AUTO 30 s means TKTail checks the share every 30 seconds because nothing changed for a while - the next change it sees brings it back to every second. Some shares send no change notifications and some servers report a new size only after their write cache is flushed; lines then appear with that delay. If you need a fixed, short delay, choose Poll with a shorter interval in the Inspector (Monitoring > Refresh); each check is one small request to the server. See Files on network shares.

The file is in Event mode, and its folder does not deliver change notifications now (a share that dropped them, a folder that was removed). In Event mode TKTail does not check the file itself, so new lines appear only when the notifications work again - TKTail tries to restore them, at most once a minute, and then catches up. To have the file checked, choose Auto or Poll in the Inspector (Monitoring > Refresh).

The share holding the file cannot be reached. TKTail keeps what it has shown and tries again with growing pauses (up to a minute); nothing needs to be reopened when the share is back. The Inspector’s Monitoring > Connection row says how many tries failed.

Reveal Current File stops before the file’s folder

Section titled “Reveal Current File stops before the file’s folder”

The folder tree does not show hidden folders unless … > Show Hidden Items is on, so a path through AppData, for example, ends at the closest visible folder. The file list still shows the right folder and selects the file.

To stay fast, the file list shows at most 100,000 files of one folder. Type a filter (for example *.log): in very large folders the filter is applied while the folder is read, so matching files beyond that limit are found.

“Entry Point Not Found: ClosePseudoConsole” when starting TKTail

Section titled ““Entry Point Not Found: ClosePseudoConsole” when starting TKTail”

TKTail 1.0.1 and earlier stop with this message on Windows Server 2016 and Windows 10 before version 1809: they need the Windows pseudo console at start. Later versions start there; only the terminal needs Windows 10 version 1809 or Windows Server 2019, and the Terminal view says so on an older Windows. What else differs by Windows version: System requirements.

Text looks too small or too large after moving TKTail to another monitor

Section titled “Text looks too small or too large after moving TKTail to another monitor”

On Windows 10 version 1607 and Windows Server 2016, the log views, their tabs and the bottom panel keep the scale they started with when the display scale changes - another monitor, a changed scale, a Remote Desktop session at another scale. Restart TKTail (File > Exit, then start it again; the workspace comes back). Windows 10 version 1703 and later rescale everything at once (System requirements).

The Windows context menu says “(not available)”

Section titled “The Windows context menu says “(not available)””

Windows did not provide a menu for that item, or one of the programs that add items to it failed. TKTail keeps running; the rest of its own menu works.

Something else is wrong after changing settings

Section titled “Something else is wrong after changing settings”
  • Settings > Restore Defaults… resets the page you are on (see Settings).
  • Start once with --safe-mode to ignore the saved workspace, monitored files, alert rules, custom formats and folder formats (.tktail).
  • tktail settings list shows every setting with its value; Settings > Files & Storage (or tktail portable status) shows which data folder is used.
  • Settings live in settings.ini in the data folder (Where TKTail stores data). Rename the file to start with defaults; a line TKTail cannot read is listed in Problems.

View > Tool Views > Output lists what TKTail itself did and what went wrong - files that disappeared or were rotated, files that could not be opened, settings that could not be saved. The same entries are in logs\tktail.log in the data folder (Settings > Logging shows it and how much is kept); Open Log Folder in the Output panel opens that folder. For more detail, choose Debug in the Output view, or a lower level in Settings > Logging.

Please include what you did, what you expected and what happened, plus the output of tktail diagnostics (version, build, Windows version, settings state - without file paths or log contents unless you add --include-paths). The application log (tktail.log, see above) helps too; it contains no file paths unless log.includePaths is on.