You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When having multiple apps_paths configured, nextcloud can't locate some files in the app2 directory (for spreed, contacts, calendar).
is the normal nextcloud webroot dir where all files from the tarball are located.
is outside the nextcloud webroot dir. If I move the apps2 dir inside than the whole works without any issue.
If accessing an app from app2 store I see following in nextcloud.log: {"reqId":"rzO1sbIASisnFsOLxDxT","level":3,"time":"2018-07-29T14:34:08+02:00","remoteAddr":"2001:16b8:55eb:9efc:9f6:65a0:6b43:862b","user":"XXX","app":"lib","method":"GET","url":"\/index.php\/apps\/spreed\/","message":"ResourceLocator can not find a web root (root: <otherdir>\/apps2\/spreed, file: index.php\/css\/spreed\/93dd-bdec-autocomplete.css, webRoot: , throw: true)","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"13.0.5.2"}
As the app2 dir is not inside ResourceLocator->mapping.
I think the correct solution would be to add the app_paths and urls to the intialization of ResourceLocator. Only in lib/private/TemplateLayout.php the classes CSSresourceLocator and JSResourceLocator are used.
I'm seeing the same errors on my site. Though, strangely, looking at it in the browser, the mentioned CSS files are loaded successfully despite these errors.
The Talk app also seems to remain broken, even if I manually fix the code to stop the errors occurring (while the contacts app works regardless of the errors).
When having multiple apps_paths configured, nextcloud can't locate some files in the app2 directory (for spreed, contacts, calendar).
is the normal nextcloud webroot dir where all files from the tarball are located. is outside the nextcloud webroot dir. If I move the apps2 dir inside than the whole works without any issue.here part of the config.php:
If accessing an app from app2 store I see following in nextcloud.log:
{"reqId":"rzO1sbIASisnFsOLxDxT","level":3,"time":"2018-07-29T14:34:08+02:00","remoteAddr":"2001:16b8:55eb:9efc:9f6:65a0:6b43:862b","user":"XXX","app":"lib","method":"GET","url":"\/index.php\/apps\/spreed\/","message":"ResourceLocator can not find a web root (root: <otherdir>\/apps2\/spreed, file: index.php\/css\/spreed\/93dd-bdec-autocomplete.css, webRoot: , throw: true)","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"13.0.5.2"}
As the app2 dir is not inside ResourceLocator->mapping.
I think the correct solution would be to add the app_paths and urls to the intialization of ResourceLocator. Only in lib/private/TemplateLayout.php the classes CSSresourceLocator and JSResourceLocator are used.
https://github.com/nextcloud/server/blob/master/lib/private/TemplateLayout.php#L277
My first guess/workaround is to replace this with a dict with all apps root ala:
but as I'm not familiar with the nextcloud so it may be the wrong place to fix this, another option is to add the
foreach
loop to ResourceLocator...With nextcloud 12 I solved the issue by adding a symbolc link to /apps2, but CSSResourceLocator now using realpath so this won't work.
https://github.com/nextcloud/server/blob/master/lib/private/Template/CSSResourceLocator.php#L82
This may related/fix #5289, Wonderfall/dockerfiles#264
Operating system:
Debian, stable 9.5
Web server:
ngnix
Database:
postgres
PHP version:
7.0.30
Nextcloud version: (see Nextcloud admin page)
13.0.5.2
The text was updated successfully, but these errors were encountered: