deepakdeshp
Posts: 134
Joined: Thu Oct 26, 2017 7:23 pm

Pi as ebook server

Mon Jun 24, 2019 1:02 pm

Hello,
I am trying to setup a pi e book server . I followed this process.
https://pimylifeup.com/raspberry-pi-ebo ... ment-13879
But I get a blank page in the browser when I point it to http://ip/ebooks The ebooks folder has 2 e-books. ip is the ip of the pi

Or is there any other how to which I can follow?

deepakdeshp
Posts: 134
Joined: Thu Oct 26, 2017 7:23 pm

Re: Pi as ebook server

Mon Jun 24, 2019 1:14 pm

The apache error log is

Code: Select all

[Mon Jun 24 11:20:42.996287 2019] [mpm_prefork:notice] [pid 356] AH00163: Apache
/2.4.25 (Raspbian) configured -- resuming normal operations
[Mon Jun 24 11:20:42.997020 2019] [core:notice] [pid 356] AH00094: Command line:
 '/usr/sbin/apache2'
[Mon Jun 24 12:13:21.302758 2019] [:error] [pid 373] [client 192.168.1.10:57934]
 PHP Fatal error:  Uncaught Exception: Database <> not found. in /var/www/html/e
books/lib/Base.php:109\nStack trace:\n#0 /var/www/html/ebooks/lib/Base.php(124):
 Base::error(NULL)\n#1 /var/www/html/ebooks/lib/Base.php(137): Base::getDb()\n#2
 /var/www/html/ebooks/index.php(28): Base::checkDatabaseAvailability()\n#3 {main
}\n  thrown in /var/www/html/ebooks/lib/Base.php on line 109
[Mon Jun 24 13:04:40.518018 2019] [:error] [pid 371] [client 192.168.1.10:59690]
 PHP Fatal error:  Uncaught Exception: Database <> not found. in /var/www/html/e
books/lib/Base.php:109\nStack trace:\n#0 /var/www/html/ebooks/lib/Base.php(124):
 Base::error(NULL)\n#1 /var/www/html/ebooks/lib/Base.php(137): Base::getDb()\n#2
 /var/www/html/ebooks/index.php(28): Base::checkDatabaseAvailability()\n#3 {main
}\n  thrown in /var/www/html/ebooks/lib/Base.php on line 109
[Mon Jun 24 13:21:40.752758 2019] [mpm_prefork:notice] [pid 356] AH00169: caught
 SIGTERM, shutting down
[Mon Jun 24 13:22:06.728795 2019] [mpm_prefork:notice] [pid 354] AH00163: Apache
/2.4.25 (Raspbian) configured -- resuming normal operations
[Mon Jun 24 13:22:06.746037 2019] [core:notice] [pid 354] AH00094: Command line:
 '/usr/sbin/apache2'

chinaguy
Posts: 43
Joined: Sun May 10, 2015 5:27 am
Location: Shanghai

Re: Pi as ebook server

Mon Jun 24, 2019 2:45 pm

I run a PirateBox made from a Raspberry Pi 3B+ with the messaging service not activated , Ia version call LibraryBox may become available for the RP in the near future.

https://piratebox.cc/doku.php
My other computer is a VIC20.

deepakdeshp
Posts: 134
Joined: Thu Oct 26, 2017 7:23 pm

Re: Pi as ebook server

Mon Jun 24, 2019 8:31 pm

chinaguy wrote:
Mon Jun 24, 2019 2:45 pm
I run a PirateBox made from a Raspberry Pi 3B+ with the messaging service not activated , Ia version call LibraryBox may become available for the RP in the near future.

https://piratebox.cc/doku.php
Thank you. But the e-books server is a nifty application and it should be tried out. Pirate box serves a different purpose.

Andyroo

Re: Pi as ebook server

Mon Jun 24, 2019 9:55 pm

A very quick scan of the code seems to show its looking for the metadata.db file which is part of Calibre.

I think you have to edit config_default.php as per this example and say where the files are.

Return to “Troubleshooting”