-
-
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
Missing icons in Files app after 12.0.1 upgrade #6028
Comments
Sounds like permissions issue to me. Nextcloud needs to be able to generate CSS file out of existing (S)CSS ones. |
Yeah, thats what I thought too, but ran |
Hey @ladrua ! Does this looks like the bug you are seeing? |
@pachulo yes, exactly. |
Well, we are experiencing this behaviour also in the nextcloud snap, as described here nextcloud-snap/nextcloud-snap#334 (comment) We are seeing these errors in the Chrome dev tools console: With the error pointing to this piece of Javascript: My Javascript/CSS foo is weak, so I cannot really tell why it is adding that "cs" to the ".nav-icon-favorites" style: For example: Besides that, Firefox dev tools show this error when trying to inspect a missing icon: It basically says that it could not load it. For the record: I've also tried spinning a nextcloud Docker container with 12.0.1 (using this https://github.com/nextcloud/docker) and the icons are shown OK. |
I am not getting those error messages, actually no error messages at all. |
+1 this bug haunted me after the upgrade to 12.0.1 in alpine linux. Is there a way to downgrade? |
Running into same issue after upgrading to 12.0.1 NC LOG:
I use symlinks as follows:
Documentroot is Workaround:
|
@tatwaffe , Thanks for the pointer, but in my case, it was pointing to a different folder, thus assigning $tmpRoot='/usr/share/webapps/nextcloud' seems of no help:
The symlinks are all pointing to where they should except I couldn't see an apps_c pointer, fyi. |
Mine seems like the long outstanding bug as discussed here: #5081 and #5057. More specifically #5252 and #5289 (comment) which does not seem to address the issue. :-( |
Same problem here after upgrade 12.0.0->12.0.1 Log shows: {"reqId":"JsFxKMADXgdgMYC0IUEv","level":3,"time":"2017-08-11T19:34:31+00:00","remoteAddr":"192.168.1.1","user":"rnalrd","app":"lib","method":"GET","url":"\/index.php\/apps\/files\/?dir=\/","message":"ResourceLocator can not find a web root (root: \/usr\/share\/webapps\/nextcloud\/apps\/files, file: index.php\/css\/files\/792abc1ff25ef03a8bac471ecd9f6842-merged.css, webRoot: , throw: true)","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Ubuntu Chromium\/59.0.3071.109 Chrome\/59.0.3071.109 Safari\/537.36","version":"12.0.1.5"} {"reqId":"JsFxKMADXgdgMYC0IUEv","level":3,"time":"2017-08-11T19:34:31+00:00","remoteAddr":"192.168.1.1","user":"rnalrd","app":"lib","method":"GET","url":"\/index.php\/apps\/files\/?dir=\/","message":"ResourceLocator can not find a web root (root: \/usr\/share\/webapps\/nextcloud\/apps\/files_sharing, file: index.php\/css\/files_sharing\/792abc1ff25ef03a8bac471ecd9f6842-mergedAdditionalStyles.css, webRoot: , throw: true)","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Ubuntu Chromium\/59.0.3071.109 Chrome\/59.0.3071.109 Safari\/537.36","version":"12.0.1.5"} {"reqId":"JsFxKMADXgdgMYC0IUEv","level":3,"time":"2017-08-11T19:34:31+00:00","remoteAddr":"192.168.1.1","user":"rnalrd","app":"lib","method":"GET","url":"\/index.php\/apps\/files\/?dir=\/","message":"ResourceLocator can not find a web root (root: \/usr\/share\/webapps\/nextcloud\/apps\/files_texteditor, file: index.php\/css\/files_texteditor\/792abc1ff25ef03a8bac471ecd9f6842-merged.css, webRoot: , throw: true)","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Ubuntu Chromium\/59.0.3071.109 Chrome\/59.0.3071.109 Safari\/537.36","version":"12.0.1.5"} apps and config are symlinked outside the installation directory. |
@kyrofa logging in as administrator confirms that I'm running 12.0.1 and all integrity checks have passed. After reading this comment I moved the |
@sroracle, yep moving the entire /var/lib/nextcloud/apps to /usr/share/webapps/nextcloud/apps solved this issue. Maybe others have different mileages! Thanks! |
We hit this issue on the Cloudron NextCloud package as well (https://git.cloudron.io/cloudron/nextcloud-app/issues/22). We also symlink the apps outside the installation directory. Unfortunately, moving apps inside the installation dir is a no-go because on the Cloudron the installation is read-only. Is there any other workaround? |
@Soracle Alpine edge changed location for the built-in apps back to the
installation directory.
Can you check if it works in edge? If yes I can backport the change for
3.6-stable too.
Thanks
Il 11 ago 2017 10:45 PM, "sroracle" <[email protected]> ha scritto:
@kyrofa <https://github.com/kyrofa> logging in as administrator confirms
that I'm running 12.0.1 and all integrity checks have passed.
After reading this comment
<#5289 (comment)> I
moved the apps directory from /var/lib/nextcloud/apps to
/usr/share/webapps/nextcloud/apps (essentially in the document root), and
the issue appears to be resolved. For any fellow Alpine users out there,
this is a workaround if you are able and willing to move the apps
directory, but this will break future package updates (you'll have to
manually merge changes) unless we can get whoever maintains the Alpine
package to change this.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#6028 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACqrPEBldxpN-w-btKGg49I6z78eg9Xpks5sXL1ZgaJpZM4Owl-Y>
.
|
@rnalrd I added |
@rnalrd I could not get the setup proposed in that commit to work. It seems either nginx or nextcloud really dislikes having apps in two separate paths. I managed to get e.g. |
I can also confirm that in the Cloudron case, the issue is related to the symlinked |
Same problem on my Synology DS215j. The problem only appears when using PHP 7.0. If I switch to PHP 5.6, i can see the icons again. |
From my previous comment #6028 (comment) is there anyone with deeper understanding on the commit f0753cb and how to fix it for the symlink and snap case? Thanks a lot. |
I'm happy to test any ideas, here. We still have thousands of people stuck on v11 because of this. |
Unfortunately this is not trivial, I had no time for further analyzing this issue, yet. |
I don't actually know anything, but I'm poking about. Something seems funny here. The mapping is always |
Ah, I'm making some headway here. Here is where the SCSS URL rewrites happen. Relevant snippet:
Pretty sure a sprinkling of |
Otherwise, if the server root includes a symlink, the calculated webDir will be incorrect and CSS will break. Fix nextcloud#6028 Signed-off-by: Kyle Fazzari <[email protected]>
There we go, that fixes things. I'm not 100% sure it's fixed in the right place, but at least it fixes things. |
Currently, if the app path includes a symlink, the calculated webDir will be incorrect when generating SCSS and CSS will break. Use realpath when retrieving app path, and these issues go away. Fix nextcloud#6028 Signed-off-by: Kyle Fazzari <[email protected]>
Okay I'm more certain THAT is in the correct place. |
Currently, if the app path includes a symlink, the calculated webDir will be incorrect when generating CSS and URLs will be pointing to the wrong place, breaking CSS. Use realpath when retrieving app path, and these issues go away. Fix nextcloud#6028 Signed-off-by: Kyle Fazzari <[email protected]>
Currently, if the app path includes a symlink, the calculated webDir will be incorrect when generating CSS and URLs will be pointing to the wrong place, breaking CSS. Use realpath when retrieving app path, and these issues go away. Fix nextcloud#6028 Signed-off-by: Kyle Fazzari <[email protected]>
Currently, if the app path includes a symlink, the calculated webDir will be incorrect when generating CSS and URLs will be pointing to the wrong place, breaking CSS. Use realpath when retrieving app path, and these issues go away. Fix nextcloud#6028 Signed-off-by: Kyle Fazzari <[email protected]>
This issue seems to still be in 12.0.4 |
I have this issue on 12.0.4 too. |
Can you share a bit more information that the developers can reproduce this problem? Is this on new setups, only on updated, which webserver, ... |
Updated from 12.0.3 (and previously from every NextCloud release, and before that migrated from OwnCloud).
Apache 2.4.29-1 build with enabled http2 module by deb.sury.org, php-fpm 7.1.11 and PostgreSQL 9.6.6 from Ubuntu Server 17.10 repository. What else could help find root cause of this issue? |
Issue is gone after update to 12.0.5. |
Issue is fixed after update to 13.0.0 |
Steps to reproduce
occ upgrade
Expected behaviour
Normal files view.
Actual behaviour
Files view is missing all icons, seems like some css is not acting as it should either. No errors found in log or in browser.
Server configuration
Operating system:
ubuntu 14.04.5 docker image
Web server:
Apache 2.4
Database:
MySQL 5.7.19
PHP version:
PHP 7.0
Nextcloud version: (see Nextcloud admin page)
12.0.1.5
Updated from an older Nextcloud/ownCloud or fresh install:
12.0.0.39
Where did you install Nextcloud from:
Download stable sources from nextcloud.com
The text was updated successfully, but these errors were encountered: