Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nm-applet - no connection to NetworkManager - Access Denied
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
olli.bo
Apprentice
Apprentice


Joined: 16 Jul 2003
Posts: 208
Location: Germany

PostPosted: Mon Apr 29, 2019 1:08 pm    Post subject: nm-applet - no connection to NetworkManager - Access Denied Reply with quote

Hi,

when I start nm-applet I get the following error.

Code:
olli@small-gabosh ~ $ nm-applet

** (nm-applet:17699): WARNING **: 20:26:19.759: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

(nm-applet:17699): nm-applet-WARNING **: 20:26:20.819: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 4 matched rules; type="method_call", sender=":1.76" (uid=1001 pid=17699 comm="nm-applet ") interface="org.freedesktop.NetworkManager.AgentManager" member="Register" error name="(unset)" requested_reply="0" destination=":1.68" (uid=0 pid=17446 comm="/usr/sbin/NetworkManager --pid-file /run/NetworkMa")

(nm-applet:17699): libnm-CRITICAL **: 20:26:20.820: ((/var/tmp/portage/net-misc/networkmanager-1.16.0/work/NetworkManager-1.16.0/libnm/nm-client.c:894)): assertion '<dropped>' failed

(nm-applet:17699): libnm-CRITICAL **: 20:26:20.830: ((/var/tmp/portage/net-misc/networkmanager-1.16.0/work/NetworkManager-1.16.0/libnm/nm-client.c:274)): assertion '<dropped>' failed

(nm-applet:17699): libnm-CRITICAL **: 20:26:20.830: ((/var/tmp/portage/net-misc/networkmanager-1.16.0/work/NetworkManager-1.16.0/libnm/nm-client.c:235)): assertion '<dropped>' failed

(nm-applet:17699): libnm-CRITICAL **: 20:26:22.719: ((/var/tmp/portage/net-misc/networkmanager-1.16.0/work/NetworkManager-1.16.0/libnm/nm-client.c:992)): assertion '<dropped>' failed

(nm-applet:17699): libnm-CRITICAL **: 20:26:27.443: ((/var/tmp/portage/net-misc/networkmanager-1.16.0/work/NetworkManager-1.16.0/libnm/nm-client.c:894)): assertion '<dropped>' failed

(nm-applet:17699): libnm-CRITICAL **: 20:26:27.444: ((/var/tmp/portage/net-misc/networkmanager-1.16.0/work/NetworkManager-1.16.0/libnm/nm-client.c:274)): assertion '<dropped>' failed



As root it works and the user is in the plugdev-group.

Any ideas?

thx
olli
Back to top
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1860
Location: United Kingdom

PostPosted: Mon Apr 29, 2019 2:27 pm    Post subject: Reply with quote

I recall a thread by a users of plasma-nm in KDE, rather than nm-applet in whatever DE you're using, who was seeing a similar error message to you and he solved it as follows:

pcfreak85 wrote:
The solution is:

Code:
1. backup /etc/dbus-1
2. emerge -C sys-apps/dbus && emerge -vD sys-apps/dbus

After that, etc-update shows a lot of dbus related files, I did all updates.

Worth trying, anyway.
_________________
Clevo W230SS: amd64 nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC eudev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
olli.bo
Apprentice
Apprentice


Joined: 16 Jul 2003
Posts: 208
Location: Germany

PostPosted: Mon Apr 29, 2019 5:37 pm    Post subject: Reply with quote

Thx, but didn't help for me.

Here the /var/log/auth.log:
Code:

Apr 29 19:34:40 small-gabosh dbus-daemon[17112]: [system] Rejected send message, 4 matched rules; type="method_call", sender=":1.44" (uid=1001 pid=20960 comm="nm-applet ") interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" error name="(unset)" requested_reply="0" destination=":1.4" (uid=0 pid=18459 comm="/usr/sbin/NetworkManager --pid-file /run/NetworkMa")
Apr 29 19:34:40 small-gabosh dbus-daemon[17112]: [system] Rejected send message, 4 matched rules; type="method_call", sender=":1.45" (uid=1001 pid=20960 comm="nm-applet ") interface="org.freedesktop.NetworkManager.AgentManager" member="RegisterWithCapabilities" error name="(unset)" requested_reply="0" destination=":1.4" (uid=0 pid=18459 comm="/usr/sbin/NetworkManager --pid-file /run/NetworkMa")
Apr 29 19:34:40 small-gabosh dbus-daemon[17112]: [system] Rejected send message, 4 matched rules; type="method_call", sender=":1.45" (uid=1001 pid=20960 comm="nm-applet ") interface="org.freedesktop.NetworkManager.AgentManager" member="Register" error name="(unset)" requested_reply="0" destination=":1.4" (uid=0 pid=18459 comm="/usr/sbin/NetworkManager --pid-file /run/NetworkMa")


Any other ideas?
Back to top
View user's profile Send private message
olli.bo
Apprentice
Apprentice


Joined: 16 Jul 2003
Posts: 208
Location: Germany

PostPosted: Mon Apr 29, 2019 5:40 pm    Post subject: Reply with quote

Edit: "sudo nm-applet" as user gives errors too, but seems to work.

Code:
olli@small-gabosh ~ $ sudo nm-applet

(nm-applet:21070): libnotify-WARNING **: 19:38:20.389: Failed to connect to proxy

(nm-applet:21070): nm-applet-WARNING **: 19:38:20.397: Failed to show notification: Fehler beim Aufruf von StartServiceByName für org.freedesktop.Notifications: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.freedesktop.Notifications exited with status 1
Back to top
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1860
Location: United Kingdom

PostPosted: Mon Apr 29, 2019 10:09 pm    Post subject: Reply with quote

Are you using OpenRC or systemd? If the former, are you using ConsoleKit or elogind? Which USE flags are set/not-set in NetworkManager? Which desktop environment are you using? Can you also post the output of 'emerge --info' please.

Does the NetworkManager text user interface (nmtui) work OK?:
Code:
$ sudo nmtui

                                         ┌─┤ NetworkManager TUI ├──┐
                                         │                         │
                                         │ Please select an option │
                                         │                         │
                                         │ Edit a connection       │
                                         │ Activate a connection   │
                                         │ Set system hostname     │
                                         │                         │
                                         │ Quit                    │
                                         │                         │
                                         │                    <OK> │
                                         │                         │
                                         └─────────────────────────┘

Any other related error messages in /var/log/messages (or from journalctl if you're using systemd)?

Have you tried uninstalling and re-installing just nm-applet?
_________________
Clevo W230SS: amd64 nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC eudev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
olli.bo
Apprentice
Apprentice


Joined: 16 Jul 2003
Posts: 208
Location: Germany

PostPosted: Tue Apr 30, 2019 9:29 am    Post subject: Reply with quote

I'm using OpenRC, ConsoleKit.
Using MATE as desktop environment.
Tried uninstall and install of nm-applet and networkmanager. Didn't help.

Here my emerge --info
Code:
# emerge --info
Portage 2.3.62 (python 3.5.5-final-0, default/linux/amd64/17.0, gcc-8.2.0, glibc-2.28-r6, 4.19.27-gentoo-r1 x86_64)
=================================================================
System uname: Linux-4.19.27-gentoo-r1-x86_64-Intel-R-_Xeon-R-_CPU_E5-1607_0_@_3.00GHz-with-gentoo-2.6
KiB Mem:   115329048 total,   2691036 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 29 Apr 2019 23:00:01 +0000
Head commit of repository gentoo: 6569e6455dae2d9786dbb473550396486f83b5dc
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.31.1 p5) 2.31.1
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.5.5::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.3-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r4::gentoo
sys-devel/gcc:            8.2.0-r6::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@BINARY-REDISTRIBUTABLE MPEG-4 DES myspell-et_EE-IEL myspell-lt_LT-AlbertasAgejevas gccmakedep imake xf86rushproto freedist myspell-ru_RU-ALexanderLebedev MSttfEULA gSOAP CCPL-ShareAlike-1.0 xf86bigfontproto Ximian-logos LDP-1a JasPer2.0 X11 LPPL-1.3b unRAR free-noncomm CCPL-Sampling-Plus-1.0 LIBGLOSS NEWLIB CC-Sampling-Plus-1.0 as-is bluez-firmware BUILDLIC D1X LOKI-EULA icaclient PUEL FraunhoferFDK MakeMKV-EULA AdobeFlash-11.x linux-firmware PSTT AVASYS DXX-Rebirth Vivaldi NVIDIA-r2 TeamViewer"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=generic -march=x86-64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-mtune=generic -march=x86-64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en de de_DE"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 7zip X a52 aac accountsservice acl acpi akonadi alsa amd64 amr analogtv apache2 apng applet arts audiofile autotype bash-completion beagle berkdb bluetooth bluray browser btrfs bzip2 cairo caja caps cdda cddb cdio cdparanoia cdr chipcard cjk clamav classic cli client consolekit cosign crypt css cups curl cxx dbus desktopglobe device-mapper dlz dmraid dolbyinrec doom dri dvb dvbplayer dvbsetup dvd dvdarchive dvdr dynamic eap-sim eds egl email emerald epiphany equalizer exif ext extensions extras faac fat fax fdk ffmpeg firefox fluidsynth fontconfig fortran freedoom ftdi fuse gbm gd gdbm gdu geolocation gimp glib gnokii gnome-keyring groupwise gssapi gstreamer gtk gui guile haptic hash hbci hddtemp heretic hexen hfs hog hpijs hwaccel hwdb iconv icq icu id3tag image-converter imagemagick inotify inspector introspection ipod iptables ipv6 irda ivtv jack java jfs joystick jpeg jpeg2k kdrive kerbros ladspa lame laptop lastfm ldap libass libkms libnotify libsamplerate libtirpc lightning lirc lm_sensors lv2 lxde lzo mad madwifi matroska mdadm mdev mdnsresponder-compat messages midi minizip mixer mjpeg mmx mmxext mng mono mount mozdom mp3 mpeg mplayer msn mtp multilib musepack musicbrainz mvl mysql mysqli mythtv nas ncurses netboot network networking networkmanager nfs nis nls nocd nptl nscd nsplugin nss ntfs ntfsprogs odf ofx ogg openal opengl openldap openmp openssl opus orc oscar osd overlays pam pcmcia pcre pcre16 pdfimport perl png podcast policykit portaudio postproc ppds printsupport pulseaudio pvr python qemu-ifup qmi qrcode quicktime radio rar readline redland reiser4 reiserfs resolvconf samba sasl sbsms scanner sdb-ldap sdl seccomp secure-delete semantic-desktop sensord server setup share sip skype slideshow sms sndfile socks5 softosd soundtouch spell sql sqlite sse sse2 ssh ssl ssse3 startup-notification stk svc svg syncmai syslog system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-sqlite taglib teletext templates theora threads thunderbird tiff timidity tools truetype trustedcoin_com tse3 tv twolame udev unicode upnp usb utils uxa v4l v4l2 vala vamp vcdinfo vcdx vde vdr video videos view-captcha vim-syntax visualization vlc vnc vorbis vpx vst vte webkit webserver widgets wifi win32codecs winbind winpopup wma-fixed wmf wps x264 x265 xattr xcomposite xetex xfs xine xinerama xmlrpc xosd xrandr xscreensaver xv xvid yahoo youtube zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" CURL_SSL="nss" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc qemu" INPUT_DEVICES="synaptics evdev" KERNEL="linux" L10N="en de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6 python3_5" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby24 ruby21" USERLAND="GNU" VIDEO_CARDS="i965 intel nvidia r100 r200 r300 r600 radeon radeonsi apm ast cirrus epson fbdev glint i128 i740 mach64 modesetting nv r128 savage siliconmotion sis tdfx trident v4l vesa via amdgpu" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


And the USE-Flags of networkmanager nm-applet consolekit dbus and openrc:
Code:

# emerge -pv networkmanager nm-applet consolekit dbus openrc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-apps/dbus-1.12.12-r1::gentoo  USE="X -debug -doc -elogind (-selinux) -static-libs -systemd -test -user-session" ABI_X86="32 (64) (-x32)" 2.029 KiB
[ebuild   R    ] sys-apps/openrc-0.38.3-r1::gentoo  USE="ncurses netifrc pam unicode -audit -debug -newnet (-prefix) (-selinux) -static-libs" 233 KiB
[ebuild   R    ] sys-auth/consolekit-1.2.1::gentoo  USE="acl pam policykit udev -cgroups -debug -doc -evdev -pm-utils (-selinux) -test" 1.156 KiB
[ebuild   R    ] net-misc/networkmanager-1.16.0::gentoo  USE="bluetooth consolekit dhclient introspection modemmanager ncurses nss policykit ppp resolvconf vala wext wifi -audit -connection-sharing -dhcpcd -elogind -gnutls (-iwd) -json -ofono -ovs (-selinux) -systemd -teamd -test" ABI_X86="(64) -32 (-x32)" 4.682 KiB
[ebuild   R    ] gnome-extra/nm-applet-1.8.20::gentoo  USE="gcr introspection modemmanager (-ayatana) (-selinux) -teamd" 1.516 KiB

Total: 5 packages (5 reinstalls), Size of downloads: 9.613 KiB


sudo nmtui works.

Found no more related error messages in /var/log/messages or other log-files.

Changing "Exec" in /etc/xdg/autostart/nm-applet.desktop from
Code:
Exec=nm-applet

to
Code:
Exec=sudo nm-applet

seems to be a workaround.
Back to top
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1860
Location: United Kingdom

PostPosted: Sat May 04, 2019 7:20 pm    Post subject: Reply with quote

Could the following be the solution?: https://wiki.gentoo.org/wiki/NetworkManager#Fixing_nm-applet_insufficient_privileges
_________________
Clevo W230SS: amd64 nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC eudev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
olli.bo
Apprentice
Apprentice


Joined: 16 Jul 2003
Posts: 208
Location: Germany

PostPosted: Sun May 05, 2019 11:41 am    Post subject: Reply with quote

Tried it already. Did not help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum