Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking (ctrl+c) a S3 sync fails to clean up #650

Closed
kaihendry opened this issue Feb 14, 2014 · 2 comments · Fixed by #673
Closed

Breaking (ctrl+c) a S3 sync fails to clean up #650

kaihendry opened this issue Feb 14, 2014 · 2 comments · Fixed by #673

Comments

@kaihendry
Copy link

[root@sgd test]# aws s3 sync s3://resumetest .
^CCleaning up. Please wait...







2^CTraceback (most recent call last):
  File "/usr/bin/aws", line 23, in 
    sys.exit(main())
  File "/usr/bin/aws", line 19, in main
    return awscli.clidriver.main()
  File "/usr/lib/python3.3/site-packages/awscli/clidriver.py", line 46, in main
    return driver.main()
  File "/usr/lib/python3.3/site-packages/awscli/clidriver.py", line 188, in main
    return command_table[parsed_args.command](remaining, parsed_args)
  File "/usr/lib/python3.3/site-packages/awscli/customizations/s3/s3.py", line 151, in __call__
    remaining, parsed_globals)
  File "/usr/lib/python3.3/site-packages/awscli/customizations/s3/s3.py", line 262, in __call__
    return self._do_command(parsed_args, parsed_globals)
  File "/usr/lib/python3.3/site-packages/awscli/customizations/s3/s3.py", line 274, in _do_command
    return cmd.run()
  File "/usr/lib/python3.3/site-packages/awscli/customizations/s3/s3.py", line 613, in run
    file_list.append(components[i].call(files[i]))
  File "/usr/lib/python3.3/site-packages/awscli/customizations/s3/s3handler.py", line 95, in call
    self._shutdown()
  File "/usr/lib/python3.3/site-packages/awscli/customizations/s3/s3handler.py", line 102, in _shutdown
    self.executor.join()
  File "/usr/lib/python3.3/site-packages/awscli/customizations/s3/executor.py", line 93, in join
    thread.join()
  File "/usr/lib/python3.3/threading.py", line 1028, in join
    self._block.wait()
  File "/usr/lib/python3.3/threading.py", line 284, in wait
    waiter.acquire()
KeyboardInterrupt
[root@sgd test]#

More detailed log is here: http://ix.io/auN

@daveadams
Copy link

I get exactly the same result, generally after running into the problem from Issue 657: #657

@laupow
Copy link

laupow commented Feb 21, 2014

I concur this also happens to me when doing a sync described in #648

The bucket I'm trying to sync is large (100k+ items) and while I don't see the traceback the process seems to "clean up" forever when I break

thoward-godaddy pushed a commit to thoward-godaddy/aws-cli that referenced this issue Feb 12, 2022
…#650)

This adds two new generate-event template variables, dns_suffix (e.g. us-east-1.amazonaws.com) and partition (e.g. aws-cn), and happens to fix a bug where the AWS partition was being used in place of the Kinesis partition key in two templates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants