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