![]() |
#1 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jan 2017
Device: none
|
Manage Calibre Library with two Calibre Instances
I have a Debian 8 server with Calibre 2.50 installed. system.d starts a calibre-server, through scripts I can import and convert bebooks. Ebooks are served through server for Tolino and Kindle readers.
The Database/Library is on server /path_to_server/calibre and can be accessed through Samba and NFS. I want to work on metadata of this library from remote. I stopped the running calibre-server with Code:
systemctl stop calibre.service How can I resolve this. My remote Calibre version is 3.4. Should I downgrade to the older one? I know that a remote database on a NAS/Server is not recommended. I do a lot of backuping here to prevent errors. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,235
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Run calibre 3 on your server, then you can connect to it using the calibredb command, and eventually directly witht he calibre GUI itself.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jan 2017
Device: none
|
Debian 8 offers, due to its freeze, only Calibre 2.50. Debian Calibre Package Tracking
I'll give it a try with a old version on my local system. Edit: I run into the same problem with Client 2.50 on my local file-system. I stopped calibre-server on the remote machine and tried to connect via Samba. Error is a read-only database. Code:
Traceback (most recent call last): File "site-packages\calibre\gui2\ui.py", line 637, in library_moved File "site-packages\calibre\db\legacy.py", line 73, in __init__ File "site-packages\calibre\db\legacy.py", line 46, in create_backend File "site-packages\calibre\db\backend.py", line 363, in __init__ File "site-packages\calibre\db\schema_upgrades.py", line 18, in __init__ File "site-packages\calibre\db\backend.py", line 808, in execute File "c:\cygwin64\home\kovid\sw\build\apsw-3.8.2-r1\src\cursor.c", line 231, in resetcursor ReadOnlyError: ReadOnlyError: attempt to write a readonly database Last edited by riff; 07-15-2017 at 09:08 AM. |
![]() |
![]() |
![]() |
#4 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,928
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:
Use the commandline given on the Calibre Linux Download page Do pay attention to the notes, just incase you have one of those 'edge cases' |
|
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jan 2017
Device: none
|
I tried the newer version on server as well. Works for starting a calibre server, but stopping the server and connect from remote to this database still gives me the database read only error. It seems almost like calibre is running in background an locking the database.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,235
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
File locking errors are almost certainly caused by samba. Dont use it. Instead rsync the library between your computers.
|
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jan 2017
Device: none
|
The locking-error was due to permissions. Access tohe database is done by a user, but the database itself is owned and priviliged only by calibre user on server. Setting up correct permissions for the remote user has solved the issue.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Removing plugin in Calibre removes it from all instances of Calibre | oblox | Calibre | 9 | 09-09-2016 05:39 AM |
Use calibre to manage remote calibre library | aarcane | Related Tools | 8 | 04-06-2013 01:40 AM |
Calibre to manage small private school library | mmmtcm4 | Library Management | 1 | 01-05-2012 09:54 PM |
Development Using Calibre to manage eDGe library | mrspaceman | enTourage Archive | 76 | 05-12-2011 12:38 PM |
Two instances of Calibre | Ortep | Calibre | 4 | 03-25-2011 06:10 PM |