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 09-17-2016, 01:29 PM   #1351
tamiby
Junior Member
tamiby began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2012
Device: Huawei Ascend Mate 7 with Mantano Reader, Kindle Paperwhite
Hello!

I've been using COPS for a while now, but recently I had to reinstall everything, and now I'm having a problem I had never encountered before...

Everything works ok, except when I try to download .azw3 files. Whenever I select the .azw3 file to download, I get a 404 Not Found error, even though the file is present in the server and the file paths match (I checked).

If I select the .epub of the same book, I have no problems downloading.

Has this happened to anyone before? I would appreciate any help you could give me
tamiby is offline   Reply With Quote
Old 09-18-2016, 07:09 PM   #1352
JonMoss
Member
JonMoss began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Dec 2012
Device: Android Tablet and SmartPhone
Good evening! Just a quick note before I do something 'stupid' when I try to install COPS on Kubuntu 16.04 in a secure (SSL) virtual directory.

Has anyone done this particular setup before? Or even just installing COPS on Kubuntu 16.04? Will the packages that I download from GitHub install in that distro?

More questions Monday afternoon:

While not specifically listed as a pre-req, does SQLite3 need to be installed? I installed the php option of that name, but the server has no database system installed at all at this time (no MySQL, etc.).

Thanks,

Jon Moss

Last edited by JonMoss; 09-19-2016 at 03:23 PM.
JonMoss is offline   Reply With Quote
Advert
Old 09-19-2016, 06:59 PM   #1353
JonMoss
Member
JonMoss began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Dec 2012
Device: Android Tablet and SmartPhone
PHP Working but Not COPS

When I got home from work tonight, I checked PHP on my Kubuntu 16.04 server (with and without SSL). It works and has all the required modules enabled, but COPS still doesn't load.

I think it has to do with missing SQLite3 but I'm waiting for someone to comment or answer my original questions before changing anything else.

Thanks,

Jon Moss
JonMoss is offline   Reply With Quote
Old 09-19-2016, 07:23 PM   #1354
JonMoss
Member
JonMoss began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Dec 2012
Device: Android Tablet and SmartPhone
Making Progress Slowly But Surely

After reviewing the error logs from Apache, I fixed a permission issue with the folder where I copied my Calibre library to.

Then I was left with just one error:

PHP Fatal error: Class 'DOMXPath' not found in /var/www/mossfam.net/secure_html/cops-master/resources/php-epub-meta/epub.php on line 775

I then remembered to run the checkconfig.php and found two items that needed to be installed. I installed them but I am still getting the DOMXPath error.

Thanks, Jon

Last edited by JonMoss; 09-19-2016 at 07:26 PM.
JonMoss is offline   Reply With Quote
Old 09-20-2016, 05:00 AM   #1355
JonMoss
Member
JonMoss began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Dec 2012
Device: Android Tablet and SmartPhone
Success!

I solved the error I mentioned in the last post. I had to install the php-xml module. Once I did that, the COPS site and feed loaded.

Thanks,

Jon
JonMoss is offline   Reply With Quote
Advert
Old 09-20-2016, 04:33 PM   #1356
JonMoss
Member
JonMoss began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Dec 2012
Device: Android Tablet and SmartPhone
Hello? Anyone here?

Just curious. I'm beginning to wonder if I said something wrong ...

I have another question regarding COPS: Can the order of items be changed for the Home Page? For example, I'd prefer Recent Items to be at the top of the list, not the bottom.

Thanks,

Jon Moss
JonMoss is offline   Reply With Quote
Old 09-20-2016, 06:12 PM   #1357
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: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
@tamiby

Did you solve your problem?

If not, please post your config_local.php file.
mariosipad is offline   Reply With Quote
Old 09-21-2016, 09:34 AM   #1358
tamiby
Junior Member
tamiby began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2012
Device: Huawei Ascend Mate 7 with Mantano Reader, Kindle Paperwhite
I haven't been able to figure it out yet, I still get the error with .azw3 files.

This is my config_local.php file, so far:

