Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-20-2010, 09:52 AM   #196
dcarlozzi
Member
dcarlozzi began at the beginning.
 
Posts: 15
Karma: 10
Join Date: May 2010
Device: Sony prs-505, iPad
Starson17, Thanks for the clarification..I guess I was thinking that the Calibre server would act like DropBox..Regards.
dcarlozzi is offline   Reply With Quote
Old 08-01-2010, 06:47 AM   #197
tdk987
Junior Member
tdk987 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2010
Device: iPhone
Now that Stanza supports PDF, any chance of adding support to the server? I travel a lot and I can't stand iTunes' clunky USB transfer anyway, so it'd be much appreciated.
tdk987 is offline   Reply With Quote
Advert
Old 08-01-2010, 10:40 AM   #198
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,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
in newer versions of calibre, the content server sends PDF
kovidgoyal is offline   Reply With Quote
Old 08-25-2010, 11:55 PM   #199
Olucon
Junior Member
Olucon began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2010
Device: Laptop
I am completely clueless on how to do this. Is there any way someone could put together a step by step document on how to set up this server? I have it running and I can get it to run from the 127.0.0.1 test server page, but I have no way to get any outside connections.

I have a cable modem, a linksys router, and my computer to host... Windows vista is the OS.

What do I need to do to host my files?
Olucon is offline   Reply With Quote
Old 08-26-2010, 03:41 AM   #200
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: 11,734
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Olucon View Post
I am completely clueless on how to do this. Is there any way someone could put together a step by step document on how to set up this server? I have it running and I can get it to run from the 127.0.0.1 test server page, but I have no way to get any outside connections.

I have a cable modem, a linksys router, and my computer to host... Windows vista is the OS.

What do I need to do to host my files?
Unfortunately you are entering into a world where life is complicated.

In the end, you want to host a web server at home. The easy part is the server -- calibre provides that. The hard part is all the glue and fiddling that goes on to permit someone on the internet to see your server. Although there are how-to guides, there are almost always 'small' issues that are highly technical.

If you are willing to try, then I suggest you start with one of two how-to guides. The first is http://www.boutell.com/newfaq/creating/hostmyown.html. This one explains how to use 'dynamic dns', a technique that for a small upfront hassle avoids a lot of downstream hassles. The second is http://www.dslwebserver.com/. It provides more information, but makes assumptions about what you are trying to do that are probably over complicating things. In either case, don't pay attention to the parts talking about setting up a web server. You have one -- calibre. You will need to know the port number you used.

It is very difficult to help someone debug network setups, but people can provide suggestions to specific problems. If you try to set this up and have difficulties (and you probably will), post separate threads. Alternatively, you can ask on the fora associated with the how-to guides.

Final note: please be aware that by opening calibre, you are giving the bad guys a doorway into your home network. The doorway can be made very small, or it can be equivalent to leaving your keys in the front door lock. Be sure to forward only the calibre port (you will know what that means after following the how-tos). If possible, run the content server on a separate machine on your home network. Do not turn off any firewalls.
chaley is offline   Reply With Quote
Advert
Old 08-30-2010, 10:31 PM   #201
Olucon
Junior Member
Olucon began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2010
Device: Laptop
Thanks, I'll check into that.
Olucon is offline   Reply With Quote
Old 09-03-2010, 02:40 PM   #202
koland
Grand Sorcerer
koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.
 
Posts: 8,560
Karma: 8033155
Join Date: Aug 2008
Location: TN, USA
Device: kindle(all), nook, nookcolor, Sony, Kobo, epic, iphone, iPad, pc
Kovid, the docs need an update. This section:

Quote:
Can I access my calibre books using the web browser in my Kindle or other reading device?¶

calibre has a Content Server that exports the books in calibre as a web page. You can turn it on under Preferences->Content Server. Then just point the web browser on your device to the computer running the Content Server and you will be able to browse your book collection. For example, if the computer running the server has IP address 63.45.128.5, in the browser, you would type:

http://63.45.128.5:8080

Some devices, like the Kindle, do not allow you to access port 8080 (the default port on which the content server runs. In that case, change the port in the calibre Preferences to 80. (On some operating systems, you may not be able to run the server on a port number less than 1024 because of security settings. In this case the simplest solution is to adjust your router to forward requests on port 80 to port 8080).
The K3 does allow access to port 8080 -- I just tested it and had no problems at all, including downloading a book.

There was an issue with the cover staying displayed on the web page after it was complete, but I switched to a new page of books and that cleared up. Also, in portrait view, if I accidentally scrolled to the right side of the table, I could not get back to the left side (cleared up by using landscape mode instead).

I did get one reboot of the Kindle while browsing the page, but I've come to expect that when using wifi on the K3. (in fact, it just crashed while browsing through the NYT blog download from Calibre, but I've also had it crash just paging thru the main menu).
koland is offline   Reply With Quote
Old 09-03-2010, 02:42 PM   #203
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: 11,734
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by koland View Post
There was an issue with the cover staying displayed on the web page after it was complete, but I switched to a new page of books and that cleared up. Also, in portrait view, if I accidentally scrolled to the right side of the table, I could not get back to the left side (cleared up by using landscape mode instead).
The /mobile version might work better. It doesn't use popups or javascript.
chaley is offline   Reply With Quote
Old 09-03-2010, 03:22 PM   #204
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,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@koland: You should be seeing the mobile version of the content server page when using the K3. Are you seeing the normal content server page instead?

EDIT; never mind, I'll fix the next release (0.7.18) to send the mobile version by default for the kindle browser

