Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-30-2025, 05:30 AM   #1
TreeFrogBandit
Member
TreeFrogBandit began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Feb 2020
Device: none
Recurring file permissions issue Windows 11

Hi all,

I have a recurring issue where folder permissions seem to prevent Calibre from making changes to metadata etc. Having done some research it seems to be an issue with Windows 11 ransomware protection.

I've done loads of tweaks, but nothing seems to help - things I have tried:
  1. Whitelisting all of the .exe files in the calibre and calibre\app\bin folders
  2. Moving calibre library so it isn't in a protected folder
  3. Running calibre in admin mode
  4. turning off windows controlled folder access

None of these seems to be doing the trick though - I'm still getting errors like:
Code:
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\wjrol\\AppData\\Local\\Temp\\calibre-canri4i4\\pb3vyj3hcallib\\.calnotes\\backup'
Has anybody successfully dealt with this problem and how did you manage it?

Thanks!
TreeFrogBandit is offline   Reply With Quote
Old 05-30-2025, 05:51 AM   #2
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,667
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Try setting CALIBRE_TEMP_DIR to something like C:\!Calibre\Temp.

See ==>> Environment variables

BR
BetterRed is offline   Reply With Quote
Old 05-30-2025, 06:02 AM   #3
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: 79,459
Karma: 145863170
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Run Windows Explorer as Administrator. to do this...
  1. Run Windows Explorer
  2. Go to C:\Windows
  3. Scroll down and find explorer.exe
  4. Right click on explorer.exe and select Run as Administrator
  5. In the new instance of of Windows Explorer, go to %temp% and then on the toolbar click the up arrow
  6. Right click on temp and select properties
  7. Click the sharing tab and set the permissions for your account

That should do it.
JSWolf is offline   Reply With Quote
Old 05-30-2025, 06:02 AM   #4
TreeFrogBandit
Member
TreeFrogBandit began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Feb 2020
Device: none
Quote:
Originally Posted by BetterRed View Post
Try setting CALIBRE_TEMP_DIR to something like C:\!Calibre\Temp.

See ==>> Environment variables

BR
Thanks BetterRed I'm a bit confused though - Running windows, do I just put
Code:
CALIBRE_TEMP_DIR = C:\!Calibre\Temp
in the windows list of paths? Or do I need to make some changes in the calibre program itself?
TreeFrogBandit is offline   Reply With Quote
Old 05-30-2025, 06:03 AM   #5
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: 79,459
Karma: 145863170
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
My way will solve your problem and any future problems with any other programs that use temp.
JSWolf is offline   Reply With Quote
Old 05-30-2025, 06:07 AM   #6
TreeFrogBandit
Member
TreeFrogBandit began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Feb 2020
Device: none
Quote:
Originally Posted by JSWolf View Post
My way will solve your problem and any future problems with any other programs that use temp.
Sorry - tried it, and windows immediately reverts it to read only
TreeFrogBandit is offline   Reply With Quote
Old 05-30-2025, 06:16 AM   #7
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: 79,459
Karma: 145863170
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 TreeFrogBandit View Post
Sorry - tried it, and windows immediately reverts it to read only
How does Windows revert to read only? Are you running Windows Explorer as administrator.
JSWolf is offline   Reply With Quote
Old 05-30-2025, 06:31 AM   #8
TreeFrogBandit
Member
TreeFrogBandit began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Feb 2020
Device: none
Quote:
Originally Posted by JSWolf View Post
How does Windows revert to read only? Are you running Windows Explorer as administrator.
That's a bloody good question. I was assuming it was a ransomware detection issue, but if it's doing the same thing to explorer, then that's very strange.
TreeFrogBandit is offline   Reply With Quote
Old 05-30-2025, 10:18 AM   #9
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: 79,459
Karma: 145863170
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 TreeFrogBandit View Post
That's a bloody good question. I was assuming it was a ransomware detection issue, but if it's doing the same thing to explorer, then that's very strange.
Try again after truing off your AV and if that doesn't work, try safe-mode.
JSWolf is offline   Reply With Quote
Old 05-30-2025, 10:18 AM   #10
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: 79,459
Karma: 145863170
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 TreeFrogBandit View Post
That's a bloody good question. I was assuming it was a ransomware detection issue, but if it's doing the same thing to explorer, then that's very strange.
Try again after turning off your AV and if that doesn't work, try safe-mode.
JSWolf is offline   Reply With Quote
Old 05-30-2025, 06:09 PM   #11
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,667
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by TreeFrogBandit View Post
Thanks BetterRed I'm a bit confused though - Running windows, do I just put
Code:
CALIBRE_TEMP_DIR = C:\!Calibre\Temp
in the windows list of paths? Or do I need to make some changes in the calibre program itself?
Search for "Advanced system settings" (or Settings->System->About->Advanced system settings (it's on the right)) and then:

Click image for larger version

Name:	Screenshot 2025-05-31 075446.jpg
Views:	59
Size:	196.0 KB
ID:	215933

BR
BetterRed is offline   Reply With Quote
Old 05-31-2025, 05:01 AM   #12
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: 79,459
Karma: 145863170
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 BetterRed View Post
Search for "Advanced system settings" (or Settings->System->About->Advanced system settings (it's on the right)) and then:

Attachment 215933

BR
It would be better (IMHO) to help the OP sort out his permission error is in the system's temp directory.
JSWolf is offline   Reply With Quote
Old 06-02-2025, 03:36 AM   #13
TreeFrogBandit
Member
TreeFrogBandit began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Feb 2020
Device: none
Quote:
Originally Posted by BetterRed View Post
Search for "Advanced system settings" (or Settings->System->About->Advanced system settings (it's on the right)) and then:

Attachment 215933

BR
Thanks BR - sorry for the delay in responding - Mobile Read isn't loading for me in chrome for some reason...

I made the change you recommended and it (sort of) worked. The catalogue function in Calibre managed to run without the error message popping up, but then the next time I tried to run calibre it wouldn't load until I reversed the changes.

Am I correct (and please chip in here @JSWolf) in assuming that this is a windows problem rather than a calibre problem?
TreeFrogBandit is offline   Reply With Quote
Old 06-02-2025, 04:07 AM   #14
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,667
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by TreeFrogBandit View Post
Thanks BR - sorry for the delay in responding - Mobile Read isn't loading for me in chrome for some reason...

I made the change you recommended and it (sort of) worked. The catalogue function in Calibre managed to run without the error message popping up, but then the next time I tried to run calibre it wouldn't load until I reversed the changes.
That's weird - did you look in the temp location e.g. C:\!Calibre\Temp - should be empty when calibre not running.


Quote:
Originally Posted by TreeFrogBandit View Post
Am I correct (and please chip in here @JSWolf) in assuming that this is a windows problem rather than a calibre problem?
Definitely not a calibre problem, if it were this board would light up like a NYE firework show.

It's either Windows configuration or a third party app. Did you try Safe mode. If it's okay there, it's probably a 3rd party app you run at startup.

Added: MR has been been under a sustained DDOS attack for several days.

BR

Last edited by BetterRed; 06-02-2025 at 04:12 AM.
BetterRed is offline   Reply With Quote
Old 06-03-2025, 04:25 AM   #15
TreeFrogBandit
Member
TreeFrogBandit began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Feb 2020
Device: none
Thanks BR, it looks like I'm about to go on a quest to fix Windows... Joy.
TreeFrogBandit is offline   Reply With Quote
Reply

Tags
calibre 0.8.4.0, file permissions, windows 11


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
error welcome wizard permissions file sensitivity.txt jomaweb Library Management 1 08-02-2018 12:06 AM
windows 8 install issue stuff9414 Calibre 1 03-29-2018 05:37 PM
File I/O permissions sguerrini97 Kindle Developer's Corner 8 06-04-2016 10:34 AM
Moving Calibre Library from Windows 7 to Windows 8 - json code issue DramaQueenLucy Devices 14 11-12-2013 11:47 AM
file permissions question troymc Calibre 4 09-05-2009 12:38 PM


All times are GMT -4. The time now is 10:44 AM.


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