Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-25-2017, 07:48 PM   #1
jdege
Connoisseur
jdege began at the beginning.
 
Posts: 65
Karma: 10
Join Date: May 2011
Device: Samsung Tablet
Calibre --with-library

For some months now, I've been uploading books to the Linux box that I keep my Calibre library on, shutting down calibre-server, running calibredb to add the book, and then starting up calibre-server again.

If I didn't shut down calibre-server first, I'd get an error:

Quote:
Another calibre program such as calibre-server or the main calibre program is running. Having multiple programs that can make changes to a calibre library running at the same time is a bad idea. calibredb can connect directly to a running calibre content server, to make changes through it, instead. See the documentation of the --with-library option for details.
I'd tried running calibredb with --with-library, but I'd get "refused" errors. I finally figured out why, I had to add --enable-local-write when I ran calibre-server. With that in place, I can run calibredb --with-library without problems.

But I am still having to shutdown calibre-server in order to run the main calibre UI. Even when I run it with the same --with-library argument that made calibredb work, I get the same error message when I run the calibre command.

Does the main calibre UI work, when run with --with-library pointing to an instance of calibre-server?

Is it intended to?

I find having access to my libraries from my mobile devices very convenient. Having to shutdown calibre-server every time I run the local UI much less so.
jdege is offline   Reply With Quote
Old 11-25-2017, 08:28 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: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Calibre server and Calibre(GUI) are no longer mutual.
'Only one ' is now the rule
theducks is offline   Reply With Quote
Advert
Old 11-25-2017, 08:59 PM   #3
jdege
Connoisseur
jdege began at the beginning.
 
Posts: 65
Karma: 10
Join Date: May 2011
Device: Samsung Tablet
So, how do I work with my library, from the desktop?
jdege is offline   Reply With Quote
Old 11-25-2017, 09:41 PM   #4
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,857
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
YOu either run the server from within the GUI or you do the shutdown server, run GUI, start server dance.
kovidgoyal is online now   Reply With Quote
Old 11-25-2017, 10:38 PM   #5
jdege
Connoisseur
jdege began at the beginning.
 
Posts: 65
Karma: 10
Join Date: May 2011
Device: Samsung Tablet
Any plans on fixing that?

I mean, the whole point of having a server is to have it running 24x7, whether anyone is logged into the box or not.
jdege is offline   Reply With Quote
Advert
Old 11-25-2017, 10:40 PM   #6
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: 29,800
Karma: 54830978
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 jdege View Post
So, how do I work with my library, from the desktop?
The builtin Server (optionally) RUNS along with the GUI. You can just minimize the GUI when not actively making changes.
The main difference from the Old way, is the new server (GUI or standalone) offers access to all know libraries, where the old GUI only offered the current library. You could run a standalone server alongside allowing acces to another Librery.
Now, there is no need for that dance.
theducks is offline   Reply With Quote
Old 11-25-2017, 10:47 PM   #7
jdege
Connoisseur
jdege began at the beginning.
 
Posts: 65
Karma: 10
Join Date: May 2011
Device: Samsung Tablet
Quote:
Originally Posted by theducks View Post
The builtin Server (optionally) RUNS along with the GUI. You can just minimize the GUI when not actively making changes.
I can't run the GUI at all, unless I'm logged into the machine, which I normally am not.

I may go a week or more without logging into the server machine. I have calibre-server configured with Upstart to start automatically when the machine boots, just like every other server I have running on the machine (sshd, httpd, etc.)

It's the way servers are supposed to work.
jdege is offline   Reply With Quote
Old 11-25-2017, 11:02 PM   #8
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,857
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Simply write a script that stops the server and then launches calibre and starts the server when calibre quits. You can also have the GUI run its embedded server automatically on startup so your server downtime is not going to be down for more than a few seconds. It's only linux that has this pretty artificial distinction between servers that can have no GUI and GUI programs that cannot run 24x7.

The GUI is never going to be able to connect to a server as a backend, but the server is going to gain the ability to edit metadata/add/convert books, etc. via its own UI.
kovidgoyal is online now   Reply With Quote
Old 11-25-2017, 11:55 PM   #9
jdege
Connoisseur
jdege began at the beginning.
 
Posts: 65
Karma: 10
Join Date: May 2011
Device: Samsung Tablet
Quote:
Originally Posted by kovidgoyal View Post
It's only linux that has this pretty artificial distinction between servers that can have no GUI and GUI programs that cannot run 24x7.
Are you telling me that you could configure the GUI to run as a Windows service that auto-started at startup? How?
jdege is offline   Reply With Quote
Old 11-26-2017, 12:23 AM   #10
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,857
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Just put it in startup programs, and enable the system tray and use --start-in-tray
kovidgoyal is online now   Reply With Quote
Old 11-26-2017, 12:35 AM   #11
jdege
Connoisseur
jdege began at the beginning.
 
Posts: 65
Karma: 10
Join Date: May 2011
Device: Samsung Tablet
My understanding was that programs in the startup folder don't run until the user logs in.
jdege is offline   Reply With Quote
Old 11-26-2017, 01:30 AM   #12
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,857
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yes, and what is the problem with a user logging in? It's not like the windowing sub-system is not running already.
kovidgoyal is online now   Reply With Quote
Old 11-26-2017, 01:57 AM   #13
jdege
Connoisseur
jdege began at the beginning.
 
Posts: 65
Karma: 10
Join Date: May 2011
Device: Samsung Tablet
I get up in the morning, have breakfast, go to work.

During lunch I read a book on my Android tablet. I finish the book, decide to download the next book in the series so I start Calibre Companion and tell it to connect to my Content Sever.

And if I was using the GUI as my server, unless I'd remembered to login before I left for work and left my computer logged in, it isn't running.

The whole point behind a server is that is configured to be running anytime the computer is on, without human interaction. If my computer is running, my ssh server is running, and my http server, whether I've logged in or not. If the power goes out, when it comes back on the computer boots up, and all the services restart.

That's how all of the standard services work. It's how I have calibre-server configured on Linux, and it's how I'd have it configured if I was using Windows. From wherever I am in the world, I can download books from my Calibre library.

I'd thought that was the whole reason calibre-server existed.
jdege is offline   Reply With Quote
Old 11-26-2017, 04:55 AM   #14
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,857
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Huh? In either case you need to have your server running. And it is trivial to setup windows to login automatically on start up.
kovidgoyal is online now   Reply With Quote
Old 11-26-2017, 07:38 AM   #15
jdege
Connoisseur
jdege began at the beginning.
 
Posts: 65
Karma: 10
Join Date: May 2011
Device: Samsung Tablet
Setting up the computer to log in on boot means leaving it logged in when no one is present, and that's a huge security weakness. And it assumes that there is only userid on the computer.

If my wife or kids need to use the machine, they either need to use the same login, which defeats the whole purpose of having separate logins, or they logout and log in as a different user, which shuts down Calibre.

Unless, of course, you put Calibre in the all-users startup folder, in which case it will start up no matter which user logs in. But then, it will try to run multiple copies, when multiple users are logged in simultaneously, which many versions of Windows support.

Face it. Calibre-server is a better tool for configuring 24×7 access to a Calibre library than the GUI.
jdege is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How Do I Convert a Windows Calibre Library to an OS X Calibre Library jamesgl Conversion 2 03-27-2015 12:59 PM
Network drive spun down: "Failed to create calibre library at: u'Z:\\Calibre Library" dmck Calibre 6 09-21-2013 06:11 PM
Difficulty with comparing Calibre Library and Device Library valleyebooks Library Management 2 02-13-2012 08:55 PM
Importing the Calibre library into the Sony Reader Library Fortissimo Reading and Management 0 02-02-2011 02:18 PM
How to direct Library books to Calibre instead of Sony Reader Library onebookie Calibre 3 07-19-2010 11:31 AM


All times are GMT -4. The time now is 12:57 AM.


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