Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Related Tools

Notices

Reply
 
Thread Tools Search this Thread
Old 04-06-2019, 01:30 PM   #1711
bennor
Junior Member
bennor began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Apr 2019
Device: Nexus 7
Quote:
Originally Posted by mariosipad View Post
Question: what does your /etc/exports file on the server look like?
The exports file:
Code:
# Use nobody user (uid 65534) for nfs guest.  This is restricted from private
# shares by ACLs.
#
/nfs/ *(rw,all_squash,sync,no_subtree_check,insecure,crossmnt,anonuid=65534,anongid=1000)
The NAS is a single drive WD My Cloud (running v4.x firmware).

Did the chown 777 on the mount folder (wdmc_calibre) on the Pi (which runs Stretch Lite), no change. It appears the actual Share/folder on the NAS is 0777.

bennor is offline   Reply With Quote
Old 04-06-2019, 02:35 PM   #1712
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
I do 2 things different:

1 - /etc/exports
Code:
/exports/share  192.168.0.0/24(rw,async,insecure,all_squash,no_subtree_check,crossmnt,anonuid=1000,anongid=1000)
2 - manual mount of nfs share
Code:
mount 192.168.0.xxx:/exports/share /mnt/nfs
Then I point COPS to:

/mnt/nfs/books

Books is a directory inside /exports/share on the server.
mariosipad is offline   Reply With Quote
Advert
Old 04-06-2019, 03:37 PM   #1713
bennor
Junior Member
bennor began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Apr 2019
Device: Nexus 7
Quote:
Originally Posted by mariosipad View Post
I do 2 things different:

1 - /etc/exports
Code:
/exports/share  192.168.0.0/24(rw,async,insecure,all_squash,no_subtree_check,crossmnt,anonuid=1000,anongid=1000)
2 - manual mount of nfs share
Code:
mount 192.168.0.xxx:/exports/share /mnt/nfs
Then I point COPS to:

/mnt/nfs/books

Books is a directory inside /exports/share on the server.
Unfortunately no change. Still doesn't load. Gotta wonder if there is something with the way the WD My Cloud is handling NFS that is causing this problem.
bennor is offline   Reply With Quote
Old 04-06-2019, 04:51 PM   #1714
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
I did some further checking.

I also get a grey/white browserscreen if I make a deliberate mistake in config_local.php.
Just deleting a "';" or adding one causes this behaviour.

Can you recreate your config_local.php from config_default.php just to remove any possibility of an error in this file?

If you can reach the nfs share on your Pi, then the NFS server works (I would say).
mariosipad is offline   Reply With Quote
Old 04-06-2019, 07:22 PM   #1715
bennor
Junior Member
bennor began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Apr 2019
Device: Nexus 7
Quote:
Originally Posted by mariosipad View Post
Can you recreate your config_local.php from config_default.php just to remove any possibility of an error in this file?
First tried overwriting the config_local.php file with the config_local.php.example and set the directory. Same problem. Just a gray screen. Copied config_default.php to config_local.php and set the directory. Same problem. Just a gray screen.

Obviously one would think that if one can access the NFS share that it should work. But obviously something is wrong as it's not working and it's only not working when using NFS to access the network share. If I change the share mapping to CIFS then COPS works fine.

Plex is loaded to this same Raspberry Pi and it does not have any problems accessing content on mapped NFS shares.

It's a head scratcher.

Last edited by bennor; 04-06-2019 at 07:26 PM.
bennor is offline   Reply With Quote
Advert
Old 04-06-2019, 08:50 PM   #1716
bennor
Junior Member
bennor began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Apr 2019
Device: Nexus 7
Quote:
Originally Posted by bennor View Post
But obviously something is wrong as it's not working and it's only not working when using NFS to access the network share. If I change the share mapping to CIFS then COPS works fine.
I wonder if what I'm seeing is SQLite3 related. It appears that SQLite3 may have an issue with NFS (https://sqlite.org/faq.html). And some recommend not using NFS if using SQLite3.

