Using a raspberry Pi with NGINX. I have no difficulty accessing various test .html and .php files (currently just from within my LAN or on the rPi itself).
IF I go to 127.0.0.1/ebooks, I get the following error (and everything else says "OK" or "Client side rendering"):
File /media/pi/external/ebooks/metadata.db not found, Please check
Value of $config['calibre_directory'] in config_local.php (Does it end with a '/'?)
Value of
open_basedir
in your php.ini The access rights of the Calibre Database
However, ls -l /media/pi/external/ebooks/metadata.db correctly returns
-rwxrwxrwx 1 pi pi 7076864 Nov 20 23:48 /media/pi/external/ebooks/metadata.db (so clearly it CAN be found)
The directory in config_local.php is:
$config['calibre_directory'] = '/media/pi/external/ebooks/';
I'm not really sure what to make of the "open_basedir" message (it makes no difference if it's left unset or set to /media/pi/external/ebooks or /media/pi/external/ebooks/), nor the "The access rights of the Calibre Database" (since the rights are pretty wide open):
drwxrwxrwx 1 pi pi 159744 Nov 21 00:16 ebooks (and all directories are files below are the same permissions)
Before upgrading to Bullseye, I was running calibre-server with no issues. I can't run Calibre or calibre-server on that rPi now, which is why I'm trying COPS. My books are on an external USB hard drive both because of space and because of MUCH faster speed when using rsync to synchronize books among my MacBook, this rPi, and a backup rPi located in another country.
Any ideas? I have a sinking feeling there's something it doesn't like about having the library directory on an external drive.
|