Server Error trying to connect with PhoneTrack Call to protected method OCA

A few apps have been a little problematic, trying to work through the issues:

FreeBSD 11.3-RELEASE-p8 #0 r360490:
nextcloud-php73-19.0.0
php73-7.3.19

error logs appear to have 3 different errors that repeat:

“Exception”:“Error”,“Message”:“Call to protected method OCA\Files_Sharing\AppInfo\Application::registerMountProviders() from context ‘OC_App’”

grep “Call to protected method OCA” nextcloud.log | wc -l
3438

“Exception”:“InvalidArgumentException”,“Message”:“Notifier Federated sharing (id: files_sharing) is not considered because it is using the old way to register.”

grep “old way to register” nextcloud.log | wc -l

1238

“message”:“Could not find resource js/oc-backbone-webdav.js to load”

this seems to exist, but not in the executable directory path - perhaps the copy/install command failed

find / -name “oc-backbone-webdav.js”

/var/ports/usr/ports/www/nextcloud/work/stage/usr/local/www/nextcloud/core/js/oc-backbone-webdav.js
/var/ports/usr/ports/www/nextcloud/work/nextcloud/core/js/oc-backbone-webdav.js
/usr/local/iNAS/updater-oc9294zov7vh/backups/nextcloud-15.0.2.0/core/js/oc-backbone-webdav.js

this also seems to be a PhoneTrack specific error as:

grep “oc-backbone-webdav.js” nextcloud.log | wc -l

  12

Any hints? The “protected method OCA” and “old way to register” errors are frequent enough to be a logging load.

(full error log text (grep for phonetrack) below):

