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

deltadownload results in OSError: [Errno 9] Bad file descriptor #7

Open
rducic opened this issue Aug 31, 2022 · 0 comments
Open

deltadownload results in OSError: [Errno 9] Bad file descriptor #7

rducic opened this issue Aug 31, 2022 · 0 comments
Labels
question Further information is requested

Comments

@rducic
Copy link

rducic commented Aug 31, 2022

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

  • C:\flexible-snapshot-proxy\src/main.py deltadownload snap-01e5f2fee19 ...
  •   + 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

@rducic rducic added the question Further information is requested label Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant