Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-23-2025, 11:23 PM   #16
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,646
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Move it off onedrive and you will be fine. Be as suspicious as you like, not going to change the fact that onedrive and calibre DO NOT get along. Windows has mandatory file locking, onedrive is scanning files inside caltrash which prevents calibre from deleting those files. calibre waits some time and retries each file delete to workaround this, hence the slow startup. Again, MOVE YOUR LIBRARY OFF onedrive.

Last edited by kovidgoyal; Yesterday at 09:44 AM.
kovidgoyal is online now   Reply With Quote
Old Yesterday, 07:09 AM   #17
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: 80,995
Karma: 150249633
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 Luna View Post
I found something else:

/Applications/calibre.app/Contents/MacOS/calibre (through Terminal):
Fast startup (2-3 seconds)

Open /Applications/calibre.app (through Finder or launching via Spotlight/Alfred):
Slow startup (30+ minutes)

The app bundle launcher clearly behaves differently than the direct executable. Is there an explanation for this?
Delete Spotlight/Alfred and try again via the MacOS GUI and see if calibre opens properly.
JSWolf is online now   Reply With Quote
Old Yesterday, 07:11 AM   #18
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: 80,995
Karma: 150249633
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 OokOok View Post
So in my case I ran in debug mode. When I get slow startup, I see all the startup delay is accompanied by spewage of error messages claiming access errors in .caltrash - and it simply takes time to get through all the entries. HOWEVER, . I will note that I've storage my library on OneDrive for (at least) four years w/o issue, so to me this isn't obviously a case of "you can't store on OneDrive" and I'll be suspicious of any workaround that implies this w/o also explaining why it has always worked up until sometime in the last 90 days.

Nevertheless, I'll try excluding my AV from looking at .caltrash to see if there's a relationship. I also note that the folders in .caltrash are all empty - which I'd expect, because I typically use the GUI to empty the trash. So I might, at some point, manually delete the contents of .caltrash to see if that also prevents long startup.

Traceback (most recent call last):
File "calibre\db\backend.py", line 449, in rmtree_with_retry
File "shutil.py", line 787, in rmtree
File "shutil.py", line 638, in _rmtree_unsafe
File "shutil.py", line 636, in _rmtree_unsafe
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\dstei\\OneDrive\\Books-CalibreLibrary\\.caltrash\\b\\2295'

During handling of the above exception, another exception occurred:

Spoiler:
Traceback (most recent call last):
File "calibre\db\backend.py", line 2243, in expire_old_trash
File "calibre\db\backend.py", line 455, in rmtree_with_retry
File "shutil.py", line 787, in rmtree
File "shutil.py", line 638, in _rmtree_unsafe
File "shutil.py", line 636, in _rmtree_unsafe
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\dstei\\OneDrive\\Books-CalibreLibrary\\.caltrash\\b\\2295'
Traceback (most recent call last):
File "calibre\db\backend.py", line 449, in rmtree_with_retry
File "shutil.py", line 787, in rmtree
File "shutil.py", line 638, in _rmtree_unsafe
File "shutil.py", line 636, in _rmtree_unsafe
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\dstei\\OneDrive\\Books-CalibreLibrary\\.caltrash\\b\\2298'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre\db\backend.py", line 2243, in expire_old_trash
File "calibre\db\backend.py", line 455, in rmtree_with_retry
File "shutil.py", line 787, in rmtree
File "shutil.py", line 638, in _rmtree_unsafe
File "shutil.py", line 636, in _rmtree_unsafe
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\dstei\\OneDrive\\Books-CalibreLibrary\\.caltrash\\b\\2298'
Traceback (most recent call last):
File "calibre\db\backend.py", line 449, in rmtree_with_retry
File "shutil.py", line 787, in rmtree
File "shutil.py", line 638, in _rmtree_unsafe
File "shutil.py", line 636, in _rmtree_unsafe
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\dstei\\OneDrive\\Books-CalibreLibrary\\.caltrash\\b\\2304'
Move your calibre libraries out of users. You don't want any libraries in there.
JSWolf is online now   Reply With Quote
Old Yesterday, 08:55 AM   #19
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 14,074
Karma: 243829945
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by JSWolf View Post
Move your calibre libraries out of users. You don't want any libraries in there.
Why? All my libraries have always been in Users. True, I don't use OneDrive, if that's the reason.
Sirtel is online now   Reply With Quote
Old Yesterday, 10:06 AM   #20
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: 80,995
Karma: 150249633
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 Sirtel View Post
Why? All my libraries have always been in Users. True, I don't use OneDrive, if that's the reason.
The reason is that most permission errors are because of libraries in users. So it's just easier to create Calibre Library in the root of C and put all the libraries in there. Sure it can be because of OneDrive. But whatever the problem, it's users that's the problem.

I've removed OneDrive from my computers. I don't like what it does. I still use OneDrive in a way that works for me. I use it with rclone and winfsp to use OneDrive like it was an external harddrive. Works very well and I don't get the awful two-way sync.

Last edited by JSWolf; Yesterday at 10:09 AM.
JSWolf is online now   Reply With Quote
Old Yesterday, 10:38 AM   #21
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,308
Karma: 62000000
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
I am with Jon.
You are GIVING these site LEGAL access (read the TOU) to your data. That is why Free is a double Red flag. The money is from data mining.

Doubt it? I view a manufacturers site on my main PC and later go to my laptop.

I now see ads relevant to the site I visited. My MS accounts are NOT the same (and theoretically, I HAVE NOT LOGGED INTO THEM.)

Another 'no' reason for W11 is the mandatory account.
theducks is offline   Reply With Quote
Old Yesterday, 10:41 AM   #22
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: 80,995
Karma: 150249633
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 theducks View Post
I am with Jon.
You are GIVING these site LEGAL access (read the TOU) to your data. That is why Free is a double Red flag. The money is from data mining.

Doubt it? I view a manufacturers site on my main PC and later go to my laptop.

I now see ads relevant to the site I visited. My MS accounts are NOT the same (and theoretically, I HAVE NOT LOGGED INTO THEM.)

Another 'no' reason for W11 is the mandatory account.
I have Windows 11 Home on the laptop and Windows 11 Pro on the mini-PC and I have no adverts on either.
JSWolf is online now   Reply With Quote
Old Yesterday, 11:00 AM   #23
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,308
Karma: 62000000
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by JSWolf View Post
I have Windows 11 Home on the laptop and Windows 11 Pro on the mini-PC and I have no adverts on either.
The adverts are in the Edge browser as you surf. (but I remember even if I used FF on one, and Edge/Explorer on the other, they still harvested my browse patterns.
theducks is offline   Reply With Quote
Old Yesterday, 11:03 AM   #24
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: 80,995
Karma: 150249633
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 theducks View Post
The adverts are in the Edge browser as you surf. (but I remember even if I used FF on one, and Edge/Explorer on the other, they still harvested my browse patterns.
So that's why I don't see the adverts. I only use Edge when I want a bare browser. Yes, I see the ads in Edge. I usually close it with one site open so I don't see the mess and when I open another tab, I just past in were I want to go and gone is the mess. So I don't really notice it.
JSWolf is online now   Reply With Quote
Old Yesterday, 11:23 AM   #25
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,308
Karma: 62000000
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by JSWolf View Post
So that's why I don't see the adverts. I only use Edge when I want a bare browser. Yes, I see the ads in Edge. I usually close it with one site open so I don't see the mess and when I open another tab, I just past in were I want to go and gone is the mess. So I don't really notice it.
You seem to miss my point. It is not ADs. It is ADs that know what I browsed on other systems. Ads on the same system might be from cookies (many sites ban cookie blocking by not showing the content YOU wanted to see. Their site. Their rules as long as you are not paying for that denied service ).
theducks is offline   Reply With Quote
Old Yesterday, 03:47 PM   #26
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 14,074
Karma: 243829945
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
I don't see any ads because I use browsers still allowing adblockers. As to data mining, can't say I really care. I use various Google and Microsoft services (although not their cloud drives - I have Dropbox for that, and no longer their browsers either) because they're convenient. Let them data mine me to their heart's content. I don't see their ads and any stuff they may gather about me is super boring.
Sirtel is online now   Reply With Quote
Old Yesterday, 03:56 PM   #27
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 14,074
Karma: 243829945
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by JSWolf View Post
The reason is that most permission errors are because of libraries in users. So it's just easier to create Calibre Library in the root of C and put all the libraries in there. Sure it can be because of OneDrive. But whatever the problem, it's users that's the problem.
Well, I've never had a single problem on any of my computers (and there have been 6 or 7 of them) dating back to 2011 when I started to use calibre. But I'll keep it mind in case of any future issues. For now, they can stay where they are.
Sirtel is online now   Reply With Quote
Old Yesterday, 04:09 PM   #28
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,308
Karma: 62000000
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Sirtel View Post
Well, I've never had a single problem on any of my computers (and there have been 6 or 7 of them) dating back to 2011 when I started to use calibre. But I'll keep it mind in case of any future issues. For now, they can stay where they are.
FAT (MSDOS era) had a limit of the number of files in root.
We don't use FAT on windows system drives for a long time now.
theducks is offline   Reply With Quote
Old Yesterday, 04:12 PM   #29
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 929
Karma: 810834
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Combine several libraries into one to aggregate files and test it with a script on Linux Mint.
walter@walter-Cyborg-15-A12VE:~/Desktop$ python3 calibre.py
Exact opening time: 11.68 seconds
Number of books in the library: 180259
walter@walter-Cyborg-15-A12VE:~/Desktop$
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	8
Size:	161.4 KB
ID:	219412  

Last edited by dunhill; Yesterday at 04:21 PM.
dunhill is offline   Reply With Quote
Old Yesterday, 05:18 PM   #30
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 48,576
Karma: 174510108
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Just for the heck of it, I moved a copy my calibre library to a VM running Windows 11 26220.7271 fully updated. Updated calibre to 8.15, connected to the library copy and checked the startup time restarting in debug mode which clocked in at 16.23 seconds (16.9K books, 46.1GB) By comparison, on the PC itself, calibre displays Started up in 3.78 seconds with 16930 books. I then connected the library to OneDrive and allowed it to sync. After the sync, I started calibre and killed the process after 15 minutes. I felt that was long enough to say the OneDrive connection was the issue. I removed the calibre library from OneDrive syncing and the startup time dropped back to ~17 seconds.
DNSB is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
'Get List of Books on Device' Taking 2100 Minutes Plus pjmpjm Devices 23 10-23-2023 08:59 AM
open a book .mobi with calibre is taking 15 minutes, normal ????? tancraide Calibre 17 02-12-2020 03:58 PM
sony 950 taking 10 minutes to load homescreen sovre Sony Reader 22 11-17-2011 02:33 AM
Calibre on Linux taking 2 minutes to start mightymouse2045 Calibre 9 08-14-2011 01:55 AM
PRS-600 An hour and 20 minutes start up time! eric11210 Sony Reader 36 08-17-2010 05:32 AM


All times are GMT -4. The time now is 07:26 AM.


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