45Drives / cockpit-file-sharing

A Cockpit plugin to easily manage samba and NFS file sharing.
GNU General Public License v3.0
596 stars 32 forks source link

icon fonts not loading (fontawesome.woff 404) #57

Closed markhuang1212 closed 2 years ago

markhuang1212 commented 2 years ago

Bug Info

Describe the bug Icon font is not loading on the page

To Reproduce Steps to reproduce the behavior:

  1. Install cockpit and cockpit-file-sharing on Fedora 36
  2. Open cockpit, click on "file sharing" (firefox and chrome both have the problem)
  3. Icon fonts are not loading Screenshot from 2022-09-12 09-50-45
  4. In dev console, there is a 404 request for the font file Screenshot from 2022-09-12 09-51-20

Expected behavior The font should load

Screenshots See above

Console Output

Client Side

Desktop (please complete the following information):

Server Side

The problem is the same on Fedora37 beta and cockpit 276

Version of cockpit-file-sharing: 2.4.5 on both Fedora 36 and 37 beta

joshuaboud commented 2 years ago

Hi, file sharing version 2 is no longer maintained in favor of the overhauled version 3. This is another victim of cockpit-project/cockpit#17486, where Cockpit decided to remove Patternfly from their build process for Cockpit version 273 and up. File sharing v3 and up does not have this issue, however we do not maintain packaging for Fedora and they only have v2.4.5 packaged. You can try opening a bug blocking https://bugzilla.redhat.com/show_bug.cgi?id=2050752 for the Fedora team to resolve the issue. To fix the issue yourself, you can either downgrade Cockpit to 272 or lower, or install the latest cockpit-file-sharing following the generic installation instructions in the readme (and also install cockpit-identities for managing samba users). Another option that might work is downloading the attached zip file and extracting the missing assets to where they belong:

curl -LO https://github.com/45Drives/cockpit-file-sharing/files/9550363/base1.zip
sudo unzip base1.zip -d /usr/share/cockpit/base1

I am not able to test this though so let me know if it works.

markhuang1212 commented 2 years ago

Unzipping the file works on fedora. I'll try to ask fedora team to update the package to version 3.

0ranki commented 2 years ago

This issue is closed, but I wanted to add that when I stumbled on the same issue on Rocky Linux 8, just extracting the fonts/ directory from the above zip file fixed the issue. On Rocky 8, the fonts/ directory did not exist at all initially.

godsyn commented 1 year ago

Should anyone else on rocky have this issue, the commands are:

curl -LO https://github.com/45Drives/cockpit-file-sharing/files/9550363/base1.zip
unzip base1.zip fonts/fontawesome.woff fonts/glyphicons.woff fonts/patternfly.woff -d /usr/share/cockpit/base1/