leichongxiang / sshpt

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

Traceback when using a copy-script #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use the "copy and run this script" functions in sshpt.
2. Have more than 200 or so hosts
3. Watch for the traceback

What is the expected output? What do you see instead?
The expected behavior is to complete all the hosts in the host list. 

What version of the product are you using? On what operating system? I'm on 
freebsd 9.1 using sshpt version 1.2.0

Please provide any additional information below.
Here is the traceback:

Exception in thread OutputThread:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "./sshpt.py", line 123, in run
    self.writeOut(queueObj)
  File "./sshpt.py", line 106, in writeOut
    elif len(queueObj['command_output']) > 1: # Only prepend 'index: ' if we were passed more than one command
TypeError: object of type 'SSHException' has no len()

Original issue reported on code.google.com by swiftgri...@gmail.com on 15 Jul 2013 at 8:33

GoogleCodeExporter commented 9 years ago
I'm having a similar issue:

I'm running it on 700+ hosts.
I don't use any copy, I just run multiple commands.

This is the error I'm getting:

Exception in thread OutputThread:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "./sshpt.py", line 125, in run
    self.writeOut(queueObj)
  File "./sshpt.py", line 106, in writeOut
    elif len(queueObj['command_output']) > 1: # Only prepend 'index: ' if we were passed more than one command
TypeError: object of type 'error' has no len()

Original comment by era...@gmail.com on 30 Sep 2013 at 3:12

GoogleCodeExporter commented 9 years ago
I have the same issue:

Exception in thread OutputThread:
Traceback (most recent call last):
  File "/usr/lib64/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/site-packages/sshpt-1.2.0-py2.6.egg/EGG-INFO/scripts/sshpt.py", line 123, in run
    self.writeOut(queueObj)
  File "/usr/lib/python2.6/site-packages/sshpt-1.2.0-py2.6.egg/EGG-INFO/scripts/sshpt.py", line 106, in writeOut
    elif len(queueObj['command_output']) > 1: # Only prepend 'index: ' if we were passed more than one command
TypeError: object of type 'SSHException' has no len()

Original comment by Walterva...@gmail.com on 3 Oct 2013 at 12:42

GoogleCodeExporter commented 9 years ago
I have exactly same issue , but running only on 20+ hosts.

Original comment by dominiqu...@gmail.com on 31 Mar 2014 at 7:47

GoogleCodeExporter commented 9 years ago
sometimes even with one server. especially when the destination was anything 
below rhel6

One things I observed is NO errror when the server list contained only RHEL6.2 
and host count I used was around 250.

Original comment by mailtoma...@gmail.com on 29 Jul 2014 at 9:19