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 05-19-2016, 03:54 AM   #1216
inthemood
Zealot
inthemood began at the beginning.
 
Posts: 130
Karma: 40
Join Date: May 2012
Location: Paris, France
Device: Kobo Aura 6", Kobo Forma 32G
Hello. I am trying to set up Cops on a personal web server (using Abyss on mac os x). My calibre database is in my Dropbox folder on my desktop. Cops is in the Abyss web server folder in the Applications folder. I get this error reported in the attached image. https://www.dropbox.com/s/a7cvkykihq...58.51.jpg?dl=0 Does anyone have any idea how I can fix this? I'm not an expert in code, so could someone could give me an explanation on how to write the path to the calibre library as maybe that is one of the problems. Thank you very much.

Last edited by inthemood; 05-19-2016 at 03:56 AM.
inthemood is offline   Reply With Quote
Old 05-19-2016, 08:37 AM   #1217
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
To help you solve your problem please post this line out of your config.local.php file:
Code:
$config['calibre_directory'] = './';
and the dropbox location as given in the dropbox preferences -> Account tab.
mariosipad is offline   Reply With Quote
Old 05-19-2016, 10:00 AM   #1218
inthemood
Zealot
inthemood began at the beginning.
 
Posts: 130
Karma: 40
Join Date: May 2012
Location: Paris, France
Device: Kobo Aura 6", Kobo Forma 32G
Thank you for answering. I am not home right now. I will send you what you request later tonight. Have a nice day.
inthemood is offline   Reply With Quote
Old 05-19-2016, 10:24 AM   #1219
inthemood
Zealot
inthemood began at the beginning.
 
Posts: 130
Karma: 40
Join Date: May 2012
Location: Paris, France
Device: Kobo Aura 6", Kobo Forma 32G
HI again. Actually I was able to get what you asked remotely.


Dropbox location : (house logo) peter


$config['./Users/peter/Dropbox/Public/E-books/metadata.db'] = './';


Thank you for your help.
inthemood is offline   Reply With Quote
Old 05-19-2016, 02:53 PM   #1220
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
Try:

Code:
$config['calibre_directory'] = '/Users/peter/Dropbox/Public/E-books/';
mariosipad is offline   Reply With Quote
Old 05-19-2016, 04:47 PM   #1221
inthemood
Zealot
inthemood began at the beginning.
 
Posts: 130
Karma: 40
Join Date: May 2012
Location: Paris, France
Device: Kobo Aura 6", Kobo Forma 32G
Quote:
Originally Posted by mariosipad View Post
Try:

Code:
$config['calibre_directory'] = '/Users/peter/Dropbox/Public/E-books/';
Thank you but I get the same (negative) result.
inthemood is offline   Reply With Quote
Old 05-19-2016, 05:15 PM   #1222
inthemood
Zealot
inthemood began at the beginning.
 
Posts: 130
Karma: 40
Join Date: May 2012
Location: Paris, France
Device: Kobo Aura 6", Kobo Forma 32G
Quote:
Originally Posted by vlad59 View Post
@CBebop

No nothing major hold back mobi support (only my laziness). I'll work on it this weekend.

@euterpe

From my point of view it's not an alternative to Dropbox as I use it with dropbox.

I have a laptop with Calibre and my Calibre library is located in my dropbox folder.

I have a VPS with Dropbox and COPS installed.

So each time I make a modification on my laptop's calibre library it's automatically synchronized onto my VPS (thanks to Dropbox) and my OPDS catalog is always up to date without having to do any manual stuff (as it reads directly from the Calibre database).

I hope it's clearer.
Hello,
Could you give me some advice. I am trying to set up Cops on a personal web server (using Abyss on mac os x). My calibre database is in my Dropbox folder on my desktop. Cops is in the Abyss web server folder in the Applications folder. I get this error reported in the attached image. https://www.dropbox.com/s/a7cvkykihq...58.51.jpg?dl=0
I don't know what I'm doing wrong.
Thank you.
inthemood is offline   Reply With Quote
Old 05-19-2016, 06:05 PM   #1223
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
You are, probably, not doing much wrong.

What is not yet correct is either:

1 - the path to the Calibre database file metadata.db is not correct. Therefore it cannot be found.

To test this:
a - make a directory in your home folder named "e-book". So the path will be:
/Users/peter/e-book
b - change the line in the COPS config file config_local.php to:
$config['calibre_directory'] = '/Users/peter/e-book/';
c - then try to connect to cops in a browser again

2 - the file metadata.db (and folder it is in) cannot be read by COPS because it has the wrong access rights.

You should change the access rights to 755 = drwxr-xr-x (directory) and -rwxr-xr-x (files). This can easily be done in the terminal. with the command
Code:
chmod -R 755 /Users/peter/e-book
But first try 1
mariosipad is offline   Reply With Quote
Old 05-20-2016, 04:38 AM   #1224
inthemood
Zealot
inthemood began at the beginning.
 
Posts: 130
Karma: 40
Join Date: May 2012
Location: Paris, France
Device: Kobo Aura 6", Kobo Forma 32G
Thank you Mariosipad. I will try and get back to you.
inthemood is offline   Reply With Quote
Old 05-20-2016, 05:05 AM   #1225
inthemood
Zealot
inthemood began at the beginning.
 
Posts: 130
Karma: 40
Join Date: May 2012
Location: Paris, France
Device: Kobo Aura 6", Kobo Forma 32G
Quote:
Originally Posted by mariosipad View Post
You are, probably, not doing much wrong.

What is not yet correct is either:

1 - the path to the Calibre database file metadata.db is not correct. Therefore it cannot be found.