Code:
<?php
    if (!isset($config))
        $config = array();
  
    /*
     * The directory containing calibre's metadata.db file, with sub-directories
     * containing all the formats.
     * BEWARE : it has to end with a /
     */
    $config['calibre_directory'] = '../../var/oc_data/tbyCalibre/files/';

    /*
     * Full URL prefix (with trailing /)
     * useful especially for Opensearch where a full URL is often required
     * For example Mantano, Aldiko and Marvin require it.
     */
    $config['cops_full_url'] = 'tamiby.cl/cops/';

    /*
     * Catalog's author name
     */
    $config['cops_author_name'] = "tamiby";
    
    /*
     * Catalog's title
     */
    $config['cops_title_default'] = "tamiby's COPS";

    /*
     * Prefered format for HTML catalog
     * The two first will be displayed in book entries
     * The other only appear in book detail
     */
    $config['cops_prefered_format'] = array ("AZW3", "AZW", "EPUB", "MOBI", "PDF", "CBR", "CBZ");
    
    /*
     * use URL rewriting for downloading of ebook in HTML catalog
     * See README for more information
     *  1 : enable
     *  0 : disable
     */
    $config['cops_use_url_rewriting'] = "0";

    /*
     * split authors by first letter
     * 1 : Yes
     * 0 : No
     */
    $config['cops_author_split_first_letter'] = "1";

    /*
     * split titles by first letter
     * 1 : Yes
     * 0 : No
     */
    $config['cops_titles_split_first_letter'] = "1";

    /*
     * Enable the Lightboxes (for popups)
     * 1 : Yes (enable)
     * 0 : No
     */
    $config['cops_use_fancyapps'] = "0";

    /*
     * Update Epub metadata before download
     * 1 : Yes (enable)
     * 0 : No
     */
    $config['cops_update_epub-metadata'] = "1";

    /*
     * Directory to keep resized thumbnails: allow to resize thumbnails only on first access, then use this cache.
     * $config['cops_thumbnail_handling'] must be ""
     * "" : don't cache thumbnail
     * "/tmp/cache/" (example) : will generate thumbnails in /tmp/cache/
     * BEWARE : it has to end with a /
     */
    $config['cops_thumbnail_cache_directory'] = "/tmp/cache/";

    /*
     * Enable PHP password protection (You can use if htpasswd is not possible for you)
     * If possible prefer htpasswd !
     * array( "username" => "xxx", "password" => "secret") : Enable PHP password protection
     * NULL : Disable PHP password protection (You can still use htpasswd)
     */
    $config['cops_basic_authentication'] = array( "username" => "XXXX", "password" => "XXXX");

    /*
     * Which template is used by default :
     * 'default'
     * 'bootstrap'
     */
    $config['cops_template'] = 'default';

    /*
     * Which style is used by default :
     * 'base'
     * 'default'
     * 'eink' (only available for the 'default' template)
     * 'iphone' (only available for the 'default' template)
     * 'iphone7' (only available for the 'default' template)
     */
    $config['cops_style'] = 'eink';
I haven't configured htpasswd yet, so I took out the user and password, and I want to configure the email feature, but have never done that before so I was waiting to solve the problem with the .azw3 files before tackling that one...

Thanks!
tamiby is offline   Reply With Quote
Old 09-21-2016, 03:48 PM   #1359
JonMoss
Member
JonMoss began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Dec 2012
Device: Android Tablet and SmartPhone
Restricting Access to OPDS feed

Hello again, I've got a question about restricting access to the OPDS feed. I'm getting a pop-login correctly for the COPS index.php, but nothing is preventing access to the feed.php.

Thanks,

Jon Moss
JonMoss is offline   Reply With Quote
Old 09-21-2016, 04:08 PM   #1360
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: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
@JonMoss

Have you cleaned/cleared your browser cache between index.php and feed.php?

Test with a browser in "private" mode.
mariosipad is offline   Reply With Quote
Old 09-21-2016, 04:19 PM   #1361
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: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
@tamiby

I took some azw3 files, loaded them in calibre. Then converted them to epub and left the originals in the directories.

Copied the whole directory to my COPS server (Debian/Apache2).
Used your config_local.php (only with the necessary edits to make it work on my machine).

Used Firefox to open COPS.
- I could download epub (and read)
- i could download azw3 files

Tried the same from my iPad with the app TotalReader (can read azw3 files) and all worked as expected.

So if ../cops/checkconfig.php dows not give any errors (all OK) then it's probably not a problem with COPS.

If epub and azw3 files are in the same directories and the files are readable (just for testing try chmod -R 777 "directory" ) then it should work. At least it did for me.

What webserver and browser are you using?
mariosipad is offline   Reply With Quote
Old 10-17-2016, 05:31 AM   #1362
vlad59
Addict
vlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five words
 
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
COPS 1.0.1

With all the new features of COPS 1.0.0, some nasty bugs came but were fixed quickly in this 1.0.1 release :

* Fixed some type of custom column showing id instead of text - Thanks to Mike Schwörer.
* Fixed the redirection to the OPDS catalog for Moon+ Reader.
* Fixed the mail character encoding, now in UTF-8.
* Fixed checkconfig.php to avoid sending content before headers. Thanks to Luke Stevenson.
* Fixed server side rendering with custom columns.
* Moved /icons to /images (Apache issues). Thanks to CgX.

No new features for now but you can update safely.
vlad59 is offline   Reply With Quote
Old 10-21-2016, 02:02 AM   #1363
vowi
Member
vowi began at the beginning.
 
Posts: 11
Karma: 10
Join Date: May 2016
Device: none
Hello vlad59!

Sorry for the noob question... but how do i update my installation of COPS?

thanks.

vowi
vowi is offline   Reply With Quote
Old 10-21-2016, 08:31 AM   #1364
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: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
What is your Operating System (Windows, OSX, Linux, Synology) that your current installation of COPS runs on?

And do you use Apache or another web server?
mariosipad is offline   Reply With Quote
Old 10-24-2016, 11:04 PM   #1365
dKodiak
Member
dKodiak began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Sep 2013
Device: Galaxy S4
Invalid OPDS error in Moon+ Reader with cops1.0.1

I just reinstalled cops1.0.1 just wiped the cops folder and reinstalled. I made a new config.local it works fine in browser, but get an error in Moon+

Invalidated OPDS content......verify below error:
At line 1, column 0: syntax error
Not Found

Edited:....
Removed code.. forgot to put the last forward slash in the address in Moon+

Last edited by dKodiak; 10-24-2016 at 11:54 PM. Reason: Fixed Issue
dKodiak 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 06:45 AM.


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