Nextcloud version 12.0.0:
Operating system and version Ubuntu 16.04:
Apache or nginx version nginx 1.10.0:
PHP version PHP 7.0.15-0ubuntu0.16.04.4:
Is this the first time you’ve seen this error?: Yes
####Can you reliably replicate it? (If so, please outline steps):
Yes (open up files app in browser with Nextcloud running under nginx)
The issue you are facing:
Multiple svg icons (including star.svg
and folder.svg
)do not appear when running Nextcloud under nginx with the subfolder configuration.
It looks like the configuration is attempting to serve svg files from root locations /core
and /apps
rather than /nextcloud/core
and /nextcloud/apps
. I’m very new to nginx. Suggestions welcome.
example errors from /var/log/nginx/error.log (ip address and host name changed):
2017/05/24 19:33:20 [error] 31475#31475: *1 open() "/var/www/html/core/img/actions/search-white.svg" failed (2: No such file or directory), client: gg.gg.gg.gg, server: gggg.com, request: "GET /core/img/actions/search-white.svg?v=1 HTTP/2.0", host: "gggg.com"
2017/05/24 19:33:20 [error] 31475#31475: *1 open() "/var/www/html/core/img/places/contacts.svg" failed (2: No such file or directory), client: gg.gg.gg.gg, server: gggg.com, request: "GET /core/img/places/contacts.svg?v=1 HTTP/2.0", host: "gggg.com"
2017/05/24 19:33:20 [error] 31475#31475: *1 open() "/var/www/html/apps/files/img/folder.svg" failed (2: No such file or directory), client: gg.gg.gg.gg, server: gggg.com, request: "GET /apps/files/img/folder.svg?v=1 HTTP/2.0", host: "gggg.com"
2017/05/24 19:33:20 [error] 31475#31475: *1 open() "/var/www/html/apps/files/img/recent.svg" failed (2: No such file or directory), client: gg.gg.gg.gg, server: gggg.com, request: "GET /apps/files/img/recent.svg?v=1 HTTP/2.0", host: "gggg.com"
nginx site config file (site name changed): https://pastebin.com/s2yBXKVh
Nextcloud Log: (identifying information removed, no errors relevant to page rendering)
Warning core Login failed: 'user' (Remote IP: 'xxx.xxx.xxx.xxx') 2017-05-24T18:45:28-0400
Warning core Login failed: 'user' (Remote IP: 'xxx.xxx.xxx.xxx') 2017-05-24T18:44:54-0400
Error PHP Undefined index: federationId at /var/www/html/nextcloud/settings/BackgroundJobs/VerifyUserData.php#234 2017-05-24T09:00:02-0400
Error PHP Undefined index: federationId at /var/www/html/nextcloud/settings/BackgroundJobs/VerifyUserData.php#234 2017-05-24T07:45:07-0400
Error PHP Undefined index: federationId at /var/www/html/nextcloud/settings/BackgroundJobs/VerifyUserData.php#234 2017-05-24T06:30:08-0400
nextcloud/config/config.php (site name and password salts removed): https://pastebin.com/Gpv9G1Jf