Closed markhuang1212 closed 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.
Unzipping the file works on fedora. I'll try to ask fedora team to update the package to version 3.
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.
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/
Bug Info
Describe the bug Icon font is not loading on the page
To Reproduce Steps to reproduce the behavior:
cockpit
andcockpit-file-sharing
on Fedora 36Expected behavior The font should load
Screenshots See above
Console Output
downloadable font: download failed (font-family: "FontAwesome" style:normal weight:400 stretch:100 src index:0): status=2147746065 source: https://server1.hmpg.dev/cockpit/$5e3a684201e1c869874b8329cc82bcace4898145a8ec126c6209130165e28f21/base1/fonts/fontawesome.woff?v=4.2.0
GET https://server1.hmpg.dev/cockpit/$5e3a684201e1c869874b8329cc82bcace4898145a8ec126c6209130165e28f21/base1/fonts/fontawesome.woff?v=4.2.0 net::ERR_ABORTED 404
file-sharing-patternfly.css:1
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