-
-
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]: ResourceLocator can not find a web root #42493
Comments
Is there a reason |
I have the same error since moving from 27 to 28 : |
In the additional info section I linked an issue where it was first diagnosed and the pull request which is likely the cause. |
Running into this as well with nextcloud27 and nextcloud28 on NixOS 23.11. |
Effectively @Deric-W I found this in the documentation : "Apps paths can be located outside the server root. However, for any path outside the server root, you need to create a symlink in the server root that points url to path. For instance, if path is /var/local/lib/nextcloud/apps, and url is /apps2, then you would do this in the server root: ln -sf /var/local/lib/nextcloud/apps ./apps2" Even if I don't like the workarounds it works for the moment and avoids overloading my logs. |
This comment was marked as spam.
This comment was marked as spam.
Another potentially relevant prior PR: #38207 |
Bug description
After upgrading Nextcloud from 27 to 28 on a system running NixOS 23.11 the server log contains the following message every time a user visits a page while the UI language is german (probably works with other languages too):
The message appears multiple times for different apps and the UI is still properly localized.
Steps to reproduce
Expected behavior
No errors should be logged.
Installation method
Other Community project
Nextcloud Server version
28
Operating system
Other
PHP engine version
PHP 8.2
Web server
Nginx
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 22 to 23)
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
The bug was first reported in NixOS/nixpkgs#275293 and likely a result of #40898 and the way NixOS is setting up Nextcloud:
The server root is located somewhere under
/nix/store
while some app directories are stored in different directories.To allow Nextcloud to find them
apps_paths
contains their paths (which are located under/var/lib/nextcloud
and are sometimes symlinks) and the url which is handled by the Nginx configuation.The problem is that these paths (and the ones pointed to by the symlinks) do not always start from the server root which makes the
findWebRoot
method ofResourceLocator
always returnnull
, producing the error.I am not sure if according to the documentation the way of handling external app paths is wrong since it worked with Nextcloud 27.
The text was updated successfully, but these errors were encountered: