Excellent. Thanks for this, Matt.
Mike
On Apr 21, 2014, at 8:55 AM, Matt Domsch <m...@domsch.com> wrote:
> Fix pushed to upstream master. The core of the fix is to see remote_list is
> not None, and is an empty list, and to return early then.
>
> Thanks,
> Matt
>
>
> On Mon, Apr 21, 2014 at 7:27 AM, Matt Domsch <m...@domsch.com> wrote:
> I ran into this myself now, need to see how to fix it. It happens when there
> is nothing on the remote_list to delete, yet we call
> subcmd_batch_del(remote_list = remote_list) (e.g. remote_list = []) which
> then fails the one and only one of test. Should be straightforward to fix.
>
> Thanks for the report.
> -Matt
>
>
>
> On Fri, Apr 11, 2014 at 7:19 AM, Matt Domsch <m...@domsch.com> wrote:
> 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 <wag...@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-b...@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-b...@lists.sourceforge.net
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>
>
> --
> wag...@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
>
>
>
>
> ------------------------------------------------------------------------------
> Start Your Social Network Today - Download eXo Platform
> Build your Enterprise Intranet with eXo Platform Software
> Java Based Open Source Intranet - Social, Extensible, Cloud Ready
> Get Started Now And Turn Your Intranet Into A Collaboration Platform
> http://p.sf.net/sfu/ExoPlatform_______________________________________________
> S3tools-general mailing list
> S3tools-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/s3tools-general
--
wag...@wagnerone.com
"The only reason some people get lost in thought is because it's unfamiliar
territory."-Paul Fix
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
S3tools-general mailing list
S3tools-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/s3tools-general