Skip to content

Instantly share code, notes, and snippets.

@kurai021
Created January 6, 2017 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kurai021/8423831de0807999c2b410115f3d2bf7 to your computer and use it in GitHub Desktop.
Save kurai021/8423831de0807999c2b410115f3d2bf7 to your computer and use it in GitHub Desktop.
error
Traceback (most recent call last):
File "/home/richard/.local/lib/python3.5/site-packages/cactus/utils/parallel.py", line 20, in wrapper
return f(*args, **kwargs)
File "/home/richard/.local/lib/python3.5/site-packages/cactus/deployment/engine.py", line 38, in <lambda>
totalFiles = mapper(lambda p: p.upload(), self.files())
File "/home/richard/.local/lib/python3.5/site-packages/cactus/deployment/file.py", line 126, in upload
remote_changed = self.remote_changed()
File "/home/richard/.local/lib/python3.5/site-packages/cactus/utils/network.py", line 22, in f_retry
return f(*args, **kwargs)
File "/home/richard/.local/lib/python3.5/site-packages/cactus/deployment/s3/file.py", line 35, in remote_changed
remote_headers = dict((k, v.strip('"')) for k, v in getURLHeaders(self.remote_url()).items())
File "/home/richard/.local/lib/python3.5/site-packages/cactus/utils/url.py", line 17, in getURLHeaders
response = conn.getresponse()
File "/usr/lib/python3.5/http/client.py", line 1197, in getresponse
response.begin()
File "/usr/lib/python3.5/http/client.py", line 297, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.5/http/client.py", line 279, in _read_status
raise BadStatusLine(line)
http.client.BadStatusLine: Date: Tue, 03 Jan 2017 02:10:07 GMT
Traceback (most recent call last):
File "/home/richard/.local/lib/python3.5/site-packages/cactus/utils/parallel.py", line 20, in wrapper
return f(*args, **kwargs)
File "/home/richard/.local/lib/python3.5/site-packages/cactus/deployment/engine.py", line 38, in <lambda>
totalFiles = mapper(lambda p: p.upload(), self.files())
File "/home/richard/.local/lib/python3.5/site-packages/cactus/deployment/file.py", line 126, in upload
remote_changed = self.remote_changed()
File "/home/richard/.local/lib/python3.5/site-packages/cactus/utils/network.py", line 22, in f_retry
return f(*args, **kwargs)
File "/home/richard/.local/lib/python3.5/site-packages/cactus/deployment/s3/file.py", line 35, in remote_changed
remote_headers = dict((k, v.strip('"')) for k, v in getURLHeaders(self.remote_url()).items())
File "/home/richard/.local/lib/python3.5/site-packages/cactus/utils/url.py", line 17, in getURLHeaders
response = conn.getresponse()
File "/usr/lib/python3.5/http/client.py", line 1197, in getresponse
response.begin()
File "/usr/lib/python3.5/http/client.py", line 297, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.5/http/client.py", line 279, in _read_status
raise BadStatusLine(line)
http.client.BadStatusLine: Date: Tue, 03 Jan 2017 02:10:07 GMT
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/richard/.local/bin/cactus", line 11, in <module>
sys.exit(cli_entrypoint())
File "/home/richard/.local/lib/python3.5/site-packages/cactus/cli.py", line 159, in cli_entrypoint
main(sys.argv[1:])
File "/home/richard/.local/lib/python3.5/site-packages/cactus/cli.py", line 155, in main
ns.target(**kwargs)
File "/home/richard/.local/lib/python3.5/site-packages/cactus/cli.py", line 55, in deploy
site.upload()
File "/home/richard/.local/lib/python3.5/site-packages/cactus/site.py", line 477, in upload
totalFiles = self.deployment_engine.deploy()
File "/home/richard/.local/lib/python3.5/site-packages/cactus/deployment/engine.py", line 38, in deploy
totalFiles = mapper(lambda p: p.upload(), self.files())
File "/home/richard/.local/lib/python3.5/site-packages/cactus/utils/parallel.py", line 27, in multiMap
return pool.map(wrapper, items)
File "/usr/lib/python3.5/multiprocessing/pool.py", line 260, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/usr/lib/python3.5/multiprocessing/pool.py", line 608, in get
raise self._value
File "/usr/lib/python3.5/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.5/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "/home/richard/.local/lib/python3.5/site-packages/cactus/utils/parallel.py", line 24, in wrapper
pool.join()
File "/usr/lib/python3.5/multiprocessing/pool.py", line 509, in join
assert self._state in (CLOSE, TERMINATE)
AssertionError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment