Calibre Library on Synology

All questions regarding using our system with Windows XP, Vista, 7 may go here.
Forum rules
We've moved! Head over to Synology Community (community.synology.com) to meet up with our team and other Synology enthusiasts!
mizio66
Beginner
Beginner
Posts: 23
Joined: Thu Jun 06, 2013 9:30 pm

Calibre Library on Synology

Unread post by mizio66 » Sun Oct 06, 2013 10:54 pm

Hi,

I'm having problem in running Calibre with the Library residing on my Synology DS213J and metadata on a local PC disk (I use W7 64b).

I read that Calibre is not compatible with NAS... I want to find a way anyhow...

So, I read about changing Windows sharing setup (disable SMB2 and enable OpLocks)... not sure it is working... still testing and retesting.
Then i Read that the mounted Volume1 should have the nbrl flag... i tried to modify the fstb file, adding that flag, but when rebooting that flag goes away...

Is there a way to mount volume1 with the nbrl flag ?

And is there any way to mount a Synology folder onto my PC via fstab or else?

thanks!

Maurizio
---------------------------------------------------------------------------
DS213j 2x 4TB SHR
Asus AC68U
W7 64

chfauc
Experienced
Experienced
Posts: 135
Joined: Mon Apr 28, 2008 7:32 am

Re: Calibre Library on Synology

Unread post by chfauc » Sun Dec 29, 2013 7:06 pm

Hello

did u find a solution?
another issue I have is that my work PC (Win8) needs SMB2 to access share...
any way to make Calibre work from a DB on the syno?
tx

marcw
Rookie
Rookie
Posts: 30
Joined: Thu Nov 22, 2012 2:07 pm

Re: Calibre Library on Synology

Unread post by marcw » Tue Dec 31, 2013 3:36 am

My wife has all her books on my nas and calibre on her win7 lap top with no issues. What is the problem.?

beerygaz
I'm New!
I'm New!
Posts: 7
Joined: Thu Jun 20, 2013 6:17 pm

Re: Calibre Library on Synology

Unread post by beerygaz » Wed Jun 18, 2014 3:15 pm

The problem with the Calibre library on the NAS is that many of us get errors when editing metadata or moving files around. Something to do with file locks not being supported.

marcw
Rookie
Rookie
Posts: 30
Joined: Thu Nov 22, 2012 2:07 pm

Re: Calibre Library on Synology

Unread post by marcw » Sat Aug 02, 2014 2:07 am

never had any file lock issues

User avatar
CoolRaoul
Seasoned
Seasoned
Posts: 560
Joined: Tue May 18, 2010 7:08 pm

Re: Calibre Library on Synology

Unread post by CoolRaoul » Sun Aug 03, 2014 2:03 pm

marcw wrote:never had any file lock issues
Thanks for helping :roll:

Anyway, as many others, I've faced the same problems when calibre library is stored on the NAS (errors "OSError: [Errno 13] Permission denied" specifically when mass editing metadata).

On the official Calibre forum, some users have raised the same kind of issues and none of them have got useful help.
The systematic answer given by Kovidgoyal (Calibre developer) is this link to the FAQ which states:

"Do not put your Calibre library on a networked drive."

Here's a typical thread on this issue
http://www.mobileread.com/forums/showth ... p?t=218463
CR

marcw
Rookie
Rookie
Posts: 30
Joined: Thu Nov 22, 2012 2:07 pm

Re: Calibre Library on Synology

Unread post by marcw » Sun Aug 03, 2014 2:14 pm

In my home there is only one user who maintains the book library on the NAS and every one else just downloads to there tablet for their books. So we do not have the multi user locking issue.

User avatar
CoolRaoul
Seasoned
Seasoned
Posts: 560
Joined: Tue May 18, 2010 7:08 pm

Re: Calibre Library on Synology

Unread post by CoolRaoul » Sun Aug 03, 2014 2:22 pm

marcw wrote:In my home there is only one user who maintains the book library on the NAS and every one else just downloads to there tablet for their books
I'm the *only one* using calibre but still had those errors when editing metadata.
So we do not have the multi user locking issue.
No locking issues for me neither, what I gets are frequent (although not systematic) permissions errors.

Do you, by chance, have a solution/fix/workaround/whatever to suggest?
CR

mizio66
Beginner
Beginner
Posts: 23
Joined: Thu Jun 06, 2013 9:30 pm

Re: Calibre Library on Synology

Unread post by mizio66 » Sun Aug 03, 2014 2:30 pm

I made it up to work.

Reading Calibre forums, i found that you have to keep the metadata.db off the NAS to keep away issues. You have to chnage the starting way of Calibre, indicating where it will find the metadata.db, on a local not NAS disk, maybe use a synchronization program to keep a copy in the NAS for Cops or BicBucStriim, but then it works good.

M
---------------------------------------------------------------------------
DS213j 2x 4TB SHR
Asus AC68U
W7 64

User avatar
CoolRaoul
Seasoned
Seasoned
Posts: 560
Joined: Tue May 18, 2010 7:08 pm

