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

'mb makehashes' aborts when encountering non-readable file #54

Closed
poeml opened this issue Jun 5, 2015 · 0 comments
Closed

'mb makehashes' aborts when encountering non-readable file #54

poeml opened this issue Jun 5, 2015 · 0 comments

Comments

@poeml
Copy link
Owner

poeml commented Jun 5, 2015

                                                                                                         [          ]

Issue migrated (2015-06-05) from old issue tracker http://mirrorbrain.org/issues/issue54

Title    'mb makehashes' aborts when encountering non-readable file
 Priority   bug                  Status          resolved
Superseder                      Nosy List        poeml
Assigned To poeml               Keywords

msg188 (view) Author: poeml Date: 2010-04-28.16:29:38

Hashing '/srv/ooo/du.list'... done.
Unlinking obsolete '/srv/metalink-hashes/srv/ooo/du.list.size_3173'
Hashing '/srv/ooo/extended/timestamp.txt'... done.
Hashing '/srv/ooo/extended/developer/OOO320m16/.OOo-Dev_OOO320m16_src_system.tar.bz2.HPaaNm'... Traceback
(most recent call last):
File "/usr/bin/mb", line 1518, in
sys.exit( mirrordoctor.main() )
File "/usr/lib/python2.6/site-packages/cmdln.py", line 257, in main
return self.cmd(args)
File "/usr/lib/python2.6/site-packages/cmdln.py", line 280, in cmd
retval = self.onecmd(argv)
File "/usr/lib/python2.6/site-packages/cmdln.py", line 412, in onecmd
return self._dispatch_cmd(handler, argv)
File "/usr/lib/python2.6/site-packages/cmdln.py", line 1100, in _dispatch_cmd
return handler(argv[0], opts, *args)
File "/usr/bin/mb", line 1012, in do_makehashes
copy_permissions=opts.copy_permissions)
File "/usr/lib/python2.6/site-packages/mb/hashes.py", line 85, in check_file
self.hb.fill(verbose=verbose)
File "/usr/lib/python2.6/site-packages/mb/hashes.py", line 241, in fill
f = open(self.src, 'rb')
IOError: [Errno 13] Permission denied: '/srv/ooo/extended/developer/OOO320m16/.OOo-
Dev_OOO320m16_src_system.tar.bz2.HPaaNm'

This is a little regression - the previous version (that saved hashes to the filesystem instead of the
database) has been handling this case correctly, by ignoring those files and only issuing a warning.

Should be fixed in the upcoming 2.13.0 release.

msg192 (view) Author: poeml Date: 2010-05-28.16:37:59

Fixed in trunk, r8065.

History
         Date         User  Action              Args
2010-05-28 16:47:16 poeml set    status: testing -> resolved
2010-05-28 16:38:00 poeml set    status: in-progress -> testing
                                   messages: + msg192
2010-04-28 16:29:39 poeml create

(end of migrated issue)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant