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 03-06-2014, 01:34 PM   #1
BumbleBernie
Member
BumbleBernie began at the beginning.
 
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
BumbleBernie is offline   Reply With Quote
Old 03-06-2014, 01:46 PM   #2
Glorfindel
Force-Aware Elf
Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.
 
Glorfindel's Avatar
 
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?
Glorfindel is offline   Reply With Quote
Advert
Old 03-06-2014, 01:47 PM   #3
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
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:
  • calibre is running behind a reverse proxy that uses a WSGI module.
  • cherrypy is looking at some environment variable that sets up WSGI.
  • there is something installed that is getting between the network and calibre, adding attributes to the request. "Something" would most likely be some kind of security software.
chaley is offline   Reply With Quote
Old 03-06-2014, 01:50 PM   #4
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
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.
chaley is offline   Reply With Quote
Old 03-06-2014, 03:25 PM   #5
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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:
The calibre content server can be run directly, in process, inside a host server like Apache using the WSGI framework.

Quote:
Note: For this to work, all the dependencies needed by calibre must be installed on your system. Doing so is highly non-trivial and you are encouraged not to use in process servers. You will not get any assistance with debugging in process server problems.
eschwartz is offline   Reply With Quote
Advert
Old 03-06-2014, 04:16 PM   #6
BumbleBernie
Member
BumbleBernie began at the beginning.
 
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
BumbleBernie is offline   Reply With Quote
Old 03-06-2014, 04:30 PM   #7
Glorfindel
Force-Aware Elf
Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.
 
Glorfindel's Avatar
 
Posts: 4,762
Karma: 11557898
Join Date: Feb 2014
Location: Valinor
Device: Kindle 4 w/SO
Quote:
Originally Posted by BumbleBernie View Post
@Glorfindel: Sorry, don't know what TEST you mean.
Bernie
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...
Glorfindel is offline   Reply With Quote
Old 03-06-2014, 06:20 PM   #8
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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:
Originally Posted by Glorfindel View Post
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...
127.0.0.1:{whatever port you are using, default is 8080}

Clicking "Test Server" is definitely a much better option -- it will open the URL directly, passing it to your browser.
eschwartz is offline   Reply With Quote
Old 03-06-2014, 06:28 PM   #9
Glorfindel
Force-Aware Elf
Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.
 
Glorfindel's Avatar
 
Posts: 4,762
Karma: 11557898
Join Date: Feb 2014
Location: Valinor
Device: Kindle 4 w/SO
yeah thats right... forgot about the port #
Glorfindel is offline   Reply With Quote
Old 03-07-2014, 05:28 AM   #10
BumbleBernie
Member
BumbleBernie began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Mar 2014
Device: Kindle
Selecting TEST SERVER produces the same error.

Bernie
BumbleBernie is offline   Reply With Quote
Old 03-07-2014, 05:33 AM   #11
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
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.
chaley is offline   Reply With Quote
Old 03-07-2014, 12:30 PM   #12
BumbleBernie
Member
BumbleBernie began at the beginning.
 
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
BumbleBernie is offline   Reply With Quote
Old 03-07-2014, 02:28 PM   #13
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
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.
chaley is offline   Reply With Quote
Old 03-07-2014, 04:35 PM   #14
BumbleBernie
Member
BumbleBernie began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Mar 2014
Device: Kindle
Calibre is set to English
BumbleBernie is offline   Reply With Quote
Old 03-07-2014, 04:41 PM   #15
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
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?
chaley is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 05:15 PM.


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