From: Matt D. <ma...@do...> - 2015-04-17 17:27:16
|
I believe you have a mix of 1.0.0 and 1.5.2 code installed in your system somehow. /usr/bin/s3cmd line 1091 in v1.5.2 isn't that line. And the current 1.5.2 code doesn't have that line, it looks like: elif attr == 'md5': try: val = local_list.get_md5(src) except IOError: val = None else: try: val = getattr(local_list[src]['sr'], 'st_' + attr) except: val = None so there's no way what you are running can be correct. On Fri, Apr 17, 2015 at 11:42 AM, Joe Dalla <jo...@pb...> wrote: > Hello, > > I'm getting the following error when running our nightly backup via > crontab. Yesterday I was able to run the s3cmd --sync manually and they all > ran fine but > I get this error every night after it's run via crontab... I upgraded > from v. 1.0.0 to v1.5.2 this week. > > Thu Apr 16 17:00:01 PDT 2015... running backup > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > An unexpected error has occurred. > Please report the following lines to: > s3t...@li... > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > > Problem: AttributeError: 'posix.stat_result' object has no attribute > 'st_md5' > S3cmd: 1.5.2 > > Traceback (most recent call last): > File "/usr/bin/s3cmd", line 2006, in <module> > main() > File "/usr/bin/s3cmd", line 1950, in main > cmd_func(args) > File "/usr/bin/s3cmd", line 1211, in cmd_sync > return cmd_sync_local2remote(args) > File "/usr/bin/s3cmd", line 1177, in cmd_sync_local2remote > attr_header = _build_attr_header(src) > File "/usr/bin/s3cmd", line 1091, in _build_attr_header > val = getattr(st, 'st_' + attr) > AttributeError: 'posix.stat_result' object has no attribute 'st_md5' > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > An unexpected error has occurred. > Please report the above lines to: > s3t...@li... > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > > > > > ------------------------------------------------------------------------------ > BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT > Develop your own process in accordance with the BPMN 2 standard > Learn Process modeling best practices with Bonita BPM through live > exercises > http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- > event?utm_ > source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF > |