Dj-Garfield / logstalgia

Automatically exported from code.google.com/p/logstalgia
0 stars 0 forks source link

Main window hangs on SSH tail #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Running something similar to "ssh -t user@domain.com sudo tail -f  
/var/log/apache2/access.log | logstalgia --sync"
2. Password is entered for SSH, for SUDO
3. Main window launches when activity is found on the stream, however it it 
white and hangs (Windows "window is not responsive).

What is the expected output? What do you see instead?
Would expect live playback of log files on server, seeing window hang.

What version of the product are you using? On what operating system?
Windows 1.0.0

Please provide any additional information below.
I've also disabled sudo (and the -t option for ssh) to no avail. I can playback 
the same access log if I download it locally no probelm so I know it's not a 
video card issue.

If I ctrl+c out from the command line when the main window is hanging, I get a 
reply that the connection was closed (as expected). But unexpectedly then the 
main window no longer hangs and loads an empty dataset (paddle just sits there).

Original issue reported on code.google.com by mikekn...@gmail.com on 30 Jun 2010 at 9:50

GoogleCodeExporter commented 8 years ago
Just noticed at the bottom of the homepage:
"tailing remote logs is not currently recommended on the Windows version due to 
buffering issues."

I assume this is the issue you're referring to.

Original comment by mikekn...@gmail.com on 30 Jun 2010 at 9:58

GoogleCodeExporter commented 8 years ago
Ah yep.

I recently had a go fixing this. Try this beta link, let me know if it fixes it 
for you:
http://logstalgia.googlecode.com/files/logstalgia-1.0.1-beta3.win32.zip

Original comment by acaudw...@gmail.com on 30 Jun 2010 at 10:01

GoogleCodeExporter commented 8 years ago
Thanks for the quick reply! Yes your beta package solved my hanging problem 
though it was still a little finicky (to no fault of Logstalgia) to setup.

You have to make sure that the ssh user can run /usr/bin/tail without requiring 
a SUDO password (ie, add an exception to sudoers for your user).

Here is an example command line which I can confirm works with your beta 
package:
ssh user@domain.com sudo tail -f /var/log/apache2/access.log | logstalgia --sync

and inside my sudoers file:
user ALL = NOPASSWD: /usr/bin/tail

Thanks for your help! Awesome project.

Original comment by mikekn...@gmail.com on 30 Jun 2010 at 10:33

GoogleCodeExporter commented 8 years ago
Thanks.

Original comment by acaudw...@gmail.com on 30 Jun 2010 at 10:37