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

AssertionError when running on aws #58

Closed
xieduo7 opened this issue Jan 31, 2019 · 2 comments
Closed

AssertionError when running on aws #58

xieduo7 opened this issue Jan 31, 2019 · 2 comments

Comments

@xieduo7
Copy link

xieduo7 commented Jan 31, 2019

Run the command:

nohup cactus --stats --nodeTypes c4.8xlarge:0.9,r3.8xlarge --minNodes 0,0 --maxNodes 70,4 --provisioner aws --batchSystem mesos --metrics aws:us-east-1:primate-jobstore seqFile.txt s3://primate-output/cactus.hal > cactus.log 2>&1

And then cactus report error:

nohup: ignoring input
/usr/local/lib/python2.7/dist-packages/cryptography/hazmat/primitives/constant_time.py:26: CryptographyDeprecationWarning: Support for your Python version is deprecated. The next version of cryptography will remove support. Please upgrade to a 2.7.x release that supports hmac.compare_digest as soon as possible.
  utils.DeprecatedIn23,
WARNING:toil.jobStores.aws.jobStore:Exception during panic
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/toil/jobStores/aws/jobStore.py", line 135, in initialize
    self.destroy()
  File "/usr/local/lib/python2.7/dist-packages/toil/jobStores/aws/jobStore.py", line 1255, in destroy
    self._bind(create=False, block=False)
  File "/usr/local/lib/python2.7/dist-packages/toil/jobStores/aws/jobStore.py", line 167, in _bind
    versioning=True)
  File "/usr/local/lib/python2.7/dist-packages/toil/jobStores/aws/jobStore.py", line 736, in _bindBucket
    assert False, 'Cannot modify versioning on existing bucket'
AssertionError: Cannot modify versioning on existing bucket
Traceback (most recent call last):
  File "/venv/bin/cactus", line 10, in <module>
    sys.exit(main())
  File "/venv/local/lib/python2.7/site-packages/cactus/progressive/cactus_progressive.py", line 454, in main
    with Toil(options) as toil:
  File "/usr/local/lib/python2.7/dist-packages/toil/common.py", line 712, in __enter__
    jobStore.initialize(config)
  File "/usr/local/lib/python2.7/dist-packages/toil/jobStores/aws/jobStore.py", line 135, in initialize
    self.destroy()
  File "/usr/local/lib/python2.7/dist-packages/toil/lib/exceptions.py", line 55, in __exit__
    raise_(exc_type, exc_value, traceback)
  File "/usr/local/lib/python2.7/dist-packages/toil/jobStores/aws/jobStore.py", line 132, in initialize
    self._bind(create=True)
  File "/usr/local/lib/python2.7/dist-packages/toil/jobStores/aws/jobStore.py", line 167, in _bind
    versioning=True)
  File "/usr/local/lib/python2.7/dist-packages/toil/jobStores/aws/jobStore.py", line 736, in _bindBucket
    assert False, 'Cannot modify versioning on existing bucket'
AssertionError: Cannot modify versioning on existing bucket

I have set the versioning of the bucket(s3://primate-output/) and it still doesn't work.

@xieduo7
Copy link
Author

xieduo7 commented Jan 31, 2019

I have sloved this problem.
This is because I had creat the primate-jobstore and primate-output directorys in advance. I delete these two directorys in s3, run the command again and then it works well.

@joelarmstrong
Copy link
Collaborator

Ah, interesting, I didn't know that toil required the destination buckets to have versioning. If someone runs into this problem in the future and can't delete the destination bucket, you can likely turn on versioning for that bucket (in the web UI), then turn it back off after you're done.

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

No branches or pull requests

2 participants