View Single Post
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