Dashboard is reloading infinitely when accessing shared link

Nextcloud version (eg, 20.0.5): 28
Operating system and version (eg, Ubuntu 20.04): Rocky Linux 8.9
Apache or nginx version (eg, Apache 2.4.25): 2.4.37
PHP version (eg, 7.4): 8.3

The issue you are facing:
When I open a shared folder (allow “upload & editing” or “view only”) via webbrowser the page is reloading infinitely every 1-2 seconds. As you can see in Nextcloud logbelow the repeated shared folder access is documented every second (“has been accessed”).

The content of the shared folder is not accessible. Uploading is not possible. Switching to “File drop” is stopping the flapping, but uploading is not possible (“Could not upload …”).

Is this the first time you’ve seen this error? (Y/N): Y, after upgrading from Nextcloud 27 to 28.

Steps to replicate it:

  1. Share a folder via Nextcloud with password set
  2. Open this link in a Browser (no matter which browser) and enter password

The output of your Nextcloud log in Admin > Logging:

Information admin_audit
The shared folder with the token “b4f2tHRFXnMjzXT” by “gg” has been accessed.
19.12.2023, 10:38:28
Information admin_audit
The shared folder with the token “b4f2tHRFXnMjzXT” by “gg” has been accessed.
19.12.2023, 10:38:27
Information admin_audit
The shared folder with the token “b4f2tHRFXnMjzXT” by “gg” has been accessed.
19.12.2023, 10:38:23
Information admin_audit
The shared folder with the token “b4f2tHRFXnMjzXT” by “gg” has been accessed.
19.12.2023, 10:38:22
Information admin_audit
The shared folder with the token “b4f2tHRFXnMjzXT” by “gg” has been accessed.
19.12.2023, 10:38:22
Information admin_audit
The shared folder with the token “b4f2tHRFXnMjzXT” by “gg” has been accessed.
19.12.2023, 10:38:21
Information admin_audit
The shared folder with the token “b4f2tHRFXnMjzXT” by “gg” has been accessed.
19.12.2023, 10:38:19
Information admin_audit
The shared folder with the token “b4f2tHRFXnMjzXT” by “gg” has been accessed.
19.12.2023, 10:38:18
Information admin_audit
The shared folder with the token “b4f2tHRFXnMjzXT” by “gg” has been accessed.
19.12.2023, 10:38:17
Information admin_audit
The shared folder with the token “b4f2tHRFXnMjzXT” by “gg” has been accessed.
19.12.2023, 10:38:15
Information admin_audit
The shared folder with the token “b4f2tHRFXnMjzXT” by “gg” has been accessed.
19.12.2023, 10:38:14
Information admin_audit
The shared folder with the token “b4f2tHRFXnMjzXT” by “gg” has been accessed.
19.12.2023, 10:38:12
Information admin_audit
The shared folder with the token “b4f2tHRFXnMjzXT” by “gg” has been accessed.
19.12.2023, 10:38:11
Information admin_audit
The shared folder with the token “b4f2tHRFXnMjzXT” by “gg” has been accessed.
19.12.2023, 10:38:09
Information admin_audit
The shared folder with the token “b4f2tHRFXnMjzXT” by “gg” has been accessed.
19.12.2023, 10:38:08

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

<?php
$CONFIG = array (
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'redis' =>
  array (
    'host' => 'localhost',
    'port' => 6379,
  ),
  'asset-pipeline.enabled' => true,
  'instanceid' => 'XXXXX',
  'secret' => 'XXXXX',
  'trusted_domains' =>
  array (
    0 => 'XX.XX.com',
  ),
  'datadirectory' => '/var/www/html/owncloud/data',
  'overwriteprotocol' => 'https',
  'overwrite.cli.url' => 'https://XX.XX.com/owncloud',
  'htaccess.RewriteBase' => '/owncloud',
  'dbtype' => 'mysql',
  'version' => '28.0.0.11',
  'dbname' => 'cloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'XXXX',
  'dbpassword' => 'XXXX',
  'installed' => true,
  'ldapIgnoreNamingRules' => false,
  'ldapUserCleanupInterval' => '60',
  'log_rotate_size' => false,
  'log_type' => 'file',
  'logfile' => 'data/nextcloud.log',
  'loglevel' => '1',
  'debug' => true,
  'forcessl' => true,
  'forceSSLforSubdomains' => true,
  'theme' => '',
  'mail_smtpmode' => 'smtp',
  'maintenance' => false,
  'updatechecker' => false,
  'mail_from_address' => 'noreply.cloud',
  'mail_domain' => 'XX-XX.com',
  'mail_smtphost' => 'XX.XXX',
  'appstore.experimental.enabled' => true,
  'mail_smtpport' => '587',
  'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
  'updater.release.channel' => 'stable',
  'default_phone_region' => 'DE',
  'mail_sendmailmode' => 'smtp',
  'app_install_overwrite' =>
  array (
    0 => 'spreed',
    1 => 'files_downloadactivity',
    2 => 'twofactor_u2f',
  ),
  'mysql.utf8mb4' => true,
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' =>
  array (
  ),
  'twofactor_enforced_excluded_groups' =>
  array (
  ),
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'XX',
  'mail_smtppassword' => 'XX',
  'passwordsalt' => 'XX',
  'mail_smtpdebug' => false,
  'log.condition' => [
        'apps' => [ 'admin_audit'],
  ],
  'logfile_audit' => '/var/www/html/owncloud/data/nextcloud.log',
);


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

