Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-31-2018, 11:10 AM   #1
Irvin
Junior Member
Irvin began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Dec 2018
Device: Tolino, Kindle Paperwhite
How do I find out my library_id?

Hi all,

how do I find out my library_id?

>>You can use the special library_id value of - to get a list of library ids available on the server.

Tried that, but the result for the library_id is "library". I think, this is not correct.

with best regards,
Irvin

root@host1:/scripts# calibredb list_categories --library-path=http://localhost:8080#-
library
root@host1:/scripts#

root@host1:/scripts# calibredb list_categories --library-path=http://localhost:8080#library
Traceback (most recent call last):
File "/usr/bin/calibredb", line 20, in <module>
sys.exit(main())
...
File "/usr/lib/python2.7/httplib.py", line 880, in _send_output
msg += message_body
UnicodeDecodeError: 'utf8' codec can't decode byte 0x90 in position 0: invalid start byte

root@host1:~# calibredb --version
calibredb (calibre 3.7)
root@host1:~#
root@host1:~# calibre-server --version
calibre-server (calibre 3.7)
root@host1:~#
root@host1:~# uname -a
Linux host1 4.15.0-1021-aws #21-Ubuntu SMP Tue Aug 28 10:23:07 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Last edited by Irvin; 12-31-2018 at 11:13 AM.
Irvin is offline   Reply With Quote
Old 12-31-2018, 09:27 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: 43,857
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No that is correct. Note that you should pass --library-path before list_categories since it is a global option. And update your calibre it's pretty old.
kovidgoyal is offline   Reply With Quote
Advert
Old 01-01-2019, 04:50 AM   #3
Irvin
Junior Member
Irvin began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Dec 2018
Device: Tolino, Kindle Paperwhite
ok, thanks.

>>And update your calibre it's pretty old.

ok. I'm just experimenting with docker. Next step will be, to use an up-to-date image instead of my old image with the old calibre.

Nevertheless:

Even if I put "list_categories" on the end, calibredb crashes.
Any idea, why calibredb crashes? What can I do to avoid the crash?

The answer is: "update calibre, maybe the problem is gone".
Correct?



Log:

root@host1:/# calibredb --library-path=http://localhost:8080#library list_categories
Traceback (most recent call last):
File "/usr/bin/calibredb", line 20, in <module>
sys.exit(main())
File "/usr/lib/calibre/calibre/db/cli/main.py", line 253, in main
return run_cmd(cmd, opts, args[1:], DBCtx(opts))
File "/usr/lib/calibre/calibre/db/cli/main.py", line 55, in run_cmd
ret = m.main(opts, args, dbctx)
File "/usr/lib/calibre/calibre/db/cli/cmd_list_categories.py", line 138, in main
category_data, field_metadata = dbctx.run('list_categories')
File "/usr/lib/calibre/calibre/db/cli/main.py", line 189, in run
return self.remote_run(name, m, *args)
File "/usr/lib/calibre/calibre/db/cli/main.py", line 211, in remote_run
res = self.br.open_novisit(rq)
File "/usr/lib/python2.7/dist-packages/mechanize/_mechanize.py", line 199, in open_novisit
return self._mech_open(url, data, visit=False, timeout=timeout)
File "/usr/lib/python2.7/dist-packages/mechanize/_mechanize.py", line 230, in _mech_open
response = UserAgentBase.open(self, request, data)
File "/usr/lib/python2.7/dist-packages/mechanize/_opener.py", line 193, in open
response = urlopen(self, req, data)
File "/usr/lib/python2.7/dist-packages/mechanize/_urllib2_fork.py", line 344, in _open
'_open', req)
File "/usr/lib/python2.7/dist-packages/mechanize/_urllib2_fork.py", line 332, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/dist-packages/mechanize/_urllib2_fork.py", line 1142, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.7/dist-packages/mechanize/_urllib2_fork.py", line 1115, in do_open
h.request(req.get_method(), req.get_selector(), req.data, headers)
File "/usr/lib/python2.7/httplib.py", line 1042, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 1082, in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line 1038, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 880, in _send_output
msg += message_body
UnicodeDecodeError: 'utf8' codec can't decode byte 0x90 in position 0: invalid start byte
root@host1:/#

Last edited by Irvin; 01-01-2019 at 04:54 AM.
Irvin is offline   Reply With Quote
Old 01-01-2019, 08:00 AM   #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
yeah I vaguely remember fixing this bug a long time ago.
kovidgoyal is offline   Reply With Quote
Old 01-01-2019, 11:12 AM   #5
Irvin
Junior Member
Irvin began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Dec 2018
Device: Tolino, Kindle Paperwhite
Thank you.

Will switch to up-to-date-Version next Weekend, when I’m back from skiing.
Irvin is offline   Reply With Quote
Advert
Old 01-04-2019, 01:30 AM   #6
Irvin
Junior Member
Irvin began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Dec 2018
Device: Tolino, Kindle Paperwhite
Back from skiing.

Switched to up-to-date-Version.

Now, everything works as expected.

Thank you.
Irvin is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Viewer Find text box looses focus during find again ? nurber Calibre 2 07-15-2017 11:14 AM
Can't find the right one Elomboko Which one should I buy? 7 11-15-2011 08:59 AM
Find/Replace Won't Find Rand Brittain Sigil 7 09-24-2011 04:35 AM
Get Find to find an exact phrase evwool Amazon Kindle 4 08-16-2011 08:47 AM
Find next Perkin Sigil 2 09-16-2010 11:47 PM


All times are GMT -4. The time now is 01:40 AM.


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