![]() |
#1 |
Member
![]() Posts: 10
Karma: 10
Join Date: Mar 2014
Device: Kindle
|
Cannot access Content Server - even locally
Running Calibre 1.26, Windows 7 Ultimate 64 bit
When trying to connect to Content Server using Firefox locally on the PC I am getting the error: 500 Internal Server Error The server encountered an unexpected condition which prevented it from fulfilling the request. Traceback (most recent call last): File "site-packages\cherrypy\_cprequest.py", line 628, in respond File "site-packages\cherrypy\_cprequest.py", line 744, in get_resource File "site-packages\cherrypy\_cpdispatch.py", line 478, in __call__ File "site-packages\cherrypy\_cpdispatch.py", line 493, in find_handler File "site-packages\routes\__init__.py", line 22, in __setattr__ File "site-packages\routes\__init__.py", line 51, in load_wsgi_environ File "site-packages\routes\mapper.py", line 690, in routematch File "site-packages\routes\mapper.py", line 609, in _match File "site-packages\routes\mapper.py", line 560, in create_regs File "site-packages\routes\mapper.py", line 578, in _create_regs File "site-packages\routes\route.py", line 306, in makeregexp File "re.py", line 190, in compile File "re.py", line 242, in _compile error: bad character in group name u'/ajax' Any help appreciated, Bernie |
![]() |
![]() |
![]() |
#2 |
Force-Aware Elf
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,762
Karma: 11557898
Join Date: Feb 2014
Location: Valinor
Device: Kindle 4 w/SO
|
does it work when you click test in the options section?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,322
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Just in case someone else might have a clue what is going on: that error is raised because there is an attribute in the HTTP request named "wsgi_environ" and that attribute has an invalid value. I don't know why such an attribute might exist.
Possibilities I can think of:
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,322
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
@BumbleBernie: does the problem go away if you boot in "Safe Mode with networking"? That mode should remove any extra software that might be getting in the way. If it works, then at least you have some information about what you might need to look for.
|
![]() |
![]() |
![]() |
#5 | ||
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)
|
Kovid recently added a statement to the Documentation that using the in-process server (with WSGI) is not a good idea (if that is what you are doing):
Quote:
|
||
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Member
![]() Posts: 10
Karma: 10
Join Date: Mar 2014
Device: Kindle
|
@Glorfindel: Sorry, don't know what TEST you mean.
@chaley: No reverse proxy cherrypy - I am only using Calibre, nothing else Firewall on or off, no antivirus - same error Starting Windows in safe mode with networking - same error @eschwartz: I am only using Calibre (connect/share options), nothing else Thanks for your responses - I am still stuck Bernie |
![]() |
![]() |
![]() |
#7 |
Force-Aware Elf
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,762
Karma: 11557898
Join Date: Feb 2014
Location: Valinor
Device: Kindle 4 w/SO
|
when you open the settings area of the content server (under preferences )where you can set it up and turn it on there is a button that says test server or something like that, you can also test it manually by typing in the following in a web browser: 127.0.0.1
I think that's what it is any way... |
![]() |
![]() |
![]() |
#8 | |
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:
Clicking "Test Server" is definitely a much better option -- it will open the URL directly, passing it to your browser. |
|
![]() |
![]() |
![]() |
#9 |
Force-Aware Elf
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,762
Karma: 11557898
Join Date: Feb 2014
Location: Valinor
Device: Kindle 4 w/SO
|
yeah thats right... forgot about the port #
![]() |
![]() |
![]() |
![]() |
#10 |
Member
![]() Posts: 10
Karma: 10
Join Date: Mar 2014
Device: Kindle
|
Selecting TEST SERVER produces the same error.
Bernie |
![]() |
![]() |
![]() |
#11 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,322
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
What environment variables do you have defined?
The easiest way to get a list of environment variables is to open a command prompt then type "set" (no quotes) then return. |
![]() |
![]() |
![]() |
#12 |
Member
![]() Posts: 10
Karma: 10
Join Date: Mar 2014
Device: Kindle
|
Those are the environment variables set:
ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\Bernd\AppData\Roaming CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=BERND-PC ComSpec=C:\Windows\system32\cmd.exe FP_NO_HOST_CHECK=NO HOMEDRIVE=C: HOMEPATH=\Users\Bernd KMP_DUPLICATE_LIB_OK=TRUE LOCALAPPDATA=C:\Users\Bernd\AppData\Local LOGONSERVER=\\BERND-PC MOZ_PLUGIN_PATH=C:\Program Files (x86)\Nuance\PDFViewer\Bin\;C:\Program Files (x86)\Foxit Software\Foxit PhantomPDF\plugins\ NUMBER_OF_PROCESSORS=4 OS=Windows_NT Path=C:\Program Files (x86)\Business Objects\Common\3.5\bin\NOTES\;C:\Program Files (x86)\Business Objects\Common\3.5\bin\NOTES\DATA\;C:\Windows\syst em32;C:\Windows;C:\Windows\System32\Wbem;C:\Window s\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\Acronis\SnapAPI\;C:\Program Files\Calibre2\;C:\Program Files (x86)\Deskcalc Pro PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WS F;.WSH;.MSC PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 37 Stepping 2, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=2502 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PROMPT=$P$G PSModulePath=C:\Windows\system32\WindowsPowerShell \v1.0\Modules\ PUBLIC=C:\Users\Public SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\Windows TEMP=T:\Temp TMP=T:\Temp USERDOMAIN=Bernd-PC USERNAME=Bernd USERPROFILE=C:\Users\Bernd windir=C:\Windows |
![]() |
![]() |
![]() |
#13 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,322
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
I am very close to out of ideas.
![]() One thought: what language is calibre set to, and what is the language of the PC? If calibre is not set to English (which I expect it is not), does changing its language to English change the behavior? I am wondering whether there might be some character encoding issues. |
![]() |
![]() |
![]() |
#14 |
Member
![]() Posts: 10
Karma: 10
Join Date: Mar 2014
Device: Kindle
|
Calibre is set to English
|
![]() |
![]() |
![]() |
#15 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,322
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
I don't think it matters, but for completeness: what language is the computer using?
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre Content Server and Windows Home Server 2011 | HughMcC | Calibre | 8 | 10-01-2014 07:26 AM |
500 Internal Server Error accessing content server Calibre 0.8.8 | DaddyO57 | Calibre | 1 | 07-20-2012 06:08 PM |
PRS-T1 to access the Content Server | martingUSA | Devices | 6 | 12-24-2011 02:05 PM |
Content server not serving all content. | False_Chicken | Calibre | 0 | 10-19-2011 05:56 PM |
Access calibre content server with Nook Color | astrodad | Nook Color & Nook Tablet | 18 | 06-02-2011 11:05 AM |