Installing client_push/notify_push and now files are invisible

Nextcloud version (eg, 20.0.5): 28.0.3
Operating system and version (eg, Ubuntu 20.04): RockyLinux v9
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.57 (Rocky Linux)
PHP version (eg, 7.4): 83
The issue you are facing:

Been trying to install the Client_Push / Notify_Push feature. Part of that I installed php83-php-redis. This never worked as I kept getting redis has gone away issues.

Since then, my files stopped being visible in the Nextcloud UI. The files are in the data folder. And they are permissioned for apache:apache.

I tried rescanning and got the following errors:
Exception during scan: Permission denied
Exception during scan: Redis server went away

I uninstalled php83-php-redis. And now the scan works. But the files still are not visible in the NextCloud UI.


±--------±------±----±--------±--------±-------±-------------+
| Folders | Files | New | Updated | Removed | Errors | Elapsed time |
±--------±------±----±--------±--------±-------±-------------+
| 492 | 10263 | 0 | 0 | 0 | 0 | 00:01:41 |
±--------±------±----±--------±--------±-------±-------------+

The files are visible using the webdav file share. But the files cannot be accessed.

As far as I can tell, I have removed all the changes I made while installing the client_push/notify_push feature. But I still cannot see the files.

Is this the first time you’ve seen this error? (Y/N): Y

The output of your Nextcloud log in Admin > Logging:

Since I uninstalled php83-php-redis, no errors show for file access

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

<?php
$CONFIG = array (
  'instanceid' => 'xxx',
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' =>
  array (
    0 => 'xxx',
  ),
  'allow_local_address' => true,
  'datadirectory' => '/var/www/sub-domains/xxx/data',
  'dbtype' => 'mysql',
  'version' => '28.0.3.2',
  'overwrite.cli.url' => 'https://xxx/',
  'htaccess.RewriteBase' => '/',
  'dbname' => 'xxx',
  'dbhost' => '127.0.0.1:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'xxx',
  'dbpassword' => 'xxx',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'nextcloud',
  'mail_domain' => 'xxx',
  'mail_smtphost' => 'xxx',
  'mail_smtpport' => '465',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'xxx',
  'mail_smtppassword' => 'xxx',
  'default_phone_region' => 'GB',
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/tmp/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
    'password' => 'xxx',
  ),
  'maintenance' => false,
  'maintenance_window_start' => 23,
  'app_install_overwrite' =>
  array (
    0 => 'google_synchronization',
  ),
  'theme' => '',
  'loglevel' => 2,
);

The output of your Apache/nginx/system log in /var/log/____:


[Sun Mar 10 00:52:19.772032 2024] [autoindex:error] [pid 68785:tid 68904] [client 102.129.232.53:46784] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Sun Mar 10 01:26:56.142088 2024] [autoindex:error] [pid 68786:tid 68844] [client 34.140.108.54:46740] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Sun Mar 10 04:25:02.125256 2024] [autoindex:error] [pid 69150:tid 69197] [client 101.44.251.237:47998] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive, referer: https://osdeployer-common-use.inkcompute.com/
[Sun Mar 10 05:30:13.332370 2024] [autoindex:error] [pid 68785:tid 68904] [client 223.199.189.233:17298] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Sun Mar 10 05:59:44.920713 2024] [autoindex:error] [pid 68785:tid 68914] [client 162.216.150.162:61092] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Sun Mar 10 06:20:49.372087 2024] [cgid:error] [pid 68785:tid 68916] [client 80.94.92.60:60624] AH01264: script not found or unable to stat: /var/www/cgi-bin/luci
[Sun Mar 10 06:20:49.372791 2024] [cgid:error] [pid 68785:tid 68916] [client 80.94.92.60:60624] AH01264: script not found or unable to stat: /var/www/cgi-bin/luci
[Sun Mar 10 07:12:19.731440 2024] [autoindex:error] [pid 69150:tid 69203] [client 199.45.154.50:38824] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Sun Mar 10 07:12:24.057687 2024] [autoindex:error] [pid 68786:tid 68832] [client 199.45.154.50:38862] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Sun Mar 10 08:37:28.249003 2024] [autoindex:error] [pid 68696:tid 68756] [client 109.74.204.123:50752] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Sun Mar 10 08:37:28.328031 2024] [autoindex:error] [pid 68786:tid 68827] [client 109.74.204.123:55708] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Sun Mar 10 08:37:33.671487 2024] [autoindex:error] [pid 68696:tid 68759] [client 109.74.204.123:55890] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Sun Mar 10 08:37:33.777678 2024] [autoindex:error] [pid 68696:tid 68743] [client 109.74.204.123:59636] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Sun Mar 10 08:37:34.066523 2024] [autoindex:error] [pid 68785:tid 68899] [client 109.74.204.123:59860] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Sun Mar 10 08:37:35.165113 2024] [autoindex:error] [pid 68696:tid 68763] [client 109.74.204.123:60854] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Sun Mar 10 10:25:58.347519 2024] [autoindex:error] [pid 1197:tid 1408] [client 83.97.73.245:41228] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Sun Mar 10 10:43:26.388344 2024] [autoindex:error] [pid 1201:tid 1347] [client 192.241.213.36:33650] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Sun Mar 10 12:56:13.060442 2024] [autoindex:error] [pid 1868:tid 1909] [client 152.32.141.176:52268] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Sun Mar 10 14:28:42.208606 2024] [autoindex:error] [pid 1237:tid 1377] [client 64.62.197.10:15839] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Sun Mar 10 14:38:12.935696 2024] [autoindex:error] [pid 1238:tid 1448] [client 64.62.197.9:10037] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Sun Mar 10 14:52:59.578850 2024] [autoindex:error] [pid 1237:tid 1374] [client 172.105.128.11:34928] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Sun Mar 10 19:04:14.402726 2024] [autoindex:error] [pid 1868:tid 1918] [client 34.105.48.121:35072] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Sun Mar 10 23:20:15.144799 2024] [autoindex:error] [pid 1868:tid 1932] [client 162.142.125.224:32884] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Sun Mar 10 23:20:18.818201 2024] [autoindex:error] [pid 1238:tid 1435] [client 162.142.125.224:44886] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Mon Mar 11 00:02:12.853177 2024] [autoindex:error] [pid 1237:tid 1371] [client 167.94.145.54:57964] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Mon Mar 11 00:02:16.002975 2024] [autoindex:error] [pid 1238:tid 1458] [client 167.94.145.54:35210] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Mon Mar 11 01:11:56.768544 2024] [autoindex:error] [pid 1238:tid 1437] [client 35.240.121.17:53428] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Mon Mar 11 01:48:37.474304 2024] [autoindex:error] [pid 1237:tid 1368] [client 185.180.143.49:41224] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Mon Mar 11 04:38:09.747109 2024] [core:error] [pid 1868:tid 1922] [client 182.106.184.185:59248] AH10244: invalid URI path (/cgi-bin/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/bin/sh)
[Mon Mar 11 04:38:18.307914 2024] [core:error] [pid 1238:tid 1443] [client 182.106.184.185:59524] AH10244: invalid URI path (/cgi-bin/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/bin/sh)
[Mon Mar 11 05:28:57.379404 2024] [autoindex:error] [pid 1868:tid 1918] [client 35.216.192.194:40128] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Mon Mar 11 06:20:44.348389 2024] [autoindex:error] [pid 1868:tid 1932] [client 44.220.185.99:42798] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Mon Mar 11 06:29:25.910024 2024] [autoindex:error] [pid 1868:tid 1919] [client 162.216.149.27:63358] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Mon Mar 11 06:52:42.128114 2024] [autoindex:error] [pid 1236:tid 1331] [client 193.106.29.125:64334] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive

After waiting half a day, the files are now back in my NextCloud ui. I don’t really know what caused this problem. And I think the scan fixed the database. Just not sure why it took so long to show up in the UI.

1 Like

You mentioned you removed the redis php module, but your posted config still references redis.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.