error_log

[Sun Dec 17 14:10:16.547593 2023] [autoindex:error] [pid 525440:tid 139843053020928] [client 20.7.221.176:17152] AH01276: Cannot serve directory /var/www/html/owncloud: No matching DirectoryIndex (none) found, and server-generated directory index forbidden by Options directive
[Sun Dec 17 14:10:34.177488 2023] [autoindex:error] [pid 525440:tid 139843011057408] [client 20.7.221.176:17153] AH01276: Cannot serve directory /var/www/html/owncloud: No matching DirectoryIndex (none) found, and server-generated directory index forbidden by Options directive
[Sun Dec 17 17:00:52.846826 2023] [cgid:error] [pid 526364:tid 139844319696640] [client 18.130.93.29:53898] AH01264: script not found or unable to stat: /var/www/cgi-bin/login.cgi
[Sun Dec 17 17:04:21.755026 2023] [cgid:error] [pid 525440:tid 139844101584640] [client 18.130.93.29:60206] AH01264: script not found or unable to stat: /var/www/cgi-bin/login.cgi
[Sun Dec 17 17:22:04.298780 2023] [autoindex:error] [pid 525440:tid 139843061413632] [client 18.130.93.29:50324] 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 Dec 17 17:27:05.967277 2023] [autoindex:error] [pid 525440:tid 139843027842816] [client 18.130.93.29:41100] 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 Dec 17 19:22:49.772660 2023] [autoindex:error] [pid 526364:tid 139844286125824] [client 20.7.221.176:6532] AH01276: Cannot serve directory /var/www/html/owncloud: No matching DirectoryIndex (none) found, and server-generated directory index forbidden by Options directive
[Sun Dec 17 19:23:04.885225 2023] [autoindex:error] [pid 526364:tid 139843841541888] [client 20.7.221.176:2625] AH01276: Cannot serve directory /var/www/html/owncloud: No matching DirectoryIndex (none) found, and server-generated directory index forbidden by Options directive
[Sun Dec 17 19:23:20.168823 2023] [autoindex:error] [pid 526364:tid 139843178845952] [client 20.7.221.176:2629] AH01276: Cannot serve directory /var/www/html/owncloud: No matching DirectoryIndex (none) found, and server-generated directory index forbidden by Options directive
[Sun Dec 17 19:23:35.718722 2023] [autoindex:error] [pid 525442:tid 139843455674112] [client 20.7.221.176:5655] AH01276: Cannot serve directory /var/www/html/owncloud: No matching DirectoryIndex (none) found, and server-generated directory index forbidden by Options directive
[Sun Dec 17 19:53:29.887164 2023] [autoindex:error] [pid 525442:tid 139843422103296] [client 44.200.77.234:53284] 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 Dec 17 20:01:02.722108 2023] [autoindex:error] [pid 526364:tid 139843178845952] [client 20.7.221.176:3200] AH01276: Cannot serve directory /var/www/html/owncloud: No matching DirectoryIndex (none) found, and server-generated directory index forbidden by Options directive
[Sun Dec 17 20:01:19.935312 2023] [autoindex:error] [pid 526364:tid 139844577425152] [client 20.7.221.176:3201] AH01276: Cannot serve directory /var/www/html/owncloud: No matching DirectoryIndex (none) found, and server-generated directory index forbidden by Options directive

access_log