Re: Calibre Library on Synology

Unread post by CoolRaoul » Sun Aug 03, 2014 4:15 pm

mizio66 wrote:I made it up to work.

Reading Calibre forums, i found that you have to keep the metadata.db off the NAS to keep away issues. You have to chnage the starting way of Calibre, indicating oa it will find the metadata.db, on a local not NAS disk, maybe use a synchronization program to keep a copy in the NAS for Cops or BicBucStriim, but then it works good.

M
Just tried this approach without success: still randomly getting the following error:

Code: Select all

calibre, version 1.47.0
ERREUR: Échec: [Errno 13] Permission denied

Traceback (most recent call last):
  File "site-packages\calibre\gui2\dialogs\metadata_bulk.py", line 119, in do_it
  File "site-packages\calibre\gui2\dialogs\metadata_bulk.py", line 166, in do_all
  File "site-packages\calibre\db\cache.py", line 57, in call_func_with_lock
  File "site-packages\calibre\db\cache.py", line 1031, in set_field
  File "site-packages\calibre\db\cache.py", line 1045, in update_path
  File "site-packages\calibre\db\backend.py", line 1476, in update_path
  File "site-packages\calibre\db\backend.py", line 1278, in copy_cover_to
  File "site-packages\calibre\utils\filenames.py", line 397, in copy_path_to
  File "site-packages\calibre\startup.py", line 155, in local_open
OSError: [Errno 13] Permission denied
And the same error captured using Process Monitor

Code: Select all

Date & Time:	03/08/2014 17:08:26
Event Class:	File System
Operation:	CreateFile
Result:	SHARING VIOLATION
Path:	\\FSERV\ebooks\calibre\<author_here>\<title_here>\cover.jpg
TID:	376
Duration:	0.9524242
Desired Access:	Generic Write, Read Attributes
Disposition:	OverwriteIf
Options:	Sequential Access, Synchronous IO Non-Alert, Non-Directory File
Attributes:	N
ShareMode:	Read, Write
AllocationSize:	0
Note that the error is not on the metadata.db file, and I'm currently alone at home!
Last edited by CoolRaoul on Sun Aug 03, 2014 5:27 pm, edited 1 time in total.
CR

marcw
Rookie
Rookie
Posts: 30
Joined: Thu Nov 22, 2012 2:07 pm

Re: Calibre Library on Synology

Unread post by marcw » Sun Aug 03, 2014 4:43 pm

I bet the developer is correct and he screwed up his have multi threaded connections and is not handling them correctly. My wife just said the same issus which started this week. Question, did you check the file peromsions on file on the NAS, do you have rights to modify? I bet the NAS is fine.

User avatar
CoolRaoul
Seasoned
Seasoned
Posts: 560
Joined: Tue May 18, 2010 7:08 pm

Re: Calibre Library on Synology

Unread post by CoolRaoul » Sun Aug 03, 2014 4:46 pm

marcw wrote:Question, did you check the file permissions on file on the NAS, do you have rights to modify? I bet the NAS is fine.
Absolutely: no problem on that side: don't forget that the errors appears randomly, it would be systematic if it was a permission problem.

In fact I've created the "calibre" library folder using my own credentials, I've can confirm having complete access to it and everything it contains.
CR

marcw
Rookie
Rookie
Posts: 30
Joined: Thu Nov 22, 2012 2:07 pm

Re: Calibre Library on Synology

Unread post by marcw » Sun Aug 03, 2014 5:47 pm

read this http://www.dataaccess.com/whitepapers/o ... ching.html

try this, i turn on smb2 a few weeks ago and now my wife says there is an issue. What is your setting on? try flipping it. control panel->file services->win/mac/nfs/ enable smb2

User avatar
CoolRaoul
Seasoned
Seasoned
Posts: 560
Joined: Tue May 18, 2010 7:08 pm

Re: Calibre Library on Synology

Unread post by CoolRaoul » Sun Aug 03, 2014 5:52 pm

marcw wrote:read this http://www.dataaccess.com/whitepapers/o ... ching.html

try this, i turn on smb2 a few weeks ago and now my wife says there is an issue. What is your setting on? try flipping it. control panel->file services->win/mac/nfs/ enable smb2
Yes, I've SMB2 activated too. But since the help file says it this option gives substantial performance improvements, I would not be very happy to have to unset it only for Calibre
CR

User avatar
CoolRaoul
Seasoned
Seasoned
Posts: 560
Joined: Tue May 18, 2010 7:08 pm

Re: Calibre Library on Synology

Unread post by CoolRaoul » Sun Aug 03, 2014 6:09 pm

Just disabled SMB2, and now here's the error I'm getting when bulk editing metadata:

Code: Select all

Traceback (most recent call last):
  File "site-packages\calibre\gui2\dialogs\metadata_bulk.py", line 123, in do_it
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 46: invalid continuation byte
I've made no other changes (to calibre settings or calibre library)
CR

Locked

Return to “Windows OS”