![]() |
#181 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,377
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I cant see why either auth or timeouts would make any difference. I'm wondering if it is the actual cache file being deleted or the entire temp dir.
Maybe stick a deliberate exception in there. Something like (at line 103) from calibre import walk raise Exception(str(list(walk(rd.tdir))) then if you happen to reproduce the error, it will at least tell us if it is a singe file going missing or the entire cache. |
![]() |
![]() |
![]() |
#182 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
@kovid: I found a way to repeat it.
Last edited by chaley; 05-14-2017 at 08:50 AM. Reason: Correct "mtime" to "mtimes" |
![]() |
![]() |
Advert | |
|
![]() |
#183 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
The problem happens when using the standard client ("/"). The steps are similar.
|
![]() |
![]() |
![]() |
#184 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,377
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Good catch, that would explain it. I developed most of the server before the GUI embedded server existed, so I forgot to take into account same process restarts.
|
![]() |
![]() |
![]() |
#185 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,636
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
@kovid, They are defined in the library where content server doesn't find them... And calibre Gui doesn't find either after starting content server. I think I'm missing something, later or tomorrow I'll try to catch screenshots.
|
![]() |
![]() |
Advert | |
|
![]() |
#186 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,377
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@Terisa: Huh, that's odd, I'll see if I can reproduce it
|
![]() |
![]() |
![]() |
#187 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,377
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@Terisa: I was able to replicate it.
@chaley: I think Terisa's bug is caused by caching in the template formatter subsystem. Basically, when the server is asked for metadata for a book, the user functions from the currently loaded db in the GUI are used. Since the metadata is coming from a library without the function, the error result is cached. In the future queries from a library with the function return the error result. Since I'm not too familiar with the innards of the template system, I'm not sure what the best approach here is. Thoughts? |
![]() |
![]() |
![]() |
#188 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,377
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@chaley: From looking at the code, the best approach seems to be to allow TemplateFormatter to take an argument formatter_funcs which defaults to None. When None, it uses the global formatter_funcs, otherwise it uses the local one. Then have each db object keep its own copy of the formatter_funcs() with its funcs loaded. In get_metadata()/proxy_metadata() it will pass in a formatter to the Metadata() object that uses this copy instead of the gloabl formatter_funcs()
I could be way off base, however. |
![]() |
![]() |
![]() |
#189 | |||
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
![]() I'd very much appreciate such a feature before the beta graduates... Though I suppose I can simply stop/start the service in the same wrapper script I already use for debug logging anyway, still, that is a bit of an ugly workaround which shouldn't be required in production releases. Quote:
![]() ... It did highlight the fact that using `calibre-debug -g` doesn't seem to have a way to specify the library to start up with the way the main executable does, though whether that is urgent in the backdoor debug version is questionable. ![]() Quote:
|
|||
![]() |
![]() |
![]() |
#190 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Would it be possible, when running the server without a library specified, to default to serving the full list of libraries that the GUI knows about?
|
![]() |
![]() |
![]() |
#191 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,377
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@eschwartz: it is not going to happen for 3.0 -- making that happen is a *huge* amount of work.
Not using 0.0.0.0 is just good practice. You never know just what you might be conencting to. No, the server is completely separate from the GUI, it does not know anything about the GUI, does not access its config files, etc. However, I suppose a special exception can be made in this case. |
![]() |
![]() |
![]() |
#192 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,377
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@eschwartz: There you go
https://github.com/kovidgoyal/calibr...7dfa9de4c53305 |
![]() |
![]() |
![]() |
#193 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,189
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Quote:
Code:
[::]:portnumber bernie |
|
![]() |
![]() |
![]() |
#194 | ||||
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
![]() Quote:
![]() Quote:
Quote:
|
||||
![]() |
![]() |
![]() |
#195 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,744
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Is there a way to exclude items from the list of categories in Search.
More generally, will future versions of the new server have any support for 'extensions' and 'adaptations', a'la 'plugins' and 'customisation' in the GUI. BR |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Beta testers needed | kovidgoyal | Calibre | 54 | 05-20-2016 12:34 PM |
Windows beta testers needed | kovidgoyal | Calibre | 19 | 02-08-2016 04:38 PM |
Beta testers for calibre 2.0 needed | kovidgoyal | Calibre | 142 | 05-08-2015 04:44 AM |
Arc Updated Jelly Bean release - Beta testers needed | kobo-adrian | Kobo Tablets | 19 | 05-23-2013 09:32 PM |
Web Browsing from the Ebw-1150 - BETA Testers needed | Nate the great | Fictionwise eBookwise | 26 | 09-21-2008 11:52 PM |