I can't see yet where this could be failing - all the calls to subcmd_batch_del() pass only one argument.  If you can reliably reproduce, please send me results with --debug enabled, privately.

Thanks,
Matt


On Thu, Apr 10, 2014 at 3:30 PM, WagnerOne <wagner@wagnerone.com> wrote:
Hi,

When attempting to s3cmd sync 2 buckets today, I encountered this "An unexpected error has occurred." output from s3cmd itself.

I am using the latest available s3cmd master branch code via a git clone (updated today).

I tried this several times within the 2 same buckets on different prefixes.

On some prefixes the sync did seem to work as expected and yield a good sync. This "An unexpected error has occurred." output was displayed nonetheless.

Other cases, s3cmd didn't sync anything and followed up with this same output.

Mike


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    An unexpected error has occurred.
  Please try reproducing the error using
  the latest s3cmd code from the git master
  branch found at:
    https://github.com/s3tools/s3cmd
  If the error persists, please report the
  following lines (removing any private
  info as necessary) to:
   s3tools-bugs@lists.sourceforge.net

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Invoked as: /usr/bin/s3cmd -c /home/ec2-user/.s3cfg sync --delete-removed --no-preserve --verbose --progress s3://mybucket01/error_pages/ s3://mybucket02/error_pages/
Problem: ValueError: One and only one of 'uri_str', 'bucket', 'remote_list' can be specified.
S3cmd:   1.5.0-beta1
python:   2.6.9 (unknown, Mar 28 2014, 00:06:37)
[GCC 4.8.2 20131212 (Red Hat 4.8.2-7)]
environment LANG=en_US.UTF-8

Traceback (most recent call last):
  File "/usr/bin/s3cmd", line 2422, in <module>
    main()
  File "/usr/bin/s3cmd", line 2344, in main
    cmd_func(args)
  File "/usr/bin/s3cmd", line 1418, in cmd_sync
    return cmd_sync_remote2remote(args)
  File "/usr/bin/s3cmd", line 895, in cmd_sync_remote2remote
    subcmd_batch_del(remote_list = dst_list)
  File "/usr/bin/s3cmd", line 544, in subcmd_batch_del
    raise ValueError("One and only one of 'uri_str', 'bucket', 'remote_list' can be specified.")
ValueError: One and only one of 'uri_str', 'bucket', 'remote_list' can be specified.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    An unexpected error has occurred.
  Please try reproducing the error using
  the latest s3cmd code from the git master
  branch found at:
    https://github.com/s3tools/s3cmd
  If the error persists, please report the
  above lines (removing any private
  info as necessary) to:
   s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


--
wagner@wagnerone.com
"It's nice to be important. It's more important to be nice."-Rob Zombie



------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
S3tools-general mailing list
S3tools-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/s3tools-general