Last edited by kovidgoyal; 09-03-2010 at 03:31 PM.
kovidgoyal is offline   Reply With Quote
Old 09-03-2010, 11:14 PM   #205
chodsdon
Junior Member
chodsdon began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2010
Device: Sony PRS 300
Error timeout undefined

The content server had been working fine for me..but since .16, whenever I test the server or anyone tries to access it, we get a javascript error Error:timeout undefined
Once I clear the error, searches work fine. The page header with the search box loads fine..so it doesn't seem to be a connection issue. It's just that initial timeout error when attempting to load the initial data.

Any ideas? (Still having the problem in .17)

Different browers...Firefox, Opera..no Stanza

Last edited by chodsdon; 09-03-2010 at 11:15 PM. Reason: additional information
chodsdon is offline   Reply With Quote
Old 09-03-2010, 11:29 PM   #206
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,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
can you use a javascript console to get more detail on that error.
kovidgoyal is offline   Reply With Quote
Old 09-04-2010, 02:46 AM   #207
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: 11,734
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by chodsdon View Post
The content server had been working fine for me..but since .16, whenever I test the server or anyone tries to access it, we get a javascript error Error:timeout undefined
Once I clear the error, searches work fine. The page header with the search box loads fine..so it doesn't seem to be a connection issue. It's just that initial timeout error when attempting to load the initial data.

Any ideas? (Still having the problem in .17)

Different browers...Firefox, Opera..no Stanza
I can reproduce the problem by making my content server very slow (sticking sleep()s into it).

The message is being printed by jquery.js handleError, line 2843. It is doing what it is supposed to do -- printing a timeout message. The timeout is currently set to be 10 seconds. I put a 15 second sleep into the content server and started seeing the messages.

First question: why is your content server taking more than 10 seconds to respond? Is it on a slow machine? Low memory? Huge library? Any ideas?

Second question: how to fix it. One way is to increase the timeout in gui.js, but that seems like fixing the problem with a hammer. Another way is for you to create a local copy of gui.js and change the value yourself. A third way is to make the timeout into an option (rather complicated, but possible). Kovid, do you have a preference?
chaley is offline   Reply With Quote
Old 09-04-2010, 07:07 AM   #208
chodsdon
Junior Member
chodsdon began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2010
Device: Sony PRS 300
Reasonably quick machine (quad 2200), lots of memory (4G), large library, but I'll bet a lot of people have a lot more..24K+. The problem with all of these is that there was no problem a week or so ago. Now..is it possible that then it was taking 9.9 seconds to load and the last 100 books or so pushed it over 10..just as I updated versions? Going over 24K? I suppose so...

Shouldn't be network speeds..as it occurs internally (127.0. etc.) as well as externally.

Shouldn't the first page load fairly quickly..while the db continues to organize in the backround?

Big searches cause the same error message. ie.."a" and "ab" while "abc" comes right up..so it does seem size dependant.
chodsdon is offline   Reply With Quote
Old 09-04-2010, 08:01 AM   #209
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: 11,734
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by chodsdon View Post
Shouldn't the first page load fairly quickly..while the db continues to organize in the backround?
No. Calibre first searches to apply any format limits and restrictions, then sorts the output, then picks the first N to display. Unless you are applying a restriction, it is probably the sort that is taking the time.
Quote:
Big searches cause the same error message. ie.."a" and "ab" while "abc" comes right up..so it does seem size dependant.
Consistent with the above. First calibre searches, then sorts the results.

You might try to do a 'check database integrity' (preferences -> advanced). It has the side-effect of reorganizing the DB and regenerating all the indices.

You can test the timeout hypothesis relatively easily, if you are willing to hack a little bit. The idea is to copy the content server client-side files (javascript, etc) from the install directory to a local one, change the timeout (in gui.js), and try it.

Steps:
1) Open a file explorer on your calibre configuration directory. Preferences -> Advanced -> Open Configuration Folder will take you there.

2) Create a folder named 'resources'. Navigate into that folder.

3) Open another file explorer on your calibre install folder. Open the 'resources' folder.

4) Copy (not move!) the folder content_server from the explorer in step 3 (the install folder) to the explorer in step 2 (the resources subfolder of your configuration folder). You can delete all the files in the new content_server folder except the one you will change in the next step: gui.js.

5) In the resources/content_server folder in your configuration folder, edit the file gui.js. If you are on windows, don't use notepad but instead use wordpad or a programmer's editor, so that line endings will be correct. Change the number on the line
var LIBRARY_FETCH_TIMEOUT = 10000; // milliseconds
to something larger, perhaps 20000.

6) see what happens.


Be sure to delete all the copied folders once (if) an 'official' fix is provided.
chaley is offline   Reply With Quote
Old 09-04-2010, 03:38 PM   #210
chodsdon
Junior Member
chodsdon began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2010
Device: Sony PRS 300
Thanks Chaley, that worked (after restarting Calibre..just stopping and starting the server didn't work). By my count, it took 14-15 seconds to load. I'll do a check database integrity also and see if that has any effect. It really shouldn't have gone from <10 seconds to 14 in only a couple of days, a couple of hundred books, or a couple of updates.
chodsdon is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS+ 300 (Browse Folders, Book History, Key Bindings, Dictionary, epub customization) kartu Sony Reader 137 03-06-2012 03:20 PM
Calibre Collection (can I transfer) madcatz990 Calibre 3 09-27-2010 06:13 PM
calibre - collection metadata? roffles Calibre 7 09-08-2010 10:08 PM
Cannot browse other sites after using Calibre Content Server duckbill Amazon Kindle 0 09-08-2010 12:08 AM
calibre creates collection on Sony PRS700 but does not transfer book into it leday Calibre 3 12-22-2009 12:45 PM


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


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