cp BUCKET/OBJECT to a different BUCKET
cp BUCKET/OBJECT to a different BUCKET/

I get the following error each time:
    


Very interesting, I couldn't reproduce it though. Can you run the
command again with --debug and send me the output?
  
Here goes..

<output>

s3cmd -d mv s3://kelb_std/combinedaddress.ldif s3://kelb-std/
DEBUG: ConfigParser: Reading file '/home/kelby/.s3cfg'
DEBUG: ConfigParser: access_key->0W...17_chars...2
DEBUG: ConfigParser: acl_public->False
DEBUG: ConfigParser: bucket_location->US
DEBUG: ConfigParser: debug_syncmatch->False
DEBUG: ConfigParser: default_mime_type->binary/octet-stream
DEBUG: ConfigParser: delete_removed->False
DEBUG: ConfigParser: dry_run->False
DEBUG: ConfigParser: encrypt->False
DEBUG: ConfigParser: force->False
DEBUG: ConfigParser: gpg_command->/usr/bin/gpg
DEBUG: ConfigParser: gpg_decrypt->%(gpg_command)s -d --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s
DEBUG: ConfigParser: gpg_encrypt->%(gpg_command)s -c --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s
DEBUG: ConfigParser: gpg_passphrase->...-3_chars...
DEBUG: ConfigParser: guess_mime_type->False
DEBUG: ConfigParser: host_base->s3.amazonaws.com
DEBUG: ConfigParser: host_bucket->%(bucket)s.s3.amazonaws.com
DEBUG: ConfigParser: human_readable_sizes->False
DEBUG: ConfigParser: preserve_attrs->True
DEBUG: ConfigParser: proxy_host->202.37.97.11
DEBUG: ConfigParser: proxy_port->3128
DEBUG: ConfigParser: recv_chunk->4096
DEBUG: ConfigParser: secret_key->pz...37_chars...W
DEBUG: ConfigParser: send_chunk->4096
DEBUG: ConfigParser: simpledb_host->sdb.amazonaws.com
DEBUG: ConfigParser: use_https->False
DEBUG: ConfigParser: verbosity->WARNING
DEBUG: Updating Config.Config encoding -> UTF-8
DEBUG: Updating Config.Config verbosity -> 10
DEBUG: Unicodising 'mv' using UTF-8
DEBUG: Unicodising 's3://kelb_std/combinedaddress.ldif' using UTF-8
DEBUG: Unicodising 's3://kelb-std/' using UTF-8
DEBUG: Command: mv
DEBUG: String 'combinedaddress.ldif' encoded to 'combinedaddress.ldif'
DEBUG: String 'combinedaddress.ldif' encoded to 'combinedaddress.ldif'
DEBUG: SignHeaders: 'PUT\n\n\n\nx-amz-copy-source:/kelb_std/combinedaddress.ldif\nx-amz-date:Wed, 11 Feb 2009 20:43:55 +0000\n/kelb-std/combinedaddress.ldif'
DEBUG: CreateRequest: resource[uri]=/combinedaddress.ldif
DEBUG: Processing request, please wait...
DEBUG: get_hostname(kelb-std): kelb-std.s3.amazonaws.com
DEBUG: format_uri(): http://kelb-std.s3.amazonaws.com/combinedaddress.ldif
DEBUG: Response: {'status': 411, 'headers': {'content-length': '1456', 'proxy-connection': 'close', 'x-cache': 'MISS from webmail.tait.co.nz', 'x-squid-error': 'ERR_INVALID_REQ 0', 'expires': 'Wed, 11 Feb 2009 20:43:55 GMT', 'server': 'squid/2.5.STABLE3', 'date': 'Wed, 11 Feb 2009 20:43:55 GMT', 'content-type': 'text/html', 'mime-version': '1.0'}, 'reason': 'Length Required', 'data': '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR noshade size="1px">\n<P>\nWhile trying to process the request:\n<PRE>\nPUT /combinedaddress.ldif HTTP/1.1\nHost: kelb-std.s3.amazonaws.com\r\nAccept-Encoding: identity\r\nAuthorization: AWS 0WE4A15FH8BGABQ82Z82:Tu8M8Pi30Q5OcTFjRaMuEvoLYgc=\r\nx-amz-date: Wed, 11 Feb 2009 20:43:55 +0000\r\nx-amz-copy-source: /kelb_std/combinedaddress.ldif\r\n\n</PRE>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nInvalid Request\n</STRONG>\n</UL>\n\n<P>\nSome aspect of the HTTP Request is invalid.  Possible problems:\n<UL>\n<LI>Missing or unknown request method\n<LI>Missing URL\n<LI>Missing HTTP Identifier (HTTP/1.0)\n<LI>Request is too large\n<LI>Content-Length missing for POST or PUT requests\n<LI>Illegal character in hostname; underscores are not allowed\n</UL>\n<P>Your cache administrator is <A HREF="" class="moz-txt-link-rfc2396E" href="mailto:helpd...@tait.co.nz">"mailto:helpd...@tait.co.nz">helpd...@tait.co.nz</A>. \n\n<BR clear="all">\n<HR noshade size="1px">\n<ADDRESS>\nGenerated Wed, 11 Feb 2009 20:43:55 GMT by webmail.tait.co.nz (squid/2.5.STABLE3)\n</ADDRESS>\n</BODY></HTML>\n'}
DEBUG: S3Error: 411 (Length Required)
DEBUG: HttpHeader: content-length: 1456
DEBUG: HttpHeader: proxy-connection: close
DEBUG: HttpHeader: x-cache: MISS from webmail.tait.co.nz
DEBUG: HttpHeader: x-squid-error: ERR_INVALID_REQ 0
DEBUG: HttpHeader: expires: Wed, 11 Feb 2009 20:43:55 GMT
DEBUG: HttpHeader: server: squid/2.5.STABLE3
DEBUG: HttpHeader: date: Wed, 11 Feb 2009 20:43:55 GMT
DEBUG: HttpHeader: content-type: text/html
DEBUG: HttpHeader: mime-version: 1.0

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    An unexpected error has occurred.
  Please report the following lines to:
   s3tools-b...@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Problem: ExpatError: mismatched tag: line 5, column 2
