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

Errors when copying and deleting a folder #43

Closed
Fibroblasto opened this issue Jan 2, 2017 · 0 comments
Closed

Errors when copying and deleting a folder #43

Fibroblasto opened this issue Jan 2, 2017 · 0 comments

Comments

@Fibroblasto
Copy link
Contributor

I've got some errors when copying and deleting a folder with “cp -r” and “rm -r” commands.

The testing folder is 4.5 MB big with 94 files and 6 sub-folders. This is the output of the “tree” program on it:

JRRTolkien.LoshijosdeHurin
├── META-INF
│   └── container.xml
├── mimetype
└── OEBPS
├── content.opf
├── Fonts
│   └── tolkien.ttf
├── Images
│   ├── autor.jpg
│   ├── cap01img.jpg
│   ├── cap01.jpg
│   ├── cap02.jpg
│   ├── cap03.jpg
│   ├── cap04.jpg
│   ├── cap05img.jpg
│   ├── cap05.jpg
│   ├── cap06img.jpg
│   ├── cap06.jpg
│   ├── cap07.jpg
│   ├── cap08.jpg
│   ├── cap09.jpg
│   ├── cap10.jpg
│   ├── cap11img.jpg
│   ├── cap11.jpg
│   ├── cap12img.jpg
│   ├── cap12.jpg
│   ├── cap13img.jpg
│   ├── cap13.jpg
│   ├── cap14img.jpg
│   ├── cap14.jpg
│   ├── cap15.jpg
│   ├── cap16.jpg
│   ├── cap17.jpg
│   ├── cap18img.jpg
│   ├── cap18.jpg
│   ├── cover.jpg
│   ├── epubgratis.png
│   ├── ePUBlogo.png
│   ├── img01.jpg
│   ├── img02.jpg
│   ├── img03.jpg
│   ├── img04.jpg
│   ├── img05.jpg
│   ├── img06.jpg
│   ├── img07.jpg
│   ├── img08.jpg
│   ├── img09.jpg
│   ├── img10.jpg
│   ├── img11.jpg
│   ├── narnimg.jpg
│   └── notasimg.jpg
├── Styles
│   └── style.css
├── Text
│   ├── apendice.xhtml
│   ├── autor.xhtml
│   ├── cap01.xhtml
│   ├── cap02.xhtml
│   ├── cap03.xhtml
│   ├── cap04.xhtml
│   ├── cap05.xhtml
│   ├── cap06.xhtml
│   ├── cap07a.xhtml
│   ├── cap07b.xhtml
│   ├── cap08.xhtml
│   ├── cap09.xhtml
│   ├── cap10a.xhtml
│   ├── cap10b.xhtml
│   ├── cap11.xhtml
│   ├── cap12.xhtml
│   ├── cap13.xhtml
│   ├── cap14.xhtml
│   ├── cap15.xhtml
│   ├── cap16a.xhtml
│   ├── cap16b.xhtml
│   ├── cap17.xhtml
│   ├── cap18a.xhtml
│   ├── cap18b.xhtml
│   ├── cubierta.xhtml
│   ├── img01.xhtml
│   ├── img02.xhtml
│   ├── img03.xhtml
│   ├── img04.xhtml
│   ├── img05.xhtml
│   ├── img06.xhtml
│   ├── img07.xhtml
│   ├── img08.xhtml
│   ├── img09.xhtml
│   ├── img10.xhtml
│   ├── img11.xhtml
│   ├── info.xhtml
│   ├── introduccion1.xhtml
│   ├── introduccion2.xhtml
│   ├── narn.xhtml
│   ├── notas.xhtml
│   ├── prefacio.xhtml
│   ├── pronunciacion.xhtml
│   ├── sinopsis.xhtml
│   └── titulo.xhtml
└── toc.ncx

Problem 1: entries in the bucket that disppear.

The top level of the test bucket has 24 entries (files and folders) before copying the test folder. After the copy of the test folder with “cp -r” some files and folders disappear, leaving one folder and seven files plus the newly copied test folder and no error output by b2fuse.py. So, in the report of the second problem below, when I write “cp -r no error” I mean that b2fuse.py doesn't output any error, but this problem always happens. But the files and folders are there; they can be seen using the web interface and they appear again after deleting the testing folder.

I wonder if this would be about the maximum number of files that b2fuse can handle. The bucket has 103 files and 10 subfolders and the test folder I copy has 94 files and 6 subfolders. The sum is 197 files and 16 subfolders. Are these too many entries for b2fuse?

Problem 2: errors when deleting a folder with “rm -r”

I have repeated several times the copy and delete of the testing folder with “cp -r” and “rm -r”. These are the errors reported by b2fuse.py.

cp -r no error
rm -r no error

