Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 06-24-2013, 11:36 AM   #481
mariosipad
Groupie
mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'
 
Posts: 151
Karma: 10372
Join Date: Nov 2012
Device: iPad & iPhone with Marvin
@vlad59:
Yours is the perfect solution if you have Owncloud and COPS on the same server. However i got the impression that darkmiss is using an Owncloud on a (remote) server and has COPS installed "locally".


I have problems uploading directories (with or without content) to my Owncloud. Single files are ok. I really have to read the documentation and/or upgrade to a newer version of Owncloud. But that is for when I put together a new Linux server.
mariosipad is offline   Reply With Quote
Old 06-25-2013, 02:23 AM   #482
vlad59
Addict
vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.
 
Posts: 312
Karma: 9313
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
@mariosipad

About your off topic stuff. It's impossible to upload a directory into Owncloud (or any other webapp) with most browsers. In Owncloud 5 there a message that warn you about it.

From what I read, it should be possible with Chrome but I never tried it myself. I use NetDrive or Owncloud Sync to synchronize folders.
vlad59 is offline   Reply With Quote
Old 06-25-2013, 03:54 AM   #483
darkmiss
Member
darkmiss began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jun 2012
Device: Sony T1
Quote:
Originally Posted by mariosipad View Post
@vlad59:
Yours is the perfect solution if you have Owncloud and COPS on the same server. However i got the impression that darkmiss is using an Owncloud on a (remote) server and has COPS installed "locally".
No actually they are both on the same Server .. and this may well the solution to my problem. I wasn't aware that I didn't have to enter the web address but the internal address, but thinking about it, it's logical. I'll try as soon as I have access to a proper
Computer and let you know the outcome. Meanwhile thanks a lot

Ingrid
darkmiss is offline   Reply With Quote
Old 06-25-2013, 11:41 PM   #484
cr45h
Junior Member
cr45h began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2013
Device: Android Phone
Hi I have a problem. I installed the Synocommunity version of COPS through the package manager but I get a database error.

-----------------------------------------
You've been redirected because COPS is not configured properly
Database error
Check if GD is properly installed and loaded
OK
Check if Sqlite is properly installed and loaded
OK
Check if libxml is properly installed and loaded
OK
Check if Calibre database file exists and is readable
File /volume1/books/metadata.db not found, Please check
Value of $config['calibre_directory'] in config_local.php
Value of open_basedir in your php.ini
The access rights of the Calibre Database
Synology users please read this
Check if Calibre database file can be opened with PHP
If the file is readable, check your php configuration. Exception detail : exception 'PDOException' with message 'safe_mode/open_basedir prohibits opening /volume1/books/metadata.db' in /volume1/web/cops/checkconfig.php:117 Stack trace: #0 /volume1/web/cops/checkconfig.php(117): PDO->__construct('sqlite:/volume1...') #1 {main}
Check if Calibre database file contains at least some of the needed tables
If the file is readable, check your php configuration. Exception detail : exception 'PDOException' with message 'safe_mode/open_basedir prohibits opening /volume1/books/metadata.db' in /volume1/web/cops/checkconfig.php:130 Stack trace: #0 /volume1/web/cops/checkconfig.php(130): PDO->__construct('sqlite:/volume1...') #1 {main}
-----------------------------------------

I'm not sure what to do. The database file is located in /volume1/books/ so COPS should be able to find it. Can anyone help? Thanks!
cr45h is offline   Reply With Quote
Old 06-26-2013, 04:30 AM   #485
vlad59
Addict
vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.
 
Posts: 312
Karma: 9313
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
@cr45h

Have you modified open_basedir like stated in the message and followed the link ?
vlad59 is offline   Reply With Quote
Old 06-26-2013, 05:10 AM   #486
Goner
Enthusiast
Goner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to behold
 
Posts: 47
Karma: 11628
Join Date: Jun 2011
Location: Rotterdam, Netherlands
Device: ARCHOS 80G9, Kobo Touch, Sony PRS-T1, BeBook Club S, Icarus Reader Go
That's an awful lot of error messages
Which version of DSM are you running and do you have web-services enabled ? Also check under the PHP settings if GD extension is enabled ...

Last edited by Goner; 06-26-2013 at 05:22 AM.
Goner is offline   Reply With Quote
Old 06-26-2013, 09:24 AM   #487
vlad59
Addict
vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.
 
Posts: 312
Karma: 9313
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
@Goner

No he simply forgot to update open_basedir. The message is pretty clear :

