ownCloud webdav access broken since todays update to version 4.4-2 errata350

Hi all,

since todays update (4.4-2 errata350) the access to ownCloud via webdav seems to be broken.
The access is required e.g. for the Kopano files plugin - means currently no access to ownCloud stored files via Kopano (Deskapp and Webapp) is possible.

The file plugin says “wrong ip …”) but I think this is misleading information, as it was working before with this configuration:

owncloud-webdav

Inserting the ownCloud webdav address (server_url/owncloud/remote.php/webdav) into a browser with my correct credentials gives me a “internal server error”

This is what I have found in the ownCloud log file (not really helpful for me):

`{“reqId”:“oNVz3aT7NKU80BqYCZ8V”,“level”:3,“time”:“2019-11-14T11:34:50+00:00”,“remoteAddr”:“172.17.42.1”,“user”:"–",“app”:“remote”,“method”:“PROPFIND”,“url”:"/owncloud/remote.php/webdav/",“message”:“Exception: {“Exception”:“Error”,“Message”:“Using $this when not in object context”,“Code”:0,“Trace”:”#0 \/var\/www\/owncloud\/lib\/private\/legacy\/hook.php(105): OCA\\User_LDAP\\Helper::loginName2UserName(Array)\n#1 \/var\/www\/owncloud\/lib\/public\/Util.php(494): OC_Hook::emit(’\\\\OCA\\\\Files_Shar…’, ‘preLoginNameUse…’, Array)\n#2 \/var\/www\/owncloud\/lib\/private\/User\/Session.php(396): OCP\\Util::emitHook(’\\\\OCA\\\\Files_Shar…’, ‘preLoginNameUse…’, Array)\n#3 \/var\/www\/owncloud\/lib\/private\/User\/Session.php(356): OC\\User\\Session->isTwoFactorEnforced(‘usernamexxx’)\n#4 \/var\/www\/owncloud\/apps\/dav\/lib\/Connector\/Sabre\/Auth.php(131): OC\\User\\Session->logClientIn(*** sensitive parameters replaced )\n#5 \/var\/www\/owncloud\/lib\/composer\/sabre\/dav\/lib\/DAV\/Auth\/Backend\/AbstractBasic.php(105): OCA\\DAV\\Connector\\Sabre\\Auth->validateUserPass( sensitive parameters replaced ***)\n#6 \/var\/www\/owncloud\/apps\/dav\/lib\/Connector\/Sabre\/Auth.php(247): Sabre\\DAV\\Auth\\Backend\\AbstractBasic->check(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#7 \/var\/www\/owncloud\/apps\/dav\/lib\/Connector\/Sabre\/Auth.php(156): OCA\\DAV\\Connector\\Sabre\\Auth->auth(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#8 \/var\/www\/owncloud\/lib\/composer\/sabre\/dav\/lib\/DAV\/Auth\/Plugin.php(201): OCA\\DAV\\Connector\\Sabre\\Auth->check(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#9 \/var\/www\/owncloud\/lib\/composer\/sabre\/dav\/lib\/DAV\/Auth\/Plugin.php(150): Sabre\\DAV\\Auth\\Plugin->check(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#10 [internal function]: Sabre\\DAV\\Auth\\Plugin->beforeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#11 \/var\/www\/owncloud\/lib\/composer\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#12 \/var\/www\/owncloud\/lib\/composer\/sabre\/dav\/lib\/DAV\/Server.php(466): Sabre\\Event\\EventEmitter->emit(‘beforeMethod’, Array)\n#13 \/var\/www\/owncloud\/lib\/composer\/sabre\/dav\/lib\/DAV\/Server.php(254): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#14 \/var\/www\/owncloud\/apps\/dav\/appinfo\/v1\/webdav.php(65): Sabre\\DAV\\Server->exec()\n#15 \/var\/www\/owncloud\/remote.php(165): require_once(’\/var\/www\/ownclo…’)\n#16 {main}",“File”:"\/var\/lib\/univention-appcenter\/apps\/owncloud\/data\/custom\/user_ldap\/lib\/Helper.php",“Line”:199}"}

This is what I have found in the apache error.log file:

[Thu Nov 14 13:31:05.134585 2019] [:error] [pid 13071] [client 192.168.0.101:55554] [DBG][BackendStore] Searching for external backends in /usr/share/kopano-webapp/plugins/, referer: https://remote.servername.de/webapp/
[Thu Nov 14 13:31:05.134803 2019] [:error] [pid 13071] [client 192.168.0.101:55554] [DBG][BackendStore] Registering backend: FTP, referer: https://remote.servername.de/webapp/
[Thu Nov 14 13:31:05.134936 2019] [:error] [pid 13071] [client 192.168.0.101:55554] [DBG][BackendStore] Registering backend: Webdav, referer: https://remote.servername.de/webapp/
[Thu Nov 14 13:31:05.135330 2019] [:error] [pid 13071] [client 192.168.0.101:55554] [DBG][BackendStore] Registering external backend: Owncloud, referer: https://remote.servername.de/webapp/
[Thu Nov 14 13:31:05.135495 2019] [:error] [pid 13071] [client 192.168.0.101:55554] [DBG][BackendStore] Registering external backend: SMB, referer: https://remote.servername.de/webapp/
[Thu Nov 14 13:31:08.787738 2019] [:error] [pid 13071] [client 192.168.0.101:55554] [DBG][AccountStore] Found 2 accounts., referer: https://remote.servername.de/webapp/
[Thu Nov 14 13:31:08.787862 2019] [:error] [pid 13071] [client 192.168.0.101:55554] [DBG][BackendStore] Searching for external backends in /usr/share/kopano-webapp/plugins/, referer: https://remote.servername.de/webapp/
[Thu Nov 14 13:31:08.788024 2019] [:error] [pid 13071] [client 192.168.0.101:55554] [DBG][BackendStore] Registering backend: FTP, referer: https://remote.servername.de/webapp/
[Thu Nov 14 13:31:08.788142 2019] [:error] [pid 13071] [client 192.168.0.101:55554] [DBG][BackendStore] Registering backend: Webdav, referer: https://remote.servername.de/webapp/
[Thu Nov 14 13:31:08.788513 2019] [:error] [pid 13071] [client 192.168.0.101:55554] [DBG][BackendStore] Registering external backend: Owncloud, referer: https://remote.servername.de/webapp/
[Thu Nov 14 13:31:08.788663 2019] [:error] [pid 13071] [client 192.168.0.101:55554] [DBG][BackendStore] Registering external backend: SMB, referer: https://remote.servername.de/webapp/
[Thu Nov 14 13:31:08.788972 2019] [:error] [pid 13071] [client 192.168.0.101:55554] [BACKEND_WEBDAV]: Base path set to /owncloud/remote.php/webdav, referer: https://remote.servername.de/webapp/
[Thu Nov 14 13:31:08.789044 2019] [:error] [pid 13071] [client 192.168.0.101:55554] [BACKEND_WEBDAV]: SSL extension was set to 1, referer: https://remote.servername.de/webapp/
[Thu Nov 14 13:31:08.789272 2019] [:error] [pid 13071] [client 192.168.0.101:55554] [BACKEND_WEBDAV]: [LS] start for dir: , referer: https://remote.servername.de/webapp/
[Thu Nov 14 13:31:08.856052 2019] [:error] [pid 13071] [client 192.168.0.101:55554] [BACKEND_WEBDAV]: ls fatal: Internal server error [500], referer: https://remote.servername.de/webapp/
[Thu Nov 14 13:31:08.856261 2019] [:error] [pid 13071] [client 192.168.0.101:55554] [ERROR][AccountStore] Account check failed: Der Server hat ein Problem festgestellt. Falsche IP-Adresse eingetragen?, referer: https://remote.servername.de/webapp/

Accessing ownCloud via web-gui or native ownCloud app is still working and seems not to be affected.
Not sure where to start troubleshoot this … maybe someone could lead me into the right direction. Thx

BR
Thomas

Brief update:
also ownCloud desktop-app is affected. If you disconnect an already connected client and try to reconnect the client if gives you an error now:

ownclouderror503

someone from UCS staff can have a look please or assist? Thx

Okay, guess I found the root cause myself :slight_smile:

Seems the issue was not directly linked to the yesterdays UCS update (errata350) but to the " LDAP Integration plugin" that was also updated yesterday via the ownCloud market to version 0.14.0.

After a (manual) fallback of this plugin to version 0.13.0 operation seems to be back to normal.

BR
Thomas

1 Like

Hello all,
same happened to my system.
After rollback to LDAP 0.13, issue has been solved.
Please have a look on permanent solution.
Many thanks!

let’s continue the discussion here After update the app "LDAP Integration" from version 0.13.0 to 0.14.0 onwcloud client can't sync with my server