07-28-2011, 09:15 PM | #1 |
Member
Posts: 23
Karma: 10
Join Date: Jun 2011
Device: Nook
|
Ubuntu Calibre server acting wonky
Hey all!
For background, these are the instructions that I've used to set up my content server in Ubuntu 10.04. In general, they have worked fine, but now I'm having a weird problem. I recently had to rebuild my server after a hard drive smoked, so some things, such as Calibre had to be rebuilt individually (thankfully, my library itself was backed up.) I set everything back up tonight, and it was working. I did some other things on my computer (the only thing even close to Calibre was doing a backup on the library files, but that shouldn't have had any effect.) Now, the web server shows a "No books found:" error. Client-side, everything is working, and every computer within my network using the client can find the books - it's just the web interface that's not finding anything. Nothing has been changed in regards to routers or firewalls. Anyone have any ideas? PS: Absolutely love the software and have been telling everyone I know with an e-reader about it. |
07-28-2011, 09:20 PM | #2 | |
Well trained by Cats
Posts: 29,839
Karma: 54837878
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Hopefully you are NOT using the the Repository version. So out of date.... Is something else using the Calibre assigned port? Can you connect Locally (LAN)? |
|
07-28-2011, 09:30 PM | #3 |
Member
Posts: 23
Karma: 10
Join Date: Jun 2011
Device: Nook
|
I guess I didn't explain well enough - I thought I covered the bases. (I seem to have a knack for that...) My apologies.
I am using the binary version DL'd from the site, as I was aware the repo version is out of date. Depending on what you mean by "locally," I am unable to connect. Again, I can access the library with the Calibre GUI client on all machines (either through NFS share on Linux machines, or Samba on Windows ones.) I cannot access via localhost:8080 or 192.168.1.2:8080. I also cannot access via xxx.x.x.x:8080. (Public IP) Earlier tonight, I was able to access the web version without problems. I have also attempted stopping and restarting the server itself, as well as rebooting. A few times, the script start issued an "Aborted" message, but the next attempt would not. |
07-28-2011, 09:38 PM | #4 | |
Well trained by Cats
Posts: 29,839
Karma: 54837878
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Any Browser on your network should be able to access the Web interface. Do you have the the (Preferences:Sharing) set to start the WEB server on Calibre Startup (also try the 'test server button)? |
|
07-28-2011, 09:42 PM | #5 | |
Member
Posts: 23
Karma: 10
Join Date: Jun 2011
Device: Nook
|
Quote:
To be honest, my old install of this (before the hard drive issue required me to start over) I never actually even used the client on the machine housing the server. I just installed via those instructions, ran it once just for setting the location of the library in opening menu, then closed it...so there was nothing else changed/set in that. And, again, nothing has changed on the network itself. |
|
07-28-2011, 09:57 PM | #6 |
Member
Posts: 23
Karma: 10
Join Date: Jun 2011
Device: Nook
|
Okay...I poked around in the client a bit and figured out what you are talking about...I fairly sure that's something different than what I linked in my original post. It's certainly something I haven't had to do before.
I tested/started the server through those options on another machine using Calibre, and when i tested it, it opened in my browser....however, it was just the local test. The external try still leads to the same screen So, again - I've been going with the instructions that I had linked in my first post - and this has worked before, and in fact did until earlier tonight. I'm still able to connect - it's just not finding the books. I've never gotten anything with the server through the GUI to work at all. |
07-28-2011, 10:11 PM | #7 | |
Well trained by Cats
Posts: 29,839
Karma: 54837878
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
The Guru's of development will need to help. BTW when you restored the Library, did you reconfigure the file system 'Rights' for the Library? Are you (the user) still the owner with rw rights? |
|
07-28-2011, 10:13 PM | #8 |
Member
Posts: 23
Karma: 10
Join Date: Jun 2011
Device: Nook
|
Yep. Went through the instructions step-by-step.
Again - it worked fine for about an hour or so...in that time, there was a reboot or two, and a backup run - but neither of those should have changed anything. |
07-28-2011, 10:23 PM | #9 |
creator of calibre
Posts: 43,905
Karma: 22666668
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Your passing the wrong path to --with-library (probably an empty or non existent directory instead of the calibre library)
|
07-28-2011, 10:37 PM | #10 |
Member
Posts: 23
Karma: 10
Join Date: Jun 2011
Device: Nook
|
Hmm...any idea where to look? In my script, it points at:
Code:
CONTENT=/media/raid/Library PORT=8080 MAX_COVER=600x800 USERNAME=<username> PASSWORD=<password Thanks for chiming in! |
07-28-2011, 10:48 PM | #11 |
Member
Posts: 23
Karma: 10
Join Date: Jun 2011
Device: Nook
|
Okay....now I'm getting very frustrated. I forwarded port 9090 to try that, and success. Rebooted...back to the same problem.
|
07-29-2011, 12:23 AM | #12 |
creator of calibre
Posts: 43,905
Karma: 22666668
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The error that you posted happens when there are zero books in the library. That in turn happens when you point the server to an empty directory (the server automatically creates an empty library in the directory). Why it's happening in your setup, I cannot say. Look at the library path displayed in the bottom right corner of the screen, check if it is what you expect.
|
07-29-2011, 08:24 AM | #13 |
Member
Posts: 23
Karma: 10
Join Date: Jun 2011
Device: Nook
|
Yeah, but the library was still where it was supposed to be. Notice that I said, "was." I musta done something wrong at some point and accidentally deleted it. Yeah, that sucked. I'm in the process of recreating from a backup.
So, right now, the script has it at port 8080, and that doesn't find the library at all. In the application, I got it working on 9090. Strange thing is, if I hit the "start server" button, it tells me that 9090 is unavailable - even though it's working now. I'd never used the in-app server settings before, but now it seems to be defaulting to those, no matter what the script said...but, I can still connect to a blank library on 8080, so it seems like I have to instances of the server running somehow. Not sure how I'm going to clean that up. I'm also trying to figure out why everything goes to poop when I reboot the machine. That is not optimal. Is there any error report I can run for you all to help analyze it? But, let me stress: This does not affect my feelings on the program. It's still the best book-management software I've used, and well worth it for this first instance of hassle. Thanks for all of your hard work in creating/maintaining it! |
07-29-2011, 10:52 AM | #14 | |||
Well trained by Cats
Posts: 29,839
Karma: 54837878
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Quote:
Quote:
BTW I have no problem with my Natty Desktop version: Calibre Server starts when I launch Calibre. |
|||
07-29-2011, 11:01 AM | #15 |
Member
Posts: 23
Karma: 10
Join Date: Jun 2011
Device: Nook
|
LOL...you and I really don't seem to be speaking the same language here.
Let me try again: I appear to have two Calibre web servers running, but not intentionally, and yes, it appears to be because of a foot-race at startup. As I said in my last post, I seem to have these two instances running and am unsure how to clean it up. I can't turn off the in-app one, because it doesn't - technically - seem to be running. Every time I go in there, the button to start the server is highlighted, not the stop server one....yet, the server is accessible as if it's running, and on the port specified there. I'd really much prefer to use the script that I've always been using, but that's screwing up and I don't know why. I'd never used the in-app server options, because they've never worked well for me, where-as (until now) the script always has....plus, I never have to go into that machine and use Calibre on it, because the script auto-starts it. With the in-app server controls, any time I start that machine, I have to physically open Calibre in order to get the server to start from what I understand (and from what you just posted: "Calibre Server starts when I launch Calibre".) This isn't just a server in name - this is my actual home server and not a PC that I sit down and use every day, so having to manually start things is not optimal. Like-wise, upgrading to Natty is not an option on this machine, as I need to stick with the reliability of the LTS releases for everything else I have served out of that machine. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Old Thread] Daemonizing the calibre-server in Ubuntu | gkbeer | Calibre | 10 | 01-20-2013 12:24 PM |
Calibre on ubuntu server | tdw197 | Calibre | 24 | 01-19-2011 07:48 AM |
Calibre crashes X server (Ubuntu 10.10) | mfabry | Calibre | 9 | 10-15-2010 04:12 PM |
Calibre Content Server error in Ubuntu 10.10 | Bodman456 | Calibre | 1 | 07-07-2010 03:26 PM |
Calibre RuntimeError on Ubuntu 8.04 Server | alexbt | Calibre | 3 | 10-13-2009 04:26 AM |