Bug 486340 - Failure to show firewalld status
Summary: Failure to show firewalld status
Status: CONFIRMED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_firewall (show other bugs)
Version: 6.0.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-30 11:40 UTC by Gabriel Barros
Modified: 2024-04-30 19:21 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Firewall disabled (136.05 KB, image/png)
2024-04-30 19:05 UTC, medin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriel Barros 2024-04-30 11:40:27 UTC
SUMMARY
Firewall status show as disabled when it is enabled.


STEPS TO REPRODUCE
1. `firewall-cmd --state` shows "running"
2. `systemctl status firewalld.service` shows "active"/"enabled".
3. Open the KDE settings, connection, firewall.
4. type in user password

OBSERVED RESULT
status is disabled

EXPECTED RESULT
correct status and rules shown.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.8.7-arch1-2 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 PRO 6650U with Radeon Graphics
Memory: 30.7 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: HP
Product Name: HP EliteBook 845 14 inch G9 Notebook PC
System Version: SBKPF

ADDITIONAL INFORMATION
```
● firewalld.service - firewalld - dynamic firewall daemon
     Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; preset: disabled)
     Active: active (running) since Tue 2024-04-30 05:59:04 -03; 2h 24min ago
       Docs: man:firewalld(1)
   Main PID: 715 (firewalld)
      Tasks: 2 (limit: 37657)
     Memory: 55.8M (peak: 57.4M)
        CPU: 346ms
     CGroup: /system.slice/firewalld.service
             └─715 /usr/bin/python /usr/bin/firewalld --nofork --nopid

Apr 30 05:59:03 systemd[1]: Starting firewalld - dynamic firewall daemon...
Apr 30 05:59:04 systemd[1]: Started firewalld - dynamic firewall daemon.
```

no other backends available
```
# systemctl status ufw.service 
Unit ufw.service could not be found.
```

about screen for firewall settings panel shows:
Backend: firewalld
Version: 2.1.1

nft frontends installed on system: iptables-nft, nftables, firewalld.

$ iptables --list
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         

$ firewall-cmd --get-active-zones
public (default)
  interfaces: wifi

$ firewall-cmd --info-zone=public
public (default, active)
  target: default
  ingress-priority: 0
  egress-priority: 0
  icmp-block-inversion: no
  interfaces: wlp1s0
  sources: 
  services: dhcpv6-client ssh portknock exitlesstornode wg8
  ports: 
  protocols: 
  forward: yes
  masquerade: no
  forward-ports: 
  source-ports: 
  icmp-blocks: 
  rich rules:
Comment 1 Gabriel Barros 2024-04-30 16:01:48 UTC
$ systemsettings
Using fontconfig file: "/home/user/.config/fontconfig/fonts.conf"

(clicking connections)
qrc:/qt/qml/org/kde/kcmutils/SimpleKCM.qml:94: ReferenceError: footerParent is not defined
qrc:/qt/qml/org/kde/systemsettings/CategoryItem.qml:33:13: Unable to assign IconPropertiesGroup_QMLTYPE_28 to IconPropertiesGroup_QMLTYPE_28
qrc:/qt/qml/org/kde/systemsettings/CategoryItem.qml:33:13: Unable to assign IconPropertiesGroup_QMLTYPE_28 to IconPropertiesGroup_QMLTYPE_28
qrc:/qt/qml/org/kde/systemsettings/CategoryItem.qml:33:13: Unable to assign IconPropertiesGroup_QMLTYPE_28 to IconPropertiesGroup_QMLTYPE_28
qrc:/qt/qml/org/kde/systemsettings/CategoryItem.qml:33:13: Unable to assign IconPropertiesGroup_QMLTYPE_28 to IconPropertiesGroup_QMLTYPE_28
qml: Page SubCategoryPage_QMLTYPE_111(0x618902039f00) is already in the PageRow
qml: Pushed pages do not conform to the rules. Please check the documentation.
qml: push (file:///usr/lib/qt6/qml/org/kde/kirigami/PageRow.qml:223)
onActiveSubCategoryRowChanged (qrc:/qt/qml/org/kde/systemsettings/SubCategoryPage.qml:175)
expression for onClicked (qrc:/qt/qml/org/kde/systemsettings/CategoriesPage.qml:192)
kf.networkmanagerqt: void NetworkManager::ConnectionPrivate::onPropertiesChanged(const QVariantMap&) Unhandled property "VersionId"
kf.networkmanagerqt: void NetworkManager::ConnectionPrivate::onPropertiesChanged(const QVariantMap&) Unhandled property "VersionId"

(clicking firewall)
qrc:/qt/qml/org/kde/kcmutils/SimpleKCM.qml:48: TypeError: Cannot read property 'name' of null
ufw.client: Ufw is loaded? false
firewalld.client: Firewalld is loaded? 0
qml: services available:  []
qrc:/kcm/kcm_firewall/main.qml:29:5: QML OverlaySheet: Binding loop detected for property "implicitHeight"
firewalld.job: firewalld direct:  "getAllRules" QList()
firewalld.job: firewalld zone interface:  "getServices" QList(QVariant(QString, ""))
qrc:/qt/qml/org/kde/desktop/HorizontalHeaderView.qml:38:9: Unable to assign [undefined] to QString
qrc:/qt/qml/org/kde/desktop/HorizontalHeaderView.qml:38:9: Unable to assign [undefined] to QString
qrc:/kcm/kcm_firewall/main.qml:29:5: QML OverlaySheet: Binding loop detected for property "y"
qrc:/kcm/kcm_firewall/main.qml:29:5: QML OverlaySheet: Binding loop detected for property "implicitHeight"
qrc:/qt/qml/org/kde/desktop/HorizontalHeaderView.qml:38:9: Unable to assign [undefined] to QString
qrc:/qt/qml/org/kde/desktop/HorizontalHeaderView.qml:38:9: Unable to assign [undefined] to QString
qrc:/qt/qml/org/kde/desktop/HorizontalHeaderView.qml:38:9: Unable to assign [undefined] to QString
qml: Page SubCategoryPage_QMLTYPE_111(0x618902039f00) is already in the PageRow
qml: Pushed pages do not conform to the rules. Please check the documentation.
qml: push (file:///usr/lib/qt6/qml/org/kde/kirigami/PageRow.qml:223)
onActiveSubCategoryRowChanged (qrc:/qt/qml/org/kde/systemsettings/SubCategoryPage.qml:175)
expression for onClicked (qrc:/qt/qml/org/kde/systemsettings/SubCategoryPage.qml:197)
qrc:/qt/qml/org/kde/desktop/HorizontalHeaderView.qml:38:9: Unable to assign [undefined] to QString
firewalld.job: job error message:  "Not Authorized(polkit): org.fedoraproject.FirewallD1.config.info"
firewalld.client: Query rules job error:  100 "Not Authorized(polkit): org.fedoraproject.FirewallD1.config.info"

(opening about box)
qrc:/kcm/kcm_firewall/main.qml:468:9: QML About: Binding loop detected for property "implicitHeight"
qrc:/kcm/kcm_firewall/main.qml:468:9: QML About: Binding loop detected for property "implicitHeight"


a few seconds running:
$ top
    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                 
  24658 user      20   0 3009360 264068 170964 R  99.7   0.8  10:42.78 systemsettings

(not sure if better to open another ticket about this last bit? or might be related?), leaving the ksettings open on the firewall screen (showing "disabled". no action was taken). CPU was stuck at 99% usage by the process.
Comment 2 medin 2024-04-30 19:05:42 UTC
Created attachment 169047 [details]
Firewall disabled

The same with UFW, the firewall is active, but Plasma settings shows it disabled. See attached image.

Operating System: Manjaro Linux 
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.8.8-1-MANJARO (64-bit)
Graphics Platform: Wayland


Logs from terminal:

qrc:/qt/qml/org/kde/kcmutils/SimpleKCM.qml:94: ReferenceError: footerParent is not defined
qrc:/qt/qml/org/kde/systemsettings/CategoryItem.qml:33:13: Unable to assign IconPropertiesGroup_QMLTYPE_49 to IconPropertiesGroup_QMLTYPE_49
qrc:/qt/qml/org/kde/systemsettings/CategoryItem.qml:33:13: Unable to assign IconPropertiesGroup_QMLTYPE_49 to IconPropertiesGroup_QMLTYPE_49
qrc:/qt/qml/org/kde/systemsettings/CategoryItem.qml:33:13: Unable to assign IconPropertiesGroup_QMLTYPE_49 to IconPropertiesGroup_QMLTYPE_49
qrc:/qt/qml/org/kde/systemsettings/CategoryItem.qml:33:13: Unable to assign IconPropertiesGroup_QMLTYPE_49 to IconPropertiesGroup_QMLTYPE_49
qml: Page SubCategoryPage_QMLTYPE_111(0x6337336d8f40) is already in the PageRow
qml: Pushed pages do not conform to the rules. Please check the documentation.
qml: push (file:///usr/lib/qt6/qml/org/kde/kirigami/PageRow.qml:223)
onActiveSubCategoryRowChanged (qrc:/qt/qml/org/kde/systemsettings/SubCategoryPage.qml:175)
expression for onClicked (qrc:/qt/qml/org/kde/systemsettings/CategoriesPage.qml:192)
kf.networkmanagerqt: void NetworkManager::ConnectionPrivate::onPropertiesChanged(const QVariantMap&) Unhandled property "VersionId"
kf.networkmanagerqt: void NetworkManager::ConnectionPrivate::onPropertiesChanged(const QVariantMap&) Unhandled property "VersionId"
qrc:/qt/qml/org/kde/kcmutils/SimpleKCM.qml:48: TypeError: Cannot read property 'name' of null
firewalld.client: Firewalld is loaded? 4
ufw.client: Ufw is loaded? true
qml: services available:  []
qrc:/kcm/kcm_firewall/main.qml:29:5: QML OverlaySheet: Binding loop detected for property "implicitHeight"
ufw.client: Status query starting
ufw.client: Starting the Status Query
qrc:/qt/qml/org/kde/desktop/HorizontalHeaderView.qml:38:9: Unable to assign [undefined] to QString
qrc:/qt/qml/org/kde/desktop/HorizontalHeaderView.qml:38:9: Unable to assign [undefined] to QString
qrc:/kcm/kcm_firewall/main.qml:29:5: QML OverlaySheet: Binding loop detected for property "y"
qrc:/kcm/kcm_firewall/main.qml:29:5: QML OverlaySheet: Binding loop detected for property "implicitHeight"
qrc:/qt/qml/org/kde/desktop/HorizontalHeaderView.qml:38:9: Unable to assign [undefined] to QString
qrc:/qt/qml/org/kde/desktop/HorizontalHeaderView.qml:38:9: Unable to assign [undefined] to QString
qrc:/qt/qml/org/kde/desktop/HorizontalHeaderView.qml:38:9: Unable to assign [undefined] to QString
qml: Page SubCategoryPage_QMLTYPE_111(0x6337336d8f40) is already in the PageRow
qml: Pushed pages do not conform to the rules. Please check the documentation.
qml: push (file:///usr/lib/qt6/qml/org/kde/kirigami/PageRow.qml:223)
onActiveSubCategoryRowChanged (qrc:/qt/qml/org/kde/systemsettings/SubCategoryPage.qml:175)
expression for onClicked (qrc:/qt/qml/org/kde/systemsettings/SubCategoryPage.qml:197)
qrc:/qt/qml/org/kde/desktop/HorizontalHeaderView.qml:38:9: Unable to assign [undefined] to QString
qrc:/qt/qml/org/kde/desktop/HorizontalHeaderView.qml:38:9: Unable to assign [undefined] to QString
ufw.client: Status Query finished, setting the profile
"org.kde.ufw.query" "An error occurred in command 'query': "
Comment 3 medin 2024-04-30 19:21:04 UTC
It seems "/usr/lib/kde_ufw_plugin_helper.py" needs to upgrade to python 3.12, because 3 days ago Arch/Manjaro unstable made huge recompiling for over 300 packages to python 3.12.3