Connection failed, reconnecting

Nextcloud version (eg, 20.0.5): 25.0.5
Operating system and version (eg, Ubuntu 20.04): Linux 5.15.0-69-generic x86_64 / Ubuntu
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.52 (Ubuntu)
PHP version (eg, 7.4): 8.1

The issue you are facing:

When working with .md files i often get the message: Connection failed, reconnecting. Any idea what might be wrong?

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

The output of your Nextcloud log in Admin > Logging:

OCP\Files\ForbiddenException: Access denied to text/markdown in Folder System information/2023-04-08 (2).md

    /var/www/html/apps/files_staticmimecontrol/lib/StorageWrapper.php - line 179:

    OCA\FilesStaticmimecontrol\StorageWrapper->checkFileAccess()

    /var/www/html/lib/private/Files/View.php - line 1179:

    OCA\FilesStaticmimecontrol\StorageWrapper->file_put_contents()

    /var/www/html/lib/private/Files/View.php - line 705:

    OC\Files\View->basicOperation()

    /var/www/html/lib/private/Files/Node/File.php - line 71:

    OC\Files\View->file_put_contents()

    /var/www/html/apps/support/lib/Controller/ApiController.php - line 124:

    OC\Files\Node\File->putContent()

    /var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 225:

    OCA\Support\Controller\ApiController->generateSystemReport()

    /var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 133:

    OC\AppFramework\Http\Dispatcher->executeController()

    /var/www/html/lib/private/AppFramework/App.php - line 172:

    OC\AppFramework\Http\Dispatcher->dispatch()

    /var/www/html/lib/private/Route/Router.php - line 298:

    OC\AppFramework\App::main()

    /var/www/html/lib/base.php - line 1047:

    OC\Route\Router->match()

    /var/www/html/index.php - line 36:

    OC::handleRequest()

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

$CONFIG = array (
  'passwordsalt' => 'REMOVED',
  'secret' => 'REMOVED',
  'trusted_domains' => 
  array (
    0 => 'REMOVED',
    1 => 'REMOVED',
  ),
  'datadirectory' => '/home/REMOVED',
  'dbtype' => 'mysql',
  'version' => '25.0.5.1',
  'overwrite.cli.url' => 'REMOVED',
  'dbname' => 'REMOVED',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'REMOVED',
  'dbpassword' => 'REMOVED',
  'installed' => true,
  'instanceid' => 'REMOVED',
  'htaccess.RewriteBase' => '/',
  'maintenance' => false,
  'loglevel' => 2,
  'filelocking.enabled' => 'true',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'dbindex' => 0,
    'password' => 'REMOVED',
    'timeout' => 1.5,
  ),
  'default_phone_region' => 'dk',
  'theme' => '',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'no-reply',
  'mail_domain' => 'REMOVED',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtphost' => 'email-smtp.eu-central-1.amazonaws.com',
  'mail_smtpport' => '587',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'REMOVED',
  'mail_smtppassword' => 'REMOVED',
  'updater.secret' => 'REMOVED',
);

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

[Sat Apr 08 00:00:01.735530 2023] [mpm_event:notice] [pid 692:tid 140031321536384] AH00489: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Sat Apr 08 00:00:01.735557 2023] [core:notice] [pid 692:tid 140031321536384] AH00094: Command line: '/usr/sbin/apache2'
[Sat Apr 08 12:41:30.326625 2023] [proxy_fcgi:error] [pid 22351:tid 140030873912896] [client 37.97.28.204:59001] AH01071: Got error 'PHP message: Access denied to text/markdown in Folder Templates/Readme.md'
[Sat Apr 08 12:47:52.306586 2023] [proxy_fcgi:error] [pid 22350:tid 140030899091008] [client 37.97.28.204:59292] AH01071: Got error 'PHP message: Access denied to text/markdown in Folder Photos/HEADER.md'
[Sat Apr 08 12:48:03.144167 2023] [proxy_fcgi:error] [pid 22351:tid 140030831949376] [client 37.97.28.204:59294] AH01071: Got error 'PHP message: Access denied to text/markdown in Folder Photos/Readme.md'
[Sat Apr 08 12:48:13.675753 2023] [proxy_fcgi:error] [pid 22351:tid 140030949447232] [client 37.97.28.204:59295] AH01071: Got error 'PHP message: Access denied to text/markdown in Folder Photos/Readme.md'
[Sat Apr 08 12:54:36.570818 2023] [proxy_fcgi:error] [pid 22350:tid 140031077025344] [client 37.97.28.204:59504] AH01071: Got error 'PHP message: Access denied to text/markdown in Folder System information/2023-04-08.md'
[Sat Apr 08 12:54:45.974961 2023] [proxy_fcgi:error] [pid 22351:tid 140031085426240] [client 37.97.28.204:59514] AH01071: Got error 'PHP message: Access denied to text/markdown in Folder System information/2023-04-08 (2).md'
[Sat Apr 08 12:59:03.984763 2023] [proxy_fcgi:error] [pid 22351:tid 140030848734784] [client 37.97.28.204:59666] AH01071: Got error 'PHP message: Access denied to text/markdown in Folder test/Readme.md'

