Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-16-2024, 10:05 AM   #1
ttraxx
Junior Member
ttraxx began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2024
Device: Kindle Oasis
Calibre Permission Error

Hi Everyone,

I am running calibre LSIO docker and keep getting this error:

Traceback (most recent call last): File "calibre/db/backend.py", line 415, in rmtree_with_retry
File "shutil.py", line 732, in rmtree
File "shutil.py", line 683, in _rmtree_safe_fd
File "shutil.py", line 681, in _rmtree_safe_fd
PermissionError: [Errno 13] Permission denied: 'metadata.opf'

I have manually checked all of the metadata.opf files that are mounted in my system (QNAP linux host) library directory have proper permissions, but I don't know where else there could be these "metadata.opf" files?

Calibre seems to be working im just getting this errors spamming in my logs

Thanks in advance!
ttraxx is offline   Reply With Quote
Old 03-16-2024, 11:02 AM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,474
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by ttraxx View Post
Hi Everyone,

I am running calibre LSIO docker and keep getting this error:

Traceback (most recent call last): File "calibre/db/backend.py", line 415, in rmtree_with_retry
File "shutil.py", line 732, in rmtree
File "shutil.py", line 683, in _rmtree_safe_fd
File "shutil.py", line 681, in _rmtree_safe_fd
PermissionError: [Errno 13] Permission denied: 'metadata.opf'

I have manually checked all of the metadata.opf files that are mounted in my system (QNAP linux host) library directory have proper permissions, but I don't know where else there could be these "metadata.opf" files?

Calibre seems to be working im just getting this errors spamming in my logs

Thanks in advance!
Do you have anything else accessing the directory or do you have the directory open in anything?
JSWolf is offline   Reply With Quote
Advert
Old 03-16-2024, 11:14 AM   #3
ttraxx
Junior Member
ttraxx began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2024
Device: Kindle Oasis
Readarr / QBitorrent
ttraxx is offline   Reply With Quote
Old 03-16-2024, 12:11 PM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,474
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by ttraxx View Post
Readarr / QBitorrent
Are these eBooks you are getting from a torrent site?
JSWolf is offline   Reply With Quote
Old 03-16-2024, 12:41 PM   #5
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,762
Karma: 75000002
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Quote:
Originally Posted by JSWolf View Post
Are these eBooks you are getting from a torrent site?
Jon; I really wish you'd stop with this harping over torrented material. Whether they are or not is not relevant to the question being asked. There is NO indication in the log of any book titles / sources.

Sent from my Pixel 7a using Tapatalk
PeterT is offline   Reply With Quote
Advert
Old 03-16-2024, 02:26 PM   #6
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 12,375
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Legitimate stuff uses Torrent protocol.
Quoth is offline   Reply With Quote
Old 03-16-2024, 02:27 PM   #7
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 12,375
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Quote:
Originally Posted by ttraxx View Post
Readarr / QBitorrent
Exclude that from Calibre directories/folders.
Quoth is offline   Reply With Quote
Old 03-16-2024, 03:18 PM   #8
ttraxx
Junior Member
ttraxx began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2024
Device: Kindle Oasis
Apologies - sharing full logs here: https://pastebin.com/HgRWFjn3

It seems like something in the `expire_old_trash` function could be causing it.

Is there a way to force delete everything in the trash (including db records referencing trash if needed?)
ttraxx is offline   Reply With Quote
Old 03-16-2024, 06:37 PM   #9
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 9,574
Karma: 64960983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by ttraxx View Post
Is there a way to force delete everything in the trash (including db records referencing trash if needed?)
Remove Books > Restore recently deleted. It'll look like this (though probably not empty):

Click image for larger version

Name:	2024-03-16 18_38_24-Recently deleted books.png
Views:	34
Size:	10.5 KB
ID:	206940

Check the tooltip for 'permanently delete after', there's an option to delete upon closing Calibre which may help.

Last edited by ownedbycats; 03-16-2024 at 06:40 PM.
ownedbycats is offline   Reply With Quote
Old 03-16-2024, 06:43 PM   #10
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,006
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by ttraxx View Post
Apologies - sharing full logs here: https://pastebin.com/HgRWFjn3

It seems like something in the `expire_old_trash` function could be causing it.

Is there a way to force delete everything in the trash (including db records referencing trash if needed?)
Couple of FAQs that might be relevant:

Because you mentioned QNAP, which I know as a Network Accessible Storage (NAS) device ==>> I am getting errors with my calibre library on a networked drive/NAS?

Because this is the error you're getting ==>> I am getting a “Permission Denied” error?

The .caltrash folder (which is hidden) contains no database. The library folder contents for a removed book is moved to .caltrash/b/nnnn where nnnn is the books id column. AFAIK there is no reference to removed books or formats in the library database.

BR
BetterRed is offline   Reply With Quote
Old 03-16-2024, 06:47 PM   #11
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,762
Karma: 75000002
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Any details as to how you've created the Docker container, and how you've mounted the folder containing your calibre library to the container?

Sent from my Pixel 7a using Tapatalk
PeterT is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission error preventing the use of DeDRM jomteon Calibre 18 02-28-2024 11:11 PM
Calibre, version 6.19.1 ERROR: Permission denied dunhill Calibre 7 06-06-2023 08:41 PM
Error 13 Permission denied for covers bookimp Calibre 2 07-21-2020 10:26 PM
Error: Permission Denied megthered Calibre 3 09-26-2015 12:51 PM
Calibre 0.9.24 [64-bit] Permission Denied Error edwdecarlo Devices 6 03-23-2013 02:22 PM


All times are GMT -4. The time now is 04:42 AM.


MobileRead.com is a privately owned, operated and funded community.