Quote:
Exception detail : exception 'PDOException' with message 'safe_mode/open_basedir prohibits opening /volume1/books/metadata.db' in /volume1/web/cops/checkconfig.php
vlad59 is offline   Reply With Quote
Old 06-27-2013, 01:19 AM   #488
cr45h
Junior Member
cr45h began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2013
Device: Android Phone
Quote:
Originally Posted by vlad59 View Post
@Goner

No he simply forgot to update open_basedir. The message is pretty clear :
Thanks. That was it.
cr45h is offline   Reply With Quote
Old 06-27-2013, 05:30 AM   #489
darkmiss
Member
darkmiss began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jun 2012
Device: Sony T1
Hello again,

I moved one step forward, because I found out that my syntax was wrong. But now I get the same message as cr45h, meaning that Cops cannot find my database.

COPS is installed in the directory "cops" directly in the main directory

main/cops

and the metadata db is in an owncloud directory

main/owncloud/data/user/files/clientsync/Calibre/Calibre Library/


Everything is on a remote server.

So how do I get the address right?

I tried './owncloud/data/user/files/clientsync/Calibre/Calibre Library/'
as well as replacing the blank in "Calibre Library" with %20

darkmiss is offline   Reply With Quote
Old 06-27-2013, 06:10 AM   #490
mariosipad
Groupie
mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'
 
Posts: 151
Karma: 10372
Join Date: Nov 2012
Device: iPad & iPhone with Marvin
Quote:
Originally Posted by darkmiss View Post

I tried './owncloud/data/user/files/clientsync/Calibre/Calibre Library/'
Can you try:
Code:
../owncloud/data/user/files/clientsync/Calibre/Calibre Library/
Use ../owncloud (2 dots)
instead of ./owncloud (1 dot)

Did this help?
mariosipad is offline   Reply With Quote
Old 06-27-2013, 08:48 AM   #491
darkmiss
Member
darkmiss began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jun 2012
Device: Sony T1
Quote:
Originally Posted by mariosipad View Post

Did this help?
Yes. Thank you so much.

There still is an error message:

Warning: Cannot modify header information - headers already sent by (output started at /xxx/webd/b1/65/5532965/htdocs/cops-0.5.0/config_local.php:28) in /xxx/webd/b1/65/5532965/htdocs/cops-0.5.0/index.php on line 28

But I can see the COPS start page and can also go down to the information about the individual books. I cannot open or download the ebooks, however, I get a "forbidden" message.

Is this some login-issue of OwnCloud?
darkmiss is offline   Reply With Quote
Old 06-27-2013, 10:38 AM   #492
mariosipad
Groupie
mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'
 
Posts: 151
Karma: 10372
Join Date: Nov 2012
Device: iPad & iPhone with Marvin
@darkmiss

What exactly is on line 28 of config_local.php?

Please post here. (Or post the whole config_local.php)
mariosipad is offline   Reply With Quote
Old 06-27-2013, 01:35 PM   #493
darkmiss
Member
darkmiss began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jun 2012
Device: Sony T1
Here's my config-local.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'] = '../owncloud/data/user/files/clientsync/Calibre/Calibre Library/';



/*

* Catalog's title

*/

$config['cops_title_default'] = "COPS";



/*

* 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";


There is nothing excapt 2 square symbols in line 28
darkmiss is offline   Reply With Quote
Old 06-27-2013, 01:42 PM   #494
darkmiss
Member
darkmiss began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jun 2012
Device: Sony T1
I deleted the empty lines (including the squares). Now the error message is gone, but I still get no access to the epub-files.

I assume it has to do with the owncloud directories being protected from public access. Does cops have to run in a subdirectory of owcloud?
darkmiss is offline   Reply With Quote
Old 06-27-2013, 04:38 PM   #495
mariosipad
Groupie
mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'mariosipad knows the difference between 'who' and 'whom'
 
Posts: 151
Karma: 10372
Join Date: Nov 2012
Device: iPad & iPhone with Marvin
With what "reader" are you connecting to COPS on your remote server?

Can you try with a browser, preferably firefox?

When exactly are you getting the error?
mariosipad is offline   Reply With Quote
Reply

Tags
calibre opds

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP+Apache web server for calibre ... chaley Related Tools 253 11-26-2013 08:35 AM
[Old Thread] Android FBreader and Calibre OPDS server question kalex Calibre 4 12-15-2012 01:50 PM
External OPDS catalogue in Calibre bolton Calibre 1 09-05-2012 06:14 AM
Calibre OPDS server with windows apps? nickdma Related Tools 9 02-02-2011 03:09 PM
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 03:16 PM.


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