Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-54067

Confluence UI shows garbled or corrupt text on CAPTCHA, macros and/or diagrams due to missing fonts in Linux

    • Icon: Bug Bug
    • Resolution: Answered
    • Icon: High High
    • None
    • 6.2.1, 6.3.4, 6.4.0, 6.5.2, 6.6.0
    • Server - Platform

      Macro header shows garbled text and weird symbols in Linux. Captcha appears warped and unreadable.

      Environment
      1. Linux distributions, especially RedHat (RHEL)  and CentOS
      2. Confluence v6 and above
      Steps to reproduce
      1. Insert any macro having a title, like the Panel Macro
      Expected Behavior

      Macro header (the name of the macro) renders properly

      Actual Behavior

      Strange characters appear in place of the macro name.

      Workaround
      1. Stop Confluence
      2. Make one or both of the following changes:
      3. Rebuild the font cache by using the following command:
        fc-cache -s
        
      4. Clear the plugin cache as described at How to clear Confluence plugins cache
      5. Rebuild the content index as described at How to Rebuild the Content Indexes From Scratch on Confluence Server
      6. Start Confluence
      7. Clear browser cache and verify fonts are displayed correctly
      Notes

      Confluence requires some fonts to work in Linux distributions that are not included in the installation package or in the documentation as a requirement.

      In some cases, the workaround also works for file previews such as Office files and PDF.

            [CONFSERVER-54067] Confluence UI shows garbled or corrupt text on CAPTCHA, macros and/or diagrams due to missing fonts in Linux

            The workaround procedure worked for me https://confluence.atlassian.com/confkb/confluence-ui-shows-garbled-or-corrupt-text-on-captcha-macros-and-or-diagrams-due-to-missing-fonts-938027858.html

            I did not do a full content re-index simply ran from interface, i did do the full plugin rebuilt

            Please ensure you clear your browser cache

            Stuart James added a comment - The workaround procedure worked for me https://confluence.atlassian.com/confkb/confluence-ui-shows-garbled-or-corrupt-text-on-captcha-macros-and-or-diagrams-due-to-missing-fonts-938027858.html I did not do a full content re-index simply ran from interface, i did do the full plugin rebuilt Please ensure you clear your browser cache

            Hi Pavel,

            Thank you for the update.

            The issue you are experiencing occurs due to this issue: https://bugzilla.redhat.com/show_bug.cgi?id=1484094. As this issue is intermittent, every time you restart Confluence, you may or may not observe it. So to be on the safe side, it's best if you remove the lyx-fonts package once and for all.

            We will resolve the bug report with a reference to the updated Knowledge Base article. For more information please visit: Confluence UI shows garbled or corrupt text on CAPTCHA, macros and/or diagrams due to missing fonts.

            Regards,
            George

            George Lipatov added a comment - Hi Pavel, Thank you for the update. The issue you are experiencing occurs due to this issue: https://bugzilla.redhat.com/show_bug.cgi?id=1484094 . As this issue is intermittent, every time you restart Confluence, you may or may not observe it. So to be on the safe side, it's best if you remove the lyx-fonts package once and for all. We will resolve the bug report with a reference to the updated Knowledge Base article. For more information please visit: Confluence UI shows garbled or corrupt text on CAPTCHA, macros and/or diagrams due to missing fonts . Regards, George

            Hi George, uninstalled the  lyx-fonts package, but before restarting, I went back to see the issue (allowing users to finish editing), and I couldn't find anywhere the issue presents itself. Re-installed the package, but the issue still does not present itself. Could it be that it was resolved by another mechanism (like re-indexing or cache clearing) ?

            Pavel Savchenko added a comment - Hi George, uninstalled the  lyx-fonts package, but before restarting, I went back to see the issue (allowing users to finish editing), and I couldn't find anywhere the issue presents itself. Re-installed the package, but the issue still does not present itself. Could it be that it was resolved by another mechanism (like re-indexing or cache clearing) ?

            Hi Andrey and Pavel,

            Thanks for contacting Atlassian.

            Could you please check whether you have lyx-fonts installed (Lyx/MathML fonts - A collection of Math symbol fonts for lyx).
            Removing this package could solve the problem. Please do not forget to restart Confluence.

            Thank you,
            George

            George Lipatov added a comment - Hi Andrey and Pavel, Thanks for contacting Atlassian. Could you please check whether you have lyx-fonts installed (Lyx/MathML fonts - A collection of Math symbol fonts for lyx). Removing this package could solve the problem. Please do not forget to restart Confluence. Thank you, George

            Pavel Savchenko added a comment - - edited

            Same for me, did the font install, plugin cache cleared and indexes rebuilt, nothing helps  - on Confluence server 6.6

            Pavel Savchenko added a comment - - edited Same for me, did the font install, plugin cache cleared and indexes rebuilt, nothing helps  - on Confluence server 6.6

            Nothing helped in my case with confluence 6.1.0

            Andrey Aristarkhov added a comment - Nothing helped in my case with confluence 6.1.0

            Justin Vogel added a comment - - edited

            Hey,

            just wanted to state that this still takes effect in the latest confluence version (6.5.2 at the time of writing).

            I was getting crazy by searching a solution for that problem and tried different things from the Atlassian Documentation and some other people's posts.
            Removing lyx-fonts finally got it fixed, but on the minimal installation, if you use nginx, you first will discover that fontconfig (and by that nginx too) depends on that package. Some packages i installed by following this and this documentation entry fixed the dependency (think it's something contained in the fonts group).

            Btw many thanks to you, Pavel!

            Justin

            Justin Vogel added a comment - - edited Hey, just wanted to state that this still takes effect in the latest confluence version (6.5.2 at the time of writing). I was getting crazy by searching a solution for that problem and tried different things from the Atlassian Documentation and some other people's posts. Removing lyx-fonts finally got it fixed, but on the minimal installation, if you use nginx, you first will discover that fontconfig (and by that nginx too) depends on that package. Some packages i installed by following  this  and this  documentation entry fixed the dependency (think it's something contained in the fonts group). Btw many thanks to you, Pavel! Justin

            Hi,

            The problem is caused by lyx fonts (lyx-fonts-2.2.3-1.el7.noarch) in CentOS 7.4.1708, which are part of the fontconfig-2.10.95-11.el7.x86_64 package update.
            As a workaround of this error, just uninstall lyx-fonts, delete cache plugin, refresh OS font cache and restart Confluence or better restart server.

            Affected version Confluence 5.10.4 and 6.3.3

            Pavel

            Pavel Junek [MoroSystems] added a comment - - edited Hi, The problem is caused by lyx fonts (lyx-fonts-2.2.3-1.el7.noarch) in CentOS 7.4.1708, which are part of the fontconfig-2.10.95-11.el7.x86_64 package update. As a workaround of this error, just uninstall lyx-fonts, delete cache plugin, refresh OS font cache and restart Confluence or better restart server. Affected version Confluence 5.10.4 and 6.3.3 Pavel

              glipatov George Lipatov
              mzakaria@atlassian.com Zulfarhan Zakaria (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              22 Start watching this issue

                Created:
                Updated:
                Resolved: