07-25-2018, 01:50 PM | #1 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jul 2018
Location: Hot Springs, SD
Device: Samsung Galaxy Tab S, Kobo Aura Edition 2
|
Content Server - error with missing file
Short version: When I try to start the Content server on Windows 10, I'm now getting this error message:
calibre, version 3.28.0 ERROR: Failed to start Content server: Could not start the Content server. Error: [Errno 2] No such file or directory: 'C:\\Program Files (x86)\\Calibre2\\app\\imgsrc\\srv\\generate.py' I started getting this error after I started the installation of a separate calibre development environment. The prod environment is in a separate folder & drive from my regular installation. I don't even have a batch file setup or running yet to switch between the two. The thing is, this "app" folder doesn't exist directly under the Calibre2 folder. It should be Calibre2\imgsrc\... Any suggestions on what I may be causing this and where to look? -------------- Some futher details: I've been running Calibre server for personal use on my local Windows 10 machine for a couple months and love it. Last week I decided to start setting up a development environment to dabble with plugin development. So I cloned the calibre branch from github into a separate folder on my machine (actually, on a separate drive from my main calibre installation). I was going through the instructions a step at a time from the "Setting up a development environment" calibre help pages, and got partly through the "Having separate “normal” and “development” calibre installs on the same computer" section on that page. After having completed part of this, I am no longer able to run the Content server in my primary calibre environment. I'm getting the error I pasted above. |
07-25-2018, 02:09 PM | #2 | |
Bibliophagist
Posts: 36,499
Karma: 145748888
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
If you remove your development version, does calibre server start working again? If not, you might want to try uninstalling and then re-installing the main calibre instance. |
|
Advert | |
|
07-25-2018, 02:11 PM | #3 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jul 2018
Location: Hot Springs, SD
Device: Samsung Galaxy Tab S, Kobo Aura Edition 2
|
I just now found the "culprit". I just delete the CALIBRE_DEVELOP_FROM environment variable I had set last week, and now the server starts. And no error.
I'm not sure how that was causing the issue and if anyone can explain I'd appreciate it. I had the variable set under System Properties > Environment Variables > System Variables |
07-25-2018, 02:16 PM | #4 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jul 2018
Location: Hot Springs, SD
Device: Samsung Galaxy Tab S, Kobo Aura Edition 2
|
David, that's interesting. I'm pretty consistent on keeping the program updated, being currently on the latest version. Maybe I should try a re-install of the main instance and then adding the environment variable back in.
|
07-25-2018, 09:24 PM | #5 | |
Grand Sorcerer
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
For development, I don't set the environment variable globally. I use a batch wrapper script that does the setup needed and starts calibre-debug. That way I can run different versions if needed or the released code with no changes. |
|
Advert | |
|
07-27-2018, 04:40 AM | #6 |
Wizard
Posts: 1,161
Karma: 1404241
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
Same for me.
In addition a quick check for environment variables is easy and always a good idea if someone doing this kind of manipulations. Simply run a cmd window and type set calibre and you will see all environment variables starting with calibre, if they exist. calibre environment variables start with CALIBRE_... https://manual.calibre-ebook.com/customize.html |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
calibre-server 3.0 missing file? | Uncle_Steve | Calibre | 2 | 06-16-2017 12:40 PM |
Content Server error | tedpeer | Calibre | 2 | 08-16-2013 09:28 PM |
500 Internal Server Error accessing content server Calibre 0.8.8 | DaddyO57 | Calibre | 1 | 07-20-2012 06:08 PM |
Error in Content Server | Barrowise | Library Management | 8 | 06-07-2011 09:01 AM |
content server error | brysio | Calibre | 3 | 12-18-2010 12:24 PM |