otros-systems / otroslogviewer

Log viewer focused on developers work
Apache License 2.0
424 stars 86 forks source link

Tail via sftp with root user not working on non root files #607

Closed svennissel closed 2 years ago

svennissel commented 2 years ago

I have a file on a remote server witch owned not by root: -rw-r----- 1 tomcat8 tomcat8 8.0M Apr 19 20:40 olv.log I can open this file via sftp, but the tail modus does not works.

I found this in logfile: 20:43:43.672 [Thread-12] WARN p.o.l.l.basic.LoadingRunnable - Exception in tailing loop: File "sftp://server.com/root/olv.log" is not readable.

If the file is owned by root there is error.

The bug was found by @nuessgens

The reason is a bug in apache vfs: https://issues.apache.org/jira/browse/VFS-818

If we have a workaround for OtrosLogViewer this will be fine.