PASTE HERE


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.
{"reqId":"gEkSc3zWSUWK44GMTzTy","level":1,"time":"2023-04-06T14:58:30+00:00","remoteAddr":"37.97.28.204","user":"--","app":"updater","method":"GET","url":"/core/ajax/update.php?requesttoken=qcGO6F9NJO%2B%2F5ZScLyEIdNg7V5dzm1OfqnnDueBb0%2Bc%3D%3A%2FKO7jhN7EoPr1eHyY1E8GpJxEdpE43zS30yx3IQNpaY%3D","message":"\\OC\\Updater::maintenanceDisabled: Turned off maintenance mode","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0 Unique/94.7.6446.47","version":"25.0.5.1","data":{"app":"updater"}}
{"reqId":"gEkSc3zWSUWK44GMTzTy","level":1,"time":"2023-04-06T14:58:30+00:00","remoteAddr":"37.97.28.204","user":"--","app":"updater","method":"GET","url":"/core/ajax/update.php?requesttoken=qcGO6F9NJO%2B%2F5ZScLyEIdNg7V5dzm1OfqnnDueBb0%2Bc%3D%3A%2FKO7jhN7EoPr1eHyY1E8GpJxEdpE43zS30yx3IQNpaY%3D","message":"\\OC\\Updater::resetLogLevel: Reset log level to Warning(2)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0 Unique/94.7.6446.47","version":"25.0.5.1","data":{"app":"updater"}}
{"reqId":"5qlL2jM47hfxK0bpe0Gg","level":3,"time":"2023-04-08T12:41:30+00:00","remoteAddr":"37.97.28.204","user":"admin","app":"text","method":"POST","url":"/apps/text/session/sync","message":"Access denied to text/markdown in Folder Templates/Readme.md","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0 Config/95.2.8191.92","version":"25.0.5.1","exception":{"Exception":"OCP\\Files\\ForbiddenException","Message":"Access denied to text/markdown in Folder Templates/Readme.md","Code":0,"Trace":[{"file":"/var/www/html/apps/files_staticmimecontrol/lib/StorageWrapper.php","line":179,"function":"checkFileAccess","class":"OCA\\FilesStaticmimecontrol\\StorageWrapper","type":"->"},{"file":"/var/www/html/lib/private/Files/View.php","line":1179,"function":"file_put_contents","class":"OCA\\FilesStaticmimecontrol\\StorageWrapper","type":"->"},{"file":"/var/www/html/lib/private/Files/View.php","line":705,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/html/lib/private/Files/Node/File.php","line":71,"function":"file_put_contents","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/html/apps/text/lib/Service/DocumentService.php","line":319,"function":"putContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/html/lib/private/Files/Lock/LockManager.php","line":29,"function":"OCA\\Text\\Service\\{closure}","class":"OCA\\Text\\Service\\DocumentService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/text/lib/Service/DocumentService.php","line":320,"function":"runInScope","class":"OC\\Files\\Lock\\LockManager","type":"->"},{"file":"/var/www/html/apps/text/lib/Service/ApiService.php","line":234,"function":"autosave","class":"OCA\\Text\\Service\\DocumentService","type":"->"},{"file":"/var/www/html/apps/text/lib/Controller/SessionController.php","line":92,"function":"sync","class":"OCA\\Text\\Service\\ApiService","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"sync","class":"OCA\\Text\\Controller\\SessionController","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/lib/base.php","line":1047,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/html/apps/files_staticmimecontrol/lib/StorageWrapper.php","Line":130,"message":"Access denied to text/markdown in Folder Templates/Readme.md","exception":{},"CustomMessage":"Access denied to text/markdown in Folder Templates/Readme.md"}}
{"reqId":"vnlsGVtcjZsWgAQ0HJ5s","level":3,"time":"2023-04-08T12:47:52+00:00","remoteAddr":"37.97.28.204","user":"admin","app":"text","method":"POST","url":"/apps/text/session/sync","message":"Access denied to text/markdown in Folder Photos/HEADER.md","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0 Config/95.2.8191.92","version":"25.0.5.1","exception":{"Exception":"OCP\\Files\\ForbiddenException","Message":"Access denied to text/markdown in Folder Photos/HEADER.md","Code":0,"Trace":[{"file":"/var/www/html/apps/files_staticmimecontrol/lib/StorageWrapper.php","line":179,"function":"checkFileAccess","class":"OCA\\FilesStaticmimecontrol\\StorageWrapper","type":"->"},{"file":"/var/www/html/lib/private/Files/View.php","line":1179,"function":"file_put_contents","class":"OCA\\FilesStaticmimecontrol\\StorageWrapper","type":"->"},{"file":"/var/www/html/lib/private/Files/View.php","line":705,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/html/lib/private/Files/Node/File.php","line":71,"function":"file_put_contents","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/html/apps/text/lib/Service/DocumentService.php","line":319,"function":"putContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/html/lib/private/Files/Lock/LockManager.php","line":29,"function":"OCA\\Text\\Service\\{closure}","class":"OCA\\Text\\Service\\DocumentService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/text/lib/Service/DocumentService.php","line":320,"function":"runInScope","class":"OC\\Files\\Lock\\LockManager","type":"->"},{"file":"/var/www/html/apps/text/lib/Service/ApiService.php","line":234,"function":"autosave","class":"OCA\\Text\\Service\\DocumentService","type":"->"},{"file":"/var/www/html/apps/text/lib/Controller/SessionController.php","line":92,"function":"sync","class":"OCA\\Text\\Service\\ApiService","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"sync","class":"OCA\\Text\\Controller\\SessionController","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/lib/base.php","line":1047,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/html/apps/files_staticmimecontrol/lib/StorageWrapper.php","Line":130,"message":"Access denied to text/markdown in Folder Photos/HEADER.md","exception":{},"CustomMessage":"Access denied to text/markdown in Folder Photos/HEADER.md"}}
{"reqId":"WrpeQg1EIbUj28VQuqfo","level":3,"time":"2023-04-08T12:48:03+00:00","remoteAddr":"37.97.28.204","user":"admin","app":"text","method":"POST","url":"/apps/text/session/sync","message":"Access denied to text/markdown in Folder Photos/Readme.md","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0 Config/95.2.8191.92","version":"25.0.5.1","exception":{"Exception":"OCP\\Files\\ForbiddenException","Message":"Access denied to text/markdown in Folder Photos/Readme.md","Code":0,"Trace":[{"file":"/var/www/html/apps/files_staticmimecontrol/lib/StorageWrapper.php","line":179,"function":"checkFileAccess","class":"OCA\\FilesStaticmimecontrol\\StorageWrapper","type":"->"},{"file":"/var/www/html/lib/private/Files/View.php","line":1179,"function":"file_put_contents","class":"OCA\\FilesStaticmimecontrol\\StorageWrapper","type":"->"},{"file":"/var/www/html/lib/private/Files/View.php","line":705,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/html/lib/private/Files/Node/File.php","line":71,"function":"file_put_contents","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/html/apps/text/lib/Service/DocumentService.php","line":319,"function":"putContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/html/lib/private/Files/Lock/LockManager.php","line":29,"function":"OCA\\Text\\Service\\{closure}","class":"OCA\\Text\\Service\\DocumentService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/text/lib/Service/DocumentService.php","line":320,"function":"runInScope","class":"OC\\Files\\Lock\\LockManager","type":"->"},{"file":"/var/www/html/apps/text/lib/Service/ApiService.php","line":234,"function":"autosave","class":"OCA\\Text\\Service\\DocumentService","type":"->"},{"file":"/var/www/html/apps/text/lib/Controller/SessionController.php","line":92,"function":"sync","class":"OCA\\Text\\Service\\ApiService","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"sync","class":"OCA\\Text\\Controller\\SessionController","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/lib/base.php","line":1047,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/html/apps/files_staticmimecontrol/lib/StorageWrapper.php","Line":130,"message":"Access denied to text/markdown in Folder Photos/Readme.md","exception":{},"CustomMessage":"Access denied to text/markdown in Folder Photos/Readme.md"}}
{"reqId":"vxzmM0RoC45aL9nPQO2y","level":3,"time":"2023-04-08T12:48:13+00:00","remoteAddr":"37.97.28.204","user":"admin","app":"text","method":"POST","url":"/apps/text/session/sync","message":"Access denied to text/markdown in Folder Photos/Readme.md","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0 Config/95.2.8191.92","version":"25.0.5.1","exception":{"Exception":"OCP\\Files\\ForbiddenException","Message":"Access denied to text/markdown in Folder Photos/Readme.md","Code":0,"Trace":[{"file":"/var/www/html/apps/files_staticmimecontrol/lib/StorageWrapper.php","line":179,"function":"checkFileAccess","class":"OCA\\FilesStaticmimecontrol\\StorageWrapper","type":"->"},{"file":"/var/www/html/lib/private/Files/View.php","line":1179,"function":"file_put_contents","class":"OCA\\FilesStaticmimecontrol\\StorageWrapper","type":"->"},{"file":"/var/www/html/lib/private/Files/View.php","line":705,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/html/lib/private/Files/Node/File.php","line":71,"function":"file_put_contents","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/html/apps/text/lib/Service/DocumentService.php","line":319,"function":"putContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/html/lib/private/Files/Lock/LockManager.php","line":29,"function":"OCA\\Text\\Service\\{closure}","class":"OCA\\Text\\Service\\DocumentService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/text/lib/Service/DocumentService.php","line":320,"function":"runInScope","class":"OC\\Files\\Lock\\LockManager","type":"->"},{"file":"/var/www/html/apps/text/lib/Service/ApiService.php","line":234,"function":"autosave","class":"OCA\\Text\\Service\\DocumentService","type":"->"},{"file":"/var/www/html/apps/text/lib/Controller/SessionController.php","line":92,"function":"sync","class":"OCA\\Text\\Service\\ApiService","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"sync","class":"OCA\\Text\\Controller\\SessionController","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/lib/base.php","line":1047,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/html/apps/files_staticmimecontrol/lib/StorageWrapper.php","Line":130,"message":"Access denied to text/markdown in Folder Photos/Readme.md","exception":{},"CustomMessage":"Access denied to text/markdown in Folder Photos/Readme.md"}}
{"reqId":"6ysi67jJKfFhOlB1MkPN","level":2,"time":"2023-04-08T12:54:36+00:00","remoteAddr":"37.97.28.204","user":"admin","app":"support","method":"POST","url":"/apps/support/generateSystemReport","message":"Could not create file \"2023-04-08.md\" to store generated report.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0 Config/95.2.8191.92","version":"25.0.5.1","exception":{"Exception":"OCP\\Files\\ForbiddenException","Message":"Access denied to text/markdown in Folder System information/2023-04-08.md","Code":0,"Trace":[{"file":"/var/www/html/apps/files_staticmimecontrol/lib/StorageWrapper.php","line":179,"function":"checkFileAccess","class":"OCA\\FilesStaticmimecontrol\\StorageWrapper","type":"->"},{"file":"/var/www/html/lib/private/Files/View.php","line":1179,"function":"file_put_contents","class":"OCA\\FilesStaticmimecontrol\\StorageWrapper","type":"->"},{"file":"/var/www/html/lib/private/Files/View.php","line":705,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/html/lib/private/Files/Node/File.php","line":71,"function":"file_put_contents","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/html/apps/support/lib/Controller/ApiController.php","line":124,"function":"putContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"generateSystemReport","class":"OCA\\Support\\Controller\\ApiController","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/lib/base.php","line":1047,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/html/apps/files_staticmimecontrol/lib/StorageWrapper.php","Line":130,"message":"Could not create file \"2023-04-08.md\" to store generated report.","exception":{},"CustomMessage":"Could not create file \"2023-04-08.md\" to store generated report."}}
{"reqId":"Qq8qIjTDvgsvGqhJx19E","level":2,"time":"2023-04-08T12:54:45+00:00","remoteAddr":"37.97.28.204","user":"admin","app":"support","method":"POST","url":"/apps/support/generateSystemReport","message":"Could not create file \"2023-04-08 (2).md\" to store generated report.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0 Config/95.2.8191.92","version":"25.0.5.1","exception":{"Exception":"OCP\\Files\\ForbiddenException","Message":"Access denied to text/markdown in Folder System information/2023-04-08 (2).md","Code":0,"Trace":[{"file":"/var/www/html/apps/files_staticmimecontrol/lib/StorageWrapper.php","line":179,"function":"checkFileAccess","class":"OCA\\FilesStaticmimecontrol\\StorageWrapper","type":"->"},{"file":"/var/www/html/lib/private/Files/View.php","line":1179,"function":"file_put_contents","class":"OCA\\FilesStaticmimecontrol\\StorageWrapper","type":"->"},{"file":"/var/www/html/lib/private/Files/View.php","line":705,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/html/lib/private/Files/Node/File.php","line":71,"function":"file_put_contents","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/html/apps/support/lib/Controller/ApiController.php","line":124,"function":"putContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"generateSystemReport","class":"OCA\\Support\\Controller\\ApiController","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/lib/base.php","line":1047,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/html/apps/files_staticmimecontrol/lib/StorageWrapper.php","Line":130,"message":"Could not create file \"2023-04-08 (2).md\" to store generated report.","exception":{},"CustomMessage":"Could not create file \"2023-04-08 (2).md\" to store generated report."}}
{"reqId":"EUr2s2rYyT2VfsrSu4DR","level":3,"time":"2023-04-08T12:59:03+00:00","remoteAddr":"37.97.28.204","user":"admin","app":"text","method":"POST","url":"/apps/text/session/sync","message":"Access denied to text/markdown in Folder test/Readme.md","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0 Config/95.2.8191.92","version":"25.0.5.1","exception":{"Exception":"OCP\\Files\\ForbiddenException","Message":"Access denied to text/markdown in Folder test/Readme.md","Code":0,"Trace":[{"file":"/var/www/html/apps/files_staticmimecontrol/lib/StorageWrapper.php","line":179,"function":"checkFileAccess","class":"OCA\\FilesStaticmimecontrol\\StorageWrapper","type":"->"},{"file":"/var/www/html/lib/private/Files/View.php","line":1179,"function":"file_put_contents","class":"OCA\\FilesStaticmimecontrol\\StorageWrapper","type":"->"},{"file":"/var/www/html/lib/private/Files/View.php","line":705,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/html/lib/private/Files/Node/File.php","line":71,"function":"file_put_contents","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/html/apps/text/lib/Service/DocumentService.php","line":319,"function":"putContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/html/lib/private/Files/Lock/LockManager.php","line":29,"function":"OCA\\Text\\Service\\{closure}","class":"OCA\\Text\\Service\\DocumentService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/text/lib/Service/DocumentService.php","line":320,"function":"runInScope","class":"OC\\Files\\Lock\\LockManager","type":"->"},{"file":"/var/www/html/apps/text/lib/Service/ApiService.php","line":234,"function":"autosave","class":"OCA\\Text\\Service\\DocumentService","type":"->"},{"file":"/var/www/html/apps/text/lib/Controller/SessionController.php","line":92,"function":"sync","class":"OCA\\Text\\Service\\ApiService","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"sync","class":"OCA\\Text\\Controller\\SessionController","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/lib/base.php","line":1047,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/html/apps/files_staticmimecontrol/lib/StorageWrapper.php","Line":130,"message":"Access denied to text/markdown in Folder test/Readme.md","exception":{},"CustomMessage":"Access denied to text/markdown in Folder test/Readme.md"}}

Nobody having an idea what might wrong?

I was having the same situation as well as just horrible .md file initial edit performance. I disabled the Antivirus for Files app and that solved the “Connection failed, reconnecting” errors as well as dramatically improved .md edit performance.

Not and ideal fix, so I’m going to look into what issues the Antivirus for Files app and/or clamav are having.

[Update] Switched from ClamAV executable to properly configuring the daemon in the administration settings for Antivirus for Files app. This fixed the “Connection failed, reconnecting” issue as well as fixed the long timeouts when dealing with .md files.