librelist archives

« back to archive

Bad file descriptor

Bad file descriptor

From:
Simon Cahuk
Date:
2014-07-16 @ 06:04
I get this error:

attic: /Users/master/Library/Mobile
Documents.278487331/.do-not-delete: [Errno 9] Bad file descriptor
Traceback (most recent call last):
  File "/usr/local/bin/attic", line 5, in <module>
    pkg_resources.run_script('Attic==0.13-1-g4b2dae2-dirty', 'attic')
  File "/usr/local/lib/python3.4/site-packages/pkg_resources.py", line
488, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/local/lib/python3.4/site-packages/pkg_resources.py", line
1338, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/local/lib/python3.4/site-packages/pkg_resources.py", line
55, in execfile
    exec(compile(open(fn).read(), fn, 'exec'), globs, locs)
  File 
"/usr/local/lib/python3.4/site-packages/Attic-0.13_1_g4b2dae2_dirty-py3.4-macosx-10.9-x86_64.egg/EGG-INFO/scripts/attic",
line 3, in <module>
    main()
  File 
"/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/Attic-0.13_1_g4b2dae2_dirty-py3.4-macosx-10.9-x86_64.egg/attic/archiver.py",
line 718, in main
    exit_code = archiver.run(sys.argv[1:])
  File 
"/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/Attic-0.13_1_g4b2dae2_dirty-py3.4-macosx-10.9-x86_64.egg/attic/archiver.py",
line 708, in run
    return args.func(args)
  File 
"/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/Attic-0.13_1_g4b2dae2_dirty-py3.4-macosx-10.9-x86_64.egg/attic/archiver.py",
line 128, in do_create
    self._process(archive, cache, args.excludes, args.exclude_caches,
skip_inodes, path, restrict_dev)
  File 
"/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/Attic-0.13_1_g4b2dae2_dirty-py3.4-macosx-10.9-x86_64.egg/attic/archiver.py",
line 180, in _process
    os.path.join(path, filename), restrict_dev)
  File 
"/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/Attic-0.13_1_g4b2dae2_dirty-py3.4-macosx-10.9-x86_64.egg/attic/archiver.py",
line 180, in _process
    os.path.join(path, filename), restrict_dev)
  File 
"/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/Attic-0.13_1_g4b2dae2_dirty-py3.4-macosx-10.9-x86_64.egg/attic/archiver.py",
line 164, in _process
    archive.process_file(path, st, cache)
  File 
"/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/Attic-0.13_1_g4b2dae2_dirty-py3.4-macosx-10.9-x86_64.egg/attic/archive.py",
line 402, in process_file
    for chunk in chunkify(fd, WINDOW_SIZE, CHUNK_MASK, CHUNK_MIN,
self.key.chunk_seed):
  File "chunker.pyx", line 33, in attic.chunker.chunkify.__next__
(attic/chunker.c:1016)
OSError: [Errno 9] Bad file descriptor

thanks,

Simon

Re: [attic] Bad file descriptor

From:
Jonas Borgström
Date:
2014-07-26 @ 21:06
On 2014-07-16 08:04, Simon Cahuk wrote:
> I get this error:
> 
> attic: /Users/master/Library/Mobile Documents.278487331/.do-not-delete: 
[Errno 9] Bad file descriptor

Are you able to reproduce this, and is it always on the same file?

If so what does this output?

$ stat /Users/master/Library/Mobile Documents.278487331/.do-not-delete

/ Jonas