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 07-15-2017, 06:55 AM   #1
riff
Junior Member
riff began at the beginning.
 
riff's Avatar
 
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
Now I want to mount the database from my remote Calibre installation (I chose /path_to_server/calibre as path for library in this installation), but it always says database is locked (read only). Since web-calibre does not offer editing-function, I have to go this way. Alternatively I would have to create the entire database/library on my local system and copy it to the server. This works, but is nasty for any changes.

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.
riff is offline   Reply With Quote
Old 07-15-2017, 07:23 AM   #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: 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.
kovidgoyal is offline   Reply With Quote
Advert
Old 07-15-2017, 07:37 AM   #3
riff
Junior Member
riff began at the beginning.
 
riff's Avatar
 
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.
riff is offline   Reply With Quote
Old 07-15-2017, 12:10 PM   #4
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: 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:
Originally Posted by riff View Post
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
Forget the Distro version (un install)
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'
theducks is offline   Reply With Quote
Old 07-16-2017, 05:28 AM   #5
riff
Junior Member
riff began at the beginning.
 
riff's Avatar
 
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.
riff is offline   Reply With Quote
Advert
Old 07-16-2017, 07:09 AM   #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,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.
kovidgoyal is offline   Reply With Quote
Old 07-18-2017, 07:19 AM   #7
riff
Junior Member
riff began at the beginning.
 
riff's Avatar
 
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.
riff is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 08:53 PM.


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