View Single Post
Old 08-03-2017, 06:46 AM   #2
mrbriggs
Junior Member
mrbriggs is on a distinguished road
 
Posts: 1
Karma: 56
Join Date: Nov 2010
Device: none
I recently had the same error after upgrading calibre.

It appears that the options for calibre-server have changed. I updated my service file to the following and everything seems to work fine now:

Code:
[Unit]
Description=Calibre (ebook manager) content server service
After=network.target

[Service]
Type=forking
PIDFile=/var/run/calibre-server.pid
ExecStart=/usr/bin/calibre-server \
        --daemonize \
        --log=/home/<USERNAME>/calibre.log \
        --max-opds-items=30 \
        --max-opds-ungrouped-items=100 \
        --port=8080 \
        --pidfile=/var/run/calibre-server.pid \
        /<LIBRARY PATH>/
[Install]
WantedBy=multi-user.target

Replace <USERNAME> with your username (I.e. joe)
Replace <LIBRARY PATH> with the path to your library (I.e. media/eBooks )
Note: I left the leading and trailing "/" in the code above so make sure you do not end up with //media/eBooks//, the line should read /media/eBooks/ for your example.

You will need to create a log file called calibre.log or you will get an error:
Code:
touch /home/<USERNAME>/calibre.log
You will need to reload your systemctrl daemons to get the updated file to work
Code:
systemctl daemon-reload
Then start your system service normally.

I hope this helps.

Last edited by mrbriggs; 08-03-2017 at 06:51 AM.
mrbriggs is offline   Reply With Quote