Public bug reported:

Example command:

parallel-rsync -z -r -O 'IdentityFile=/home/james/Projects/ssh/control.pem' -l 
control -H ec2-46-51-187-11.eu-west-1.compute.amazonaws.com -H 
ec2-176-34-215-214.eu-west-1.compute.amazonaws.com '/home/james/test.txt' 
'/tmp/'
Traceback (most recent call last):
  File "/usr/bin/parallel-rsync", line 125, in <module>
    do_prsync(hosts, local, remote, opts)
  File "/usr/bin/parallel-rsync", line 78, in do_prsync
    cmd = ['rsync', '-e', ' '.join(ssh)]
TypeError: sequence item 2: expected string, list found

1) This is a bug in the parallel-rsync command at /usr/bin, in the pssh package 
(apt-cache policy pssh):
pssh:
  Installed: 2.2.2-1
  Candidate: 2.2.2-1
  Version table:
 *** 2.2.2-1 0
        500 http://gb.archive.ubuntu.com/ubuntu/ precise/universe i386 Packages
        100 /var/lib/dpkg/status

2) On Ubuntu 12.04 (lsb_release -rd):
Description:    Ubuntu 12.04.1 LTS
Release:        12.04

3) I expect a return value of 0, and for the file to have been uploaded
to all the remote servers by rsync

4) I got the error shown above.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: pssh 2.2.2-1
ProcVersionSignature: Ubuntu 3.2.0-29.46-generic-pae 3.2.24
Uname: Linux 3.2.0-29-generic-pae i686
ApportVersion: 2.0.1-0ubuntu12
Architecture: i386
Date: Wed Oct 31 22:15:29 2012
InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release i386 
(20120817.3)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_GB:en
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: pssh
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: pssh (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 precise

** Patch added: "sudo patch /usr/bin/parallel-rsync prsync.patch"
   
https://bugs.launchpad.net/bugs/1073740/+attachment/3420110/+files/prsync.patch

** Summary changed:

- parallel-rsync crashes with the following output, every time: Traceback (most 
recent call last):   File "/usr/bin/parallel-rsync", line 125, in <module>     
do_prsync(hosts, local, remote, opts)   File "/usr/bin/parallel-rsync", line 
78, in do_prsync     cmd = ['rsync', '-e', ' '.join(ssh)] TypeError: sequence 
item 2: expected string, list found
+ parallel-rsync crashes every time due to parsing a list as a string

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1073740

Title:
  parallel-rsync crashes every time due to parsing a list as a string

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pssh/+bug/1073740/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to