Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-19-2017, 04:45 AM   #1
astergiou
Junior Member
astergiou began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2017
Device: none
Calibre 3 content web server problem

Hello,

I just updated to Calibre 3 and content web server is not working anymore

Web browser displays error
"Failed to communicate with "interface-data/init?1497861882735", with status: [500] Internal Server Error"

and log file of calibre

Unhandled exception in state: State: _job_done Client: 192.168.100.6:58687 Request: GET /interface-data/init?1497859781308 HTTP/1.1
Traceback (most recent call last):
File "site-packages/calibre/srv/loop.py", line 518, in tick
File "site-packages/calibre/srv/loop.py", line 278, in _job_done
File "site-packages/calibre/srv/pool.py", line 35, in run
File "site-packages/calibre/srv/http_response.py", line 439, in run_request_handler
File "site-packages/calibre/srv/routes.py", line 300, in dispatch
File "site-packages/calibre/srv/auth.py", line 215, in __call__
File "site-packages/calibre/srv/auth.py", line 250, in do_http_auth
File "site-packages/calibre/srv/auth.py", line 209, in check
File "site-packages/calibre/srv/users.py", line 129, in get
File "src/cursor.c", line 1019, in APSWCursor_execute.sqlite3_prepare
File "src/statementcache.c", line 386, in sqlite3_prepare
NotADBError: NotADBError: file is encrypted or is not a database


Could you please help ?

Thnak you
Attached Thumbnails
Click image for larger version

Name:	Capture1.JPG
Views:	336
Size:	39.8 KB
ID:	157392  
astergiou is offline   Reply With Quote
Old 06-19-2017, 05:36 AM   #2
astergiou
Junior Member
astergiou began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2017
Device: none
I ran calibre server with bellow command

calibre-server --port 8082 --auth-mode basic --enable-auth --userdb /opt/calibre/pass --daemonize --log /var/log/calibre3.log /mnt/eBooks/


I disabled auth as i do not know if statement --enable-auth --userdb /opt/calibre/pass is correct and in what form should the pass file be and now I get an empty library

and tried for testing with calibre-server --port 8082 /mnt/eBooks/

When I open calibre from windows, GUI is loaded with all my books but content library again is empty

can you please help?
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	400
Size:	47.3 KB
ID:	157396  
astergiou is offline   Reply With Quote
Advert
Old 06-19-2017, 05:42 AM   #3
astergiou
Junior Member
astergiou began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2017
Device: none
tried mobile site and it is wokring

http://192.168.100.6:8082/mobile

So what is wrong with full site??
Tried with Google chrome, Firefox and exlorer 11
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	343
Size:	126.1 KB
ID:	157397  
astergiou is offline   Reply With Quote
Old 06-19-2017, 08:01 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,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If you want to use --userdb you first need to use --manage-users to setup the user accounts. Line this

calibre-server --userdb /tmp/calibre-users.sqlite --manage-users

create the user account

then run

calibre-server --userdb /same/path/as/before --enable-auth /path/to/calibre/library/folder


/tmp/calibre-users.sqlite must not exist when you run --manage-users, it will create it for you. Change it to whatever path you actually want to use.

As for the libraries not being listed in windows it is most likely because you have your calibre library in the root of a drive. This will be fixed in the next release.
kovidgoyal is online now   Reply With Quote
Old 06-19-2017, 08:19 AM   #5
astergiou
Junior Member
astergiou began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2017
Device: none
Thank you for your quick reply

I will try the userdb and let you know if I have any problem

As for the library, my library is located at
/mnt/eBooks/

mounted from windows
//192.168.100.12/eBooks/ on /mnt/eBooks type cifs (rw,relatime,vers=1.0,sec=ntlm,cache=strict,userna me=astergiou@astergiou.gr,uid=0,noforceuid,gid=0,n oforcegid,addr=192.168.100.12,file_mode=0755,dir_m ode=0755,nounix,serverino,nobrl,rsize=61440,wsize= 65536,actimeo=1)

ehat should i change?
astergiou is offline   Reply With Quote
Advert
Old 07-28-2017, 06:31 PM   #6
niche99
Junior Member
niche99 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Aug 2009
Device: Sony PRS-505
Using 3.5.0. When I try your commandline to add a user I get an error:

What do you want to do? [1-4]: 1
Enter the username: titch
Python function terminated unexpectedly
putch() argument 1 must be char, not unicode (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 101, in main
File "site.py", line 78, in run_entry_point
File "site-packages\calibre\srv\standalone.py", line 176, in main
File "site-packages\calibre\srv\manage_users_cli.py", line 217, in manage_users_cli
File "site-packages\calibre\srv\manage_users_cli.py", line 213, in toplevel
File "site-packages\calibre\srv\manage_users_cli.py", line 93, in add_user
File "site-packages\calibre\srv\manage_users_cli.py", line 76, in get_pass
File "getpass.py", line 95, in win_getpass
TypeError: putch() argument 1 must be char, not unicode

Any help?
niche99 is offline   Reply With Quote
Old 07-29-2017, 02:56 AM   #7
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,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That's a bug in the getpass() function in python on windows. I will add a fix in the next release, in the meantime you can always create the user database using the calibre program itself.
kovidgoyal is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre Content Server from web app assur191 Development 1 01-30-2015 12:41 PM
Calibre content server web view on Sony PRS-T3 Amalthia Calibre 6 01-31-2014 01:49 PM
[Solved] Calibre Content Server Problem Jacdeb6009 Devices 2 11-01-2013 11:03 AM
calibre content server problem sovre Calibre 31 05-30-2013 04:25 AM
Calibre 0.7.19 content server and kindle 3 problem tommet Calibre 6 09-18-2010 05:21 PM


All times are GMT -4. The time now is 07:59 PM.


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