Failure: 'ascii' codec can't encode character u'\xe8' in position 165: ordinal not in range(128)

957 views
Skip to first unread message

Jean-Paul Leclère

unread,
Jun 15, 2012, 5:23:58 AM6/15/12
to gsutil-...@googlegroups.com
I get an error message when trying to store acl in a local file by redirecting the getacl command like :

gsutil getacl gs://bucket/object > acl.txt

Error :
Failure: 'ascii' codec can't encode character u'\xe8' in position 165: ordinal not in range(128).

The acl contains unicode characters like "è"

Configuration :
Ubuntu 12.04 
gsutil version 3.9 
checksum a084fc249621703fecbbc6b6157c01ac (OK) 
boto version 2.4.1 
python version 2.7.3 (default, Apr 20 2012, 22:44:07) 

Mike Schwartz (Google Storage Team)

unread,
Jun 15, 2012, 1:35:38 PM6/15/12
to gsutil-...@googlegroups.com
Hi,

I've reproduced the problem you saw, and tracked it to a problem in the character encoding used for ACLs by the boto library. I have a solution but want to discuss with the boto community before making the change.

Mike

Mike Schwartz (Google Storage Team)

unread,
Jun 19, 2012, 11:11:24 AM6/19/12
to gsutil-...@googlegroups.com
Hi,

This problem is fixed in gsutil version 3.10 (released today). There are several other bug fixes as well (release notes here).

Mike

nt...@gimasys.com

unread,
Nov 20, 2012, 2:25:58 AM11/20/12
to gsutil-...@googlegroups.com, gs-...@google.com
I used gsutil version 3.18, but the error occur too, how to resolve it.

Google Storage Team

unread,
Nov 26, 2012, 1:12:14 PM11/26/12
to nt...@gimasys.com, gsutil-...@googlegroups.com
Hi,

Can you please send the output of running the command using gsutil -D. For
example:

gsutil -D getacl gs://yourbucket/yourobject

When you do, please strip out the Authorization: header.

If you'd prefer not to post this on the public list, you can send it to
gs-...@google.com.

Thanks,

Mike


Original Message Follows:
------------------------
From: nt...@gimasys.com
Subject: Re: Failure: 'ascii' codec can't encode character u'\xe8' in
position 165: ordinal not in range(128)
Date: Mon, 19 Nov 2012 23:25:58 -0800 (PST)

> I used gsutil version 3.18, but the error occur too, how to resolve it.
>
> On Tuesday, June 19, 2012 10:11:24 PM UTC+7, Mike Schwartz (Google
Storage
> Team) wrote:
> >
> > Hi,
> >
> > This problem is fixed in gsutil version 3.10 (released today). There
are
> > several other bug fixes as well (release notes
here<http://pub.commondatastorage.googleapis.com/ReleaseNotes_3.10.txt>
> > ).
> >
> > Mike
> >
> >
> > On Fri, Jun 15, 2012 at 10:35 AM, Mike Schwartz (Google Storage Team)
<

Nguyễn Trí Lưu

unread,
Nov 30, 2012, 1:02:15 AM11/30/12
to Google Storage Team, gsutil-...@googlegroups.com
Dear Google Storage team,

I think this issue by my file name is too long ( larger than 1024 bytes).
with gsutil tool, we cannot synchronized folders exist on my server and cloud storage, Do you know any other tools support synchronized. We backup 70 GB data daily.
--

Thanks
Nguyễn Trí Lưu
System Manager
Mobile: 84 985714401
Home:  84 43 3666570
Office:  84 43 6282267

Mike Schwartz (Google Storage Team)

unread,
Nov 30, 2012, 12:01:04 PM11/30/12
to gsutil-...@googlegroups.com
Hi,

Yes, object names can't be longer than 1024 bytes when UTF-8 encoded.

gsutil does not currently support synchronization. There are other tools available that will let you synchronize between the local disk and the cloud - for example, I have used CloudBerry Pro for doing that.

Mike
Reply all
Reply to author
Forward
0 new messages