View Single Post
Old 08-02-2017, 11:33 PM   #3
Thatone
Junior Member
Thatone began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2017
Device: Kindle
Edit: maybe not
so the service is running
root@newsgroup:/var/log# systemctl status calibre.service
● calibre.service - Calibre Service
Loaded: loaded (/lib/systemd/system/calibre.service; disabled; vendor preset: enabled)
Active: active (running) since Thu 2017-08-03 13:32:18 AEST; 10s ago
Process: 7161 ExecStart=/usr/bin/calibre-server --daemonize --max-opds-items=30 --max-opds-ungrouped-items=100 --port=8888 --pidfile=/var/run/calibre-server.pid --log=/var/log
Main PID: 7219 (calibre-server)
Tasks: 14
Memory: 58.8M
CPU: 2.142s
CGroup: /system.slice/calibre.service
└─7219 /opt/calibre/bin/calibre-server --daemonize --max-opds-items=30 --max-opds-ungrouped-items=100 --port=8888 --pidfile=/var/run/calibre-server.pid --log=/var/log

When I go to myhostaddress:8888 I get
Failed to communicate with "/interface-data/init?1501731460755", with status: [404] Not Found

Library u'Calibre-library' not found

When I do try to add books to the database I get
"root@newsgroup:/var/log# calibredb add /tvshows/Books/* --library-path /tvshows/Calibre-library/
load glyph failed err=6 face=0x328f000, glyph=2797
load glyph failed err=6 face=0x324bb90, glyph=2797
load glyph failed err=6 face=0x328f000, glyph=2797
Traceback (most recent call last):
File "site.py", line 77, in main
File "site-packages/calibre/db/cli/main.py", line 251, in main
File "site-packages/calibre/db/cli/main.py", line 55, in run_cmd
File "site-packages/calibre/db/cli/cmd_add.py", line 374, in main
File "site-packages/calibre/db/cli/cmd_add.py", line 152, in do_add
File "site-packages/calibre/db/cli/main.py", line 190, in run
File "site-packages/calibre/db/cli/main.py", line 177, in db
File "site-packages/calibre/db/legacy.py", line 81, in __init__
File "site-packages/calibre/db/legacy.py", line 48, in create_backend
File "site-packages/calibre/db/backend.py", line 378, in __init__
File "site-packages/calibre/db/backend.py", line 1132, in initialize_database
File "src/cursor.c", line 236, in resetcursor
BusyError: BusyError: database is locked
"

/tvshows/Calibre-library/
bash: /tvshows/Calibre-library/: Is a directory



Quote:
Originally Posted by kovidgoyal View Post
You need to use --with-library with the server URL. See the documentation of calibredb.
thanks got it working
[Unit]
Description=Calibre Service
After=network.target

[Service]
Type=forking
PIDFile=/var/run/calibre-server.pid
ExecStart=/usr/bin/calibre-server \
--daemonize \
--max-opds-items=30 \
--max-opds-ungrouped-items=100 \
--port=8888 \
--pidfile=/var/run/calibre-server.pid \
--log=/var/log/calibre.log \
/tvshows/Calibre-library
[Install]
WantedBy=multi-user.targe

Last edited by Thatone; 08-03-2017 at 12:01 AM.
Thatone is offline   Reply With Quote