192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/files/js/filemultiselectmenu.js HTTP/1.1” 200 2684
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/files/js/files.js HTTP/1.1” 200 17447
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/files/js/filelist.js HTTP/1.1” 200 122857
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/files/js/operationprogressbar.js HTTP/1.1” 200 2256
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/files/js/keyboardshortcuts.js HTTP/1.1” 200 4817
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/core/css/server.css.map HTTP/1.1” 200 14926
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/dist/files-reference-files.js HTTP/1.1” 200 12072
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/files_sharing/js/public.js HTTP/1.1” 200 16055
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/files_sharing/l10n/de_DE.js HTTP/1.1” 200 24474
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/files_sharing/js/templates.js HTTP/1.1” 200 3785
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/files_sharing/js/files_drop.js HTTP/1.1” 200 5117
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/files_sharing/js/public_note.js HTTP/1.1” 200 1190
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/dist/files_sharing-main.js HTTP/1.1” 200 453
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/viewer/l10n/de_DE.js HTTP/1.1” 200 5127
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/files_pdfviewer/l10n/de_DE.js HTTP/1.1” 200 579
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/files_pdfviewer/js/files_pdfviewer-public.js HTTP/1.1” 200 51644
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/dist/core-common.js HTTP/1.1” 200 4367102
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/text/l10n/de_DE.js HTTP/1.1” 200 11040
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/viewer/js/viewer-main.js HTTP/1.1” 200 920413
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/text/js/text-viewer.js HTTP/1.1” 200 75943
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/files_pdfviewer/js/files_pdfviewer-main.js HTTP/1.1” 200 651603
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/theming/js/theming.js HTTP/1.1” 200 60
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/theming/l10n/de_DE.js HTTP/1.1” 200 11322
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/theming/image/logoheader?v=44 HTTP/1.1” 200 25850
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/theming/theme/light.css?plain=1&v=98fbc42f HTTP/1.1” 200 3523
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/theming/theme/light-highcontrast.css?plain=1&v=98fbc42f HTTP/1.1” 200 3596
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/theming/theme/dark-highcontrast.css?plain=1&v=98fbc42f HTTP/1.1” 200 3639
10.0.8.2 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/s/b4f2tHRFXnMjzXT HTTP/1.1” 200 8636
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/dist/core-files_fileinfo.js.map?v=d5860a22750b08465c62 HTTP/1.1” 200 4996
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/dist/core-files_client.js.map?v=b3b3cb55670bd3d7f7f4 HTTP/1.1” 200 53004
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/dist/core-main.js.map?v=8b458f860fb275653993 HTTP/1.1” 200 3061838
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/text/js/text-public.js HTTP/1.1” 200 4830562
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/theming/image/background?v=44 HTTP/1.1” 200 3167009
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/dist/files-reference-files.js.map?v=fc262f6921dafa78dd64 HTTP/1.1” 200 40545
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/dist/files_sharing-main.js.map?v=1bbf90b4b4aba9ea0150 HTTP/1.1” 200 2086
10.0.8.2 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/theming/theme/default.css?plain=1&v=98fbc42f HTTP/1.1” 200 3523
10.0.8.2 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/theming/theme/dark.css?plain=1&v=98fbc42f HTTP/1.1” 200 3468
10.0.8.2 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/theming/theme/light.css?plain=0&v=98fbc42f HTTP/1.1” 200 3711
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/viewer/js/viewer-components.js?v=ada191fba38f09fe10b7 HTTP/1.1” 200 488016
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/dist/core-common.js.map?v=ffc92a02d2f3c49d1a58 HTTP/1.1” 200 10462720
10.0.8.2 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/theming/theme/light-highcontrast.css?plain=0&v=98fbc42f HTTP/1.1” 200 3961
10.0.8.2 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/theming/theme/dark-highcontrast.css?plain=0&v=98fbc42f HTTP/1.1” 200 4021
10.0.8.2 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/theming/theme/dark.css?plain=0&v=98fbc42f HTTP/1.1” 200 3655
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/files_pdfviewer/js/files_pdfviewer-public.js.map?v=2769b31773e9210337bb HTTP/1.1” 200 256752
192.168.5.121 - - [19/Dec/2023:09:49:17 +0100] “GET /owncloud/apps/text/js/text-viewer.js.map?v=07a5776ca70b027cc219 HTTP/1.1” 200 288117

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

Fehler PHP
exif_read_data(): File not supported at /var/www/html/owncloud/apps/photos/lib/Listener/ExifMetadataProvider.php#75
19.12.2023, 09:35:13
Fehler PHP
ldap_read(): Search: No such object at /var/www/html/owncloud/apps/user_ldap/lib/LDAP.php#307
19.12.2023, 09:35:13

1 Like

Does this help?

3 Likes

Great! You save my day. Thank you!

1 Like