Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 07-16-2016, 09:29 PM   #1
ksorbo
Junior Member
ksorbo began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Dec 2007
Device: Palm Zire
Can this be done? Run Calibre server on Linux with Library on Amazon S3

I wonder if anyone has any experience with this possibility. I am trying this because the Ubuntu server has limited SSD drive space, but S3 is basically unlimited and very inexpensive. Plus this book server will not be accessed very frequently. Doesn't have to be fast.

Here is my setup:

1. Have the library on an Amazon S3 folder
2. I have an Ubuntu server on which I have installed calibredb (latest version). Books server works just fine as long as I have the library on the Ubuntu server.
3. I mounted the S3 folder into a folder on my Ubuntu server using s3fs. I can see and copy, etc. all books in the library.
4. When I run the calibre book server, it comes up just fine, but when I attempt to access a book or any other data, I get the following exception:

Code:
Error: No books found

TypeError: this.undef is not a function

    at Object.createException (http://138.197.255.189:8080/static/stacktrace.js:81:18)

    at Object.run (http://138.197.255.189:8080/static/stacktrace.js:66:25)

    at printStackTrace (http://138.197.255.189:8080/static/stacktrace.js:57:62)

    at render_error (http://138.197.255.189:8080/static/browse/browse.js:134:18)

    at booklist (http://138.197.255.189:8080/static/browse/browse.js:271:29)

    at HTMLDocument. (http://138.197.255.189:8080/browse/category/newest:34:17)

    at Function.ready (http://138.197.255.189:8080/static/jquery.js:392:9)

    at HTMLDocument.DOMContentLoaded (http://138.197.255.189:8080/static/jquery.js:745:10)
One possible problem. As long as I am logged in root on the ubuntu server, I can copy in and out of the s3 mounted library server. However, looking at the permissions, it shows 000 (d---------).

Question: is it possible to run the server so that it has root permissions and thus be able to access the files?

Any ideas?
ksorbo is offline   Reply With Quote
Old 07-16-2016, 11:43 PM   #2
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
The only supported configuration for using Calibre is to have all the files on a local drive. Using any sort of network/cloud storage options is therefore a 'use at your own risk' as Calibre is not network aware,
itimpi is offline   Reply With Quote
Advert
Old 07-17-2016, 10:35 AM   #3
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
How much storage do you need? I think you would be better off getting a cheap hdd for storage, unless of course your box doesn't support it.

Heck I'd just grab a cheap flash drive; you probably already have one with more storage than the AS3 free plan.
Glorfindel is offline   Reply With Quote
Old 07-17-2016, 11:35 AM   #4
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,185
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by ksorbo View Post
I wonder if anyone has any experience with this possibility. I am trying this because the Ubuntu server has limited SSD drive space, but S3 is basically unlimited and very inexpensive. Plus this book server will not be accessed very frequently. Doesn't have to be fast.

Here is my setup:

1. Have the library on an Amazon S3 folder
2. I have an Ubuntu server on which I have installed calibredb (latest version). Books server works just fine as long as I have the library on the Ubuntu server.
3. I mounted the S3 folder into a folder on my Ubuntu server using s3fs. I can see and copy, etc. all books in the library.
4. When I run the calibre book server, it comes up just fine, but when I attempt to access a book or any other data, I get the following exception:

Code:
Error: No books found

TypeError: this.undef is not a function

    at Object.createException (http://138.197.255.189:8080/static/stacktrace.js:81:18)

    at Object.run (http://138.197.255.189:8080/static/stacktrace.js:66:25)

    at printStackTrace (http://138.197.255.189:8080/static/stacktrace.js:57:62)

    at render_error (http://138.197.255.189:8080/static/browse/browse.js:134:18)

    at booklist (http://138.197.255.189:8080/static/browse/browse.js:271:29)

    at HTMLDocument. (http://138.197.255.189:8080/browse/category/newest:34:17)

    at Function.ready (http://138.197.255.189:8080/static/jquery.js:392:9)

    at HTMLDocument.DOMContentLoaded (http://138.197.255.189:8080/static/jquery.js:745:10)
One possible problem. As long as I am logged in root on the ubuntu server, I can copy in and out of the s3 mounted library server. However, looking at the permissions, it shows 000 (d---------).

Question: is it possible to run the server so that it has root permissions and thus be able to access the files?

Any ideas?
Are you using AWS to host your server?

bernie
gbm is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre library getting deleted on linux server Zeros Calibre 3 09-10-2014 06:13 AM
Do I need to run Calibre content server to use Calibre Companion flyash Calibre 2 04-06-2013 10:19 PM
calibre-0.8.14 Linux ebook-convert cpu run/endless loop? rogerx Conversion 7 09-02-2011 10:56 PM
[Old Thread] Linux Question: Library/DB/Server Only? zenrhino Calibre 15 03-31-2011 12:32 PM
Run content server seperately from Calibre chimaera Calibre 2 08-07-2009 10:46 AM


All times are GMT -4. The time now is 02:20 PM.


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