{“reqId”:“344yU4vvJEY555HTGYGs”,“level”:3,“time”:“2020-06-18T12:01:50+00:00”,“remoteAddr”:“185.106.28.207”,“user”:"–",“app”:“no app in context”,“method”:“POST”,“url”:"/index.php/apps/maps/api/1.0/devices",“message”:{“Exception”:“Error”,“Message”:“Call to protected method OCA\Files_Sharing\AppInfo\Application::registerMountProviders() from context ‘OC_App’”,“Code”:0,“Trace”:[{“file”:"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php",“line”:266,“function”:“require_once”},{“file”:"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php",“line”:155,“function”:“requireAppFile”,“class”:“OC_App”,“type”:"::",“args”:[“files_sharing”]},{“file”:"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php",“line”:128,“function”:“loadApp”,“class”:“OC_App”,“type”:"::",“args”:[“files_sharing”]},{“file”:"/usr/local/www/nextcloud/lib/base.php",“line”:995,“function”:“loadApps”,“class”:“OC_App”,“type”:"::",“args”:[[“filesystem”,“logging”]]},{“file”:"/usr/local/www/nextcloud/index.php",“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:"::",“args”:[]}],“File”:"/usr/local/www/nextcloud/apps/files_sharing/appinfo/app.php",“Line”:39,“CustomMessage”:"–"},“userAgent”:“phonetrack-android/0.0.18”,“version”:“19.0.0.12”}
{“reqId”:“344yU4vvJEY555HTGYGs”,“level”:3,“time”:“2020-06-18T12:01:52+00:00”,“remoteAddr”:“185.106.28.207”,“user”:“gessel”,“app”:“no app in context”,“method”:“POST”,“url”:"/index.php/apps/maps/api/1.0/devices",“message”:{“Exception”:“InvalidArgumentException”,“Message”:“Notifier Federated sharing (id: files_sharing) is not considered because it is using the old way to register.”,“Code”:0,“Trace”:[{“file”:"/usr/local/www/nextcloud/apps/federatedfilesharing/appinfo/app.php",“line”:40,“function”:“registerNotifier”,“class”:“OC\Notification\Manager”,“type”:"->",“args”:[{“class”:“Closure”},{“class”:“Closure”}]},{“file”:"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php",“line”:266,“args”:["/usr/local/www/nextcloud/apps/federatedfilesharing/appinfo/app.php"],“function”:“require_once”},{“file”:"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php",“line”:155,“function”:“requireAppFile”,“class”:“OC_App”,“type”:"::",“args”:[{“class”:“OCA\FederatedFileSharing\AppInfo\Application”}]},{“file”:"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php",“line”:128,“function”:“loadApp”,“class”:“OC_App”,“type”:"::",“args”:[“federatedfilesharing”]},{“file”:"/usr/local/www/nextcloud/lib/base.php",“line”:1004,“function”:“loadApps”,“class”:“OC_App”,“type”:"::",“args”:[]},{“file”:"/usr/local/www/nextcloud/index.php",“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:"::",“args”:[]}],“File”:"/usr/local/www/nextcloud/lib/private/Notification/Manager.php",“Line”:88,“CustomMessage”:"–"},“userAgent”:“phonetrack-android/0.0.18”,“version”:“19.0.0.12”}
{“reqId”:“vHxcWVbmMMpnfSNUgs2w”,“level”:3,“time”:“2020-06-18T12:01:53+00:00”,“remoteAddr”:“185.106.28.207”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/index.php/apps/files/",“message”:{“Exception”:“Error”,“Message”:“Call to protected method OCA\Files_Sharing\AppInfo\Application::registerMountProviders() from context ‘OC_App’”,“Code”:0,“Trace”:[{“file”:"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php",“line”:266,“function”:“require_once”},{“file”:"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php",“line”:155,“function”:“requireAppFile”,“class”:“OC_App”,“type”:"::",“args”:[“files_sharing”]},{“file”:"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php",“line”:128,“function”:“loadApp”,“class”:“OC_App”,“type”:"::",“args”:[“files_sharing”]},{“file”:"/usr/local/www/nextcloud/lib/base.php",“line”:995,“function”:“loadApps”,“class”:“OC_App”,“type”:"::",“args”:[[“filesystem”,“logging”]]},{“file”:"/usr/local/www/nextcloud/index.php",“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:"::",“args”:[]}],“File”:"/usr/local/www/nextcloud/apps/files_sharing/appinfo/app.php",“Line”:39,“CustomMessage”:"–"},“userAgent”:“phonetrack-android/0.0.18”,“version”:“19.0.0.12”}
{“reqId”:“vHxcWVbmMMpnfSNUgs2w”,“level”:3,“time”:“2020-06-18T12:01:53+00:00”,“remoteAddr”:“185.106.28.207”,“user”:“gessel”,“app”:“no app in context”,“method”:“GET”,“url”:"/index.php/apps/files/",“message”:{“Exception”:“InvalidArgumentException”,“Message”:“Notifier Federated sharing (id: files_sharing) is not considered because it is using the old way to register.”,“Code”:0,“Trace”:[{“file”:"/usr/local/www/nextcloud/apps/federatedfilesharing/appinfo/app.php",“line”:40,“function”:“registerNotifier”,“class”:“OC\Notification\Manager”,“type”:"->",“args”:[{“class”:“Closure”},{“class”:“Closure”}]},{“file”:"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php",“line”:266,“args”:["/usr/local/www/nextcloud/apps/federatedfilesharing/appinfo/app.php"],“function”:“require_once”},{“file”:"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php",“line”:155,“function”:“requireAppFile”,“class”:“OC_App”,“type”:"::",“args”:[{“class”:“OCA\FederatedFileSharing\AppInfo\Application”}]},{“file”:"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php",“line”:128,“function”:“loadApp”,“class”:“OC_App”,“type”:"::",“args”:[“federatedfilesharing”]},{“file”:"/usr/local/www/nextcloud/lib/base.php",“line”:1004,“function”:“loadApps”,“class”:“OC_App”,“type”:"::",“args”:[]},{“file”:"/usr/local/www/nextcloud/index.php",“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:"::",“args”:[]}],“File”:"/usr/local/www/nextcloud/lib/private/Notification/Manager.php",“Line”:88,“CustomMessage”:"–"},“userAgent”:“phonetrack-android/0.0.18”,“version”:“19.0.0.12”}
{“reqId”:“vHxcWVbmMMpnfSNUgs2w”,“level”:3,“time”:“2020-06-18T12:01:53+00:00”,“remoteAddr”:“185.106.28.207”,“user”:“gessel”,“app”:“jsresourceloader”,“method”:“GET”,“url”:"/index.php/apps/files/",“message”:“Could not find resource js/oc-backbone-webdav.js to load”,“userAgent”:“phonetrack-android/0.0.18”,“version”:“19.0.0.12”}
{“reqId”:“vHxcWVbmMMpnfSNUgs2w”,“level”:3,“time”:“2020-06-18T12:01:53+00:00”,“remoteAddr”:“185.106.28.207”,“user”:“gessel”,“app”:“jsresourceloader”,“method”:“GET”,“url”:"/index.php/apps/files/",“message”:“Could not find resource js/systemtags/merged.js to load”,“userAgent”:“phonetrack-android/0.0.18”,“version”:“19.0.0.12”}
{“reqId”:“aZ4xuOSlGk6uKTI5YRhL”,“level”:3,“time”:“2020-06-18T12:01:55+00:00”,“remoteAddr”:“185.106.28.207”,“user”:"–",“app”:“no app in context”,“method”:“POST”,“url”:"/index.php/apps/maps/api/1.0/devices",“message”:{“Exception”:“Error”,“Message”:“Call to protected method OCA\Files_Sharing\AppInfo\Application::registerMountProviders() from context ‘OC_App’”,“Code”:0,“Trace”:[{“file”:"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php",“line”:266,“function”:“require_once”},{“file”:"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php",“line”:155,“function”:“requireAppFile”,“class”:“OC_App”,“type”:"::",“args”:[“files_sharing”]},{“file”:"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php",“line”:128,“function”:“loadApp”,“class”:“OC_App”,“type”:"::",“args”:[“files_sharing”]},{“file”:"/usr/local/www/nextcloud/lib/base.php",“line”:995,“function”:“loadApps”,“class”:“OC_App”,“type”:"::",“args”:[[“filesystem”,“logging”]]},{“file”:"/usr/local/www/nextcloud/index.php",“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:"::",“args”:[]}],“File”:"/usr/local/www/nextcloud/apps/files_sharing/appinfo/app.php",“Line”:39,“CustomMessage”:"–"},“userAgent”:“phonetrack-android/0.0.18”,“version”:“19.0.0.12”}
{“reqId”:“aZ4xuOSlGk6uKTI5YRhL”,“level”:3,“time”:“2020-06-18T12:01:55+00:00”,“remoteAddr”:“185.106.28.207”,“user”:“gessel”,“app”:“no app in context”,“method”:“POST”,“url”:"/index.php/apps/maps/api/1.0/devices",“message”:{“Exception”:“InvalidArgumentException”,“Message”:“Notifier Federated sharing (id: files_sharing) is not considered because it is using the old way to register.”,“Code”:0,“Trace”:[{“file”:"/usr/local/www/nextcloud/apps/federatedfilesharing/appinfo/app.php",“line”:40,“function”:“registerNotifier”,“class”:“OC\Notification\Manager”,“type”:"->",“args”:[{“class”:“Closure”},{“class”:“Closure”}]},{“file”:"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php",“line”:266,“args”:["/usr/local/www/nextcloud/apps/federatedfilesharing/appinfo/app.php"],“function”:“require_once”},{“file”:"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php",“line”:155,“function”:“requireAppFile”,“class”:“OC_App”,“type”:"::",“args”:[{“class”:“OCA\FederatedFileSharing\AppInfo\Application”}]},{“file”:"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php",“line”:128,“function”:“loadApp”,“class”:“OC_App”,“type”:"::",“args”:[“federatedfilesharing”]},{“file”:"/usr/local/www/nextcloud/lib/base.php",“line”:1004,“function”:“loadApps”,“class”:“OC_App”,“type”:"::",“args”:[]},{“file”:"/usr/local/www/nextcloud/index.php",“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:"::",“args”:[]}],“File”:"/usr/local/www/nextcloud/lib/private/Notification/Manager.php",“Line”:88,“CustomMessage”:"–"},“userAgent”:“phonetrack-android/0.0.18”,“version”:“19.0.0.12”}
{“reqId”:“obCmSeJNbR0YTE9ge2yy”,“level”:3,“time”:“2020-06-18T12:01:57+00:00”,“remoteAddr”:“185.106.28.207”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/index.php/apps/files/",“message”:{“Exception”:“Error”,“Message”:“Call to protected method OCA\Files_Sharing\AppInfo\Application::registerMountProviders() from context ‘OC_App’”,“Code”:0,“Trace”:[{“file”:"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php",“line”:266,“function”:“require_once”},{“file”:"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php",“line”:155,“function”:“requireAppFile”,“class”:“OC_App”,“type”:"::",“args”:[“files_sharing”]},{“file”:"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php",“line”:128,“function”:“loadApp”,“class”:“OC_App”,“type”:"::",“args”:[“files_sharing”]},{“file”:"/usr/local/www/nextcloud/lib/base.php",“line”:995,“function”:“loadApps”,“class”:“OC_App”,“type”:"::",“args”:[[“filesystem”,“logging”]]},{“file”:"/usr/local/www/nextcloud/index.php",“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:"::",“args”:[]}],“File”:"/usr/local/www/nextcloud/apps/files_sharing/appinfo/app.php",“Line”:39,“CustomMessage”:"–"},“userAgent”:“phonetrack-android/0.0.18”,“version”:“19.0.0.12”}
{“reqId”:“obCmSeJNbR0YTE9ge2yy”,“level”:3,“time”:“2020-06-18T12:01:57+00:00”,“remoteAddr”:“185.106.28.207”,“user”:“gessel”,“app”:“no app in context”,“method”:“GET”,“url”:"/index.php/apps/files/",“message”:{“Exception”:“InvalidArgumentException”,“Message”:“Notifier Federated sharing (id: files_sharing) is not considered because it is using the old way to register.”,“Code”:0,“Trace”:[{“file”:"/usr/local/www/nextcloud/apps/federatedfilesharing/appinfo/app.php",“line”:40,“function”:“registerNotifier”,“class”:“OC\Notification\Manager”,“type”:"->",“args”:[{“class”:“Closure”},{“class”:“Closure”}]},{“file”:"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php",“line”:266,“args”:["/usr/local/www/nextcloud/apps/federatedfilesharing/appinfo/app.php"],“function”:“require_once”},{“file”:"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php",“line”:155,“function”:“requireAppFile”,“class”:“OC_App”,“type”:"::",“args”:[{“class”:“OCA\FederatedFileSharing\AppInfo\Application”}]},{“file”:"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php",“line”:128,“function”:“loadApp”,“class”:“OC_App”,“type”:"::",“args”:[“federatedfilesharing”]},{“file”:"/usr/local/www/nextcloud/lib/base.php",“line”:1004,“function”:“loadApps”,“class”:“OC_App”,“type”:"::",“args”:[]},{“file”:"/usr/local/www/nextcloud/index.php",“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:"::",“args”:[]}],“File”:"/usr/local/www/nextcloud/lib/private/Notification/Manager.php",“Line”:88,“CustomMessage”:"–"},“userAgent”:“phonetrack-android/0.0.18”,“version”:“19.0.0.12”}
{“reqId”:“obCmSeJNbR0YTE9ge2yy”,“level”:3,“time”:“2020-06-18T12:01:57+00:00”,“remoteAddr”:“185.106.28.207”,“user”:“gessel”,“app”:“jsresourceloader”,“method”:“GET”,“url”:"/index.php/apps/files/",“message”:“Could not find resource js/oc-backbone-webdav.js to load”,“userAgent”:“phonetrack-android/0.0.18”,“version”:“19.0.0.12”}
{“reqId”:“obCmSeJNbR0YTE9ge2yy”,“level”:3,“time”:“2020-06-18T12:01:57+00:00”,“remoteAddr”:“185.106.28.207”,“user”:“gessel”,“app”:“jsresourceloader”,“method”:“GET”,“url”:"/index.php/apps/files/",“message”:“Could not find resource js/systemtags/merged.js to load”,“userAgent”:“phonetrack-android/0.0.18”,“version”:“19.0.0.12”}

These errors still flood the logs, but the phone track app is working. It seems it might be best to disable all “apps” and externalize the functions wherever possible.