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 01-04-2013, 07:25 AM   #196
Kevnancy
Member
Kevnancy began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jan 2013
Device: kobo glo
Hi,

I think I need to change this line in base.php:

Code:
self::$db = new PDO('sqlite:'. $config['calibre_directory'] .'metadata.db');
But I don't know exactly what...

The files of OPDS server are in the following folder: C:\Program Files\Calibre2\Calibre Server

And the metadata.db is in the folder: Z:\ServerFolders\Ebook
Kevnancy is offline   Reply With Quote
Old 01-04-2013, 07:52 AM   #197
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
You need to change $config['calibre_directory'] (in the config local file) to

Z:\ServerFolders\Ebook
vlad59 is offline   Reply With Quote
Old 01-04-2013, 08:58 AM   #198
Kevnancy
Member
Kevnancy began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jan 2013
Device: kobo glo
Hi,

I tried this:
Code:
$config['calibre_directory'] = 'Z:/ServerFolders/Ebook/';
with no result... always the same error

Last edited by theducks; 01-04-2013 at 10:24 AM. Reason: oops
Kevnancy is offline   Reply With Quote
Old 01-04-2013, 09:21 AM   #199
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
Just as a test try to copy Z:\ServerFolders\Ebook into your webdirectory and :

self::$db = new PDO('sqlite:'. './Ebook/metadata.db');

I really don't know much with Windows's webservers so if anybody can help you it would be best
vlad59 is offline   Reply With Quote
Old 01-04-2013, 09:37 AM   #200
Kevnancy
Member
Kevnancy began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jan 2013
Device: kobo glo
I tried:

config_local.php:
Code:
$config['calibre_directory'] = './';
base.php:
Code:
self::$db = new PDO('sqlite:'. './Ebook/metadata.db');
And I put the Ebook folder (containing metadat.db) in the calibre folder (C:\Program Files\Calibre2)

Always the same error....
Kevnancy is offline   Reply With Quote
Old 01-04-2013, 09:41 AM   #201
Kevnancy
Member
Kevnancy began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jan 2013
Device: kobo glo
same result with:
Code:
self::$db = new PDO('sqlite:'. $config['calibre_directory'] .'Ebook/metadata.db');
Kevnancy is offline   Reply With Quote
Old 01-04-2013, 10:08 AM   #202
PeterT
Taking a break; Fed up
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 6,095
Karma: 38639832
Join Date: Nov 2007
Location: Toronto
Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo
Is Z a networked drive? What account is the server running under? Does it have access to the networked drive?
PeterT is offline   Reply With Quote
Old 01-04-2013, 10:24 AM   #203
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 13,596
Karma: 5126946
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Kevnancy View Post
Hi,

I tried this:
Code:
$config['calibre_directory'] = 'Z:/ServerFolders/Ebook/';
with no result... always the same error
Those you show are Linux direction slashes
theducks is offline   Reply With Quote
Old 01-04-2013, 11:19 AM   #204
Kevnancy
Member
Kevnancy began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jan 2013
Device: kobo glo
Quote:
Originally Posted by PeterT View Post
Is Z a networked drive? What account is the server running under? Does it have access to the networked drive?
Z is a pooled drive on my Windows server 2012, and the metadata.db + my ebooks are stocked on the following folder:
Code:
Z:/ServerFolders/Ebook
I installed Calibre on my desktop PC, and I use the metadat.db on my WS2012E. It's works fine, I can add, edit or remove ebook.

But for the OPDS server, it's more difficult...
Kevnancy is offline   Reply With Quote
Old 01-04-2013, 11:22 AM   #205
Kevnancy
Member
Kevnancy began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jan 2013
Device: kobo glo
Quote:
Originally Posted by theducks View Post
Those you show are Linux direction slashes
I know... I tried with Linux direction slashes (/) and windows direction slashes (\)... same effect
Kevnancy is offline   Reply With Quote
Old 01-04-2013, 01:11 PM   #206
Kevnancy
Member
Kevnancy began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jan 2013
Device: kobo glo
Last information:

if I put the "Ebook" folder (containing metadat.db) in the calibre directory (C:\Program Files\Calibre2), that's working. But I want to put my ebooks in the "Z:/ServerFoders/Ebook" folder

I don't understand why isn't possible
Kevnancy is offline   Reply With Quote
Old 01-04-2013, 03:04 PM   #207
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
Maybe you'll have to adapt open_dir in your php configuration ... But again I'm no windows specialist
vlad59 is offline   Reply With Quote
Old 01-04-2013, 03:33 PM   #208
PeterT
Taking a break; Fed up
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 6,095
Karma: 38639832
Join Date: Nov 2007
Location: Toronto
Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo
What I'm trying to learn is HOW exactly does COPS run? Is it running from a Windows Service (ie something like IIS or Apache) or is it running from a program that you launch in your desktop?

If running as a Windows Service it is more than likely that the mapping of a drive to "Z" is NOT in effect.
PeterT is offline   Reply With Quote
Old 01-04-2013, 03:48 PM   #209
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
I (in collaboration with a friend of mine) found out that COPS on Windows (7) and a WAMP server will only work if the calibre directory is in the path of the COPS installation.

2 examples:
(1) (set path in config_local.php)
COPS: C:/wamp/www/cops
Calibre: C:/wamp/www/cops/calibre

or
(2) (set path in config_local.php)
COPS: Z:/ebooks/cops
Calibre: Z:/ebooks/cops/calibre

will work, while

COPS: c:/wamp/www/cops
Calibre: z:/ebooks/calibre

will NOT (under Linux this is not a problem)

To make the second example work under Windows (7) with an Apache server you need to create an alias, otherwise apache cannot find COPS in the z:/ebooks/cops directory.
mariosipad is offline   Reply With Quote
Old 01-05-2013, 04:24 PM   #210
martha_muggins
Junior Member
martha_muggins began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2013
Device: Kindle - Nexus 7
cannot access OPDS from device

I also seem to be having trouble with the device I'm using [Nexus 7 - 32GB Android 4.2.1 - rooted] with my Synology Diskstation DS-209+. I've followed all the directions from this link https://github.com/seblucas/cops/wiki/Howto---Synology including using the same DIRs noted and copy/pasted the changed lines in the config_local.php file. I've tried 2 readers, namely Moon Reader+ as well as FBReader, and even using an FBReader plugin called "FBReaderJ-plugin-local-opds-scanner" to scan my local network as well as writing in the path manually to 192.168.45/Calibre/. Both apps are unable to locate the OPDS catalog, but in a web browser on my Nexus or my PC, the catalog appears normally. Why shouldn't either reader be unble to find the catalog? Thanks for your help!
martha_muggins 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 08:41 PM.


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