cp -r no error
rm -r

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 495, in _wrapper
return func(*args, **kwargs) or 0
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 693, in readdir
fip.contents.fh):
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 800, in call
return getattr(self, op)(*args)
File "/home/durr/b2/b2_fuse/b2fuse_main.py", line 251, in readdir
online_files = map(lambda file_info: file_info['fileName'], directory.get_file_infos())
AttributeError: 'NoneType' object has no attribute 'get_file_infos'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 495, in _wrapper
return func(*args, **kwargs) or 0
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 693, in readdir
fip.contents.fh):
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 800, in call
return getattr(self, op)(*args)
File "/home/durr/b2/b2_fuse/b2fuse_main.py", line 251, in readdir
online_files = map(lambda file_info: file_info['fileName'], directory.get_file_infos())
AttributeError: 'NoneType' object has no attribute 'get_file_infos'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 495, in _wrapper
return func(*args, **kwargs) or 0
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 693, in readdir
fip.contents.fh):
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 800, in call
return getattr(self, op)(*args)
File "/home/durr/b2/b2_fuse/b2fuse_main.py", line 251, in readdir
online_files = map(lambda file_info: file_info['fileName'], directory.get_file_infos())
AttributeError: 'NoneType' object has no attribute 'get_file_infos'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 495, in _wrapper
return func(*args, **kwargs) or 0
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 693, in readdir
fip.contents.fh):
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 800, in call
return getattr(self, op)(*args)
File "/home/durr/b2/b2_fuse/b2fuse_main.py", line 251, in readdir
online_files = map(lambda file_info: file_info['fileName'], directory.get_file_infos())
AttributeError: 'NoneType' object has no attribute 'get_file_infos'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 495, in _wrapper
return func(*args, **kwargs) or 0
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 693, in readdir
fip.contents.fh):
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 800, in call
return getattr(self, op)(*args)
File "/home/durr/b2/b2_fuse/b2fuse_main.py", line 251, in readdir
online_files = map(lambda file_info: file_info['fileName'], directory.get_file_infos())
AttributeError: 'NoneType' object has no attribute 'get_file_infos'

cp -r no error
rm -r no error

cp -r no error
rm -r

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 495, in _wrapper
return func(*args, **kwargs) or 0
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 693, in readdir
fip.contents.fh):
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 800, in call
return getattr(self, op)(*args)
File "/home/durr/b2/b2_fuse/b2fuse_main.py", line 251, in readdir
online_files = map(lambda file_info: file_info['fileName'], directory.get_file_infos())
AttributeError: 'NoneType' object has no attribute 'get_file_infos'

cp -r no error
rm -r no error

cp -r no error
rm -r

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 495, in _wrapper
return func(*args, **kwargs) or 0
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 693, in readdir
fip.contents.fh):
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 800, in call
return getattr(self, op)(*args)
File "/home/durr/b2/b2_fuse/b2fuse_main.py", line 251, in readdir
online_files = map(lambda file_info: file_info['fileName'], directory.get_file_infos())
AttributeError: 'NoneType' object has no attribute 'get_file_infos'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 495, in _wrapper
return func(*args, **kwargs) or 0
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 693, in readdir
fip.contents.fh):
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 800, in call
return getattr(self, op)(*args)
File "/home/durr/b2/b2_fuse/b2fuse_main.py", line 251, in readdir
online_files = map(lambda file_info: file_info['fileName'], directory.get_file_infos())
AttributeError: 'NoneType' object has no attribute 'get_file_infos'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 495, in _wrapper
return func(*args, **kwargs) or 0
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 693, in readdir
fip.contents.fh):
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 800, in call
return getattr(self, op)(*args)
File "/home/durr/b2/b2_fuse/b2fuse_main.py", line 251, in readdir
online_files = map(lambda file_info: file_info['fileName'], directory.get_file_infos())
AttributeError: 'NoneType' object has no attribute 'get_file_infos'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 495, in _wrapper
return func(*args, **kwargs) or 0
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 693, in readdir
fip.contents.fh):
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 800, in call
return getattr(self, op)(*args)
File "/home/durr/b2/b2_fuse/b2fuse_main.py", line 251, in readdir
online_files = map(lambda file_info: file_info['fileName'], directory.get_file_infos())
AttributeError: 'NoneType' object has no attribute 'get_file_infos'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 495, in _wrapper
return func(*args, **kwargs) or 0
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 693, in readdir
fip.contents.fh):
File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 800, in call
return getattr(self, op)(*args)
File "/home/durr/b2/b2_fuse/b2fuse_main.py", line 251, in readdir
online_files = map(lambda file_info: file_info['fileName'], directory.get_file_infos())
AttributeError: 'NoneType' object has no attribute 'get_file_infos'

Now, reading this, I wonder if there is a pattern:
cp/rm no-error
cp/rm error
cp/rm no-error
cp/rm error

But to be sure such pattern is real and not by chance I woud have to repeat it at least 3 or 4 times more.

@falense falense closed this as completed May 18, 2017
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