Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-15-2017, 07:20 PM   #1
dschnit1
Junior Member
dschnit1 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2016
Location: San Diego, CA
Device: Samsung Galaxy Tab S 10.5
Angry Windows error 5: Access is denied

Running Calibre 3.9 on Windows 10 Pro. Attempt to add a book to my Calibre library. Get error message as seen in title of thread. Am logged in to Administrator account. Opened Calibre as "Run as administrator". Any thoughts?
dschnit1 is offline   Reply With Quote
Old 10-15-2017, 07:31 PM   #2
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,019
Karma: 60358908
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 dschnit1 View Post
Running Calibre 3.9 on Windows 10 Pro. Attempt to add a book to my Calibre library. Get error message as seen in title of thread. Am logged in to Administrator account. Opened Calibre as "Run as administrator". Any thoughts?
Try the suggestions on the Calibre Help (site) FAQ.
Select Help inside Calibre
theducks is offline   Reply With Quote
Advert
Old 10-15-2017, 07:58 PM   #3
dschnit1
Junior Member
dschnit1 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2016
Location: San Diego, CA
Device: Samsung Galaxy Tab S 10.5
Nothing in the FAQ Permissions Denied section applies to my situation.
dschnit1 is offline   Reply With Quote
Old 10-15-2017, 08:14 PM   #4
dschnit1
Junior Member
dschnit1 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2016
Location: San Diego, CA
Device: Samsung Galaxy Tab S 10.5
If it's any help, here are the error details:

calibre, version 3.9.0
ERROR: Unhandled exception: <b>WindowsError</b>:[Error 5] Access is denied

calibre 3.9 embedded-python: True is64bit: False
Windows-10-10.0.15063-SP0 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '10', '10.0.15063')
Python 2.7.12+
Windows: ('10', '10.0.15063', 'SP0', u'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 2, 1) && Manage Series (1, 2, 8) && FictionDB (1, 0, 10) && Barnes & Noble (1, 2, 14) && Goodreads (1, 1, 12) && Fantastic Fiction (1, 2, 0) && Goodreads Sync (1, 10, 1) && DOC Input (1, 0, 1) && Fantastic Fiction Adults (1, 0, 4)
Traceback (most recent call last):
File "site-packages\calibre\gui2\actions\add.py", line 424, in add_books
File "site-packages\calibre\gui2\win_file_dialogs.py", line 252, in choose_files
File "site-packages\calibre\gui2\win_file_dialogs.py", line 185, in run_file_dialog
File "subprocess.py", line 711, in __init__
File "subprocess.py", line 959, in _execute_child
WindowsError: [Error 5] Access is denied
dschnit1 is offline   Reply With Quote
Old 10-15-2017, 09:07 PM   #5
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,706
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@dschnit1 - Is the file your trying to add Blocked - look in file properties

Click image for larger version

Name:	unblock.jpg
Views:	766
Size:	107.3 KB
ID:	159479

Also check FAQ section - calibre freezes/crashes occasionally? sometime problems manifest themselves in mysterious ways.

I see you're using 32bit calibre on a 64bit Windows, try installing the 64 bit version - you can have both installed and they will use the same settings and libraries

Also, Windows error 5 Access denied is sometimes a sign of the presence malicious software - run some stand alone malware scanners.

BR
BetterRed is offline   Reply With Quote
Advert
Old 10-15-2017, 10:29 PM   #6
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,316
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Something on your system, most likely an antivirus program is preventing calibre from alunching the helper process it uses to display file dialogs. You can work around it by telling calibre not to use native file dialogs by setting the environment variable CALIBRE_NO_NATIVE_FILEDIALOGS as described here: https://manual.calibre-ebook.com/cus...ment-variables
kovidgoyal is online now   Reply With Quote
Old 10-17-2017, 06:20 PM   #7
dschnit1
Junior Member
dschnit1 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2016
Location: San Diego, CA
Device: Samsung Galaxy Tab S 10.5
Problem is apparently fixed. I ran 2 different malware finder/cleaners, each of which found something to delete. Then I deleted the last program I installed (WinPatrol Ransomeware monitor). Then, after a reboot, everything was back to normal. Thanks to everyone who offered help to me.
dschnit1 is offline   Reply With Quote
Old 07-25-2018, 04:56 PM   #8
AlbertLotito
Junior Member
AlbertLotito began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2018
Device: paperwhite
After a lot of debugging, it turns out that the solution is absurdly simple.

Ensure that the entire "calibre library" folder tree is not read-only.

In windows:

Calibre Portable\Calibre Library>attrib -r *.* /d /s

In other words: open a cmd prompt.
go to your Calibre Library folder
Type attrib -r *.* /d /s
Attrib: Set attributes
-r: Turn or Read-only
/s: do subfolders
/d: Processes directories as well.

Good luck.
AlbertLotito is offline   Reply With Quote
Old 07-27-2018, 03:47 AM   #9
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Quote:
Originally Posted by AlbertLotito View Post
After a lot of debugging,
Jesus, you did a quite huge debug action.
Divingduck is offline   Reply With Quote
Old 07-27-2018, 12:10 PM   #10
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: 45,928
Karma: 168959602
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by AlbertLotito View Post
After a lot of debugging, it turns out that the solution is absurdly simple.
Quote:
Originally Posted by Divingduck View Post
Jesus, you did a quite huge debug action.
I'd be more interested in finding out how his calibre directory tree got marked as read-only. The only time I've seen something similar was a few years back when a co-worker used a writable DVD to transfer his library to a new computer.
DNSB is offline   Reply With Quote
Old 07-27-2018, 02:45 PM   #11
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Quote:
Originally Posted by DNSB View Post
I'd be more interested in finding out how his calibre directory tree got marked as read-only.
I saw different situations so fare.
One root cause was when a AV software blocks a file temporary during an update while it is scanning all involved files. This usually goes in hand with an installation process but it can fail if the system get blocked in his processes. I had seen this so far only two times with calibre during an update while calibre was running in back ground (my fault). The calibre program folder was blocked with system authority. You can normally solve this problem with canceling the installation and rebooting the system.

I have seen this behavior more often with Acrobat CC when you open and close PDF files fast and try to delete immediately the file. The file is then locked and when you delete the file some time later the folder of the file can't be deleted. You can delete the folder after a reboot.

There is also an other root cause when WINDOWS 10 makes security updates in background where the system waits for a reboot. Then it can also happen that your current user account lack on rights.

For this problems on my system an attribute change was not not a possible solution as these blocks was not a attribute problem it rather was a rights problem where user admin rights are not enough to clear a system lock for involved files and/or folder.
Divingduck is offline   Reply With Quote
Old 08-03-2018, 12:17 PM   #12
AlbertLotito
Junior Member
AlbertLotito began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2018
Device: paperwhite
I have been thinking about that my self. I do not have a good answer.

I do know that one of the other problems I thought might be the cause was the google backup/sync software or AV software. Turning both of those off did not solve the problem.
Once I reset all the attributes everything ran like a dream.



Quote:
Originally Posted by DNSB View Post
I'd be more interested in finding out how his calibre directory tree got marked as read-only. The only time I've seen something similar was a few years back when a co-worker used a writable DVD to transfer his library to a new computer.
AlbertLotito is offline   Reply With Quote
Old 06-27-2019, 01:20 PM   #13
Donald S
Just learning, but fast!
Donald S knows the complete value of PI to the endDonald S knows the complete value of PI to the endDonald S knows the complete value of PI to the endDonald S knows the complete value of PI to the endDonald S knows the complete value of PI to the endDonald S knows the complete value of PI to the endDonald S knows the complete value of PI to the endDonald S knows the complete value of PI to the endDonald S knows the complete value of PI to the endDonald S knows the complete value of PI to the endDonald S knows the complete value of PI to the end
 
Donald S's Avatar
 
Posts: 8
Karma: 31582
Join Date: Jun 2011
Location: Saskatchewan, Canada
Device: Kobo Touch
In my case it was the calibre-cache directory which was read-only.
C:\Users\[username]\AppData\Local\calibre-cache

I had just installed the new version 3.44 and the problem showed up.

Such a simple fix in the end. Thanks for the clues!
Donald S is offline   Reply With Quote
Old 05-03-2023, 09:45 AM   #14
Rob557
Zealot
Rob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-books
 
Posts: 108
Karma: 810
Join Date: Jul 2012
Device: Kobo
I had this error message to0, but my circumstances are different and it was my foolish mistake. It's been a while since I had set up a new library folder in Calibre. In the create-library window I simply typed in the new library name and clicked on OK resulting in "Windows error 5: Access is denied" because it was trying to access a location on my C drive. The problem goes away if I simply click on the icon to the right of the new library name and select the location on my other drive where I the other Calibre library folders are located.
Rob557 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre: Access Denied Celsus_ Devices 4 07-25-2018 04:54 PM
Windows not able to access Aura drive (format error) Sintel Kobo Reader 14 01-13-2015 01:22 AM
Access denied on serversocket.accept Ricky23289 Kindle Developer's Corner 6 07-11-2014 12:02 PM
"Access denied" to downloaded news - Windows Error message 5 SunFuLai Recipes 14 12-02-2011 02:20 AM


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


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