-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: ResourceLoader can't find a webroot [NC28] [snap-related] #42671
Comments
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: |
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. |
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 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? |
Any chance you can generate this behavior with |
For information this workaround currently works for my instance but I hope for a quick correction of this problem |
@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 |
Hi again! Any news on this @joshtrichards & @nickvergessen ? |
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 |
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: nextcloud-snap/nextcloud-snap#902
This might also be a duplicate of another issue: #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:
Steps to reproduce
28/edge
channel by using this command:snap install nextcloud --channel=28/edge
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?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
Nextcloud version: Nextcloud Hub 7 (28.0.1 Build:2024-01-09T23:45:16+00:00 cbeee9c)
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.
The text was updated successfully, but these errors were encountered: