Hello everyone!
Try to share wifi with my laptop and Tumbleweed. After i create a connection and activate it(WPA2 Personal), i try to connect from my Android device and stacking at getting IP address. Journalctl type me this information:
kernel: netlink: 'wpa_supplicant': attribute type 213 has an invalid length.
I found bug report on redhat forum, but for me it doesn’t work. Report
Quote from report:
> > # nmcli connection edit <your hotspot>
> > > set 802-11-wireless-security.pmf disable
> > > save
> > > activate
Anybody know something about this problem? If it’s a bug, how can i make a bug report?
tsu2
October 27, 2018, 6:02pm
2
You first have to describe in detail what you did to try to create a WiFi hotspot,
And display the exact errors you get.
Your detail should be enough so that someone can follow the same exact steps and replicate your problem.
If in the end others might agree that you didn’t overlook something, then a bug can be submitted to https://bugzilla.opensuse.org
TSU
tsu2:
You first have to describe in detail what you did to try to create a WiFi hotspot,
And display the exact errors you get.
Your detail should be enough so that someone can follow the same exact steps and replicate your problem.
If in the end others might agree that you didn’t overlook something, then a bug can be submitted to https://bugzilla.opensuse.org
TSU
With network manager i create Wi-Fi(hotspot)
And create wifi hotspot
While creating this description, i found another error, and maybe problem in other
окт 28 10:47:31 Hastur NetworkManager[1840]: <info> [1540712851.5316] dnsmasq-manager: starting dnsmasq...
окт 28 10:47:31 Hastur NetworkManager[1840]: <info> [1540712851.5413] device (wlp2s0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
окт 28 10:47:31 Hastur NetworkManager[1840]: <info> [1540712851.5494] device (wlp2s0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
окт 28 10:47:31 Hastur NetworkManager[1840]: <info> [1540712851.5505] device (wlp2s0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
окт 28 10:47:31 Hastur NetworkManager[1840]: <info> [1540712851.5528] manager: NetworkManager state is now CONNECTED_GLOBAL
окт 28 10:47:31 Hastur NetworkManager[1840]: <info> [1540712851.5660] device (wlp2s0): Activation: successful, device activated.
окт 28 10:47:31 Hastur nm-dispatcher[15341]: req:2 'up' [wlp2s0]: new request (5 scripts)
окт 28 10:47:31 Hastur nm-dispatcher[15341]: req:2 'up' [wlp2s0]: start running ordered scripts...
окт 28 10:47:31 Hastur NetworkManager[1840]: dnsmasq: cannot open or create lease file /var/lib/NetworkManager/dnsmasq-wlp2s0.leases: Permission denied
окт 28 10:47:31 Hastur dnsmasq[15406]: cannot open or create lease file /var/lib/NetworkManager/dnsmasq-wlp2s0.leases: Permission denied
окт 28 10:47:31 Hastur dnsmasq[15406]: FAILED to start up
окт 28 10:47:31 Hastur kdeconnectd[20899]: kdeconnect.core: Broadcasting identity packet
окт 28 10:47:31 Hastur NetworkManager[1840]: <warn> [1540712851.5984] dnsmasq-manager: dnsmasq exited with error: Filesystem problem (missing file/directory, permissions) (3)
окт 28 10:47:32 Hastur kernel: netlink: 'wpa_supplicant': attribute type 213 has an invalid length.
As i see, there is also problem with dnsmasq.
ps -aux | grep dnsmasq
shows me 2 process,with root and dnsmasq users. Is it right? How to fix problem with rights?
What do the permissions look like?
ls -l /var/lib/NetworkManager/dnsmasq-wlp2s0.leases
I have no such file. But all files in folder belongs root - root and have 644 access rights. Folder NetworkManager has chmod - 700 and also belongs to root - root.
This cannot be the issue, running TW here, wifi working properly, hotspot as well, and I don’t have that file either.
Knurpht:
This cannot be the issue, running TW here, wifi working properly, hotspot as well, and I don’t have that file either.
I wouldn’t expect you to - that file is specifically reported in the user’s own log. The log reports…
окт 28 10:47:31 Hastur nm-dispatcher[15341]: req:2 'up' [wlp2s0]: start running ordered scripts...
окт 28 10:47:31 Hastur NetworkManager[1840]: dnsmasq: cannot open or create lease file /var/lib/NetworkManager/dnsmasq-wlp2s0.leases: Permission denied
окт 28 10:47:31 Hastur dnsmasq[15406]: cannot open or create lease file /var/lib/NetworkManager/dnsmasq-wlp2s0.leases: Permission denied
I should have requested the ownership details for the parent directory instead. I also wonder what dispatcher scripts the OP may have employed here. NetworkManager’s hotspot functionality should just work (as it does for me).
I had the same issue so I opened https://bugzilla.opensuse.org/show_bug.cgi?id=1114680
My solution was:
— /etc/apparmor.d/usr.sbin.dnsmasq~ 2018-10-22 11:53:18.000000000 +0200
+++ /etc/apparmor.d/usr.sbin.dnsmasq 2018-11-05 13:09:25.033720448 +0100
@@ -90,6 +90,9 @@
/{,var/}run/NetworkManager/dnsmasq.conf r,
/{,var/}run/NetworkManager/dnsmasq.pid w,
NetworkManager Hotspot leases
/var/lib/NetworkManager/dnsmasq-*.leases rw,
profile libvirt_leaseshelper {
#include <abstractions/base>
So, a problem with apparmor-profiles (specifically /etc/apparmor.d/usr.sbin.dnsmasq configuration). Thanks for sharing the bug report and resolution.