Internal Server Error - Unsure of Cause / Solution

Internal Server Error

The server was unable to complete your request.

If this happens again, please send the technical details below to the server administrator.

More details can be found in the server log.

Technical details

The nextcloud server we are running was setup by colleague, who I can’t get in touch with, and I have Very limited experience with Linux/ ubuntu.

I’ve seen some posts that point to the version of MariaDB potentially causing this, and there are solutions in the post, but my Linux knowledge is so limited, I’m unsure how and where to enter those commands.

Any help on this would be appreciated.

Hi @ZM2021, what are the errors given in the nextcloud.log ? ( nextcloud.log file inside the datadirectory, by default : /…/nextcloud/data/nextcloud.log)

I’ve copied the most recent part of the log file below.

> {“reqId”:“7ulT9utQlJMSrLaVtYhG”,“level”:2,“time”:“2021-07-22T13:00:02+01:00”,“remoteAddr”:"",“user”:"–",“app”:“OC\Log\Rotate”,“method”:"",“url”:"–",“message”:“Log file “/var/log/nextcloud/nextcloud.log” was over 10485760 bytes, moved to “/var/log/nextcloud/nextcloud.log.1"”,“userAgent”:”–",“version”:“20.0.1.1”}
{“reqId”:“7ulT9utQlJMSrLaVtYhG”,“level”:3,“time”:“2021-07-22T13:00:02+01:00”,“remoteAddr”:"",“user”:"–",“app”:“core”,“method”:"",“url”:"–",“message”:{“Exception”:“Exception”,“Message”:“LDAP Operations error”,“Code”:1,“Trace”:[{“file”:"/var/www/nextcloud/apps/user_ldap/lib/LDAP.php",“line”:420,“function”:“processLDAPError”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->",“args”:["* sensitive parameter replaced "]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/LDAP.php",“line”:343,“function”:“postFunctionCall”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/LDAP.php",“line”:211,“function”:“invokeLDAPMethod”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“function”:“read”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->",“args”:[" sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced "]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Access.php",“line”:1094,“function”:“call_user_func_array”,“args”:[[{“class”:“OCA\User_LDAP\LDAP”}," sensitive parameter replaced "],[" sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced "]]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Access.php",“line”:1098,“function”:“OCA\User_LDAP\{closure}”,“class”:“OCA\User_LDAP\Access”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Access.php",“line”:272,“function”:“invokeLDAPMethod”,“class”:“OCA\User_LDAP\Access”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Access.php",“line”:217,“function”:“executeRead”,“class”:“OCA\User_LDAP\Access”,“type”:"->",“args”:[" sensitive parameter replaced "," sensitive parameter replaced ",""," sensitive parameter replaced ",500]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/User_LDAP.php",“line”:309,“function”:“readAttribute”,“class”:“OCA\User_LDAP\Access”,“type”:"->",“args”:[" sensitive parameter replaced ",""," sensitive parameter replaced "]},{“function”:“userExistsOnLDAP”,“class”:“OCA\User_LDAP\User_LDAP”,“type”:"->",“args”:[{“class”:“OCA\User_LDAP\User\User”}]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/User_Proxy.php",“line”:90,“function”:“call_user_func_array”,“args”:[[{“class”:“OCA\User_LDAP\User_LDAP”},“userExistsOnLDAP”],[“zurain.m”]]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Proxy.php",“line”:167,“function”:“walkBackends”,“class”:“OCA\User_LDAP\User_Proxy”,“type”:"->",“args”:[“zurain.m”,“userExistsOnLDAP”,[“zurain.m”]]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/User_Proxy.php",“line”:220,“function”:“handleRequest”,“class”:“OCA\User_LDAP\Proxy”,“type”:"->",“args”:[“zurain.m”,“userExistsOnLDAP”,[“zurain.m”]]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/User_Proxy.php",“line”:196,“function”:“userExistsOnLDAP”,“class”:“OCA\User_LDAP\User_Proxy”,“type”:"->",“args”:[“zurain.m”]},{“file”:"/var/www/nextcloud/lib/private/User/Manager.php",“line”:560,“function”:“userExists”,“class”:“OCA\User_LDAP\User_Proxy”,“type”:"->",“args”:[“zurain.m”]},{“file”:"/var/www/nextcloud/apps/files_versions/lib/BackgroundJob/ExpireVersions.php",“line”:67,“function”:“callForSeenUsers”,“class”:“OC\User\Manager”,“type”:"->",“args”:[{“class”:“Closure”}]},{“file”:"/var/www/nextcloud/lib/private/BackgroundJob/Job.php",“line”:52,“function”:“run”,“class”:“OCA\Files_Versions\BackgroundJob\ExpireVersions”,“type”:"->",“args”:[null]},{“file”:"/var/www/nextcloud/lib/private/BackgroundJob/TimedJob.php",“line”:59,“function”:“execute”,“class”:“OC\BackgroundJob\Job”,“type”:"->",“args”:[{“class”:“OC\BackgroundJob\JobList”},{“class”:“OC\Log”}]},{“file”:"/var/www/nextcloud/cron.php",“line”:127,“function”:“execute”,“class”:“OC\BackgroundJob\TimedJob”,“type”:"->",“args”:[{“class”:“OC\BackgroundJob\JobList”},{“class”:“OC\Log”}]}],“File”:"/var/www/nextcloud/apps/user_ldap/lib/LDAP.php",“Line”:387,“CustomMessage”:“Error while running background job (class: OCA\Files_Versions\BackgroundJob\ExpireVersions, arguments: )”},“userAgent”:"–",“version”:“20.0.1.1”}
{“reqId”:“aWxYl6Oum5ED9tszsN71”,“level”:2,“time”:“2021-07-22T13:00:35+01:00”,“remoteAddr”:“192.168.0.99”,“user”:“alam”,“app”:“user_ldap”,“method”:“PROPFIND”,“url”:"/remote.php/dav/files/alam/",“message”:“Bind failed: 49: Invalid credentials”,“userAgent”:“Mozilla/5.0 (Windows) mirall/3.2.2stable-Win64 (build 20210527) (Nextcloud, windows-10.0.19042 ClientArchitecture: x86_64 OsArchitecture: x86_64)”,“version”:“20.0.1.1”}
{“reqId”:“aWxYl6Oum5ED9tszsN71”,“level”:4,“time”:“2021-07-22T13:00:35+01:00”,“remoteAddr”:“192.168.0.99”,“user”:“alam”,“app”:“webdav”,“method”:“PROPFIND”,“url”:"/remote.php/dav/files/alam/",“message”:{“Exception”:“Sabre\DAV\Exception\ServiceUnavailable”,“Message”:“Exception: LDAP Operations error”,“Code”:0,“Trace”:[{“file”:"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",“line”:89,“function”:"{closure}",“args”:["
sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:458,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[“beforeMethod:PROPFIND”,[" sensitive parameter replaced "," sensitive parameter replaced "]]},{“file”:"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:251,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[" sensitive parameter replaced "," sensitive parameter replaced "]},{“file”:"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:319,“function”:“start”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/remote.php",“line”:76,“function”:“exec”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/remote.php",“line”:169,“function”:“handleException”,“args”:[{“class”:“Exception”}]}],“File”:"/var/www/nextcloud/remote.php",“Line”:74,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (Windows) mirall/3.2.2stable-Win64 (build 20210527) (Nextcloud, windows-10.0.19042 ClientArchitecture: x86_64 OsArchitecture: x86_64)”,“version”:“20.0.1.1”}
{“reqId”:“aVO2ofRpv7eXWMalpwm9”,“level”:2,“time”:“2021-07-22T13:00:43+01:00”,“remoteAddr”:“192.168.1.89”,“user”:"–",“app”:“user_ldap”,“method”:“PROPFIND”,“url”:"/remote.php/webdav/",“message”:“Bind failed: 49: Invalid credentials”,“userAgent”:“Mozilla/5.0 (Windows) mirall/3.2.4stable-Win64 (build 20210706) (Nextcloud, windows-10.0.19042 ClientArchitecture: x86_64 OsArchitecture: x86_64)”,“version”:“20.0.1.1”}
{“reqId”:“aVO2ofRpv7eXWMalpwm9”,“level”:3,“time”:“2021-07-22T13:00:43+01:00”,“remoteAddr”:“192.168.1.89”,“user”:"–",“app”:“PHP”,“method”:“PROPFIND”,“url”:"/remote.php/webdav/",“message”:{“Exception”:“Error”,“Message”:“ldap_search(): Search: Operations error at /var/www/nextcloud/apps/user_ldap/lib/LDAP.php#341”,“Code”:0,“Trace”:[{“file”:"/var/www/nextcloud/apps/user_ldap/lib/LDAP.php",“line”:229,“function”:“onError”,“class”:“OC\Log\ErrorHandler”,“type”:"::",“args”:["
sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced "]},{“function”:“OCA\User_LDAP\{closure}”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“function”:“ldap_search”,“args”:[" sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced "]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/LDAP.php",“line”:341,“function”:“call_user_func_array”,“args”:[“ldap_search”,[" sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced "]]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/LDAP.php",“line”:234,“function”:“invokeLDAPMethod”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“function”:“search”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->",“args”:[" sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced "]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Access.php",“line”:1094,“function”:“call_user_func_array”,“args”:[[{“class”:“OCA\User_LDAP\LDAP”}," sensitive parameter replaced "],[" sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced "]]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Access.php",“line”:1098,“function”:“OCA\User_LDAP\{closure}”,“class”:“OCA\User_LDAP\Access”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Access.php",“line”:1151,“function”:“invokeLDAPMethod”,“class”:“OCA\User_LDAP\Access”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Access.php",“line”:1323,“function”:“executeSearch”,“class”:“OCA\User_LDAP\Access”,“type”:"->",“args”:[" sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced ",500,null]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Access.php",“line”:991,“function”:“search”,“class”:“OCA\User_LDAP\Access”,“type”:"->",“args”:[" sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced ",null,null]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Access.php",“line”:875,“function”:“searchUsers”,“class”:“OCA\User_LDAP\Access”,“type”:"->",“args”:[" sensitive parameter replaced "," sensitive parameter replaced ",null,null]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Access.php",“line”:855,“function”:“fetchListOfUsers”,“class”:“OCA\User_LDAP\Access”,“type”:"->",“args”:[" sensitive parameter replaced "," sensitive parameter replaced "]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/User_LDAP.php",“line”:157,“function”:“fetchUsersByLoginName”,“class”:“OCA\User_LDAP\Access”,“type”:"->",“args”:[" sensitive parameter replaced "," sensitive parameter replaced "]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/User_LDAP.php",“line”:120,“function”:“getLDAPUserByLoginName”,“class”:“OCA\User_LDAP\User_LDAP”,“type”:"->",“args”:[" sensitive parameter replaced "]},{“function”:“loginName2UserName”,“class”:“OCA\User_LDAP\User_LDAP”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/User_Proxy.php",“line”:90,“function”:“call_user_func_array”,“args”:[[{“class”:“OCA\User_LDAP\User_LDAP”},“loginName2UserName”],[" sensitive parameter replaced "]]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Proxy.php",“line”:167,“function”:“walkBackends”,“class”:“OCA\User_LDAP\User_Proxy”,“type”:"->",“args”:[“LOGINNAME,zurain.m”,“loginName2UserName”,[" sensitive parameter replaced "]]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/User_Proxy.php",“line”:244,“function”:“handleRequest”,“class”:“OCA\User_LDAP\Proxy”,“type”:"->",“args”:[“LOGINNAME,zurain.m”,“loginName2UserName”,[" sensitive parameter replaced "]]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Helper.php",“line”:329,“function”:“loginName2UserName”,“class”:“OCA\User_LDAP\User_Proxy”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/lib/private/legacy/OC_Hook.php",“line”:110,“function”:“loginName2UserName”,“class”:“OCA\User_LDAP\Helper”,“type”:"::",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/lib/public/Util.php",“line”:354,“function”:“emit”,“class”:“OC_Hook”,“type”:"::",“args”:["\OCA\Files_Sharing\API\Server2Server",“preLoginNameUsedAsUserName”," sensitive parameter replaced "]},{“file”:"/var/www/nextcloud/apps/password_policy/lib/ComplianceService.php",“line”:91,“function”:“emitHook”,“class”:“OCP\Util”,“type”:"::",“args”:["\OCA\Files_Sharing\API\Server2Server",“preLoginNameUsedAsUserName”," sensitive parameter replaced "]},{“file”:"/var/www/nextcloud/apps/password_policy/lib/Listener/BeforeUserLoggedInEventListener.php",“line”:44,“function”:“entryControl”,“class”:“OCA\Password_Policy\ComplianceService”,“type”:"->",“args”:[" sensitive parameter replaced "," sensitive parameter replaced "]},{“file”:"/var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php",“line”:76,“function”:“handle”,“class”:“OCA\Password_Policy\Listener\BeforeUserLoggedInEventListener”,“type”:"->",“args”:[{“class”:“OCP\User\Events\BeforeUserLoggedInEvent”}]},{“file”:"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",“line”:251,“function”:"__invoke",“class”:“OC\EventDispatcher\ServiceEventListener”,“type”:"->",“args”:[{“class”:“OCP\User\Events\BeforeUserLoggedInEvent”},“OCP\User\Events\BeforeUserLoggedInEvent”,{“class”:“Symfony\Component\EventDispatcher\EventDispatcher”}]},{“file”:"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",“line”:73,“function”:“callListeners”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:"->",“args”:[[{“class”:“Closure”}],“OCP\User\Events\BeforeUserLoggedInEvent”,{“class”:“OCP\User\Events\BeforeUserLoggedInEvent”}]},{“file”:"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php",“line”:86,“function”:“dispatch”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:"->",“args”:[{“class”:“OCP\User\Events\BeforeUserLoggedInEvent”},“OCP\User\Events\BeforeUserLoggedInEvent”]},{“file”:"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php",“line”:98,“function”:“dispatch”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:"->",“args”:[“OCP\User\Events\BeforeUserLoggedInEvent”,{“class”:“OCP\User\Events\BeforeUserLoggedInEvent”}]},{“file”:"/var/www/nextcloud/lib/private/Server.php",“line”:569,“function”:“dispatchTyped”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:"->",“args”:[{“class”:“OCP\User\Events\BeforeUserLoggedInEvent”}]},{“function”:“OC\{closure}”,“class”:“OC\Server”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/lib/private/Hooks/EmitterTrait.php",“line”:101,“function”:“call_user_func_array”,“args”:[{“class”:“Closure”},[" sensitive parameter replaced "," sensitive parameter replaced "]]},{“file”:"/var/www/nextcloud/lib/private/Hooks/PublicEmitter.php",“line”:40,“function”:“emit”,“class”:“OC\Hooks\BasicEmitter”,“type”:"->",“args”:["\OC\User",“preLogin”,[" sensitive parameter replaced "," sensitive parameter replaced "]]},{“file”:"/var/www/nextcloud/lib/private/User/Session.php",“line”:444,“function”:“emit”,“class”:“OC\Hooks\PublicEmitter”,“type”:"->",“args”:["\OC\User",“preLogin”,[" sensitive parameter replaced "," sensitive parameter replaced "]]},{“file”:"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php",“line”:131,“function”:“logClientIn”,“class”:“OC\User\Session”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Backend/AbstractBasic.php",“line”:106,“function”:“validateUserPass”,“class”:“OCA\DAV\Connector\Sabre\Auth”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php",“line”:254,“function”:“check”,“class”:“Sabre\DAV\Auth\Backend\AbstractBasic”,“type”:"->",“args”:[{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”}]},{“file”:"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php",“line”:156,“function”:“auth”,“class”:“OCA\DAV\Connector\Sabre\Auth”,“type”:"->",“args”:[{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”}]},{“file”:"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php",“line”:193,“function”:“check”,“class”:“OCA\DAV\Connector\Sabre\Auth”,“type”:"->",“args”:[{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”}]},{“file”:"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php",“line”:144,“function”:“check”,“class”:“Sabre\DAV\Auth\Plugin”,“type”:"->",“args”:[{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”}]},{“file”:"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",“line”:89,“function”:“beforeMethod”,“class”:“Sabre\DAV\Auth\Plugin”,“type”:"->",“args”:[{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”}]},{“file”:"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:458,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[“beforeMethod:PROPFIND”,[{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”}]]},{“file”:"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:251,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”}]},{“file”:"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:319,“function”:“start”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php",“line”:84,“function”:“exec”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/remote.php",“line”:167,“args”:["/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php"],“function”:“require_once”}],“File”:"/var/www/nextcloud/lib/private/Log/ErrorHandler.php",“Line”:91,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (Windows) mirall/3.2.4stable-Win64 (build 20210706) (Nextcloud, windows-10.0.19042 ClientArchitecture: x86_64 OsArchitecture: x86_64)”,“version”:“20.0.1.1”}
{“reqId”:“aVO2ofRpv7eXWMalpwm9”,“level”:3,“time”:“2021-07-22T13:00:43+01:00”,“remoteAddr”:“192.168.1.89”,“user”:"–",“app”:“no app in context”,“method”:“PROPFIND”,“url”:"/remote.php/webdav/",“message”:{“Exception”:“Exception”,“Message”:“LDAP Operations error”,“Code”:1,“Trace”:[{“file”:"/var/www/nextcloud/apps/user_ldap/lib/LDAP.php",“line”:420,“function”:“processLDAPError”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->",“args”:["
sensitive parameter replaced "]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/LDAP.php",“line”:343,“function”:“postFunctionCall”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/LDAP.php",“line”:234,“function”:“invokeLDAPMethod”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“function”:“search”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->",“args”:[" sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced "]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Access.php",“line”:1094,“function”:“call_user_func_array”,“args”:[[{“class”:“OCA\User_LDAP\LDAP”}," sensitive parameter replaced "],[" sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced "]]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Access.php",“line”:1098,“function”:“OCA\User_LDAP\{closure}”,“class”:“OCA\User_LDAP\Access”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Access.php",“line”:1151,“function”:“invokeLDAPMethod”,“class”:“OCA\User_LDAP\Access”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Access.php",“line”:1323,“function”:“executeSearch”,“class”:“OCA\User_LDAP\Access”,“type”:"->",“args”:[" sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced ",500,null]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Access.php",“line”:991,“function”:“search”,“class”:“OCA\User_LDAP\Access”,“type”:"->",“args”:[" sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced ",null,null]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Access.php",“line”:875,“function”:“searchUsers”,“class”:“OCA\User_LDAP\Access”,“type”:"->",“args”:[" sensitive parameter replaced "," sensitive parameter replaced ",null,null]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Access.php",“line”:855,“function”:“fetchListOfUsers”,“class”:“OCA\User_LDAP\Access”,“type”:"->",“args”:[" sensitive parameter replaced "," sensitive parameter replaced "]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/User_LDAP.php",“line”:157,“function”:“fetchUsersByLoginName”,“class”:“OCA\User_LDAP\Access”,“type”:"->",“args”:[" sensitive parameter replaced "," sensitive parameter replaced "]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/User_LDAP.php",“line”:120,“function”:“getLDAPUserByLoginName”,“class”:“OCA\User_LDAP\User_LDAP”,“type”:"->",“args”:[" sensitive parameter replaced "]},{“function”:“loginName2UserName”,“class”:“OCA\User_LDAP\User_LDAP”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/User_Proxy.php",“line”:90,“function”:“call_user_func_array”,“args”:[[{“class”:“OCA\User_LDAP\User_LDAP”},“loginName2UserName”],[" sensitive parameter replaced "]]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Proxy.php",“line”:167,“function”:“walkBackends”,“class”:“OCA\User_LDAP\User_Proxy”,“type”:"->",“args”:[“LOGINNAME,zurain.m”,“loginName2UserName”,[" sensitive parameter replaced "]]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/User_Proxy.php",“line”:244,“function”:“handleRequest”,“class”:“OCA\User_LDAP\Proxy”,“type”:"->",“args”:[“LOGINNAME,zurain.m”,“loginName2UserName”,[" sensitive parameter replaced "]]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Helper.php",“line”:329,“function”:“loginName2UserName”,“class”:“OCA\User_LDAP\User_Proxy”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/lib/private/legacy/OC_Hook.php",“line”:110,“function”:“loginName2UserName”,“class”:“OCA\User_LDAP\Helper”,“type”:"::",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/lib/public/Util.php",“line”:354,“function”:“emit”,“class”:“OC_Hook”,“type”:"::",“args”:["\OCA\Files_Sharing\API\Server2Server",“preLoginNameUsedAsUserName”," sensitive parameter replaced "]},{“file”:"/var/www/nextcloud/apps/password_policy/lib/ComplianceService.php",“line”:91,“function”:“emitHook”,“class”:“OCP\Util”,“type”:"::",“args”:["\OCA\Files_Sharing\API\Server2Server",“preLoginNameUsedAsUserName”," sensitive parameter replaced "]},{“file”:"/var/www/nextcloud/apps/password_policy/lib/Listener/BeforeUserLoggedInEventListener.php",“line”:44,“function”:“entryControl”,“class”:“OCA\Password_Policy\ComplianceService”,“type”:"->",“args”:[" sensitive parameter replaced "," sensitive parameter replaced "]},{“file”:"/var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php",“line”:76,“function”:“handle”,“class”:“OCA\Password_Policy\Listener\BeforeUserLoggedInEventListener”,“type”:"->",“args”:[{“class”:“OCP\User\Events\BeforeUserLoggedInEvent”}]},{“file”:"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",“line”:251,“function”:"__invoke",“class”:“OC\EventDispatcher\ServiceEventListener”,“type”:"->",“args”:[{“class”:“OCP\User\Events\BeforeUserLoggedInEvent”},“OCP\User\Events\BeforeUserLoggedInEvent”,{“class”:“Symfony\Component\EventDispatcher\EventDispatcher”}]},{“file”:"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",“line”:73,“function”:“callListeners”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:"->",“args”:[[{“class”:“Closure”}],“OCP\User\Events\BeforeUserLoggedInEvent”,{“class”:“OCP\User\Events\BeforeUserLoggedInEvent”}]},{“file”:"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php",“line”:86,“function”:“dispatch”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:"->",“args”:[{“class”:“OCP\User\Events\BeforeUserLoggedInEvent”},“OCP\User\Events\BeforeUserLoggedInEvent”]},{“file”:"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php",“line”:98,“function”:“dispatch”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:"->",“args”:[“OCP\User\Events\BeforeUserLoggedInEvent”,{“class”:“OCP\User\Events\BeforeUserLoggedInEvent”}]},{“file”:"/var/www/nextcloud/lib/private/Server.php",“line”:569,“function”:“dispatchTyped”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:"->",“args”:[{“class”:“OCP\User\Events\BeforeUserLoggedInEvent”}]},{“function”:“OC\{closure}”,“class”:“OC\Server”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/lib/private/Hooks/EmitterTrait.php",“line”:101,“function”:“call_user_func_array”,“args”:[{“class”:“Closure”},[" sensitive parameter replaced "," sensitive parameter replaced "]]},{“file”:"/var/www/nextcloud/lib/private/Hooks/PublicEmitter.php",“line”:40,“function”:“emit”,“class”:“OC\Hooks\BasicEmitter”,“type”:"->",“args”:["\OC\User",“preLogin”,[" sensitive parameter replaced "," sensitive parameter replaced "]]},{“file”:"/var/www/nextcloud/lib/private/User/Session.php",“line”:444,“function”:“emit”,“class”:“OC\Hooks\PublicEmitter”,“type”:"->",“args”:["\OC\User",“preLogin”,[" sensitive parameter replaced "," sensitive parameter replaced "]]},{“file”:"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php",“line”:131,“function”:“logClientIn”,“class”:“OC\User\Session”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Backend/AbstractBasic.php",“line”:106,“function”:“validateUserPass”,“class”:“OCA\DAV\Connector\Sabre\Auth”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php",“line”:254,“function”:“check”,“class”:“Sabre\DAV\Auth\Backend\AbstractBasic”,“type”:"->",“args”:[{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”}]},{“file”:"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php",“line”:156,“function”:“auth”,“class”:“OCA\DAV\Connector\Sabre\Auth”,“type”:"->",“args”:[{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”}]},{“file”:"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php",“line”:193,“function”:“check”,“class”:“OCA\DAV\Connector\Sabre\Auth”,“type”:"->",“args”:[{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”}]},{“file”:"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php",“line”:144,“function”:“check”,“class”:“Sabre\DAV\Auth\Plugin”,“type”:"->",“args”:[{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”}]},{“file”:"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",“line”:89,“function”:“beforeMethod”,“class”:“Sabre\DAV\Auth\Plugin”,“type”:"->",“args”:[{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”}]},{“file”:"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:458,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[“beforeMethod:PROPFIND”,[{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”}]]},{“file”:"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:251,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”}]},{“file”:"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:319,“function”:“start”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php",“line”:84,“function”:“exec”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/remote.php",“line”:167,“args”:["/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php"],“function”:“require_once”}],“File”:"/var/www/nextcloud/apps/user_ldap/lib/LDAP.php",“Line”:387,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (Windows) mirall/3.2.4stable-Win64 (build 20210706) (Nextcloud, windows-10.0.19042 ClientArchitecture: x86_64 OsArchitecture: x86_64)”,“version”:“20.0.1.1”}
{“reqId”:“aVO2ofRpv7eXWMalpwm9”,“level”:3,“time”:“2021-07-22T13:00:43+01:00”,“remoteAddr”:“192.168.1.89”,“user”:"–",“app”:“no app in context”,“method”:“PROPFIND”,“url”:"/remote.php/webdav/",“message”:{“Exception”:“Exception”,“Message”:“LDAP Operations error”,“Code”:1,“Trace”:[{“file”:"/var/www/nextcloud/apps/user_ldap/lib/LDAP.php",“line”:420,“function”:“processLDAPError”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->",“args”:["
sensitive parameter replaced "]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/LDAP.php",“line”:343,“function”:“postFunctionCall”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/LDAP.php",“line”:211,“function”:“invokeLDAPMethod”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“function”:“read”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->",“args”:[" sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced "]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Access.php",“line”:1094,“function”:“call_user_func_array”,“args”:[[{“class”:“OCA\User_LDAP\LDAP”}," sensitive parameter replaced "],[" sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced "," sensitive parameter replaced "]]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Access.php",“line”:1098,“function”:“OCA\User_LDAP\{closure}”,“class”:“OCA\User_LDAP\Access”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Access.php",“line”:272,“function”:“invokeLDAPMethod”,“class”:“OCA\User_LDAP\Access”,“type”:"->",“args”:[" sensitive parameters replaced

@ZM2021 from what you send me, you have LDAP error :

“Exception: LDAP Operations error”
"Bind failed: 49: Invalid credentials"

check if LDAP connection is ok

How can I check the LDAP connection if I can’t login.

I don’t think I have any non ldap user account details?

Can I create a non-ldap user somehow?

I have the same error. It happened after my MariaDB container updated to 10.6 from 10.5. I believe this is the issue, and all I need to do is to run this: https://mariadb.com/kb/en/innodb-system-variables/#innodb_read_only_compressed . However, I have no idea how to run this command - is it supposed to be run with the docker command? Because whether I add --innodb-read-only-compressed or --skip-innodb-read-only-compressed with the docker run command, I get: “unknown flag: --skip-innodb-read-only-compressed”. Very frustrating how upgrading from a stable version of a DB docker container to another can break NC. If somebody could help me with how to run this command or fix this issue, that would be great.

[edit]: I downgraded to mariadb 10.5 and this fixed the issue. From what I have read, this will not be fixed soon by NC.

Hi, How can I downgrade to mariadb 10.5 I’d really appreciate any help on this.

I’ve found this solution:

This means that as of right now the official docker compose file is no longer working.

This issue should be elevated to “needs triage” and the label changed to “bug”. As row_format => compression is now deprecated, the default setting in ConnectionFactory.php should be changed to dynamic.

A workaround is available, however. Launch your mariadb instance with the --skip-innodb-read-only-compressed setting.

This workaround is applied in the compose file as shown:

services:
  db:
    image: mariadb
    restart: always
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --skip-innodb-read-only-compressed
    volumes:
      - db:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=
      - MYSQL_PASSWORD=
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud

My question is where do I find the docker-compose.yml file? How can I edit the file?

Are you running mariadb in docker? If so, you can just specify ‘mariadb:10.5’ at the end of docker run. I am running docker on an Unraid server, so here is what the command looks like on my side (see the end for the 10.5 flag):

docker run -d --name=‘MariaDB-Official’ --net=‘proxynet’ --cpuset-cpus=‘0,4’ -e TZ=“Europe/Athens” -e HOST_OS=“Unraid” -e ‘MARIADB_RANDOM_ROOT_PASSWORD’=’’ -e ‘MARIADB_DATABASE’=‘nextcloud’ -e ‘MARIADB_USER’=‘nextcloud’ -e ‘MARIADB_PASSWORD’=‘password’ -e ‘MARIADB_ROOT_PASSWORD’=‘password’ -p ‘3306:3306/tcp’ -v ‘/mnt/user/appdata/mariadb-official/data’:’/var/lib/mysql’:‘rw’ -v ‘/mnt/user/appdata/mariadb-official/config’:’/etc/mysql/conf.d’:‘rw’ --user=99:100 --memory=2G ‘mariadb:10.5’

Obviously you want to be careful here - make sure you have backups before you do this stuff…:wink:

Also, there is no guarantee that you have the same issue, but you should check which version of mariadb you have before you downgrade. With me, it happened right after updating to 10.6 last week (I have now turned off auto-update…:wink:

Do you use BitDefender ? I got a message from someone suggesting BitDefender might be the problem. I uninstalled BitDefender, and the issue went away.

If it’s mariadb then that can be fixed that way.

If it’s actually LDAP not working properly, I would suggest disabling LDAP within the install using occ. I can’t remember the exact command but you can find it by googling or looking at the nextcloud admin manual. This assumes you have a local user (which IIRC everyone should have at least one that did the initial config) that can be logged into.