01-23-2014, 05:54 AM | #1 |
Junior Member
Posts: 6
Karma: 10
Join Date: Oct 2011
Device: Kindle 4
|
Drobo NAS and Linux
I am attempting to use a Raspberry Pi to run Calibre-server and access calibre libraries stored on a Drobo on the local network.
I mounted the drobo on the Pi *********** MAKE MOUNT DIRECTORY ON Pi mkdir drobomnt sudo mount //192.168.0.9/public /drobomnt ************** I can then see all the files on the Drobo. When I run calibre-server --with-library /drobomnt/CalLibtest --port 8081 & it comes up with this error ********************************** pi@raspberrypi ~ $ Traceback (most recent call last): File "/usr/bin/calibre-server", line 19, in <module> sys.exit(main()) File "/usr/lib/calibre/calibre/library/server/main.py", line 118, in main db = LibraryDatabase2(opts.with_library) File "/usr/lib/calibre/calibre/library/database2.py", line 221, in __init__ self.initialize_dynamic() File "/usr/lib/calibre/calibre/library/database2.py", line 334, in initialize_dynamic 'UPDATE authors SET sort=author_to_author_sort(name) WHERE sort IS NULL') File "/usr/lib/calibre/calibre/library/sqlite.py", line 314, in run raise DatabaseException(*res) calibre.library.sqlite.DatabaseException: attempt to write a readonly database RemoteTraceback (most recent call last): File "/usr/lib/calibre/calibre/library/sqlite.py", line 271, in run ok, res = True, bfunc(*args, **kwargs) OperationalError: attempt to write a readonly database [1]+ Exit 1 calibre-server --with-library /drobomnt/CalLibtest --port 8081 ****************** However, I can run the server when the files are directly attached to the Pi. (apart from a library which has 17000 entries) It is , I think, a problem with the Drobo. Anyone got any ideas? Basil |
01-23-2014, 06:17 AM | #2 |
Handy Elephant
Posts: 1,736
Karma: 26785668
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Thinkpad E595, Ubuntu Mate, Huawei Mediapad 5, Bouye Likebook Plus
|
Calibre doesn't support networked filesystems, only local. It still may work in some cases, with some networked filesystems. I have had success with NFS, but not with CIFS and SMB.
|
01-23-2014, 06:46 AM | #3 | |
Junior Member
Posts: 6
Karma: 10
Join Date: Oct 2011
Device: Kindle 4
|
Quote:
I read that but do not really understand it. Calibre and calibre-server on my PC both can access the Drobo on the network. I am not familiar with the NFS,CIFS and SMB differences so I guess I need to do some reading. |
|
01-23-2014, 06:59 AM | #4 | |
Wizard
Posts: 2,018
Karma: 13471689
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
|
Quote:
But I am the only user, which probably makes a difference. |
|
01-24-2014, 02:20 PM | #5 | |
Junior Member
Posts: 6
Karma: 10
Join Date: Oct 2011
Device: Kindle 4
|
Quote:
I had to include some more parameters in the mount command sudo mount //192.168.0.9/calibre /drobomnt -o file_mode=0777,dir_mode=0777,nobrl,username=XXXXX, password=XXXXX The critical one was NOBRL. |
|
01-24-2014, 05:30 PM | #6 |
Handy Elephant
Posts: 1,736
Karma: 26785668
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Thinkpad E595, Ubuntu Mate, Huawei Mediapad 5, Bouye Likebook Plus
|
Make sure you have a good backup system so you don't loose any important data if the database becomes corrupt or you loose sync between the books and the database. But that should always be the case, not only when running calibre on a networked filesystem...
|
01-27-2014, 07:02 AM | #7 |
Wizard
Posts: 2,018
Karma: 13471689
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
|
Quite so. I have two other copies of my library, one on an USB stick that's on my keychain and goes with with me everywhere
|
Tags |
cifs, synology |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compiling Calibre on NAS | Yancoucou | Devices | 3 | 01-14-2012 05:11 PM |
Using Calibre on a NAS | Shawn_KY | Calibre | 9 | 01-07-2011 01:24 AM |
Connecting to NAS | mrlister | enTourage Archive | 2 | 04-05-2010 07:01 PM |
Seriously thoughtful Anyone have any experience of NAS devices? | HarryT | Lounge | 9 | 12-10-2009 04:50 AM |
Library on NAS server? | bous | Calibre | 5 | 11-26-2009 05:03 AM |