![]() |
#1201 | |
Enthusiast
![]() Posts: 48
Karma: 10
Join Date: Mar 2012
Location: Sydney, Australia
Device: Kindle 3G & Paperwhite
|
Quote:
would pan out if I had a download from the space station? Cheers for now...we've had a bit of fun ![]() TC |
|
![]() |
![]() |
![]() |
#1202 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Mar 2016
Device: Android tablet or phone
|
Did anybody try to install COPS on DLink DNS-320L box, or similar?
|
![]() |
![]() |
Advert | |
|
![]() |
#1203 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
If it is possible to install a web server like Apache or nginx and PHP on a D-Link DNS-320L is might be possible to install COPS on it. But that's a big if.
|
![]() |
![]() |
![]() |
#1204 |
Enthusiast
![]() Posts: 48
Karma: 10
Join Date: Mar 2012
Location: Sydney, Australia
Device: Kindle 3G & Paperwhite
|
@ap201
it seems there's been a bit of interest in hacking this unit. Google "dns-320l modifications" if you haven't already |
![]() |
![]() |
![]() |
#1205 | |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Mar 2016
Device: Android tablet or phone
|
COPD on DLink DMS-320L
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#1206 |
Electronics Engineer
![]() Posts: 5
Karma: 10
Join Date: Sep 2015
Location: Laugharne, West Wales, UK
Device: none
|
Hello all,
I have an existing installation of COPS which is working. I used a command line utility called 'drive' to create a Google Drive synchronised folder in my COPS directory and then I point the config file at it. It works just fine. The trouble is I have to pull the files from cloud storage to my server for it to work. Good for synchronisation, but if I'm going to have the files take up space on my server anyway then may as well host them there in the first place. I installed ownCloud, and have got it working. But I can't get COPS to accept the new library location. COPS is installed at /var/www/vhosts/mysite Calibre library is located at /var/www/ownCloud/data/user/files/Documents/Ebooks When I point the COPS config file at the new location, it complains that it can't find the metadata.db file. The file definitely exists, of course, so there must be some other reason why COPS can't read it. I also tried creating a symbolic link to the location inside the COPS installation folder but I experience the same trouble. Has anyone here got experience with getting COPS to see a metadata.db file located in an ownCloud installation on the same server? |
![]() |
![]() |
![]() |
#1207 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@BJH
I found this article on the www: http://www.tolaris.com/2014/04/25/a-...y-version-2-0/ Have fun! |
![]() |
![]() |
![]() |
#1208 |
Electronics Engineer
![]() Posts: 5
Karma: 10
Join Date: Sep 2015
Location: Laugharne, West Wales, UK
Device: none
|
Thanks for the link mariosipad. Unfortunately it hasn't helped me out with my problem. The author says he used a symbolic link to "work around ownCloud’s htaccess restrictions to make the eBook files readable". But I have already tried that and it doesn't work for me.
I will have to look into it further. Owncloud is a massive application, and it's one of those situations where it either "just works" or you end up spending hours or days trawling through manuals. ![]() Looks like I got handed the latter! Which is typical ![]() Thanks anyway and in the meantime if someone has more advice it will be welcome. ![]() |
![]() |
![]() |
![]() |
#1209 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@BJH
The only "solution" I can come up with is access rights. Try to change the access rights to the calibre library to 777, then check if it works, then try 755 and so on. COPS typically says it cannot find the database files if it cannot read or execute these files. |
![]() |
![]() |
![]() |
#1210 | |
Electronics Engineer
![]() Posts: 5
Karma: 10
Join Date: Sep 2015
Location: Laugharne, West Wales, UK
Device: none
|
Quote:
I can definitely see why you would offer permissions as a potential cause. It was one of the first things I checked, but I ruled it out because the current permissions for the Ebooks folder (which contains the metadata file) is: Code:
drwxr-xr-x The metadata.db file has similar permissions, except that it isn't "executable". I can't believe that it would need to be because it's just a data file. The permissions for metadata.db are: Code:
-rw-r--r-- The only difference in terms of the file attributes between the library that is currently working (exists in the same directory as COPS) and the library that is not working (exists in the ownCloud directory) is the owner of the file. For the working library, it is as follows: Code:
-rw-r--r-- 1 root root 1490944 Jan 2 16:36 metadata.db Code:
-rw-r--r-- 1 www-data www-data 1490944 Mar 17 06:49 metadata.db Last edited by BJH; 03-17-2016 at 03:09 AM. |
|
![]() |
![]() |
![]() |
#1211 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@BJH
The only way I could make COPS work like it should with a remote directory (not in the COPS root) is to use access permissions like: Code:
drwxr-xr-x 5 debian debian 4096 Mar 4 2014 COPStest and -rwxr-xr-x 1 debian debian 140288 Apr 30 2013 metadata.db and drwxr-xr-x 3 debian debian 4096 Apr 30 2013 eBook directory 1 drwxr-xr-x 3 debian debian 4096 Apr 30 2013 eBook directory 2 Just try it. You can always go back. ![]() |
![]() |
![]() |
![]() |
#1212 |
Electronics Engineer
![]() Posts: 5
Karma: 10
Join Date: Sep 2015
Location: Laugharne, West Wales, UK
Device: none
|
OK to rule it out from the conversation I tried it. Unfortunately it doesn't work. I even tried chmod 777 on the ownCloud Ebooks directory and metadata.db just to be sure. Same problem.
It's a bit bizarre. The file definitely exists at the location, it has the correct permissions, but COPS complains that the file isn't there. I think there must be some problem with the error reporting or something. Maybe there's really something else going on, and this error about the file not existing is just leading me up the garden path! For now I have just copied the ownCloud Ebooks directory to the COPS directory. Problem solved at the cost of wasting space. |
![]() |
![]() |
![]() |
#1213 |
Enthusiast
![]() Posts: 48
Karma: 10
Join Date: Mar 2012
Location: Sydney, Australia
Device: Kindle 3G & Paperwhite
|
@BJH
Just a thought, as it looks like you've thought of everything else. One thing that is easy to overlook or make a typo, even if it was originally working, is to make sure the pathname to your library in config_local.php ends with "/". Cheers, TC |
![]() |
![]() |
![]() |
#1214 |
Electronics Engineer
![]() Posts: 5
Karma: 10
Join Date: Sep 2015
Location: Laugharne, West Wales, UK
Device: none
|
Thanks for the response teejcee,
I am very careful to make sure that I include the ending "/", so unfortunately this isn't the cause of my problem. In fact, I tried taking the library location configuration completely out of the equation by using a symbolic link to the library called "BJH" inside the COPS directory. Then I can set the library location to "BJH/" and simply change the symbolic link between my existing library and the ownCloud library. When I set the symbolic link to point to my existing library folder, all is well. When I set it to point to the ownCloud location on my server, it throws the error. This happens without making any chances at all to config_local.php. I haven't had any time to look at it further since, but when I get a spare couple of hours I'll see if I can get to the bottom of it. Thanks again for the response - I would have been more than happy for someone to point out something simple that I'd missed! Cheers. |
![]() |
![]() |
![]() |
#1215 |
Enthusiast
![]() Posts: 48
Karma: 10
Join Date: Mar 2012
Location: Sydney, Australia
Device: Kindle 3G & Paperwhite
|
@BJH
Again, perhaps a grasp at straws but here is how I have my server setup... Both cops & owncloud are directly under /var/www Owncloud data is not in the owncloud dir... I have a vague recollection of reading an advisory to locate your data elsewhere Mine is... /data/owncloud/username/files/ under files , I have my 8 individual Calibre dirs which I sync using owncloud with 8 Calibre libaries on my laptop. With in each of these is the metadata.db This all work fine......for what it's worth ![]() Cheers, TC |
![]() |
![]() |
![]() |
Tags |
calibre opds, dns, kobo aura, synology |
|
![]() |
||||
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 |