S3cmd:   0.9.9-rc3
Python:  2.5.2 (r252:60911, Jul 31 2008, 17:31:22)  [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]

Traceback (most recent call last):
  File "/usr/bin/s3cmd", line 1541, in <module>
    main()
  File "/usr/bin/s3cmd", line 1518, in main
    cmd_func(args)
  File "/usr/bin/s3cmd", line 523, in cmd_mv
    subcmd_cp_mv(args, s3.object_move, "Object %(src)s moved to %(dst)s")
  File "/usr/bin/s3cmd", line 512, in subcmd_cp_mv
    response = process_fce(src_uri, dst_uri)
  File "/usr/lib/python2.5/site-packages/S3/S3.py", line 237, in object_move
    response_copy = self.object_copy(src_uri, dst_uri, extra_headers)
  File "/usr/lib/python2.5/site-packages/S3/S3.py", line 233, in object_copy
    response = self.send_request(request)
  File "/usr/lib/python2.5/site-packages/S3/S3.py", line 399, in send_request
    raise S3Error(response)
  File "/usr/lib/python2.5/site-packages/S3/Exceptions.py", line 44, in __init__
    tree = getTreeFromXml(response["data"])
  File "/usr/lib/python2.5/site-packages/S3/Utils.py", line 57, in getTreeFromXml
    tree = ET.fromstring(xml)
  File "/usr/lib/python2.5/xml/etree/ElementTree.py", line 963, in XML
    parser.feed(text)
  File "/usr/lib/python2.5/xml/etree/ElementTree.py", line 1245, in feed
    self._parser.Parse(data, 0)
ExpatError: mismatched tag: line 5, column 2

</output>

My guess is its something to do with the http proxy. I'll test it at home (without a proxy) and see how I get on.


Kelby


This email, including any attachments, is only for the intended addressee. It is subject to copyright, confidential and may be the subject of legal or other privilege, none of which is waived or lost by reason of this transmission. If the receiver is not the intended addressee, please accept our apologies, notify us by return, delete all copies and perform no other act on the email. Unfortunately, we cannot warrant that the email has not been altered or corrupted during transmission.

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
S3tools-general mailing list
S3tools-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/s3tools-general

Reply via email to