Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

the "logs" section not working on arch & ChakraOS #11

Closed
ahjolinna opened this issue Jul 29, 2017 · 15 comments
Closed

the "logs" section not working on arch & ChakraOS #11

ahjolinna opened this issue Jul 29, 2017 · 15 comments

Comments

@ahjolinna
Copy link

I don't see anything Nomad log section but everytime I check dmesg I notice UFW has blocked A LOT of stuff...this is on arch (stable) and chakraOS (testing)

output of: "kcmshell5 org_nxos_firewall":

kcmshell5 org_nxos_firewall
Icon theme "elementary" not found.
Icon theme "gnome" not found.
org.kde.kcoreaddons: Error loading plugin "org.nxos.firewall" "The shared library was not found." 
Plugin search paths are ("/usr/lib/qt/plugins", "/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
WARNING: Cannot find style "org.kde.desktop" - fallback: "/usr/lib/qt/qml/QtQuick/Controls/Styles/Desktop"
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:153:31: QML Item: Binding loop detected for property "implicitWidth"
Debug message from helper: run NETSTAT_BINARY_PATH-NOTFOUND ("-ntuap")
Warning from helper: netstat command exit with code:  255
BACKEND ERROR:  255 ""
Debug message from helper: query
Debug message from helper: run ("--status", "--defaults", "--list", "--modules")
file:///usr/lib/qt/qml/QtQuick/Controls/Button.qml:99: TypeError: Cannot read property 'width' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Button.qml:99: TypeError: Cannot read property 'width' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Button.qml:99: TypeError: Cannot read property 'width' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Button.qml:99: TypeError: Cannot read property 'width' of null
Debug message from helper: viewlog
""
file:///usr/lib/qt/qml/QtQuick/Controls/ScrollView.qml:362: TypeError: Cannot read property 'padding' of null
file:///usr/lib/qt/qml/QtQuick/Controls/ScrollView.qml:363: TypeError: Cannot read property 'padding' of null
file:///usr/lib/qt/qml/QtQuick/Controls/ScrollView.qml:364: TypeError: Cannot read property 'padding' of null
file:///usr/lib/qt/qml/QtQuick/Controls/ScrollView.qml:365: TypeError: Cannot read property 'padding' of null
file:///usr/lib/qt/qml/QtQuick/Controls/ScrollView.qml:362: TypeError: Cannot read property 'padding' of null
file:///usr/lib/qt/qml/QtQuick/Controls/ScrollView.qml:363: TypeError: Cannot read property 'padding' of null
file:///usr/lib/qt/qml/QtQuick/Controls/ScrollView.qml:364: TypeError: Cannot read property 'padding' of null
file:///usr/lib/qt/qml/QtQuick/Controls/ScrollView.qml:365: TypeError: Cannot read property 'padding' of null
Debug message from helper: viewlog
""
Debug message from helper: viewlog
""
Debug message from helper: viewlog
""
Debug message from helper: viewlog
""
Debug message from helper: viewlog
""
Debug message from helper: viewlog
""
Debug message from helper: viewlog
""
Debug message from helper: viewlog
""
Debug message from helper: viewlog
""
Debug message from helper: run NETSTAT_BINARY_PATH-NOTFOUND ("-ntuap")
Warning from helper: netstat command exit with code:  255
BACKEND ERROR:  255 ""
Debug message from helper: viewlog
""
@azubieta
Copy link
Member

azubieta commented Jul 30, 2017

It's only the log section the one not working ?
The connections section, according to your logs, should not work either.
Notice that it requires the "netstat" command to work.

Anyway just let me install a chakraOS to test it.
Thanks for the report

@ahjolinna
Copy link
Author

ahjolinna commented Jul 30, 2017

yeah that is also not working or at least its not showing anything :
image

I just installed netstat(/net-tools) on Arch and the connection section works now, and the output is now this :

kcmshell5 org_nxos_firewall
Icon theme "elementary" not found.
Icon theme "gnome" not found.
org.kde.kcoreaddons: Error loading plugin "org.nxos.firewall" "The shared library was not found." 
Plugin search paths are ("/usr/lib/qt/plugins", "/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
WARNING: Cannot find style "org.kde.desktop" - fallback: "/usr/lib/qt/qml/QtQuick/Controls/Styles/Desktop"
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:153:31: QML Item: Binding loop detected for property "implicitWidth"
Debug message from helper: run NETSTAT_BINARY_PATH-NOTFOUND ("-ntuap")
Warning from helper: netstat command exit with code:  255
BACKEND ERROR:  255 ""
Debug message from helper: query
Debug message from helper: run ("--status", "--defaults", "--list", "--modules")
file:///usr/lib/qt/qml/QtQuick/Controls/Button.qml:99: TypeError: Cannot read property 'width' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Button.qml:99: TypeError: Cannot read property 'width' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Button.qml:99: TypeError: Cannot read property 'width' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Button.qml:99: TypeError: Cannot read property 'width' of null
Debug message from helper: viewlog
""
file:///usr/lib/qt/qml/QtQuick/Controls/ScrollView.qml:362: TypeError: Cannot read property 'padding' of null
file:///usr/lib/qt/qml/QtQuick/Controls/ScrollView.qml:363: TypeError: Cannot read property 'padding' of null
file:///usr/lib/qt/qml/QtQuick/Controls/ScrollView.qml:364: TypeError: Cannot read property 'padding' of null
file:///usr/lib/qt/qml/QtQuick/Controls/ScrollView.qml:365: TypeError: Cannot read property 'padding' of null
file:///usr/lib/qt/qml/QtQuick/Controls/ScrollView.qml:362: TypeError: Cannot read property 'padding' of null
file:///usr/lib/qt/qml/QtQuick/Controls/ScrollView.qml:363: TypeError: Cannot read property 'padding' of null
file:///usr/lib/qt/qml/QtQuick/Controls/ScrollView.qml:364: TypeError: Cannot read property 'padding' of null
file:///usr/lib/qt/qml/QtQuick/Controls/ScrollView.qml:365: TypeError: Cannot read property 'padding' of null
Debug message from helper: viewlog
""
[ahjolinna@arch-anywhere]: ~>$ 

@ahjolinna
Copy link
Author

ahjolinna commented Jul 30, 2017

damn... apparently net-tools(netstat) was deprecated longtime ago and you should be using iproute2 instead: http://www.archlinux.org/news/deprecation-of-net-tools/

@azubieta
Copy link
Member

Now is when we say, "we love linux", netstat is the default in ubuntu and debian :(

@ahjolinna
Copy link
Author

ahjolinna commented Jul 31, 2017

"well oc it is by default" -- ubuntu and debian has always been the slowest distros to adopt the newest tech/standards. Maybe just move to iproute2 directly, as it seems to be the "new" standard for past 6 years now -- and it seems to be part of the kernel ...more or less

PS. its seems at least in arch the "netctl & networkmanager" pkgs requires iproute2

@azubieta
Copy link
Member

azubieta commented Jul 31, 2017

I'm considering adding the two backends, as the "netstat" one is already made. Right now I must attend other issues, later I'll be back on this.
If you want to help you can make a backend implementation similar to this https://github.com/nomad-desktop/nomad-firewall/blob/master/plugins/netstat/helper/netstathelper.cpp#L43

@ahjolinna
Copy link
Author

Sure that is fine and I will be here, I don't a life anyways so... Why not.

Also about the backend thing, I assume it will be a build conf to check the backend you want to use, and not do some major splitting

Sent from my Sony F5121 using FastHub

@azubieta
Copy link
Member

azubieta commented Jul 31, 2017

I guess that we can build it with both backends enabled and at runtime use the one available.

@azubieta
Copy link
Member

azubieta commented Aug 1, 2017

Logs are being read from "/var/log/ufw.log", I suppose that arch store then somewhere else.

@ahjolinna
Copy link
Author

@azubieta : well apparently all UFW events should be logged to systemd journal by default.

@ahjolinna
Copy link
Author

journalctl | grep -i ufw or journalctl -u ufw

@ahjolinna
Copy link
Author

btw. about the "backend" thing, I think best option would be to have the "used option" with CMake when choosing the backend ...aka Duse_netstat=ON or/and Duse_Iproute2=ON

@ahjolinna
Copy link
Author

ahjolinna commented Aug 1, 2017

btw. maybe you just need to have two backends that are completely different, one is the "legacy" one aka for debian/ubuntu, and the 2nd one would for more normal distros :D (sarcasm)


I love to hate on debian & ubuntu based distros, they are the "windows ME and vista" of the linux world

@azubieta
Copy link
Member

I'll close this issue in favor of opening a new one #17

@maz-1
Copy link

maz-1 commented Aug 28, 2018

The iproute2 backend does matter, but you seem to forget the very beginning problem : logs support on Archlinux :-(
Edit: Oh, I see you are implementing an iptables backend, thats great

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants