12-10-2017, 01:45 PM | #1 |
Enthusiast
Posts: 29
Karma: 566
Join Date: May 2009
Device: none
|
Update calibredb and calibre-server on a CLI server
I am trying to update my calibredb and calibre-server on a Ubuntu 17.04 headless server with no GUI. The currently installed (by apt-get) version:
Code:
sudo apt-show-versions calibre calibre:all/zesty 2.75.1+dfsg-1build1~1 uptodate When attempting a binary install of the complete calibre 3.13.0 package, it results in an error from no GUI desktop installed: Code:
Setting up desktop integration... xdg-desktop-menu: No writable system menu directory found. ____________________ WARNING ____________________ Setting up desktop integration failed with error: __________________________________________________ Traceback (most recent call last): File "site-packages/calibre/linux.py", line 859, in setup_desktop_integration File "subprocess.py", line 541, in check_call CalledProcessError: Command 'xdg-desktop-menu install --noupdate ./calibre-gui.desktop' returned non-zero exit status 3 Code:
calibre QXcbConnection: Could not connect to display Aborted (core dumped) Code:
sudo apt-show-versions calibre calibre:all/zesty 2.75.1+dfsg-1build1~1 uptodate And, any suggestions about my fundamental problem of access to the /opds xml file would be appreciated. |
12-10-2017, 02:34 PM | #2 |
Enthusiast
Posts: 29
Karma: 566
Join Date: May 2009
Device: none
|
Grrr! I may have stumbled across the version answer and shouldn't have asked that question.
Code:
calibredb --version calibredb (calibre 3.13) Code:
sudo apt-show-versions calibre calibre:all/zesty 2.75.1+dfsg-1build1~1 uptodate |
12-10-2017, 03:45 PM | #3 |
Grand Sorcerer
Posts: 12,167
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Probably you installed the newer version of calibre from the instructions at https://calibre-ebook.com/download_linux which will not update the apt database
|
12-11-2017, 09:19 AM | #4 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Uninstall your distro calibre. Then install the binary and ignore the WARNING about being unable to install desktop files. And if you want help with your original problem, you should give us some more information about. WHat does unable to access opds actually mean?
|
12-11-2017, 10:14 AM | #5 |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
THe OP originally reported the problem in the CC forum in this thread. There is more detail there.
|
12-11-2017, 10:17 AM | #6 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
According to that he is getting 404 errors, which should be easy to diagnose by looking at the server log.
|
12-11-2017, 06:25 PM | #7 |
Enthusiast
Posts: 29
Karma: 566
Join Date: May 2009
Device: none
|
Thanks gentlemen for sticking with this. I'm a Linux noob getting lost with the requirements of this installation. So to start from scratch, I did an uninstall.
Code:
sudo /usr/bin/calibre-uninstall Next: Code:
calibredb --library-path=/srv/sharestorage2/CalibreLibrary calibre-server (returned) calibre server listening on 0.0.0.0:8080 OPDS feeds advertised via BonJour at: 192.168.1.21 port: 8080 sudo systemctl enable calibre.service One remaining concern is the leftovers from the full calibre install, including the failed calibre.service. Is there a way to avoid this (see attachment) and remove the excess? |
12-11-2017, 08:02 PM | #8 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You need to uninstall the distribution provided calibre, which you do by using the software management tools of the distribution, apt for debian/unbunut, yum for fedora, pacman for arch, etc.
|
12-15-2017, 12:03 PM | #9 |
Enthusiast
Posts: 29
Karma: 566
Join Date: May 2009
Device: none
|
I uninstalled everything installed by the Ubuntu apt-get as you suggested:
Code:
$ sudo apt-get update $ sudo apt-get purge calibre $ sudo apt autoremove Next I installed calibre from https://calibre-ebook.com/download_linux using the Binary Install command provided (thank you). Code:
$ calibre QXcbConnection: Could not connect to display Aborted (core dumped) ~$ calibre-server calibre server listening on 0.0.0.0:8080 OPDS feeds advertised via BonJour at: 192.168.1.xx port: 8080 $ sudo apt-show-versions calibre calibre:all not installed $ calibredb --version calibredb (calibre 3.13) I then added a @reboot crontab function as a simple way to automatically start calibre-server by adding this line at end of the default crontab file: Code:
@reboot /opt/calibre/calibre-server & It is a little disconcerting having those failed or inactive services hanging around from the GUI version of calibre. Any way to remove them (see attached screenshot)? While a CLI version of calibre would be appreciated, I'm happy having everything working this way. |
12-15-2017, 09:13 PM | #10 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre does not install any service files. Either you installed them yourself or the distro calibre package did it for you and failed to remove it. And a bit of googling will show you how to remove service files from your system.
|
12-16-2017, 02:41 PM | #11 |
Enthusiast
Posts: 29
Karma: 566
Join Date: May 2009
Device: none
|
I'm a confused noob. Doesn't the installation from https://calibre-ebook.com/download_linux using the Binary Install command install calibre.service? Even though its GUI functions cannot be used.
After my uninstallation using the Ubuntu apt-get and a reboot, all signs of calibre and the calibre.service were gone. The only subsequent installation I made was that Binary Install command. |
12-16-2017, 09:28 PM | #12 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No the binary installation does not install service files. Easy to check, the installer is here: https://github.com/kovidgoyal/calibr...libre/linux.py
Just search for the word service in that file. |
12-17-2017, 06:52 PM | #13 |
Enthusiast
Posts: 29
Karma: 566
Join Date: May 2009
Device: none
|
I deactivated the errant calibre.service with:
Code:
sudo systemctl disable calibre-server.service The bottom line is another source led to my problem. Not Calibre or Calibre Companion. Making sure of a clean foundation before installing something new sure avoids problems! As does learning a little about services and systemctl. Last edited by dlfuller; 12-19-2017 at 01:14 PM. Reason: My apology for the previous (deleted) dumb question. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cannot connect to network calibre-server and calibredb | dlfuller | Calibre Companion | 6 | 10-28-2019 03:40 PM |
Calibre-server / Linux don't see calibreDB update when it's running | aurigod | Calibre | 13 | 11-25-2015 02:44 AM |
calibre-server: Doesn't server up newly added files | kaistian | Calibre | 5 | 03-17-2013 11:54 AM |
calibre-server OPDS catalog - manual move to web server | HaakonME | Related Tools | 5 | 09-21-2012 03:11 AM |
500 Internal Server Error accessing content server Calibre 0.8.8 | DaddyO57 | Calibre | 1 | 07-20-2012 06:08 PM |