hoellen / dockerfiles

Dockerfiles
https://hub.docker.com/u/hoellen
Creative Commons Zero v1.0 Universal
37 stars 17 forks source link

Issue with Nextcloud 18.0.7 -> 18.0.8 update #41

Closed mhbates closed 4 years ago

mhbates commented 4 years ago

Something went wrong with my update. The container is showing as healthy, but I noticed that I can't access the web app. Whenever I try to, this error is thrown in the log:

"user":"xyz","app":"PHP","method":"GET","url":"/apps/files/","message":"TypeError: Argument 1 passed to \"Symfony\\Component\\EventDispatcher\\EventDispatcherInterface::dispatch()\" must be an object, string given. at /nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php#63","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"18.0.8.2"}

I also fiddled with occ app:check-code and it looks like a lot of the core apps are failing:

docker exec -ti nextcloud occ app:check-code files
Analysing /nextcloud/apps/files/recentlist.php
 2 errors
    line   26: OCP\User - Static method of deprecated class must not be called
    line   26: OCP\User::checkLoggedIn - Method of deprecated class must not be called
Analysing /nextcloud/apps/files/lib/Helper.php
 1 errors
    line   50: OC_Helper - Static method of private class must not be called
Analysing /nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php
 1 errors
    line   87: OC_Util - Static method of private class must not be called
Analysing /nextcloud/apps/files/lib/Controller/ViewController.php
 4 errors
    line  117: OC_App - Static method of private class must not be called
    line  139: OC_Helper - Static method of private class must not be called
    line  242: OC_Helper - Static method of private class must not be called
    line  246: OC_Helper - Static method of private class must not be called
Analysing /nextcloud/apps/files/ajax/download.php
 3 errors
    line   32: OCP\User - Static method of deprecated class must not be called
    line   32: OCP\User::checkLoggedIn - Method of deprecated class must not be called
    line   64: OC_Files - Static method of private class must not be called
Analysing /nextcloud/apps/files/ajax/list.php
 5 errors
    line   31: OC_JSON - Static method of deprecated class must not be called
    line   83: OC_JSON - Static method of deprecated class must not be called
    line   86: OC_JSON - Static method of deprecated class must not be called
    line   94: OC_JSON - Static method of deprecated class must not be called
    line  102: OC_JSON - Static method of deprecated class must not be called
Analysing /nextcloud/apps/files/appinfo/app.php
 1 errors
    line   41: OC_Helper - Static method of private class must not be called
Analysing /nextcloud/apps/files/templates/appnavigation.php
 1 errors
    line   86: == - is discouraged
Invalid appinfo.xml file found: Element 'settings': This element is not expected. Expected is one of ( contactsmenu, collaboration, sabre, public ).

App is not compliant
hoellen commented 4 years ago

The 18.0 image works fine for me. I can't reproduce your problem. This could also be an upstream issue. Maybe you should report the issue to Nextcloud.

mhbates commented 4 years ago

Of course, it's an app issue. Looks like it's the Suspicious Login app. Disabled using occ and web app is back to normal. Sorry for the false alarm!