Skip to content

Cannot open symlinks consistentlyΒ #244

@hprem

Description

@hprem

Hi,
Firstly, thanks for the useful tailspin utility.

Though, I am facing issues with symlinked files, as I cannot use it to access them consistently.
For example, on trying to access the file /tmp/hprem/TB1/grant.log (which is symlinked to /tmp/hprem/TB1_2025-11-13_04-10-00/grant.log), it fails with the error Could not add file to linemux. No such file or directory (os error 2), when trying from my home dir (/home/hprem) and /tmp directory

However, it works fine when I try from /tmp/hprem directory. So it seems likely to be an issue with resolving the symlinks

hprem@debian12:~$ tspin -V
tspin 5.5.0
hprem@debian12:~$ tspin /tmp/hprem/TB1/grant.log
Error:   Γ— Could not add file to linemux
  ╰─▢ No such file or directory (os error 2)

hprem@debian12:~$ ls -l /tmp/hprem/TB1/grant.log
-rw-r--r-- 1 hprem hprem 33132 Nov 13 04:12 /tmp/hprem/TB1/grant.log
hprem@debian12:~$
hprem@debian12:~$ ls -l /tmp/hprem/TB1
lrwxrwxrwx 1 hprem hprem 23 Nov 13 04:10 /tmp/hprem/TB1 -> TB1_2025-11-13_04-10-00
hprem@debian12:~$
hprem@debian12:~$ readlink -f /tmp/hprem/TB1/grant.log
/tmp/hprem/TB1_2025-11-13_04-10-00/grant.log
hprem@debian12:~$ 
hprem@debian12:~$ cd /tmp
hprem@debian12:/tmp$ tspin /tmp/hprem/TB1/grant.log
Error:   Γ— Could not add file to linemux
  ╰─▢ No such file or directory (os error 2)

hprem@debian12:/tmp$ cd hprem/
hprem@debian12:/tmp/hprem$ tspin /tmp/hprem/TB1/grant.log    <===<<< Works fine
hprem@debian12:/tmp/hprem$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions