Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 05-27-2021, 08:44 PM   #1
medownunder
Junior Member
medownunder began at the beginning.
 
Posts: 5
Karma: 10
Join Date: May 2021
Device: KINDLE
Unhappy Calibre can't access DB from Standard User, but does from Admin User (Win10)

I hadn't used Calibre for a while, opened it successfully, saw there was an update so I installed that. It appeared to install successfully but on first launch it said the DB was corrupt, and when I followed the prompts to repair/restore the db these failed (both the Yes and No options failed).

I uninstalled, restarted Windows, and reinstalled from an Admin-type User Account, which then worked fine. But I want to use Calibre from my usual Standard-type User so I switched back to that. It has the original problem. Of course I can set Calibre to run as Admin, but then the library is stored in my Admin-type user which I don't want.

I think I may have switched my usual User Account from Admin to Standard Type since I first installed the earlier version of Calibre some years ago. Is this a known problem of recent Windows 10 updates, or of Calibre v5.18 (64bit)? Is there a fix?

Can you help? Many thanks in advance.
medownunder is offline   Reply With Quote
Old 05-27-2021, 08:52 PM   #2
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: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Fix the permissions on the files in the calibre library folder.
kovidgoyal is offline   Reply With Quote
Old 05-27-2021, 09:23 PM   #3
medownunder
Junior Member
medownunder began at the beginning.
 
Posts: 5
Karma: 10
Join Date: May 2021
Device: KINDLE
Wow thanks for the quick response. And for your wonderful product!

I haven't worked with file permissions before so can you give me a quick tip or link to what that fix would look like?
medownunder is offline   Reply With Quote
Old 05-31-2021, 09:47 PM   #4
medownunder
Junior Member
medownunder began at the beginning.
 
Posts: 5
Karma: 10
Join Date: May 2021
Device: KINDLE
Can anyone help with this please?

In Permissions for my User Folder it says that I have Full control.
What else can I try?
medownunder is offline   Reply With Quote
Old 05-31-2021, 10:44 PM   #5
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: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Look at the error message it will tell you what file has permissions issues, fixthe permissions on that file/folder.
kovidgoyal is offline   Reply With Quote
Old 05-31-2021, 11:03 PM   #6
medownunder
Junior Member
medownunder began at the beginning.
 
Posts: 5
Karma: 10
Join Date: May 2021
Device: KINDLE
Thanks for the quick response!

The first error message is:

calibre, version 5.19.0
ERROR: Failed to create library: Failed to create calibre library at: 'C:\\Users\\Bryan\\Documents\\Calibre Library'.
You will be asked to choose a new library location.
Traceback (most recent call last):
File "calibre\gui2\main.py", line 182, in get_library_path
File "os.py", line 223, in makedirs
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\Bryan\\Documents\\Calibre Library'

When I click "OK" and choose my Documents folder then I get:
"The library database at C:\Users\Bryan\Documents appears to be corrupted. Do you want calibre to try to and rebuild it automatically?"

When I click "Yes" I get:
calibre, version 5.19.0
ERROR: Failed to repair library: Restoring database failed, click "Show details" to see details
Traceback (most recent call last):
File "calibre\db\restore.py", line 129, in run
File "calibre\db\restore.py", line 286, in replace_db
File "shutil.py", line 261, in copyfile
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Bryan\\Documents\\metadata.db'
medownunder is offline   Reply With Quote
Old 05-31-2021, 11:10 PM   #7
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: 35,311
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by medownunder View Post
Thanks for the quick response!

The first error message is:

Spoiler:
calibre, version 5.19.0
ERROR: Failed to create library: Failed to create calibre library at: 'C:\\Users\\Bryan\\Documents\\Calibre Library'.
You will be asked to choose a new library location.
Traceback (most recent call last):
File "calibre\gui2\main.py", line 182, in get_library_path
File "os.py", line 223, in makedirs
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\Bryan\\Documents\\Calibre Library'


When I click "OK" and choose my Documents folder then I get:
"The library database at C:\Users\Bryan\Documents appears to be corrupted. Do you want calibre to try to and rebuild it automatically?"

When I click "Yes" I get:
Spoiler:
calibre, version 5.19.0
ERROR: Failed to repair library: Restoring database failed, click "Show details" to see details
Traceback (most recent call last):
File "calibre\db\restore.py", line 129, in run
File "calibre\db\restore.py", line 286, in replace_db
File "shutil.py", line 261, in copyfile
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Bryan\\Documents\\metadata.db'
I would recommend moving your calibre library outside of your Documents folder. Windows attempts to protect that folder so it would be easier to disconnect the library (the Remove library option) from calibre, move it to a new directory (call it calibre ) in your C:\Users\Bryan directory so C:\Users\Bryan\calibre\Calibre Library and then reconnect the library to calibre (under the Library icon, Switch/create library, browse to the new library location and make sure the radio button for Use the previously existing library at the new location is selected.

After that, you can do the check and restore if needed on the database.

Last edited by DNSB; 05-31-2021 at 11:13 PM.
DNSB is offline   Reply With Quote
Old 05-31-2021, 11:59 PM   #8
medownunder
Junior Member
medownunder began at the beginning.
 
Posts: 5
Karma: 10
Join Date: May 2021
Device: KINDLE
Quote:
Originally Posted by DNSB View Post
I would recommend moving your calibre library outside of your Documents folder. Windows attempts to protect that folder so it would be easier to disconnect the library (the Remove library option) from calibre, move it to a new directory (call it calibre ) in your C:\Users\Bryan directory so C:\Users\Bryan\calibre\Calibre Library and then reconnect the library to calibre (under the Library icon, Switch/create library, browse to the new library location and make sure the radio button for Use the previously existing library at the new location is selected.

After that, you can do the check and restore if needed on the database.
Thank you David, your suggestion has fixed my problem! Much appreciated, clever man.
medownunder is offline   Reply With Quote
Old 06-01-2021, 01:36 AM   #9
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: 35,311
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by medownunder View Post
Thank you David, your suggestion has fixed my problem! Much appreciated, clever man.
That "security improvement" is the reason that calibre on Windows no longer defaults to using the Documents directory for it's libraries.
DNSB is offline   Reply With Quote
Old 06-01-2021, 05:12 PM   #10
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: 8,558
Karma: 61170925
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Win10's ransomware protection has been known to cause issues with programs attempt to write to the user Documents folders. (To rather silly extents.) It can be disabled in Windows Security > Virus & Threat Protection > Manage ransomware protection > Controlled folder access.

Last edited by ownedbycats; 06-01-2021 at 05:15 PM.
ownedbycats is online now   Reply With Quote
Old 06-01-2021, 08:54 PM   #11
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: 35,311
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by ownedbycats View Post
Win10's ransomware protection has been known to cause issues with programs attempt to write to the user Documents folders. (To rather silly extents.) It can be disabled in Windows Security > Virus & Threat Protection > Manage ransomware protection > Controlled folder access.
What I have found is that on several occasions, updates reverted changes I'd made to those settings. After making the same changes a couple of times, I moved my calibre libraries and haven't seen any issues since.
DNSB is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Viewing User Access Roodavis Server 4 07-11-2020 02:22 PM
Feature request: Calibre Multi user/device access Cool Javelin Library Management 5 06-22-2018 07:02 AM
FYI: Win10 System Admin may be required. OldLincoln Library Management 3 09-13-2015 11:04 AM
Multi-user access to Calibre db in cloud higlider Related Tools 2 12-05-2013 06:32 AM


All times are GMT -4. The time now is 09:38 PM.


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