Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 08-02-2017, 11:07 PM   #1
Thatone
Junior Member
Thatone began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2017
Device: Kindle
Trouble installing headless server

Hey having trouble getting a headless server version running
I am installing it on the following

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial

When I try to add a database I get
root@newsgroup:/# calibredb add /tvshows/Books/* --library-path /tvshows/Calibre-library/
load glyph failed err=6 face=0x34143e0, glyph=2797
load glyph failed err=6 face=0x340f630, glyph=2797
load glyph failed err=6 face=0x34143e0, 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

My system file
[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 \

[Install]
WantedBy=multi-user.targe

I installed Calibre using the following command
sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"
Thoughts?
Thatone is offline   Reply With Quote
Old 08-02-2017, 11:15 PM   #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: 44,030
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need to use --with-library with the server URL. See the documentation of calibredb.
kovidgoyal is offline   Reply With Quote
Advert
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
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Content server on ubuntu 12.04 headless server ImageMagick: libltdl.so.7 Cool Javelin Calibre 5 04-08-2015 02:20 AM
DEBIAN Headless SERVER sMystero Devices 10 04-03-2015 06:55 PM
Installing Calibre on Headless Linux dchagnon Devices 3 12-17-2013 04:18 PM
Headless Calibre Server greene48 Library Management 17 10-28-2013 01:09 AM
Installing calibre solely for ebook-convert on headless system Zeroth Related Tools 1 08-24-2010 08:59 PM


All times are GMT -4. The time now is 06:14 AM.


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