Internal Server Error (after installing E-book Reader...) weird

I just installed the stable E-book reader, uploaded some .epub Ebooks, and tried opening them.

Then, I got the following error:

## Internal Server Error
The server was unable to complete your request.
If this happens again, please send the technical details below to the server administrator.
More details can be found in the server log.
### Technical details
* Remote Address: 76.85.3.4
* Request ID: **zMuzoqBwHXeNXEimBIxD**

Here are my specs:

Nextcloud version: 17.0.2
Operating system and version: Ubuntu Server 18.04.3 LTS
Apache version: Apache/2.4.29 (Ubuntu)
PHP version : PHP 7.2.24-0ubuntu0.18.04.1

Is this the first time you’ve seen this error? : Yes

Steps to replicate it:

  1. I can’t log in through the web interface any longer(!) The web interface is locked up.
    I did a full server reboot, and still get an internal error and can’t log in with the web interface, but I got another reqId.

The output of your Nextcloud log in Admin > Logging:
I don’t know what you mean by Admin > Logging, but here is the portion of my /data/nextcloud.log that has the same reqId in it:

**{"reqId":"zMuzoqBwHXeNXEimBIxD"**,"level":2,"time":"2020-01-04T23:54:35+00:00","remoteAddr":"76.85.3.4","user":"zoomiest","app":"fulltextsearch","method":"GET","url":"\/nextcloud\/index.php\/apps\/files\/","message":"Issue while loading Provider: ocsms\/OCA\\OcSms\\Provider\\FullTextSearchProvider - OCP\\AppFramework\\QueryException Could not resolve OCA\\OcSms\\Provider\\FullTextSearchProvider! Class OCA\\OcSms\\Provider\\FullTextSearchProvider does not exist","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/79.0.3945.88 Safari\/537.36","version":"17.0.2.1"}
**{"reqId":"zMuzoqBwHXeNXEimBIxD"**,"level":3,"time":"2020-01-04T23:54:35+00:00","remoteAddr":"76.85.3.4","user":"zoomiest","app":"index","method":"GET","url":"\/nextcloud\/index.php\/apps\/files\/","message":{"Exception":"Error","Message":"Class 'OCP\\Config' not found","Code":0,"Trace":[{"file":"\/home\/www\/nextcloud\/apps\/files_reader\/lib\/Hooks.php","line":41,"function":"get","class":"OCA\\Files_Reader\\Config","type":"::","args":["epub_enable","true"]},{"file":"\/home\/www\/nextcloud\/lib\/private\/legacy\/hook.php","line":106,"function":"announce_settings","class":"OCA\\Files_Reader\\Hooks","type":"::","args":[{"array":{"_oc_debug":"false","_oc_isadmin":"true","backendAllowsPasswordConfirmation":"true","oc_dataURL":"\"data\"","_oc_webroot":"\"\/nextcloud\"","_oc_appswebroots":"{\"accessibility\":\"\/nextcloud\/apps\/accessibility\",\"activity\":\"\/nextcloud\/apps\/activity\",\"audioplayer_editor\":\"\/nextcloud\/apps\/audioplayer_editor\",\"bruteforcesettings\":\"\/nextcloud\/apps\/bruteforcesettings\",\"calendar\":\"\/nextcloud\/apps\/calendar\",\"cloud_federation_api\":\"\/nextcloud\/apps\/cloud_federation_api\",\"comments\":\"\/nextcloud\/apps\/comments\",\"contacts\":\"\/nextcloud\/apps\/contacts\",\"dav\":\"\/nextcloud\/apps\/dav\",\"deck\":\"\/nextcloud\/apps\/deck\",\"discoursesso\":\"\/nextcloud\/apps\/discoursesso\",\"drawio\":\"\/nextcloud\/apps\/drawio\",\"dropit\":\"\/nextcloud\/apps\/dropit\",\"federatedfilesharing\":\"\/nextcloud\/apps\/federatedfilesharing\",\"federation\":\"\/nextcloud\/apps\/federation\",\"files\":\"\/nextcloud\/apps\/files\",\"files_pdfviewer\":\"\/nextcloud\/apps\/files_pdfviewer\",\"files_reader\":\"\/nextcloud\/apps\/files_reader\",\"files_rightclick\":\"\/nextcloud\/apps\/files_rightclick\",\"files_sharing\":\"\/nextcloud\/apps\/files_sharing\",\"files_trashbin\":\"\/nextcloud\/apps\/files_trashbin\",\"files_versions\":\"\/nextcloud\/apps\/files_versions\",\"files_videoplayer\":\"\/nextcloud\/apps\/files_videoplayer\",\"firstrunwizard\":\"\/nextcloud\/apps\/firstrunwizard\",\"fulltextsearch\":\"\/nextcloud\/apps\/fulltextsearch\",\"gallery\":\"\/nextcloud\/apps\/gallery\",\"logreader\":\"\/nextcloud\/apps\/logreader\",\"lookup_server_connector\":\"\/nextcloud\/apps\/lookup_server_connector\",\"mail\":\"\/nextcloud\/apps\/mail\",\"music\":\"\/nextcloud\/apps\/music\",\"nextcloud_announcements\":\"\/nextcloud\/apps\/nextcloud_announcements\",\"notes\":\"\/nextcloud\/apps\/notes\",\"notifications\":\"\/nextcloud\/apps\/notifications\",\"oauth2\":\"\/nextcloud\/apps\/oauth2\",\"ocsms\":\"\/nextcloud\/apps\/ocsms\",\"onlyoffice\":\"\/nextcloud\/apps\/onlyoffice\",\"password_policy\":\"\/nextcloud\/apps\/password_policy\",\"privacy\":\"\/nextcloud\/apps\/privacy\",\"provisioning_api\":\"\/nextcloud\/apps\/provisioning_api\",\"ransomware_protection\":\"\/nextcloud\/apps\/ransomware_protection\",\"recommendations\":\"\/nextcloud\/apps\/recommendations\",\"serverinfo\":\"\/nextcloud\/apps\/serverinfo\",\"sharebymail\":\"\/nextcloud\/apps\/sharebymail\",\"support\":\"\/nextcloud\/apps\/support\",\"survey_client\":\"\/nextcloud\/apps\/survey_client\",\"systemtags\":\"\/nextcloud\/apps\/systemtags\",\"text\":\"\/nextcloud\/apps\/text\",\"theming\":\"\/nextcloud\/apps\/theming\",\"twofactor_backupcodes\":\"\/nextcloud\/apps\/twofactor_backupcodes\",\"unsplash\":\"\/nextcloud\/apps\/unsplash\",\"updatenotification\":\"\/nextcloud\/apps\/updatenotification\",\"user_usage_report\":\"\/nextcloud\/apps\/user_usage_report\",\"video_converter\":\"\/nextcloud\/apps\/video_converter\",\"viewer\":\"\/nextcloud\/apps\/viewer\",\"workflowengine\":\"\/nextcloud\/apps\/workflowengine\"}","datepickerFormatDate":"\"M\\\/d\\\/yy\"","nc_lastLogin":0,"nc_pageLoad":1578182075,"dayNames":"[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]","dayNamesShort":"[\"Sun.\",\"Mon.\",\"Tue.\",\"Wed.\",\"Thu.\",\"Fri.\",\"Sat.\"]","dayNamesMin":"[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"]","monthNames":"[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"]","monthNamesShort":"[\"Jan.\",\"Feb.\",\"Mar.\",\"Apr.\",\"May.\",\"Jun.\",\"Jul.\",\"Aug.\",\"Sep.\",\"Oct.\",\"Nov.\",\"Dec.\"]","firstDay":"0","_oc_config":"{\"session_lifetime\":1440,\"session_keepalive\":true,\"version\":\"17.0.2.1\",\"versionstring\":\"17.0.2\",\"enable_avatars\":true,\"lost_password_link\":null,\"modRewriteWorking\":false,\"sharing.maxAutocompleteResults\":0,\"sharing.minSearchStringLength\":0,\"blacklist_files_regex\":\"\\\\.(part|filepart)$\"}","oc_appconfig":"{\"core\":{\"defaultExpireDateEnabled\":false,\"defaultExpireDate\":null,\"defaultExpireDateEnforced\":null,\"enforcePasswordForPublicLink\":false,\"enableLinkPasswordByDefault\":false,\"sharingDisabledForUser\":false,\"resharingAllowed\":true,\"remoteShareAllowed\":true,\"federatedCloudShareDoc\":\"https:\\\/\\\/docs.nextcloud.com\\\/server\\\/17\\\/go.php?to=user-sharing-federated\",\"allowGroupSharing\":true},\"files\":{\"max_chunk_size\":10485760},\"comments\":{\"maxAutoCompleteResults\":10}}","_theme":"{\"entity\":\"Nextcloud\",\"name\":\"Nextcloud\",\"title\":\"Nextcloud\",\"baseUrl\":\"https:\\\/\\\/nextcloud.com\",\"syncClientUrl\":\"https:\\\/\\\/nextcloud.com\\\/install\\\/#install-clients\",\"docBaseUrl\":\"https:\\\/\\\/docs.nextcloud.com\",\"docPlaceholderUrl\":\"https:\\\/\\\/docs.nextcloud.com\\\/server\\\/17\\\/go.php?to=PLACEHOLDER\",\"slogan\":\"a safe home for all your data\",\"logoClaim\":\"\",\"shortFooter\":\"<a href=\\\"https:\\\/\\\/nextcloud.com\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\" class=\\\"entity-name\\\">Nextcloud<\\\/a> \\u2013 a safe home for all your data\",\"longFooter\":\"<a href=\\\"https:\\\/\\\/nextcloud.com\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\" class=\\\"entity-name\\\">Nextcloud<\\\/a> \\u2013 a safe home for all your data\",\"folder\":\"\"}","_oc_capabilities":"{\"core\":{\"pollinterval\":60,\"webdav-root\":\"remote.php\\\/webdav\"},\"bruteforce\":{\"delay\":0},\"files\":{\"bigfilechunking\":true,\"blacklisted_files\":[\".htaccess\"],\"undelete\":true,\"versioning\":true},\"activity\":{\"apiv2\":[\"filters\",\"filters-api\",\"previews\",\"rich-strings\"]},\"ocm\":{\"enabled\":true,\"apiVersion\":\"1.0-proposal1\",\"endPoint\":\"http:\\\/\\\/jones.best\\\/nextcloud\\\/index.php\\\/ocm\",\"resourceTypes\":[{\"name\":\"file\",\"shareTypes\":[\"user\",\"group\"],\"protocols\":{\"webdav\":\"\\\/public.php\\\/webdav\\\/\"}}]},\"deck\":{\"version\":\"0.7.0\"},\"dav\":{\"chunking\":\"1.0\"},\"dropit\":{\"enabled\":true,\"upload\":{\"files\":{\"url\":\"http:\\\/\\\/jones.best\\\/nextcloud\\\/index.php\\\/apps\\\/dropit\\\/drop\",\"param\":\"data\"},\"text\":{\"url\":\"http:\\\/\\\/jones.best\\\/nextcloud\\\/index.php\\\/apps

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'xxxxxxxxxx',
  'passwordsalt' => 'xxxxxxxxxxxxx',
  'secret' => 'xxxxxxxxxxxxxxxxxxxxx',
  'trusted_domains' =>
  array (
    0 => 'jones.best',
    1 => 'localhost',
  ),
  'datadirectory' => '/home/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '17.0.2.1',
  'overwrite.cli.url' => 'https://xxxxxxxx/nextcloud',
  'dbname' => 'xxxxxxxx',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'xxxxxxxxx',
  'dbpassword' => 'xxxxxxxxx',
  'installed' => true,
  'maintenance' => false,
  'app_install_overwrite' =>
  array (
    0 => 'files_reader',
  ),
);

The output of your Apache/system log in /var/log/apache2/error.log:

[Sat Jan 04 17:42:17.406796 2020] [negotiation:error] [pid 3160] (13)Permission denied: [client 76.85.3.4:38999] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 17:42:17.511618 2020] [negotiation:error] [pid 3539] (13)Permission denied: [client 76.85.3.4:38995] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 17:42:17.516552 2020] [negotiation:error] [pid 3160] (13)Permission denied: [client 76.85.3.4:38999] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 17:42:17.617813 2020] [negotiation:error] [pid 3160] (13)Permission denied: [client 76.85.3.4:38999] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 17:49:54.994228 2020] [mpm_prefork:notice] [pid 1643] AH00169: caught SIGTERM, shutting down
[Sat Jan 04 17:52:49.948349 2020] [mpm_prefork:notice] [pid 1666] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sat Jan 04 17:52:50.092625 2020] [core:notice] [pid 1666] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jan 04 17:54:19.399688 2020] [negotiation:error] [pid 1855] (13)Permission denied: [client 76.85.3.4:50771] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 17:54:19.574455 2020] [negotiation:error] [pid 1856] (13)Permission denied: [client 76.85.3.4:50774] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 17:54:25.589954 2020] [negotiation:error] [pid 1855] (13)Permission denied: [client 76.85.3.4:50771] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 17:54:25.593776 2020] [negotiation:error] [pid 1858] (13)Permission denied: [client 76.85.3.4:50781] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 17:54:26.224986 2020] [negotiation:error] [pid 1858] (13)Permission denied: [client 76.85.3.4:50781] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 17:54:26.237157 2020] [negotiation:error] [pid 1855] (13)Permission denied: [client 76.85.3.4:50771] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 17:54:26.671255 2020] [negotiation:error] [pid 1858] (13)Permission denied: [client 76.85.3.4:50781] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 17:54:26.825634 2020] [negotiation:error] [pid 1861] (13)Permission denied: [client 76.85.3.4:50783] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 17:54:26.953740 2020] [negotiation:error] [pid 1861] (13)Permission denied: [client 76.85.3.4:50783] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 17:54:27.019527 2020] [negotiation:error] [pid 1861] (13)Permission denied: [client 76.85.3.4:50783] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 17:54:35.183866 2020] [negotiation:error] [pid 2363] (13)Permission denied: [client 76.85.3.4:50787] AH00686: cannot read directory for multi: /home/www/, referer: http://jones.best/
[Sat Jan 04 17:54:35.257830 2020] [negotiation:error] [pid 1862] (13)Permission denied: [client 76.85.3.4:50786] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 17:54:35.584039 2020] [negotiation:error] [pid 2363] (13)Permission denied: [client 76.85.3.4:50787] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 17:54:35.591974 2020] [negotiation:error] [pid 2364] (13)Permission denied: [client 76.85.3.4:50788] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 17:54:35.749669 2020] [negotiation:error] [pid 2363] (13)Permission denied: [client 76.85.3.4:50787] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 17:54:35.779892 2020] [negotiation:error] [pid 2365] (13)Permission denied: [client 76.85.3.4:50789] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 17:54:35.822884 2020] [negotiation:error] [pid 1856] (13)Permission denied: [client 76.85.3.4:50790] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 17:54:35.892953 2020] [negotiation:error] [pid 1856] (13)Permission denied: [client 76.85.3.4:50790] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 18:09:36.671994 2020] [negotiation:error] [pid 1855] (13)Permission denied: [client 76.85.3.4:50865] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 18:24:09.261537 2020] [negotiation:error] [pid 1862] (13)Permission denied: [client 202.102.90.229:44900] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 18:24:09.634635 2020] [negotiation:error] [pid 2363] (13)Permission denied: [client 202.102.90.229:47376] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 18:24:10.015042 2020] [negotiation:error] [pid 1856] (13)Permission denied: [client 202.102.90.229:49664] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 18:24:10.427845 2020] [negotiation:error] [pid 2364] (13)Permission denied: [client 202.102.90.229:52140] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 18:24:10.855318 2020] [negotiation:error] [pid 1858] (13)Permission denied: [client 202.102.90.229:54730] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 18:24:11.241426 2020] [negotiation:error] [pid 1861] (13)Permission denied: [client 202.102.90.229:57494] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 18:24:11.616932 2020] [negotiation:error] [pid 1855] (13)Permission denied: [client 202.102.90.229:60060] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 18:24:11.992034 2020] [negotiation:error] [pid 2365] (13)Permission denied: [client 202.102.90.229:34008] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 18:24:36.674430 2020] [negotiation:error] [pid 2363] (13)Permission denied: [client 76.85.3.4:51140] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 18:37:47.723455 2020] [negotiation:error] [pid 1856] (13)Permission denied: [client 104.196.158.145:38048] AH00686: cannot read directory for multi: /home/www/
[Sat Jan 04 18:39:36.669816 2020] [negotiation:error] [pid 2365] (13)Permission denied: [client 76.85.3.4:51201] AH00686: cannot read directory for multi: /home/www/

(whew, looks like some permissions problems in there…)

Thank you for all of your help. I would love to get this going again soon…