File locked problems

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 26
Apache or nginx version (eg, Apache 2.4.25): Apache
PHP version (eg, 7.4): 8

The issue you are facing:
I am getting lots of PHP file or folder errors when trying to delete files or folders. (please see log files)
This happens when apps like Nextcloud Client (Windows) or Joplin try to delete or move files/folders.
The problem does not happen when I create/delete folders and files using the web browser.
I think it has something with Webdav to do or with permissions . Can anyone help ?

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

Steps to replicate it:

Webdav apps like Joplin show constant file lock errors

The output of your Nextcloud log in Admin > Logging:

{"reqId":"PqVc0ESfJk3Ojgf6CcMz","level":3,"time":"2023-05-17T19:49:12+00:00","remoteAddr":"140.228.64.37","user":"--","app":"index","method":"GET","url":"/settings/admin/logging","message":"Connection timed out","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36","version":"25.0.4.1","exception":{"Exception":"RedisException","Message":"Connection timed out","Code":0,"Trace":[{"file":"/var/www/html/lib/private/RedisFactory.php","line":137,"function":"pconnect","class":"Redis","type":"->","args":["192.168.1.180","6379","0",null,0,0]},{"file":"/var/www/html/lib/private/RedisFactory.php","line":178,"function":"create","class":"OC\\RedisFactory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/Memcache/Redis.php","line":50,"function":"getInstance","class":"OC\\RedisFactory","type":"->","args":[]},{"file":"/var/www/html/lib/private/Memcache/Redis.php","line":56,"function":"getCache","class":"OC\\Memcache\\Redis","type":"->","args":[]},{"file":"/var/www/html/lib/private/URLGenerator.php","line":194,"function":"get","class":"OC\\Memcache\\Redis","type":"->","args":["core-logo/logo.svg"]},{"file":"/var/www/html/apps/theming/lib/ThemingDefaults.php","line":286,"function":"imagePath","class":"OC\\URLGenerator","type":"->","args":["core","logo/logo.svg"]},{"file":"/var/www/html/apps/theming/lib/Capabilities.php","line":83,"function":"getLogo","class":"OCA\\Theming\\ThemingDefaults","type":"->","args":[]},{"file":"/var/www/html/lib/private/CapabilitiesManager.php","line":74,"function":"getCapabilities","class":"OCA\\Theming\\Capabilities","type":"->","args":[]},{"file":"/var/www/html/lib/private/Template/JSConfigHelper.php","line":166,"function":"getCapabilities","class":"OC\\CapabilitiesManager","type":"->","args":[false,true]},{"file":"/var/www/html/lib/private/TemplateLayout.php","line":234,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->","args":[]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":182,"function":"__construct","class":"OC\\TemplateLayout","type":"->","args":["guest",""]},{"file":"/var/www/html/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":409,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":1006,"function":"printUpgradePage","class":"OC","type":"::","args":[["OC\\SystemConfig"]]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/RedisFactory.php","Line":137,"CustomMessage":"--"}}
{"reqId":"PqVc0ESfJk3Ojgf6CcMz","level":3,"time":"2023-05-17T19:49:12+00:00","remoteAddr":"140.228.64.37","user":"--","app":"core","method":"GET","url":"/settings/admin/logging","message":"Connection timed out","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36","version":"25.0.4.1","exception":{"Exception":"RedisException","Message":"Connection timed out","Code":0,"Trace":[{"file":"/var/www/html/lib/private/RedisFactory.php","line":137,"function":"pconnect","class":"Redis","type":"->","args":["192.168.1.180","6379","0",null,0,0]},{"file":"/var/www/html/lib/private/RedisFactory.php","line":178,"function":"create","class":"OC\\RedisFactory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/Memcache/Redis.php","line":50,"function":"getInstance","class":"OC\\RedisFactory","type":"->","args":[]},{"file":"/var/www/html/lib/private/Memcache/Redis.php","line":56,"function":"getCache","class":"OC\\Memcache\\Redis","type":"->","args":[]},{"file":"/var/www/html/lib/private/URLGenerator.php","line":194,"function":"get","class":"OC\\Memcache\\Redis","type":"->","args":["core-logo/logo.svg"]},{"file":"/var/www/html/apps/theming/lib/ThemingDefaults.php","line":286,"function":"imagePath","class":"OC\\URLGenerator","type":"->","args":["core","logo/logo.svg"]},{"file":"/var/www/html/apps/theming/lib/Capabilities.php","line":83,"function":"getLogo","class":"OCA\\Theming\\ThemingDefaults","type":"->","args":[]},{"file":"/var/www/html/lib/private/CapabilitiesManager.php","line":74,"function":"getCapabilities","class":"OCA\\Theming\\Capabilities","type":"->","args":[]},{"file":"/var/www/html/lib/private/Template/JSConfigHelper.php","line":166,"function":"getCapabilities","class":"OC\\CapabilitiesManager","type":"->","args":[false,true]},{"file":"/var/www/html/lib/private/TemplateLayout.php","line":234,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->","args":[]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":182,"function":"__construct","class":"OC\\TemplateLayout","type":"->","args":["guest",""]},{"file":"/var/www/html/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":409,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":1006,"function":"printUpgradePage","class":"OC","type":"::","args":[["OC\\SystemConfig"]]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/RedisFactory.php","Line":137,"CustomMessage":"--"}}
{"reqId":"PqVc0ESfJk3Ojgf6CcMz","level":3,"time":"2023-05-17T19:49:12+00:00","remoteAddr":"140.228.64.37","user":"--","app":"core","method":"GET","url":"/settings/admin/logging","message":"Redis server went away","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36","version":"25.0.4.1","exception":{"Exception":"RedisException","Message":"Redis server went away","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Memcache/Redis.php","line":56,"function":"get","class":"Redis","type":"->","args":["9190f0f3a08d052455e451347e3dffc0/imagePath-3b2108030d5cff8718ca0325a752a666-core-favicon.ico"]},{"file":"/var/www/html/lib/private/URLGenerator.php","line":194,"function":"get","class":"OC\\Memcache\\Redis","type":"->","args":["core-favicon.ico"]},{"file":"/var/www/html/lib/private/legacy/template/functions.php","line":242,"function":"imagePath","class":"OC\\URLGenerator","type":"->","args":["core","favicon.ico"]},{"file":"/var/www/html/core/templates/layout.guest.php","line":20,"function":"image_path","args":["core","favicon.ico"]},{"file":"/var/www/html/lib/private/Template/Base.php","line":180,"args":["/var/www/html/core/templates/layout.guest.php"],"function":"include"},{"file":"/var/www/html/lib/private/Template/Base.php","line":150,"function":"load","class":"OC\\Template\\Base","type":"->","args":["/var/www/html/core/templates/layout.guest.php",null]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":179,"function":"fetchPage","class":"OC\\Template\\Base","type":"->","args":[null]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":210,"function":"fetchPage","class":"OC_Template","type":"->","args":[null]},{"file":"/var/www/html/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":331,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},{"file":"/var/www/html/index.php","line":74,"function":"printExceptionErrorPage","class":"OC_Template","type":"::","args":[["RedisException"],500]}],"File":"/var/www/html/lib/private/Memcache/Redis.php","Line":56,"CustomMessage":"--"}}
{"reqId":"KNZ8WgDqlWJwjfj4lNTO","level":3,"time":"2023-05-17T19:49:19+00:00","remoteAddr":"140.228.64.37","user":"--","app":"index","method":"GET","url":"/","message":"Connection timed out","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36","version":"25.0.4.1","exception":{"Exception":"RedisException","Message":"Connection timed out","Code":0,"Trace":[{"file":"/var/www/html/lib/private/RedisFactory.php","line":137,"function":"pconnect","class":"Redis","type":"->","args":["192.168.1.180","6379","0",null,0,0]},{"file":"/var/www/html/lib/private/RedisFactory.php","line":178,"function":"create","class":"OC\\RedisFactory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/Memcache/Redis.php","line":50,"function":"getInstance","class":"OC\\RedisFactory","type":"->","args":[]},{"file":"/var/www/html/lib/private/Memcache/Redis.php","line":56,"function":"getCache","class":"OC\\Memcache\\Redis","type":"->","args":[]},{"file":"/var/www/html/lib/private/URLGenerator.php","line":194,"function":"get","class":"OC\\Memcache\\Redis","type":"->","args":["core-logo/logo.svg"]},{"file":"/var/www/html/apps/theming/lib/ThemingDefaults.php","line":286,"function":"imagePath","class":"OC\\URLGenerator","type":"->","args":["core","logo/logo.svg"]},{"file":"/var/www/html/apps/theming/lib/Capabilities.php","line":83,"function":"getLogo","class":"OCA\\Theming\\ThemingDefaults","type":"->","args":[]},{"file":"/var/www/html/lib/private/CapabilitiesManager.php","line":74,"function":"getCapabilities","class":"OCA\\Theming\\Capabilities","type":"->","args":[]},{"file":"/var/www/html/lib/private/Template/JSConfigHelper.php","line":166,"function":"getCapabilities","class":"OC\\CapabilitiesManager","type":"->","args":[false,true]},{"file":"/var/www/html/lib/private/TemplateLayout.php","line":234,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->","args":[]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":182,"function":"__construct","class":"OC\\TemplateLayout","type":"->","args":["guest",""]},{"file":"/var/www/html/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":409,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":1006,"function":"printUpgradePage","class":"OC","type":"::","args":[["OC\\SystemConfig"]]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/RedisFactory.php","Line":137,"CustomMessage":"--"}}
{"reqId":"KNZ8WgDqlWJwjfj4lNTO","level":3,"time":"2023-05-17T19:49:19+00:00","remoteAddr":"140.228.64.37","user":"--","app":"core","method":"GET","url":"/","message":"Connection timed out","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36","version":"25.0.4.1","exception":{"Exception":"RedisException","Message":"Connection timed out","Code":0,"Trace":[{"file":"/var/www/html/lib/private/RedisFactory.php","line":137,"function":"pconnect","class":"Redis","type":"->","args":["192.168.1.180","6379","0",null,0,0]},{"file":"/var/www/html/lib/private/RedisFactory.php","line":178,"function":"create","class":"OC\\RedisFactory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/Memcache/Redis.php","line":50,"function":"getInstance","class":"OC\\RedisFactory","type":"->","args":[]},{"file":"/var/www/html/lib/private/Memcache/Redis.php","line":56,"function":"getCache","class":"OC\\Memcache\\Redis","type":"->","args":[]},{"file":"/var/www/html/lib/private/URLGenerator.php","line":194,"function":"get","class":"OC\\Memcache\\Redis","type":"->","args":["core-logo/logo.svg"]},{"file":"/var/www/html/apps/theming/lib/ThemingDefaults.php","line":286,"function":"imagePath","class":"OC\\URLGenerator","type":"->","args":["core","logo/logo.svg"]},{"file":"/var/www/html/apps/theming/lib/Capabilities.php","line":83,"function":"getLogo","class":"OCA\\Theming\\ThemingDefaults","type":"->","args":[]},{"file":"/var/www/html/lib/private/CapabilitiesManager.php","line":74,"function":"getCapabilities","class":"OCA\\Theming\\Capabilities","type":"->","args":[]},{"file":"/var/www/html/lib/private/Template/JSConfigHelper.php","line":166,"function":"getCapabilities","class":"OC\\CapabilitiesManager","type":"->","args":[false,true]},{"file":"/var/www/html/lib/private/TemplateLayout.php","line":234,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->","args":[]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":182,"function":"__construct","class":"OC\\TemplateLayout","type":"->","args":["guest",""]},{"file":"/var/www/html/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":409,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":1006,"function":"printUpgradePage","class":"OC","type":"::","args":[["OC\\SystemConfig"]]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/RedisFactory.php","Line":137,"CustomMessage":"--"}}
{"reqId":"KNZ8WgDqlWJwjfj4lNTO","level":3,"time":"2023-05-17T19:49:19+00:00","remoteAddr":"140.228.64.37","user":"--","app":"core","method":"GET","url":"/","message":"Redis server went away","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36","version":"25.0.4.1","exception":{"Exception":"RedisException","Message":"Redis server went away","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Memcache/Redis.php","line":56,"function":"get","class":"Redis","type":"->","args":["9190f0f3a08d052455e451347e3dffc0/imagePath-3b2108030d5cff8718ca0325a752a666-core-favicon.ico"]},{"file":"/var/www/html/lib/private/URLGenerator.php","line":194,"function":"get","class":"OC\\Memcache\\Redis","type":"->","args":["core-favicon.ico"]},{"file":"/var/www/html/lib/private/legacy/template/functions.php","line":242,"function":"imagePath","class":"OC\\URLGenerator","type":"->","args":["core","favicon.ico"]},{"file":"/var/www/html/core/templates/layout.guest.php","line":20,"function":"image_path","args":["core","favicon.ico"]},{"file":"/var/www/html/lib/private/Template/Base.php","line":180,"args":["/var/www/html/core/templates/layout.guest.php"],"function":"include"},{"file":"/var/www/html/lib/private/Template/Base.php","line":150,"function":"load","class":"OC\\Template\\Base","type":"->","args":["/var/www/html/core/templates/layout.guest.php",null]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":179,"function":"fetchPage","class":"OC\\Template\\Base","type":"->","args":[null]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":210,"function":"fetchPage","class":"OC_Template","type":"->","args":[null]},{"file":"/var/www/html/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":331,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},{"file":"/var/www/html/index.php","line":74,"function":"printExceptionErrorPage","class":"OC_Template","type":"::","args":[["RedisException"],500]}],"File":"/var/www/html/lib/private/Memcache/Redis.php","Line":56,"CustomMessage":"--"}}
{"reqId":"P4ESIUYxYQmpgcv9O48G","level":3,"time":"2023-05-17T19:49:33+00:00","remoteAddr":"140.228.64.37","user":"--","app":"index","method":"GET","url":"/","message":"Connection timed out","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36","version":"25.0.4.1","exception":{"Exception":"RedisException","Message":"Connection timed out","Code":0,"Trace":[{"file":"/var/www/html/lib/private/RedisFactory.php","line":137,"function":"pconnect","class":"Redis","type":"->","args":["192.168.1.180","6379","0",null,0,0]},{"file":"/var/www/html/lib/private/RedisFactory.php","line":178,"function":"create","class":"OC\\RedisFactory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/Memcache/Redis.php","line":50,"function":"getInstance","class":"OC\\RedisFactory","type":"->","args":[]},{"file":"/var/www/html/lib/private/Memcache/Redis.php","line":56,"function":"getCache","class":"OC\\Memcache\\Redis","type":"->","args":[]},{"file":"/var/www/html/lib/private/URLGenerator.php","line":194,"function":"get","class":"OC\\Memcache\\Redis","type":"->","args":["core-logo/logo.svg"]},{"file":"/var/www/html/apps/theming/lib/ThemingDefaults.php","line":286,"function":"imagePath","class":"OC\\URLGenerator","type":"->","args":["core","logo/logo.svg"]},{"file":"/var/www/html/apps/theming/lib/Capabilities.php","line":83,"function":"getLogo","class":"OCA\\Theming\\ThemingDefaults","type":"->","args":[]},{"file":"/var/www/html/lib/private/CapabilitiesManager.php","line":74,"function":"getCapabilities","class":"OCA\\Theming\\Capabilities","type":"->","args":[]},{"file":"/var/www/html/lib/private/Template/JSConfigHelper.php","line":166,"function":"getCapabilities","class":"OC\\CapabilitiesManager","type":"->","args":[false,true]},{"file":"/var/www/html/lib/private/TemplateLayout.php","line":234,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->","args":[]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":182,"function":"__construct","class":"OC\\TemplateLayout","type":"->","args":["guest",""]},{"file":"/var/www/html/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":409,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":1006,"function":"printUpgradePage","class":"OC","type":"::","args":[["OC\\SystemConfig"]]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/RedisFactory.php","Line":137,"CustomMessage":"--"}}
{"reqId":"P4ESIUYxYQmpgcv9O48G","level":3,"time":"2023-05-17T19:49:33+00:00","remoteAddr":"140.228.64.37","user":"--","app":"core","method":"GET","url":"/","message":"Connection timed out","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36","version":"25.0.4.1","exception":{"Exception":"RedisException","Message":"Connection timed out","Code":0,"Trace":[{"file":"/var/www/html/lib/private/RedisFactory.php","line":137,"function":"pconnect","class":"Redis","type":"->","args":["192.168.1.180","6379","0",null,0,0]},{"file":"/var/www/html/lib/private/RedisFactory.php","line":178,"function":"create","class":"OC\\RedisFactory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/Memcache/Redis.php","line":50,"function":"getInstance","class":"OC\\RedisFactory","type":"->","args":[]},{"file":"/var/www/html/lib/private/Memcache/Redis.php","line":56,"function":"getCache","class":"OC\\Memcache\\Redis","type":"->","args":[]},{"file":"/var/www/html/lib/private/URLGenerator.php","line":194,"function":"get","class":"OC\\Memcache\\Redis","type":"->","args":["core-logo/logo.svg"]},{"file":"/var/www/html/apps/theming/lib/ThemingDefaults.php","line":286,"function":"imagePath","class":"OC\\URLGenerator","type":"->","args":["core","logo/logo.svg"]},{"file":"/var/www/html/apps/theming/lib/Capabilities.php","line":83,"function":"getLogo","class":"OCA\\Theming\\ThemingDefaults","type":"->","args":[]},{"file":"/var/www/html/lib/private/CapabilitiesManager.php","line":74,"function":"getCapabilities","class":"OCA\\Theming\\Capabilities","type":"->","args":[]},{"file":"/var/www/html/lib/private/Template/JSConfigHelper.php","line":166,"function":"getCapabilities","class":"OC\\CapabilitiesManager","type":"->","args":[false,true]},{"file":"/var/www/html/lib/private/TemplateLayout.php","line":234,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->","args":[]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":182,"function":"__construct","class":"OC\\TemplateLayout","type":"->","args":["guest",""]},{"file":"/var/www/html/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":409,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":1006,"function":"printUpgradePage","class":"OC","type":"::","args":[["OC\\SystemConfig"]]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/RedisFactory.php","Line":137,"CustomMessage":"--"}}
{"reqId":"P4ESIUYxYQmpgcv9O48G","level":3,"time":"2023-05-17T19:49:33+00:00","remoteAddr":"140.228.64.37","user":"--","app":"core","method":"GET","url":"/","message":"Redis server went away","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36","version":"25.0.4.1","exception":{"Exception":"RedisException","Message":"Redis server went away","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Memcache/Redis.php","line":56,"function":"get","class":"Redis","type":"->","args":["9190f0f3a08d052455e451347e3dffc0/imagePath-3b2108030d5cff8718ca0325a752a666-core-favicon.ico"]},{"file":"/var/www/html/lib/private/URLGenerator.php","line":194,"function":"get","class":"OC\\Memcache\\Redis","type":"->","args":["core-favicon.ico"]},{"file":"/var/www/html/lib/private/legacy/template/functions.php","line":242,"function":"imagePath","class":"OC\\URLGenerator","type":"->","args":["core","favicon.ico"]},{"file":"/var/www/html/core/templates/layout.guest.php","line":20,"function":"image_path","args":["core","favicon.ico"]},{"file":"/var/www/html/lib/private/Template/Base.php","line":180,"args":["/var/www/html/core/templates/layout.guest.php"],"function":"include"},{"file":"/var/www/html/lib/private/Template/Base.php","line":150,"function":"load","class":"OC\\Template\\Base","type":"->","args":["/var/www/html/core/templates/layout.guest.php",null]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":179,"function":"fetchPage","class":"OC\\Template\\Base","type":"->","args":[null]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":210,"function":"fetchPage","class":"OC_Template","type":"->","args":[null]},{"file":"/var/www/html/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":331,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},{"file":"/var/www/html/index.php","line":74,"function":"printExceptionErrorPage","class":"OC_Template","type":"::","args":[["RedisException"],500]}],"File":"/var/www/html/lib/private/Memcache/Redis.php","Line":56,"CustomMessage":"--"}}
{"reqId":"Xlr0aVfKLsYC8MJAo813","level":3,"time":"2023-05-17T19:50:14+00:00","remoteAddr":"90.152.59.194","user":"nmax","app":"PHP","method":"DELETE","url":"/remote.php/webdav/LIVE_Loc/Joplin2023/locks/1_1_b05ee8024e334921b93d9ee04665ac94.json","message":"rename(//var/data2/live/Joplin2023/locks/1_1_b05ee8024e334921b93d9ee04665ac94.json,//var/www/html/data/nmax/files_trashbin/files/1_1_b05ee8024e334921b93d9ee04665ac94.json.d1684353014): Operation not permitted at /var/www/html/lib/private/Files/Storage/Local.php#377","userAgent":"Joplin/1.0","version":"26.0.0.11","data":{"app":"PHP"}}
{"reqId":"2i2JJMdpahXdJnoXbIAW","level":3,"time":"2023-05-17T19:54:52+00:00","remoteAddr":"140.228.64.37","user":"nmax","app":"PHP","method":"DELETE","url":"/remote.php/webdav/LIVE_Loc/Joplin2023/temp/timeCheck45775.txt","message":"rename(//var/data2/live/Joplin2023/temp/timeCheck45775.txt,//var/www/html/data/nmax/files_trashbin/files/timeCheck45775.txt.d1684353291): Operation not permitted at /var/www/html/lib/private/Files/Storage/Local.php#377","userAgent":"Joplin/1.0","version":"26.0.0.11","data":{"app":"PHP"}}
{"reqId":"5veouq29kSnrV843XxOy","level":3,"time":"2023-05-17T19:55:09+00:00","remoteAddr":"140.228.64.37","user":"nmax","app":"PHP","method":"DELETE","url":"/remote.php/webdav/LIVE_Loc/Joplin2023/locks/1_1_69d4b9b85a3d4302a395933fc9093ee0.json","message":"rename(//var/data2/live/Joplin2023/locks/1_1_69d4b9b85a3d4302a395933fc9093ee0.json,//var/www/html/data/nmax/files_trashbin/files/1_1_69d4b9b85a3d4302a395933fc9093ee0.json.d1684353308): Operation not permitted at /var/www/html/lib/private/Files/Storage/Local.php#377","userAgent":"Joplin/1.0","version":"26.0.0.11","data":{"app":"PHP"}}
{"reqId":"lrRRkdAGTvtkQtTXOuSo","level":3,"time":"2023-05-17T19:55:48+00:00","remoteAddr":"90.152.59.194","user":"nmax","app":"PHP","method":"DELETE","url":"/remote.php/webdav/LIVE_Loc/Joplin2023/temp/timeCheck383088.txt","message":"rename(//var/data2/live/Joplin2023/temp/timeCheck383088.txt,//var/www/html/data/nmax/files_trashbin/files/timeCheck383088.txt.d1684353347): Operation not permitted at /var/www/html/lib/private/Files/Storage/Local.php#377","userAgent":"Joplin/1.0","version":"26.0.0.11","data":{"app":"PHP"}}
{"reqId":"7ncnOPknM9lvCNMCXPpA","level":3,"time":"2023-05-17T19:56:05+00:00","remoteAddr":"90.152.59.194","user":"nmax","app":"PHP","method":"DELETE","url":"/remote.php/webdav/LIVE_Loc/Joplin2023/locks/1_1_b05ee8024e334921b93d9ee04665ac94.json","message":"rename(//var/data2/live/Joplin2023/locks/1_1_b05ee8024e334921b93d9ee04665ac94.json,//var/www/html/data/nmax/files_trashbin/files/1_1_b05ee8024e334921b93d9ee04665ac94.json.d1684353365): Operation not permitted at /var/www/html/lib/private/Files/Storage/Local.php#377","userAgent":"Joplin/1.0","version":"26.0.0.11","data":{"app":"PHP"}}
{"reqId":"OSGlCbraI3pGIwUR8ztO","level":3,"time":"2023-05-17T19:57:05+00:00","remoteAddr":"140.228.64.37","user":"nmax","app":"PHP","method":"DELETE","url":"/remote.php/webdav/LIVE_Loc/Joplin2023/temp/timeCheck84814.txt","message":"rename(//var/data2/live/Joplin2023/temp/timeCheck84814.txt,//var/www/html/data/nmax/files_trashbin/files/timeCheck84814.txt.d1684353424): Operation not permitted at /var/www/html/lib/private/Files/Storage/Local.php#377","userAgent":"Joplin/1.0","version":"26.0.0.11","data":{"app":"PHP"}}
{"reqId":"2tEC5MtmpghwUX9IRum0","level":3,"time":"2023-05-17T19:57:11+00:00","remoteAddr":"140.228.64.37","user":"nmax","app":"PHP","method":"DELETE","url":"/remote.php/webdav/LIVE_Loc/Joplin2023/locks/1_2_0fad79f9f39b4d768bd209a52ab7d6ca.json","message":"rename(//var/data2/live/Joplin2023/locks/1_2_0fad79f9f39b4d768bd209a52ab7d6ca.json,//var/www/html/data/nmax/files_trashbin/files/1_2_0fad79f9f39b4d768bd209a52ab7d6ca.json.d1684353430): Operation not permitted at /var/www/html/lib/private/Files/Storage/Local.php#377","userAgent":"Joplin/1.0","version":"26.0.0.11","data":{"app":"PHP"}}
{"reqId":"YAq0Nve0mEa0e0vKa075","level":3,"time":"2023-05-17T19:59:53+00:00","remoteAddr":"140.228.64.37","user":"nmax","app":"PHP","method":"GET","url":"/settings/admin/theming","message":"include(/var/www/html/custom_apps/unsplash/templates/partials/license.php): Failed to open stream: No such file or directory at /var/www/html/lib/private/Template/Base.php#180","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36","version":"26.0.0.11","data":{"app":"PHP"}}
{"reqId":"YAq0Nve0mEa0e0vKa075","level":3,"time":"2023-05-17T19:59:54+00:00","remoteAddr":"140.228.64.37","user":"nmax","app":"PHP","method":"GET","url":"/settings/admin/theming","message":"include(): Failed opening '/var/www/html/custom_apps/unsplash/templates/partials/license.php' for inclusion (include_path='/var/www/html/3rdparty/pear/archive_tar:/var/www/html/3rdparty/pear/console_getopt:/var/www/html/3rdparty/pear/pear-core-minimal/src:/var/www/html/3rdparty/pear/pear_exception:/var/www/html/apps:/var/www/html/custom_apps') at /var/www/html/lib/private/Template/Base.php#180","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36","version":"26.0.0.11","data":{"app":"PHP"}}
{"reqId":"3WH4yIGl2xNKeyMB1mj5","level":3,"time":"2023-05-17T20:01:43+00:00","remoteAddr":"90.152.59.194","user":"nmax","app":"PHP","method":"DELETE","url":"/remote.php/webdav/LIVE_Loc/Joplin2023/locks/1_1_b05ee8024e334921b93d9ee04665ac94.json","message":"rename(//var/data2/live/Joplin2023/locks/1_1_b05ee8024e334921b93d9ee04665ac94.json,//var/www/html/data/nmax/files_trashbin/files/1_1_b05ee8024e334921b93d9ee04665ac94.json.d1684353702): Operation not permitted at /var/www/html/lib/private/Files/Storage/Local.php#377","userAgent":"Joplin/1.0","version":"26.0.0.11","data":{"app":"PHP"}}
{"reqId":"nEtsA8eQCsQFoW6OQ58b","level":3,"time":"2023-05-17T20:05:21+00:00","remoteAddr":"140.228.64.37","user":"nmax","app":"PHP","method":"DELETE","url":"/remote.php/webdav/LIVE_Loc/Joplin2023/temp/timeCheck747714.txt","message":"rename(//var/data2/live/Joplin2023/temp/timeCheck747714.txt,//var/www/html/data/nmax/files_trashbin/files/timeCheck747714.txt.d1684353921): Operation not permitted at /var/www/html/lib/private/Files/Storage/Local.php#377","userAgent":"Joplin/1.0","version":"26.0.0.11","data":{"app":"PHP"}}
{"reqId":"BK3VImUyFuSFu7mIjzJV","level":3,"time":"2023-05-17T20:05:27+00:00","remoteAddr":"140.228.64.37","user":"nmax","app":"PHP","method":"DELETE","url":"/remote.php/webdav/LIVE_Loc/Joplin2023/locks/1_1_69d4b9b85a3d4302a395933fc9093ee0.json","message":"rename(//var/data2/live/Joplin2023/locks/1_1_69d4b9b85a3d4302a395933fc9093ee0.json,//var/www/html/data/nmax/files_trashbin/files/1_1_69d4b9b85a3d4302a395933fc9093ee0.json.d1684353927): Operation not permitted at /var/www/html/lib/private/Files/Storage/Local.php#377","userAgent":"Joplin/1.0","version":"26.0.0.11","data":{"app":"PHP"}}
{"reqId":"X0bEvVv2YdOzIFujgoWr","level":3,"time":"2023-05-17T20:06:53+00:00","remoteAddr":"90.152.59.194","user":"nmax","app":"PHP","method":"DELETE","url":"/remote.php/webdav/LIVE_Loc/Joplin2023/temp/timeCheck768834.txt","message":"rename(//var/data2/live/Joplin2023/temp/timeCheck768834.txt,//var/www/html/data/nmax/files_trashbin/files/timeCheck768834.txt.d1684354013): Operation not permitted at /var/www/html/lib/private/Files/Storage/Local.php#377","userAgent":"Joplin/1.0","version":"26.0.0.11","data":{"app":"PHP"}}
{"reqId":"5uABvkP4hWX7xaOQ40Ft","level":3,"time":"2023-05-17T20:06:59+00:00","remoteAddr":"90.152.59.194","user":"nmax","app":"PHP","method":"DELETE","url":"/remote.php/webdav/LIVE_Loc/Joplin2023/locks/1_1_b05ee8024e334921b93d9ee04665ac94.json","message":"rename(//var/data2/live/Joplin2023/locks/1_1_b05ee8024e334921b93d9ee04665ac94.json,//var/www/html/data/nmax/files_trashbin/files/1_1_b05ee8024e334921b93d9ee04665ac94.json.d1684354019): Operation not permitted at /var/www/html/lib/private/Files/Storage/Local.php#377","userAgent":"Joplin/1.0","version":"26.0.0.11","data":{"app":"PHP"}}

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

XXXX@c0394888e2de:/var/www/html# sudo -u www-data php occ config:list system

Warning: Failed to set memory limit to 0 bytes (Current memory usage is 2097152 bytes) in Unknown on line 0
The current PHP memory limit is below the recommended value of 512MB.
{
    "system": {
        "htaccess.RewriteBase": "\/",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.9.180:8585",
            "cloud3.uk-cra.org"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "26.0.0.11",
        "overwrite.cli.url": "http:\/\/192.168.9.180:8585",
        "overwriteprotocol": "https",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",

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

PASTE HERE

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.

PASTE HERE

What do your Redis server log file indicate? These are all Redis errors. Even the Joplin transactions look locking related. Like your Redis service is crashing for some reason.

P.S. Also, might want to see if any of the automated checks fail under Admin->Basic settings fail. I say that because your PHP CLI config is at least not correct so there may be other problems with your installation. What install method for Nextcloud did you use?

Hello jtr - thank you so much for your response.
My Redis server log as follows:

20/05/2023 10:41:28
809:C 20 May 2023 09:41:28.072 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
20/05/2023 10:41:28
1:M 20 May 2023 09:41:28.145 * Background saving terminated with success
20/05/2023 10:46:29
1:M 20 May 2023 09:46:29.008 * 100 changes in 300 seconds. Saving...
20/05/2023 10:46:29
1:M 20 May 2023 09:46:29.009 * Background saving started by pid 810
20/05/2023 10:46:29
810:C 20 May 2023 09:46:29.028 * DB saved on disk
20/05/2023 10:46:29
810:C 20 May 2023 09:46:29.029 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
20/05/2023 10:46:29
1:M 20 May 2023 09:46:29.110 * Background saving terminated with success
20/05/2023 10:51:30
1:M 20 May 2023 09:51:30.054 * 100 changes in 300 seconds. Saving...
20/05/2023 10:51:30
1:M 20 May 2023 09:51:30.055 * Background saving started by pid 811
20/05/2023 10:51:30
811:C 20 May 2023 09:51:30.071 * DB saved on disk
20/05/2023 10:51:30
811:C 20 May 2023 09:51:30.072 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
20/05/2023 10:51:30
1:M 20 May 2023 09:51:30.156 * Background saving terminated with success
20/05/2023 10:56:31
1:M 20 May 2023 09:56:31.031 * 100 changes in 300 seconds. Saving...
20/05/2023 10:56:31
1:M 20 May 2023 09:56:31.032 * Background saving started by pid 812
20/05/2023 10:56:31
812:C 20 May 2023 09:56:31.050 * DB saved on disk
20/05/2023 10:56:31
812:C 20 May 2023 09:56:31.051 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
20/05/2023 10:56:31
1:M 20 May 2023 09:56:31.134 * Background saving terminated with success
20/05/2023 11:01:32
1:M 20 May 2023 10:01:32.082 * 100 changes in 300 seconds. Saving...
20/05/2023 11:01:32
1:M 20 May 2023 10:01:32.083 * Background saving started by pid 813
20/05/2023 11:01:32
813:C 20 May 2023 10:01:32.098 * DB saved on disk
20/05/2023 11:01:32
813:C 20 May 2023 10:01:32.099 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
20/05/2023 11:01:32
1:M 20 May 2023 10:01:32.184 * Background saving terminated with success
20/05/2023 11:06:33
1:M 20 May 2023 10:06:33.031 * 100 changes in 300 seconds. Saving...
20/05/2023 11:06:33
1:M 20 May 2023 10:06:33.032 * Background saving started by pid 814
20/05/2023 11:06:33
814:C 20 May 2023 10:06:33.047 * DB saved on disk
20/05/2023 11:06:33
814:C 20 May 2023 10:06:33.047 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
20/05/2023 11:06:33
1:M 20 May 2023 10:06:33.132 * Background saving terminated with success
20/05/2023 11:11:34
1:M 20 May 2023 10:11:34.029 * 100 changes in 300 seconds. Saving...
20/05/2023 11:11:34
1:M 20 May 2023 10:11:34.030 * Background saving started by pid 815
20/05/2023 11:11:34
815:C 20 May 2023 10:11:34.044 * DB saved on disk
20/05/2023 11:11:34
815:C 20 May 2023 10:11:34.045 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
20/05/2023 11:11:34
1:M 20 May 2023 10:11:34.130 * Background saving terminated with success
20/05/2023 11:16:35
1:M 20 May 2023 10:16:35.069 * 100 changes in 300 seconds. Saving...
20/05/2023 11:16:35
1:M 20 May 2023 10:16:35.070 * Background saving started by pid 816
20/05/2023 11:16:35
816:C 20 May 2023 10:16:35.096 * DB saved on disk
20/05/2023 11:16:35
816:C 20 May 2023 10:16:35.098 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
20/05/2023 11:16:35
1:M 20 May 2023 10:16:35.172 * Background saving terminated with success
20/05/2023 11:21:36
1:M 20 May 2023 10:21:36.024 * 100 changes in 300 seconds. Saving...
20/05/2023 11:21:36
1:M 20 May 2023 10:21:36.026 * Background saving started by pid 817
20/05/2023 11:21:36
817:C 20 May 2023 10:21:36.053 * DB saved on disk
20/05/2023 11:21:36
817:C 20 May 2023 10:21:36.054 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
20/05/2023 11:21:36
1:M 20 May 2023 10:21:36.127 * Background saving terminated with success
20/05/2023 11:26:37
1:M 20 May 2023 10:26:37.067 * 100 changes in 300 seconds. Saving...
20/05/2023 11:26:37
1:M 20 May 2023 10:26:37.070 * Background saving started by pid 818
20/05/2023 11:26:37
818:C 20 May 2023 10:26:37.097 * DB saved on disk
20/05/2023 11:26:37
818:C 20 May 2023 10:26:37.098 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
20/05/2023 11:26:37
1:M 20 May 2023 10:26:37.171 * Background saving terminated with success
20/05/2023 11:31:38
1:M 20 May 2023 10:31:38.037 * 100 changes in 300 seconds. Saving...
20/05/2023 11:31:38
1:M 20 May 2023 10:31:38.038 * Background saving started by pid 819
20/05/2023 11:31:38
819:C 20 May 2023 10:31:38.065 * DB saved on disk
20/05/2023 11:31:38
819:C 20 May 2023 10:31:38.067 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
20/05/2023 11:31:38
1:M 20 May 2023 10:31:38.139 * Background saving terminated with success
20/05/2023 11:36:39
1:M 20 May 2023 10:36:39.029 * 100 changes in 300 seconds. Saving...
20/05/2023 11:36:39
1:M 20 May 2023 10:36:39.031 * Background saving started by pid 820
20/05/2023 11:36:39
820:C 20 May 2023 10:36:39.058 * DB saved on disk
20/05/2023 11:36:39
820:C 20 May 2023 10:36:39.060 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
20/05/2023 11:36:39
1:M 20 May 2023 10:36:39.132 * Background saving terminated with success
20/05/2023 11:41:40
1:M 20 May 2023 10:41:40.097 * 100 changes in 300 seconds. Saving...
20/05/2023 11:41:40
1:M 20 May 2023 10:41:40.098 * Background saving started by pid 821
20/05/2023 11:41:40
821:C 20 May 2023 10:41:40.114 * DB saved on disk
20/05/2023 11:41:40
821:C 20 May 2023 10:41:40.115 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
20/05/2023 11:41:40
1:M 20 May 2023 10:41:40.198 * Background saving terminated with success
20/05/2023 11:46:41
1:M 20 May 2023 10:46:41.025 * 100 changes in 300 seconds. Saving...
20/05/2023 11:46:41
1:M 20 May 2023 10:46:41.027 * Background saving started by pid 822
20/05/2023 11:46:41
822:C 20 May 2023 10:46:41.053 * DB saved on disk
20/05/2023 11:46:41
822:C 20 May 2023 10:46:41.054 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
20/05/2023 11:46:41
1:M 20 May 2023 10:46:41.128 * Background saving terminated with success
20/05/2023 11:51:42
1:M 20 May 2023 10:51:42.098 * 100 changes in 300 seconds. Saving...
20/05/2023 11:51:42
1:M 20 May 2023 10:51:42.100 * Background saving started by pid 823
20/05/2023 11:51:42
823:C 20 May 2023 10:51:42.127 * DB saved on disk
20/05/2023 11:51:42
823:C 20 May 2023 10:51:42.129 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
20/05/2023 11:51:42
1:M 20 May 2023 10:51:42.201 * Background saving terminated with success
20/05/2023 11:56:43
1:M 20 May 2023 10:56:43.044 * 100 changes in 300 seconds. Saving...
20/05/2023 11:56:43
1:M 20 May 2023 10:56:43.045 * Background saving started by pid 824
20/05/2023 11:56:43
824:C 20 May 2023 10:56:43.073 * DB saved on disk
20/05/2023 11:56:43
824:C 20 May 2023 10:56:43.074 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
20/05/2023 11:56:43
1:M 20 May 2023 10:56:43.147 * Background saving terminated with success
20/05/2023 12:01:44
1:M 20 May 2023 11:01:44.007 * 100 changes in 300 seconds. Saving...
20/05/2023 12:01:44
1:M 20 May 2023 11:01:44.009 * Background saving started by pid 825
20/05/2023 12:01:44
825:C 20 May 2023 11:01:44.038 * DB saved on disk
20/05/2023 12:01:44
825:C 20 May 2023 11:01:44.039 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
20/05/2023 12:01:44
1:M 20 May 2023 11:01:44.110 * Background saving terminated with success
20/05/2023 12:06:45
1:M 20 May 2023 11:06:45.027 * 100 changes in 300 seconds. Saving...
20/05/2023 12:06:45
1:M 20 May 2023 11:06:45.028 * Background saving started by pid 826
20/05/2023 12:06:45
826:C 20 May 2023 11:06:45.066 * DB saved on disk
20/05/2023 12:06:45
826:C 20 May 2023 11:06:45.068 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
20/05/2023 12:06:45
1:M 20 May 2023 11:06:45.130 * Background saving terminated with success
20/05/2023 12:11:46
1:M 20 May 2023 11:11:46.040 * 100 changes in 300 seconds. Saving...
20/05/2023 12:11:46
1:M 20 May 2023 11:11:46.041 * Background saving started by pid 827
20/05/2023 12:11:46
827:C 20 May 2023 11:11:46.058 * DB saved on disk
20/05/2023 12:11:46
827:C 20 May 2023 11:11:46.059 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
20/05/2023 12:11:46
1:M 20 May 2023 11:11:46.141 * Background saving terminated with success
20/05/2023 12:16:47
1:M 20 May 2023 11:16:47.058 * 100 changes in 300 seconds. Saving...
20/05/2023 12:16:47
1:M 20 May 2023 11:16:47.060 * Background saving started by pid 828
20/05/2023 12:16:47
828:C 20 May 2023 11:16:47.087 * DB saved on disk
20/05/2023 12:16:47
828:C 20 May 2023 11:16:47.088 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
20/05/2023 12:16:47
1:M 20 May 2023 11:16:47.161 * Background saving terminated with success
20/05/2023 12:21:48
1:M 20 May 2023 11:21:48.090 * 100 changes in 300 seconds. Saving...
20/05/2023 12:21:48
1:M 20 May 2023 11:21:48.092 * Background saving started by pid 829
20/05/2023 12:21:48
829:C 20 May 2023 11:21:48.120 * DB saved on disk
20/05/2023 12:21:48
829:C 20 May 2023 11:21:48.121 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
20/05/2023 12:21:48
1:M 20 May 2023 11:21:48.193 * Background saving terminated with success```

Re your second point: I checked Admin-Basic settings and all seems fine. Cron job runs.
My installation is a Docker container.
Any ideas ?

The community Docker container does not have an improperly configured CLI PHP (with memory parameters wrong line that) so something is very wrong here with your deployment.

Did you do any customizations or PHP config tweaks or unusual volume mounts for your containers?

Can you post your Docker Compose file for your stack (Redis, db, Nextcloud)?

Yes - I have mounted 2 data folders. My compose file below:

version: '2'

volumes:
  nextcloud:
  db:

services:
  db:
    image: mariadb:10.5
    restart: always
  #  command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed
    command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
    volumes:
      - /srv/dev-disk-by-uuid-bfba3a12-0cd7-4ded-add1-869b99b87645/Dockerapps/NC2504/NC_db:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=XX
      - MYSQL_PASSWORD=XX
      - MYSQL_DATABASE=XX
      - MYSQL_USER=XXX

  app:
    # image: nextcloud:stable-apache
    # smbclient added
    image: ajimage1:latest
 #   privileged: true
 #   deploy:
 #       resources:
 #           limits:
 #             cpus: '2.0'
 #             memory: 1024M
       
  #mem_reservation: 128M
  #cpus: 0.5
    restart: always
    ports:
      - 8585:80
      - 449:443
    links:
      - db
    volumes:
      - /srv/dev-disk-by-uuid-bfba3a12-0cd7-4ded-add1-869b99b87645/Dockerapps/NC2504/NC_app:/var/www/html
      - /srv/mergerfs/JPool/LIVE/:/var/data2/live
      - /srv/mergerfs/JPool/MEDIA/:/var/data2/media
    
    environment:
      - MYSQL_PASSWORD=xxx
      - MYSQL_DATABASE=xxx
      - MYSQL_USER=xxx
      - MYSQL_HOST=xx
      - PHP_MEMORY_LIMIT=1024M
      - PHP_UPLOAD_LIMIT=9G
  cron:
    image: rcdailey/nextcloud-cronjob
    restart: always
    network_mode: none
    depends_on:
    - app
    volumes:
    - /var/run/docker.sock:/var/run/docker.sock:ro
    - /etc/localtime:/etc/localtime:ro
    environment:
    - NEXTCLOUD_CONTAINER_NAME=nc2505-app-1
    - NEXTCLOUD_PROJECT_NAME=
    - NEXTCLOUD_CRON_MINUTE_INTERVAL=5

hello? anybody???

You have done more than that - you’re not running the community Docker image. I have no idea idea what image you’re running, but it has issues.

There also appears to be no REDIS configuration for your NC app container in your compose file. The Redis logs your provided seemed fine but also the prior NC logs showed it could not reach your Redis server. So seems to be a config mismatch somewhere…

I can make a number of suggestions but we’re flying blind here.

Is there some reason why you’re using a nonstandard NC image? And even if there is, you’re going to have to fix the image because it clearly has a weird PHP setup.

What is with the weird cron image?

You’re doing a lot of unconventional stuff so it’s kind of on you to explain what you’re doing and why. :slight_smile:

1 Like

Hi again - thanks for your pointers.

  1. Re the NC image:
    The image I am running is based on community image nextcloud:stable-apache with one amendment. Since there were smb-problems in the original community image, I manually added smbclient and created an amended image.
    Is that a problem?

  2. Re Redis, I did not think, that I needed those variables in the compose file (they are left overs from a legacy Redis configuration). All my Redis setup variables are set in config.php, where I have the Redis server defined for NC.
    Am I wrong there?

1 Like