To test this:
a - make a directory in your home folder named "e-book". So the path will be:
/Users/peter/e-book
b - change the line in the COPS config file config_local.php to:
$config['calibre_directory'] = '/Users/peter/e-book/';
c - then try to connect to cops in a browser again

2 - the file metadata.db (and folder it is in) cannot be read by COPS because it has the wrong access rights.

You should change the access rights to 755 = drwxr-xr-x (directory) and -rwxr-xr-x (files). This can easily be done in the terminal. with the command
Code:
chmod -R 755 /Users/peter/e-book
But first try 1
Hello again. Just to tell you solution 1 didn't make any difference. I'll try solution 2.
inthemood is offline   Reply With Quote
Old 05-20-2016, 05:11 AM   #1226
inthemood
Zealot
inthemood began at the beginning.
 
Posts: 130
Karma: 40
Join Date: May 2012
Location: Paris, France
Device: Kobo Aura 6", Kobo Forma 32G
Quote:
Originally Posted by mariosipad View Post
You are, probably, not doing much wrong.

What is not yet correct is either:

1 - the path to the Calibre database file metadata.db is not correct. Therefore it cannot be found.

To test this:
a - make a directory in your home folder named "e-book". So the path will be:
/Users/peter/e-book
b - change the line in the COPS config file config_local.php to:
$config['calibre_directory'] = '/Users/peter/e-book/';
c - then try to connect to cops in a browser again

2 - the file metadata.db (and folder it is in) cannot be read by COPS because it has the wrong access rights.

You should change the access rights to 755 = drwxr-xr-x (directory) and -rwxr-xr-x (files). This can easily be done in the terminal. with the command
Code:
chmod -R 755 /Users/peter/e-book
But first try 1
I tried solution 2. That didn't make any difference either.
On top of the database error, there are also these lines in the COPS configuration check :
Check if intl is properly installed and loaded
Please install the php5-intl extension and make sure it's enabled
Check if Normalizer class is properly installed and loaded
Please make sure intl is enabled in your php.ini
Check if the rendering will be done on client side or server side
Client side rendering


Could there be something to do there ?

Thanks again for your help.
inthemood is offline   Reply With Quote
Old 05-20-2016, 06:09 AM   #1227
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
Quote:
Check if intl is properly installed and loaded
Please install the php5-intl extension and make sure it's enabled
Check if Normalizer class is properly installed and loaded
Please make sure intl is enabled in your php.ini
These "errors" do not trigger the other error. COPS should, in my experience, work even with these errors.

Quote:
Check if the rendering will be done on client side or server side
Client side rendering
This is not an error, but a setting. Not important for now.

You could try:
Code:
chmod -R 777 /Users/peter/e-book
but........

Maybe your webserver (Abyss on mac os x) puts restrictions on where to place the PHP accessible COPS database? (Just like on Synology [fixable])

You could try to put (for testing) the Calibre directory/folder inside of the COPS directory (/Applications/Abyss/www/COPS/e-book or something like that) and use $config['calibre_directory'] = './e-book/'; in config_local.php

As Abyss is "non-free" software I cannot help you with that on one of my OSX boxes.
Correction: It is free! the X1 version you presumably have.

I might try for myself (on Linux) if I can get it to work with COPS(maybe this afternoon).

Last edited by mariosipad; 05-20-2016 at 06:22 AM.
mariosipad is offline   Reply With Quote
Old 05-20-2016, 08:38 AM   #1228
inthemood
Zealot
inthemood began at the beginning.
 
Posts: 130
Karma: 40
Join Date: May 2012
Location: Paris, France
Device: Kobo Aura 6", Kobo Forma 32G
Quote:
Originally Posted by mariosipad View Post
These "errors" do not trigger the other error. COPS should, in my experience, work even with these errors.

This is not an error, but a setting. Not important for now.

You could try:
Code:
chmod -R 777 /Users/peter/e-book
but........

Maybe your webserver (Abyss on mac os x) puts restrictions on where to place the PHP accessible COPS database? (Just like on Synology [fixable])

You could try to put (for testing) the Calibre directory/folder inside of the COPS directory (/Applications/Abyss/www/COPS/e-book or something like that) and use $config['calibre_directory'] = './e-book/'; in config_local.php

As Abyss is "non-free" software I cannot help you with that on one of my OSX boxes.
Correction: It is free! the X1 version you presumably have.

I might try for myself (on Linux) if I can get it to work with COPS(maybe this afternoon).
I tried both your suggestions to no avail… I am indeed using the X1 version.

Maybe I should try reinstalling both Abyss server and COPS ?
Thank you again for your generous help. Have a nice day.
inthemood is offline   Reply With Quote
Old 05-20-2016, 09:04 AM   #1229
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
After about an hour of installing and configuring I gave up

It just will not work "out of the box". I could not even get the web server started on port 80!

I think reinstalling and reconfiguring Abyss is the wisest move. (is sqlite3 installed in Abyss?)
mariosipad is offline   Reply With Quote
Old 05-20-2016, 09:11 AM   #1230
inthemood
Zealot
inthemood began at the beginning.
 
Posts: 130
Karma: 40
Join Date: May 2012
Location: Paris, France
Device: Kobo Aura 6", Kobo Forma 32G
Quote:
Originally Posted by mariosipad View Post
After about an hour of installing and configuring I gave up

It just will not work "out of the box". I could not even get the web server started on port 80!

I think reinstalling and reconfiguring Abyss is the wisest move. (is sqlite3 installed in Abyss?)
I don't know what sqlite3 is (sorry). I should tell you that I also tried Cops in the apache server on my mac and got the same result.
I will try reinstalling all this. Thanks again.
inthemood 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 10:40 AM.


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