From the FAQ link:
Quote:
SQLite uses reader/writer locks to control access to the database. (Under Win95/98/ME which lacks support for reader/writer locks, a probabilistic simulation is used instead.) But use caution: this locking mechanism might not work correctly if the database file is kept on an NFS filesystem. This is because fcntl() file locking is broken on many NFS implementations. You should avoid putting SQLite database files on NFS if multiple processes might try to access the file at the same time. On Windows, Microsoft's documentation says that locking may not work under FAT filesystems if you are not running the Share.exe daemon. People who have a lot of experience with Windows tell me that file locking of network files is very buggy and is not dependable. If what they say is true, sharing an SQLite database between two or more Windows machines might cause unexpected problems.
bennor is offline   Reply With Quote
Old 04-07-2019, 12:49 PM   #1717
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
I'm convinced it's not a problem with sqlite3 (you are the only concurrent user right?) nor with nfs (it works).

That leaves an error in config_local.php.

To test this hypothesis please do this:
1 - copy your existing config_local.php to config_local.php.orig

2 - copy config_local.php.example to config_local.php (don't change anything in this file)

3 - open COPS in a browser: you should get an error-page db not found

4 - then add in your NFS directory /home/pi/wdmc_calibre

5 - check if directory /home/pi/wdmc_calibre exists on your pi

6 - refresh your browser with cops

and this works for me. And I hope for you too.
mariosipad is offline   Reply With Quote
Old 04-07-2019, 06:03 PM   #1718
bennor
Junior Member
bennor began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Apr 2019
Device: Nexus 7
Quote:
Originally Posted by mariosipad View Post
To test this hypothesis please do this:
1 - copy your existing config_local.php to config_local.php.orig

2 - copy config_local.php.example to config_local.php (don't change anything in this file)

3 - open COPS in a browser: you should get an error-page db not found

4 - then add in your NFS directory /home/pi/wdmc_calibre

5 - check if directory /home/pi/wdmc_calibre exists on your pi

6 - refresh your browser with cops
Done those steps a couple of times as a troubleshooting step. Get the checkconfig.php page indicating missing DB so long as I do not map the NAS share using NFS. When the NFS share is mapped to the NAS, the checkconfig.php hangs and does not load. Finally gave up on trying to use NFS and went back to using CIFS which does work and COPS loads the database.

Not sure where the issue lies. The firmware that WD created to run the My Cloud device is quirky and has various issues. Some elements of the firmware, like Samba, are years out of date.
bennor is offline   Reply With Quote
Old 04-14-2019, 01:59 PM   #1719
irvy
Junior Member
irvy began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Apr 2019
Device: gmini A6LHD
Quote:
Originally Posted by victorn View Post
I have no difficulty accessing the calibre library when I do it from my local LAN.
Could you please please please contact me on that? I have the same NAS but never managed to get COPS to work on it =(
irvy is offline   Reply With Quote
Old 06-18-2019, 05:34 AM   #1720
Horus68
Zealot
Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.
 
Horus68's Avatar
 
Posts: 143
Karma: 76596
Join Date: Feb 2015
Location: Portugal
Device: Kobo Aura HD
As you may heard, a new COPS version is scheduled for the end of June.
Bring in your personal fixes into Github to help improve the software: https://github.com/seblucas/cops

You can also improve translations using Transifex platform : https://www.transifex.com/projects/p/cops/

Also remember to can offer Sébastien Lucas a drink to help him fixing things: https://www.paypal.com/cgi-bin/websc...=9CNHDRJ6GX2Z4
Horus68 is offline   Reply With Quote
Old 06-24-2019, 06:31 AM   #1721
KeithJ108
Junior Member
KeithJ108 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jan 2013
Device: Kindle Keyboard
I'm a long time user of COPS but only recently upgraded from v1.0.1 to v1.1.3, running on Synology DSM 6.2.2.

After the upgrade, nearly everything works ok - except for the open folder button which appears beside the download button for each ebook format. I'm not exactly sure what this button does which is different to the download button to it's left. Judging by the COPS demo this button should download the ebook (is it meant to download and open on some platforms?). When I click this button, with any book or format selected, it downloads the "fetch.php" file, rather than an ebook.

Can anyone help with fixing this behaviour?
KeithJ108 is offline   Reply With Quote
Old 06-24-2019, 12:30 PM   #1722
Horus68
Zealot
Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.
 
Horus68's Avatar
 
Posts: 143
Karma: 76596
Join Date: Feb 2015
Location: Portugal
Device: Kobo Aura HD
New version released: 1.1.3 (2019/06/24)
https://github.com/seblucas/cops/releases
Horus68 is offline   Reply With Quote
Old 06-24-2019, 03:31 PM   #1723
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
@KeithJ108

What OS / browser combo are you using?

I never succeeded in making it work with (Windows/OSX/Debian) Firefox (and several add-in's).

But it's supposed to work with windows 10 / Edge browser (if I remember correctly).

I just hacked it out of the source code and went back to just the download icon.
mariosipad is offline   Reply With Quote
Old 06-25-2019, 12:03 AM   #1724
Chilipops
Member
Chilipops began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Apr 2018
Device: nook 3
Weird Behavior in Firefox

When I use the Firefox browser (version 67.0.4 (64-bit)) and the new COPS 1.1.3. everything seems to work fine. I can pull 50 of my most recent calibre books (stored on my Synology NAS) and can click on an individual book and pull up the summary page with the 3 icons (epub download button, folder button, and COPS reader button).

What is weird is that when I right click on the "epub download button" it seems to do what it should by automatically downloading the book file, however, the resulting file is zero bytes in size. Yet if I left click on the "epub download button" and select "save link as" Firefox downloads the full proper book file.

I don't get this weird behavior in Chrome or MS Edge - if I right click on the "epub download button" in those browsers the full proper book file is downloaded.

Any ideas on what is going on?

My operating system is Windows 10, 64bit.
Chilipops is offline   Reply With Quote
Old 06-25-2019, 06:55 AM   #1725
Chilipops
Member
Chilipops began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Apr 2018
Device: nook 3
Quote:
Originally Posted by Chilipops View Post
When I use the Firefox browser (version 67.0.4 (64-bit)) and the new COPS 1.1.3. everything seems to work fine. I can pull 50 of my most recent calibre books (stored on my Synology NAS) and can click on an individual book and pull up the summary page with the 3 icons (epub download button, folder button, and COPS reader button).

What is weird is that when I right click on the "epub download button" it seems to do what it should by automatically downloading the book file, however, the resulting file is zero bytes in size. Yet if I left click on the "epub download button" and select "save link as" Firefox downloads the full proper book file.

I don't get this weird behavior in Chrome or MS Edge - if I right click on the "epub download button" in those browsers the full proper book file is downloaded.

Any ideas on what is going on?

My operating system is Windows 10, 64bit.

Uggh! I made a major typo in my post above - I meant to say: when I LEFT click on the "epub download button" it seems to do what it should by automatically downloading the book file, however, the resulting file is zero bytes in size. Yet if I RIGHT click on the "epub download button" and select "save link as" Firefox downloads the full proper book file.

You would think at my age I could tell "left" from "right"....
Chilipops is offline   Reply With Quote
Reply

Tags
calibre opds, dns, kobo aura, synology


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre OPDS server with windows apps? nickdma Related Tools 10 03-03-2024 02:53 PM
[Old Thread] Android FBreader and Calibre OPDS server question kalex Calibre 5 12-24-2015 10:16 PM
PHP+Apache web server for calibre ... chaley Related Tools 254 04-28-2014 08:18 PM
External OPDS catalogue in Calibre bolton Calibre 1 09-05-2012 06:14 AM
Calibre Command Line usage with PHP artoros Related Tools 13 07-01-2010 09:57 AM


All times are GMT -4. The time now is 04:06 AM.


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