High-performance open-source orchestration utility that utilizes EBS Direct APIs to efficiently clone, copy and migrate EBS snapshots to and from arbitrary File, Block or Object destinations.
Apache License 2.0
30
stars
2
forks
source link
deltadownload results in OSError: [Errno 9] Bad file descriptor #7
I have 2 snapshots from same parent, an initial and a diff
Original
Snapshot ID
[snap-01e5f2fee19e08fae]
Size
500 GiB
Progress
Available (100%)
Snapshot status
Completed
Owner
387198252553
Volume ID
[vol-0b4c2a2591f78c536]
Started
Wed Aug 31 2022 11:42:19 GMT-0500 (Central Daylight Time)
2nd snapshot
Snapshot ID
[snap-01b3747942520453a]
Size
500 GiB
Progress
Available (100%)
Snapshot status
Completed
Owner
387198252553
Volume ID
[vol-0b4c2a2591f78c536]
When I do a diff I get
C:\flexible-snapshot-proxy\src/main.py diff snap-01e5f2fee19e08fae snap-0095db1e0578136bc
Changes between snap-01e5f2fee19e08fae and snap-0095db1e0578136bc contain 8 chunks and 4194304 bytes, took 0.15 seconds.
however DeltaDownload throws an error:
PS C:\flexible-snapshot-proxy\src/main.py deltadownload snap-01e5f2fee19e08fae snap-01b3747942520453a \.\PhysicalDrive2
Changes between snap-01e5f2fee19e08fae and snap-01b3747942520453a contain 8 chunks and 4194304 bytes, took 0.16 seconds.
['\\.\PhysicalDrive2']
C:\flexible-snapshot-proxy\src/main.py : Traceback (most recent call last):
At line:1 char:1
+ CategoryInfo : NotSpecified: (Traceback (most recent call last)::String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
File "C:\flexible-snapshot-proxy\src\main.py", line 484, in <module>
deltadownload(snapshot_id_one=args.snapshot_one, snapshot_id_two=args.snapshot_two, file_path=args.file_path)
File "C:\flexible-snapshot-proxy\src\fsp.py", line 613, in deltadownload
parallel(
File "C:\Python310\lib\site-packages\joblib\parallel.py", line 1056, in __call__
self.retrieve()
File "C:\Python310\lib\site-packages\joblib\parallel.py", line 935, in retrieve
self._output.extend(job.get(timeout=self.timeout))
File "C:\Python310\lib\multiprocessing\pool.py", line 774, in get
raise self._value
File "C:\Python310\lib\multiprocessing\pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "C:\Python310\lib\site-packages\joblib\_parallel_backends.py", line 595, in __call__
return self.func(*args, **kwargs)
File "C:\Python310\lib\site-packages\joblib\parallel.py", line 262, in __call__
return [func(*args, **kwargs)
File "C:\Python310\lib\site-packages\joblib\parallel.py", line 262, in <listcomp>
return [func(*args, **kwargs)
File "C:\flexible-snapshot-proxy\src\fsp.py", line 388, in get_changed_blocks
parallel2(
File "C:\Python310\lib\site-packages\joblib\parallel.py", line 1056, in __call__
self.retrieve()
File "C:\Python310\lib\site-packages\joblib\parallel.py", line 935, in retrieve
self._output.extend(job.get(timeout=self.timeout))
File "C:\Python310\lib\multiprocessing\pool.py", line 774, in get
raise self._value
File "C:\Python310\lib\multiprocessing\pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "C:\Python310\lib\site-packages\joblib\_parallel_backends.py", line 595, in __call__
return self.func(*args, **kwargs)
File "C:\Python310\lib\site-packages\joblib\parallel.py", line 262, in __call__
return [func(*args, **kwargs)
File "C:\Python310\lib\site-packages\joblib\parallel.py", line 262, in <listcomp>
return [func(*args, **kwargs)
File "C:\flexible-snapshot-proxy\src\fsp.py", line 226, in get_changed_block
write_block_to_file(file, block, data)
File "C:\flexible-snapshot-proxy\src\fsp.py", line 177, in write_block_to_file
f.write(data)
OSError: [Errno 9] Bad file descriptor
I have 2 snapshots from same parent, an initial and a diff
Original Snapshot ID [snap-01e5f2fee19e08fae] Size 500 GiB Progress Available (100%) Snapshot status Completed Owner 387198252553 Volume ID [vol-0b4c2a2591f78c536] Started Wed Aug 31 2022 11:42:19 GMT-0500 (Central Daylight Time)
2nd snapshot Snapshot ID [snap-01b3747942520453a] Size 500 GiB Progress Available (100%) Snapshot status Completed Owner 387198252553 Volume ID [vol-0b4c2a2591f78c536]
When I do a diff I get C:\flexible-snapshot-proxy\src/main.py diff snap-01e5f2fee19e08fae snap-0095db1e0578136bc Changes between snap-01e5f2fee19e08fae and snap-0095db1e0578136bc contain 8 chunks and 4194304 bytes, took 0.15 seconds.
however DeltaDownload throws an error:
PS C:\flexible-snapshot-proxy\src/main.py deltadownload snap-01e5f2fee19e08fae snap-01b3747942520453a \.\PhysicalDrive2 Changes between snap-01e5f2fee19e08fae and snap-01b3747942520453a contain 8 chunks and 4194304 bytes, took 0.16 seconds. ['\\.\PhysicalDrive2'] C:\flexible-snapshot-proxy\src/main.py : Traceback (most recent call last): At line:1 char:1