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