server
server copied to clipboard
[Bug]: ResourceLoader can't find a webroot [NC28] [snap-related]
⚠️ This issue respects the following points: ⚠️
- [X] This is a bug, not a question or a configuration/webserver/proxy issue.
- [X] This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- [X] Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- [X] I agree to follow Nextcloud's Code of Conduct.
Bug description
On the snap environment, Nextcloud 28 floots the log with errors like in this picture (see below for full log):
We haven't changed any configuration on the snap package. The issue also happens on updating from 27/stable
.
There has been issues in the past like this with a lot discussion. See: https://github.com/nextcloud-snap/nextcloud-snap/issues/902 This might also be a duplicate of another issue: https://github.com/nextcloud/server/issues/42493 But I made a new one because the different server configuration.
A fix for this issue is requied to be able for us to update our snap package. I hope we will find a fix before 28.0.2 has been released as this is a blocker issue for us.
Refs:
- https://github.com/nextcloud-snap/nextcloud-snap/pull/2626
- https://github.com/nextcloud-snap/nextcloud-snap/issues/2641
- https://github.com/nextcloud/server/issues/42493 (maybe related/duplicate?)
- https://github.com/nextcloud-snap/nextcloud-snap/issues/902 (previous issues)
Steps to reproduce
- Install Nextcloud via snap from the
28/edge
channel by using this command:snap install nextcloud --channel=28/edge
- Complete the installation (I did it via the web interface but that doesn't matter here).
- Go to Settings->Protocolls and see thee errors.
- Refresh the page and see more errors.
Expected behavior
The error does not exist and the webroot can be detected, like in NC27 and before.
Installation method
Community SNAP package
Nextcloud Server version
28
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
- [X] Default user-backend (database)
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
Configuration report
{
"system": {
"apps_paths": [
{
"path": "\/snap\/nextcloud\/current\/htdocs\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/snap\/nextcloud\/current\/nextcloud\/extra-apps",
"url": "\/extra-apps",
"writable": true
}
],
"supportedDatabases": [
"mysql"
],
"memcache.locking": "\\OC\\Memcache\\Redis",
"memcache.local": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 0
},
"log_type": "file",
"logfile": "\/var\/snap\/nextcloud\/current\/logs\/nextcloud.log",
"logfilemode": 416,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"ncsnaptest"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "28.0.1.1",
"overwrite.cli.url": "https:\/\/ncsnaptest",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"updater.release.channel": "daily",
"installed": true,
"maintenance": false
}
}
List of activated Apps
Enabled:
- activity: 2.20.0
- calendar: 4.6.2
- circles: 28.0.0-dev
- cloud_federation_api: 1.11.0
- comments: 1.18.0
- contacts: 5.5.1
- contactsinteraction: 1.9.0
- dashboard: 7.8.0
- dav: 1.29.1
- federatedfilesharing: 1.18.0
- federation: 1.18.0
- files: 2.0.0
- files_external: 1.20.0
- files_pdfviewer: 2.9.0
- files_reminders: 1.1.0
- files_sharing: 1.20.0
- files_trashbin: 1.18.0
- files_versions: 1.21.0
- firstrunwizard: 2.17.0
- logreader: 2.13.0
- lookup_server_connector: 1.16.0
- mail: 3.5.1
- nextcloud_announcements: 1.17.0
- notes: 4.9.2
- notifications: 2.16.0
- oauth2: 1.16.3
- password_policy: 1.18.0
- photos: 2.4.0
- privacy: 1.12.0
- provisioning_api: 1.18.0
- recommendations: 2.0.0
- related_resources: 1.3.0
- richdocuments: 8.3.0
- richdocumentscode: 23.5.604
- serverinfo: 1.18.0
- settings: 1.10.1
- sharebymail: 1.18.0
- spreed: 18.0.1
- support: 1.11.0
- survey_client: 1.16.0
- systemtags: 1.18.0
- text: 3.9.1
- theming: 2.3.0
- twofactor_backupcodes: 1.17.0
- twofactor_totp: 10.0.0-beta.2
- user_status: 1.8.1
- viewer: 2.2.0
- weather_status: 1.8.0
- workflowengine: 2.10.0
Disabled:
- admin_audit: 1.18.0
- bruteforcesettings: 2.8.0
- encryption: 2.16.0
- suspicious_login: 6.0.0
- user_ldap: 1.19.0
Nextcloud Signing status
No errors have been found.
Nextcloud Logs
{"reqId":"RyBtsQLKIIsfDwd1onqQ","level":2,"time":"2024-01-09T09:10:25+00:00","remoteAddr":"192.168.178.85","user":"--","app":"no app in context","method":"GET","url":"/index.php/apps/files/preview-service-worker.js","message":"Host ncsnaptest was not connected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.1.1","data":[]}
{"reqId":"RyBtsQLKIIsfDwd1onqQ","level":2,"time":"2024-01-09T09:10:25+00:00","remoteAddr":"192.168.178.85","user":"--","app":"no app in context","method":"GET","url":"/index.php/apps/files/preview-service-worker.js","message":"Host ncsnaptest was not connected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.1.1","data":[]}
{"reqId":"KP5KcMnPwqLzF1D2Fsvd","level":4,"time":"2024-01-09T09:11:36+00:00","remoteAddr":"192.168.178.85","user":"admin","app":"no app in context","method":"POST","url":"/index.php/settings/apps/enable","message":"Could not boot richdocuments: Call to undefined method OCA\\Richdocuments\\Service\\DiscoveryService::refetch()","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.1.1","exception":{"Exception":"Error","Message":"Call to undefined method OCA\\Richdocuments\\Service\\DiscoveryService::refetch()","Code":0,"Trace":[{"file":"/var/snap/nextcloud/39647/nextcloud/extra-apps/richdocuments/lib/AppInfo/Application.php","line":154,"function":"checkAndEnableCODEServer","class":"OCA\\Richdocuments\\AppInfo\\Application","type":"->"},{"file":"/snap/nextcloud/39647/htdocs/lib/private/AppFramework/Bootstrap/Coordinator.php","line":200,"function":"boot","class":"OCA\\Richdocuments\\AppInfo\\Application","type":"->"},{"file":"/snap/nextcloud/39647/htdocs/lib/private/App/AppManager.php","line":434,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/snap/nextcloud/39647/htdocs/lib/private/legacy/OC_App.php","line":136,"function":"loadApp","class":"OC\\App\\AppManager","type":"->"},{"file":"/snap/nextcloud/39647/htdocs/lib/private/legacy/OC_App.php","line":821,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/snap/nextcloud/39647/htdocs/lib/private/Installer.php","line":166,"function":"executeRepairSteps","class":"OC_App","type":"::"},{"file":"/snap/nextcloud/39647/htdocs/apps/settings/lib/Controller/AppSettingsController.php","line":454,"function":"installApp","class":"OC\\Installer","type":"->"},{"file":"/snap/nextcloud/39647/htdocs/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"enableApps","class":"OCA\\Settings\\Controller\\AppSettingsController","type":"->"},{"file":"/snap/nextcloud/39647/htdocs/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/snap/nextcloud/39647/htdocs/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/snap/nextcloud/39647/htdocs/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/snap/nextcloud/39647/htdocs/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/snap/nextcloud/39647/htdocs/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/snap/nextcloud/39647/nextcloud/extra-apps/richdocuments/lib/AppInfo/Application.php","Line":226,"message":"Could not boot richdocuments: Call to undefined method OCA\\Richdocuments\\Service\\DiscoveryService::refetch()","exception":{},"CustomMessage":"Could not boot richdocuments: Call to undefined method OCA\\Richdocuments\\Service\\DiscoveryService::refetch()"}}
{"reqId":"KP5KcMnPwqLzF1D2Fsvd","level":3,"time":"2024-01-09T09:11:36+00:00","remoteAddr":"192.168.178.85","user":"admin","app":"PHP","method":"POST","url":"/index.php/settings/apps/enable","message":"imagettftext(): Could not read font at /var/snap/nextcloud/39647/nextcloud/extra-apps/richdocuments/lib/Service/FontService.php#228","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.1.1","data":{"app":"PHP"}}
{"reqId":"KP5KcMnPwqLzF1D2Fsvd","level":3,"time":"2024-01-09T09:11:36+00:00","remoteAddr":"192.168.178.85","user":"admin","app":"PHP","method":"POST","url":"/index.php/settings/apps/enable","message":"imagettftext(): Could not read font at /var/snap/nextcloud/39647/nextcloud/extra-apps/richdocuments/lib/Service/FontService.php#228","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.1.1","data":{"app":"PHP"}}
{"reqId":"KP5KcMnPwqLzF1D2Fsvd","level":3,"time":"2024-01-09T09:11:36+00:00","remoteAddr":"192.168.178.85","user":"admin","app":"PHP","method":"POST","url":"/index.php/settings/apps/enable","message":"imagettftext(): Could not read font at /var/snap/nextcloud/39647/nextcloud/extra-apps/richdocuments/lib/Service/FontService.php#228","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.1.1","data":{"app":"PHP"}}
{"reqId":"jnmGpd4W3PE9M2HiWxEC","level":3,"time":"2024-01-09T09:11:45+00:00","remoteAddr":"192.168.178.85","user":"admin","app":"lib","method":"GET","url":"/index.php/apps/dashboard/","message":"ResourceLocator can not find a web root (root: /var/snap/nextcloud/current/nextcloud, file: extra-apps/spreed/l10n/de.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.1.1","data":{"app":"lib"}}
{"reqId":"jnmGpd4W3PE9M2HiWxEC","level":3,"time":"2024-01-09T09:11:45+00:00","remoteAddr":"192.168.178.85","user":"admin","app":"lib","method":"GET","url":"/index.php/apps/dashboard/","message":"ResourceLocator can not find a web root (root: /var/snap/nextcloud/current/nextcloud, file: extra-apps/richdocuments/l10n/de.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.1.1","data":{"app":"lib"}}
{"reqId":"jnmGpd4W3PE9M2HiWxEC","level":3,"time":"2024-01-09T09:11:45+00:00","remoteAddr":"192.168.178.85","user":"admin","app":"lib","method":"GET","url":"/index.php/apps/dashboard/","message":"ResourceLocator can not find a web root (root: /var/snap/nextcloud/current/nextcloud, file: extra-apps/notes/l10n/de.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.1.1","data":{"app":"lib"}}
{"reqId":"r6EAfGDYjXL0uuL2jrEn","level":2,"time":"2024-01-09T09:11:48+00:00","remoteAddr":"192.168.178.85","user":"admin","app":"no app in context","method":"GET","url":"/index.php/core/preview?fileId=47&x=256&y=256&c=be54cfbb33209e53490cab6aaa88ab9d","message":"Host ncsnaptest was not connected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.1.1","data":[]}
{"reqId":"QbbdcfA80rSzrgsxiGvs","level":2,"time":"2024-01-09T09:11:48+00:00","remoteAddr":"192.168.178.85","user":"admin","app":"no app in context","method":"GET","url":"/index.php/core/preview?fileId=48&x=256&y=256&c=8fe6c26cd4850873c85153e1de78afce","message":"Host ncsnaptest was not connected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.1.1","data":[]}
{"reqId":"yholodMyxskFclB3R0Ic","level":2,"time":"2024-01-09T09:11:48+00:00","remoteAddr":"192.168.178.85","user":"admin","app":"no app in context","method":"GET","url":"/index.php/core/preview?fileId=46&x=256&y=256&c=6b172938083d0c1aa97a4f5646486086","message":"Host ncsnaptest was not connected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.1.1","data":[]}
{"reqId":"EtLYsLVD4zcSHxOtWjtG","level":2,"time":"2024-01-09T09:11:48+00:00","remoteAddr":"192.168.178.85","user":"admin","app":"no app in context","method":"GET","url":"/index.php/core/preview?fileId=45&x=256&y=256&c=88fc5688886563bb19e786e1d9106123","message":"Host ncsnaptest was not connected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.1.1","data":[]}
{"reqId":"YnXB27pnnGRxBt4nKDjW","level":2,"time":"2024-01-09T09:11:48+00:00","remoteAddr":"192.168.178.85","user":"admin","app":"no app in context","method":"GET","url":"/index.php/core/preview?fileId=43&x=256&y=256&c=ae490b19f8d1b80a3271d759575adce8","message":"Host ncsnaptest was not connected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.1.1","data":[]}
{"reqId":"uraDyRbHkYlIpyMF8w97","level":3,"time":"2024-01-09T09:12:07+00:00","remoteAddr":"192.168.178.85","user":"admin","app":"lib","method":"GET","url":"/index.php/apps/files","message":"ResourceLocator can not find a web root (root: /var/snap/nextcloud/current/nextcloud, file: extra-apps/contacts/l10n/de.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.1.1","data":{"app":"lib"}}
{"reqId":"uraDyRbHkYlIpyMF8w97","level":3,"time":"2024-01-09T09:12:07+00:00","remoteAddr":"192.168.178.85","user":"admin","app":"lib","method":"GET","url":"/index.php/apps/files","message":"ResourceLocator can not find a web root (root: /var/snap/nextcloud/current/nextcloud, file: extra-apps/spreed/l10n/de.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.1.1","data":{"app":"lib"}}
{"reqId":"uraDyRbHkYlIpyMF8w97","level":3,"time":"2024-01-09T09:12:07+00:00","remoteAddr":"192.168.178.85","user":"admin","app":"lib","method":"GET","url":"/index.php/apps/files","message":"ResourceLocator can not find a web root (root: /var/snap/nextcloud/current/nextcloud, file: extra-apps/richdocuments/l10n/de.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.1.1","data":{"app":"lib"}}
{"reqId":"kmEmDPfVIwGHDyYLX7pw","level":3,"time":"2024-01-09T09:12:11+00:00","remoteAddr":"192.168.178.85","user":"admin","app":"lib","method":"GET","url":"/index.php/apps/files","message":"ResourceLocator can not find a web root (root: /var/snap/nextcloud/current/nextcloud, file: extra-apps/contacts/l10n/de.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.1.1","data":{"app":"lib"}}
{"reqId":"kmEmDPfVIwGHDyYLX7pw","level":3,"time":"2024-01-09T09:12:11+00:00","remoteAddr":"192.168.178.85","user":"admin","app":"lib","method":"GET","url":"/index.php/apps/files","message":"ResourceLocator can not find a web root (root: /var/snap/nextcloud/current/nextcloud, file: extra-apps/spreed/l10n/de.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.1.1","data":{"app":"lib"}}
{"reqId":"kmEmDPfVIwGHDyYLX7pw","level":3,"time":"2024-01-09T09:12:11+00:00","remoteAddr":"192.168.178.85","user":"admin","app":"lib","method":"GET","url":"/index.php/apps/files","message":"ResourceLocator can not find a web root (root: /var/snap/nextcloud/current/nextcloud, file: extra-apps/richdocuments/l10n/de.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.1.1","data":{"app":"lib"}}
{"reqId":"IcacFj7MtEso6J0Xh4AM","level":3,"time":"2024-01-10T05:49:22+00:00","remoteAddr":"","user":"--","app":"richdocuments","method":"","url":"--","message":"Failed to fetch the Collabora capabilities endpoint: cURL error 7: Failed to connect to ncsnaptest port 443: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://ncsnaptest/extra-apps/richdocumentscode/proxy.php?req=/hosting/capabilities","userAgent":"--","version":"28.0.1.1","exception":{"Exception":"GuzzleHttp\\Exception\\ConnectException","Message":"cURL error 7: Failed to connect to ncsnaptest port 443: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://ncsnaptest/extra-apps/richdocumentscode/proxy.php?req=/hosting/capabilities","Code":0,"Trace":[{"file":"/snap/nextcloud/39647/htdocs/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":158,"function":"createRejection","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/39647/htdocs/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":110,"function":"finishError","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::"},{"file":"/snap/nextcloud/39647/htdocs/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php","line":47,"function":"finish","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::"},{"file":"/snap/nextcloud/39647/htdocs/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":137,"function":"__invoke","class":"GuzzleHttp\\Handler\\CurlHandler","type":"->"},{"file":"/snap/nextcloud/39647/htdocs/lib/private/Http/Client/DnsPinMiddleware.php","line":121,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/39647/htdocs/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php","line":35,"function":"OC\\Http\\Client\\{closure}","class":"OC\\Http\\Client\\DnsPinMiddleware","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/39647/htdocs/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":31,"function":"__invoke","class":"GuzzleHttp\\PrepareBodyMiddleware","type":"->"},{"file":"/snap/nextcloud/39647/htdocs/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":71,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/39647/htdocs/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":63,"function":"__invoke","class":"GuzzleHttp\\RedirectMiddleware","type":"->"},{"file":"/snap/nextcloud/39647/htdocs/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php","line":75,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/39647/htdocs/3rdparty/guzzlehttp/guzzle/src/Client.php","line":331,"function":"__invoke","class":"GuzzleHttp\\HandlerStack","type":"->"},{"file":"/snap/nextcloud/39647/htdocs/3rdparty/guzzlehttp/guzzle/src/Client.php","line":168,"function":"transfer","class":"GuzzleHttp\\Client","type":"->"},{"file":"/snap/nextcloud/39647/htdocs/3rdparty/guzzlehttp/guzzle/src/Client.php","line":187,"function":"requestAsync","class":"GuzzleHttp\\Client","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/39647/htdocs/lib/private/Http/Client/Client.php","line":230,"function":"request","class":"GuzzleHttp\\Client","type":"->"},{"file":"/var/snap/nextcloud/39647/nextcloud/extra-apps/richdocuments/lib/Service/CapabilitiesService.php","line":165,"function":"get","class":"OC\\Http\\Client\\Client","type":"->"},{"file":"/var/snap/nextcloud/39647/nextcloud/extra-apps/richdocuments/lib/Backgroundjobs/ObtainCapabilities.php","line":40,"function":"fetchFromRemote","class":"OCA\\Richdocuments\\Service\\CapabilitiesService","type":"->"},{"file":"/snap/nextcloud/39647/htdocs/lib/private/BackgroundJob/Job.php","line":54,"function":"run","class":"OCA\\Richdocuments\\Backgroundjobs\\ObtainCapabilities","type":"->"},{"file":"/snap/nextcloud/39647/htdocs/lib/private/BackgroundJob/TimedJob.php","line":60,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/snap/nextcloud/39647/htdocs/cron.php","line":152,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/snap/nextcloud/39647/htdocs/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","Line":210,"message":"Failed to fetch the Collabora capabilities endpoint: cURL error 7: Failed to connect to ncsnaptest port 443: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://ncsnaptest/extra-apps/richdocumentscode/proxy.php?req=/hosting/capabilities","exception":{},"CustomMessage":"Failed to fetch the Collabora capabilities endpoint: cURL error 7: Failed to connect to ncsnaptest port 443: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://ncsnaptest/extra-apps/richdocumentscode/proxy.php?req=/hosting/capabilities"}}
{"reqId":"0i8yJYVtzEc2UatYqhxg","level":3,"time":"2024-01-10T05:58:54+00:00","remoteAddr":"192.168.178.85","user":"admin","app":"lib","method":"GET","url":"/index.php/apps/dashboard/","message":"ResourceLocator can not find a web root (root: /var/snap/nextcloud/current/nextcloud, file: extra-apps/spreed/l10n/de.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.1.1","data":{"app":"lib"}}
{"reqId":"0i8yJYVtzEc2UatYqhxg","level":3,"time":"2024-01-10T05:58:54+00:00","remoteAddr":"192.168.178.85","user":"admin","app":"lib","method":"GET","url":"/index.php/apps/dashboard/","message":"ResourceLocator can not find a web root (root: /var/snap/nextcloud/current/nextcloud, file: extra-apps/richdocuments/l10n/de.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.1.1","data":{"app":"lib"}}
{"reqId":"0i8yJYVtzEc2UatYqhxg","level":3,"time":"2024-01-10T05:58:54+00:00","remoteAddr":"192.168.178.85","user":"admin","app":"lib","method":"GET","url":"/index.php/apps/dashboard/","message":"ResourceLocator can not find a web root (root: /var/snap/nextcloud/current/nextcloud, file: extra-apps/notes/l10n/de.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.1.1","data":{"app":"lib"}}
Additional info
Nextcloud version: Nextcloud Hub 7 (28.0.1 Build:2024-01-09T23:45:16+00:00 cbeee9c104044722050833e4d4f654f1e77891ca)
Side info: We usually test the daily builds of a new major Nextcloud release before we actually upgrade our beta and stable packages. That's why a daily version has been used here.
I searched a bit around in the source code by using the an old PR as reference. Seems to be this function where the error throws. I hope this might help you finding the issue: https://github.com/nextcloud/server/blob/stable28/lib/private/Template/CSSResourceLocator.php#L81C2-L106C3
Is this solved on 28.0.2 @Pilzinsel64 ?
@pachulo As far as I can tell the error does not floot the log anymore at least and only appears once after installation/update. The instance seems to work fine otherwise, I didn't see any downside. I suggest to give it a try and merge our PR after 27.1.6snap1 has been merged. Like this I can try it on my production instance (that have many apps) for a while and see if there are any downsides over time.
Alright, after testing 28.0.2 on my prod instance, I can still see some errors like that after each single page load. None of that apps are installed by default in Nextcloud snap but might be installed on many servers.
On all developers reading this: I ask here one last time for your help for finding a simple solution either for you (so next minor release: 28.0.3) or for us (the smap team) to configure/implement in our package.
the error does not floot the log anymore
I said this before. I tested this without recommended apps insstalled. As soon as you install one of them you have wonderful log flooting errors like in the picture above.
Can you help us here @nickvergessen? Thanks!
Any chance you can generate this behavior with log.backtrace
enabled in your test environment? Since it's not throwing, there's a lot of guesswork involved here.
https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#log-backtrace
https://github.com/nextcloud/server/issues/42493#issuecomment-1874067078
For information this workaround currently works for my instance but I hope for a quick correction of this problem
Any chance you can generate this behavior with
log.backtrace
enabled in your test environment?
@joshtrichards Sure, see:
{"reqId":"IbXTMIU3jnQyzyllAHmY","level":3,"time":"2024-02-05T05:04:02+00:00","remoteAddr":"5.100.6.61","user":"schepas","app":"lib","method":"GET","url":"/index.php/settings/admin/logging","message":"ResourceLocator can not find a web root (root: /var/snap/nextcloud/current/nextcloud, file: extra-apps/collectives/l10n/de.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.2.5","data":{"app":"lib","backtrace":[{"file":"/snap/nextcloud/40244/htdocs/lib/private/Log.php","line":151,"function":"log","class":"OC\\Log","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Log/PsrLoggerAdapter.php","line":130,"function":"error","class":"OC\\Log","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Template/ResourceLocator.php","line":173,"function":"error","class":"OC\\Log\\PsrLoggerAdapter","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Template/ResourceLocator.php","line":101,"function":"append","class":"OC\\Template\\ResourceLocator","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Template/JSResourceLocator.php","line":143,"function":"appendIfExist","class":"OC\\Template\\ResourceLocator","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Template/JSResourceLocator.php","line":67,"function":"appendScriptIfExist","class":"OC\\Template\\JSResourceLocator","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Template/ResourceLocator.php","line":73,"function":"doFind","class":"OC\\Template\\JSResourceLocator","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/TemplateLayout.php","line":401,"function":"find","class":"OC\\Template\\ResourceLocator","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/TemplateLayout.php","line":246,"function":"findJavascriptFiles","class":"OC\\TemplateLayout","type":"::"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/legacy/OC_Template.php","line":142,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/public/AppFramework/Http/TemplateResponse.php","line":211,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/AppFramework/Http/Dispatcher.php","line":182,"function":"render","class":"OCP\\AppFramework\\Http\\TemplateResponse","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/snap/nextcloud/40244/htdocs/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}]}}
{"reqId":"IbXTMIU3jnQyzyllAHmY","level":3,"time":"2024-02-05T05:04:02+00:00","remoteAddr":"5.100.6.61","user":"schepas","app":"lib","method":"GET","url":"/index.php/settings/admin/logging","message":"ResourceLocator can not find a web root (root: /var/snap/nextcloud/current/nextcloud, file: extra-apps/side_menu/l10n/de.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.2.5","data":{"app":"lib","backtrace":[{"file":"/snap/nextcloud/40244/htdocs/lib/private/Log.php","line":151,"function":"log","class":"OC\\Log","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Log/PsrLoggerAdapter.php","line":130,"function":"error","class":"OC\\Log","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Template/ResourceLocator.php","line":173,"function":"error","class":"OC\\Log\\PsrLoggerAdapter","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Template/ResourceLocator.php","line":101,"function":"append","class":"OC\\Template\\ResourceLocator","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Template/JSResourceLocator.php","line":143,"function":"appendIfExist","class":"OC\\Template\\ResourceLocator","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Template/JSResourceLocator.php","line":67,"function":"appendScriptIfExist","class":"OC\\Template\\JSResourceLocator","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Template/ResourceLocator.php","line":73,"function":"doFind","class":"OC\\Template\\JSResourceLocator","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/TemplateLayout.php","line":401,"function":"find","class":"OC\\Template\\ResourceLocator","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/TemplateLayout.php","line":246,"function":"findJavascriptFiles","class":"OC\\TemplateLayout","type":"::"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/legacy/OC_Template.php","line":142,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/public/AppFramework/Http/TemplateResponse.php","line":211,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/AppFramework/Http/Dispatcher.php","line":182,"function":"render","class":"OCP\\AppFramework\\Http\\TemplateResponse","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/snap/nextcloud/40244/htdocs/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}]}}
{"reqId":"IbXTMIU3jnQyzyllAHmY","level":3,"time":"2024-02-05T05:04:02+00:00","remoteAddr":"5.100.6.61","user":"schepas","app":"lib","method":"GET","url":"/index.php/settings/admin/logging","message":"ResourceLocator can not find a web root (root: /var/snap/nextcloud/current/nextcloud, file: extra-apps/bookmarks/l10n/de.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.2.5","data":{"app":"lib","backtrace":[{"file":"/snap/nextcloud/40244/htdocs/lib/private/Log.php","line":151,"function":"log","class":"OC\\Log","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Log/PsrLoggerAdapter.php","line":130,"function":"error","class":"OC\\Log","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Template/ResourceLocator.php","line":173,"function":"error","class":"OC\\Log\\PsrLoggerAdapter","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Template/ResourceLocator.php","line":101,"function":"append","class":"OC\\Template\\ResourceLocator","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Template/JSResourceLocator.php","line":143,"function":"appendIfExist","class":"OC\\Template\\ResourceLocator","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Template/JSResourceLocator.php","line":67,"function":"appendScriptIfExist","class":"OC\\Template\\JSResourceLocator","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Template/ResourceLocator.php","line":73,"function":"doFind","class":"OC\\Template\\JSResourceLocator","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/TemplateLayout.php","line":401,"function":"find","class":"OC\\Template\\ResourceLocator","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/TemplateLayout.php","line":246,"function":"findJavascriptFiles","class":"OC\\TemplateLayout","type":"::"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/legacy/OC_Template.php","line":142,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/public/AppFramework/Http/TemplateResponse.php","line":211,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/AppFramework/Http/Dispatcher.php","line":182,"function":"render","class":"OCP\\AppFramework\\Http\\TemplateResponse","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/snap/nextcloud/40244/htdocs/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}]}}
{"reqId":"IbXTMIU3jnQyzyllAHmY","level":3,"time":"2024-02-05T05:04:02+00:00","remoteAddr":"5.100.6.61","user":"schepas","app":"lib","method":"GET","url":"/index.php/settings/admin/logging","message":"ResourceLocator can not find a web root (root: /var/snap/nextcloud/current/nextcloud, file: extra-apps/deck/l10n/de.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.2.5","data":{"app":"lib","backtrace":[{"file":"/snap/nextcloud/40244/htdocs/lib/private/Log.php","line":151,"function":"log","class":"OC\\Log","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Log/PsrLoggerAdapter.php","line":130,"function":"error","class":"OC\\Log","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Template/ResourceLocator.php","line":173,"function":"error","class":"OC\\Log\\PsrLoggerAdapter","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Template/ResourceLocator.php","line":101,"function":"append","class":"OC\\Template\\ResourceLocator","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Template/JSResourceLocator.php","line":143,"function":"appendIfExist","class":"OC\\Template\\ResourceLocator","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Template/JSResourceLocator.php","line":67,"function":"appendScriptIfExist","class":"OC\\Template\\JSResourceLocator","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Template/ResourceLocator.php","line":73,"function":"doFind","class":"OC\\Template\\JSResourceLocator","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/TemplateLayout.php","line":401,"function":"find","class":"OC\\Template\\ResourceLocator","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/TemplateLayout.php","line":246,"function":"findJavascriptFiles","class":"OC\\TemplateLayout","type":"::"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/legacy/OC_Template.php","line":142,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/public/AppFramework/Http/TemplateResponse.php","line":211,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/AppFramework/Http/Dispatcher.php","line":182,"function":"render","class":"OCP\\AppFramework\\Http\\TemplateResponse","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/snap/nextcloud/40244/htdocs/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}]}}
{"reqId":"IbXTMIU3jnQyzyllAHmY","level":3,"time":"2024-02-05T05:04:02+00:00","remoteAddr":"5.100.6.61","user":"schepas","app":"lib","method":"GET","url":"/index.php/settings/admin/logging","message":"ResourceLocator can not find a web root (root: /var/snap/nextcloud/current/nextcloud, file: extra-apps/tables/l10n/de.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.2.5","data":{"app":"lib","backtrace":[{"file":"/snap/nextcloud/40244/htdocs/lib/private/Log.php","line":151,"function":"log","class":"OC\\Log","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Log/PsrLoggerAdapter.php","line":130,"function":"error","class":"OC\\Log","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Template/ResourceLocator.php","line":173,"function":"error","class":"OC\\Log\\PsrLoggerAdapter","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Template/ResourceLocator.php","line":101,"function":"append","class":"OC\\Template\\ResourceLocator","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Template/JSResourceLocator.php","line":143,"function":"appendIfExist","class":"OC\\Template\\ResourceLocator","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Template/JSResourceLocator.php","line":67,"function":"appendScriptIfExist","class":"OC\\Template\\JSResourceLocator","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Template/ResourceLocator.php","line":73,"function":"doFind","class":"OC\\Template\\JSResourceLocator","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/TemplateLayout.php","line":401,"function":"find","class":"OC\\Template\\ResourceLocator","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/TemplateLayout.php","line":246,"function":"findJavascriptFiles","class":"OC\\TemplateLayout","type":"::"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/legacy/OC_Template.php","line":142,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/public/AppFramework/Http/TemplateResponse.php","line":211,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/AppFramework/Http/Dispatcher.php","line":182,"function":"render","class":"OCP\\AppFramework\\Http\\TemplateResponse","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/snap/nextcloud/40244/htdocs/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/snap/nextcloud/40244/htdocs/index.php","line":39,"function":"handleRequest","class":"OC","type":
Hope that helps. :)
Please remind that /var/snap/nextcloud/current/
already is a symlink to /var/snap/nextcloud/INSERTNUMBERHERE/
as snap works like this to always keep a few previous state of configs and app data files. This enables the user to revert back at any time (and do whatever snap intended by this behavior).
Hi again! Any news on this @joshtrichards & @nickvergessen ? Thanks!
Cc: @susnux & @akhil1508 - Any chance either/both of you can glance at this issue + #42493 (which is similar)? This one is impacting the v28 Nextcloud Snap. Maybe there's an interaction between #38207 and #40898 that introduced some breaking behavior here? Shouldn't these misses just be silently handled?
yes, op cit pull request resolves the issue in my installation