LinuxForum.Fans
Тема

После старта NetworkManager не запускаются приложения

Автор: Alex-L 39 сообщений 11560 просмотров
#120315
Alex-L написал:
Познавательно... Вот бы еще знать почему из-за него ничего не запускается smile

Покажите

text

emerge -pv networkmanager
text

grep RC_PLUG_SERVICES /etc/conf.d/rc | grep -v "^#"
text

 ls -R /etc/runlevels/ | grep net
text

cat ~/.xsession-errors
#120320
text
 # emerge -pv networkmanager

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

Calculating dependencies... done! [ebuild R ] net-misc/networkmanager-0.8.2-r2 USE="-avahi -bluetooth -connection-sharing -dhclient -dhcpcd -doc -gnutls -nss -resolvconf" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

text
 # grep RC_PLUG_SERVICES /etc/conf.d/rc | grep -v "^#"
RC_PLUG_SERVICES=""
text
 # ls -R /etc/runlevels/ | grep net
nonetwork
net.lo
netmount
/etc/runlevels/nonetwork:

text
 # cat ~/.xsession-errors
startkde: Starting up...
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QMetaObject::invokeMethod: No such method KUniqueApplication::loadCommandLineOptionsForNewInstance()
kbuildsycoca4 running...
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QMetaObject::invokeMethod: No such method KUniqueApplication::loadCommandLineOptionsForNewInstance()
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)

Fetched layout groups from X server: layouts: ("us", "ru", "ua") variants: ("", "", "") Fetched keyboard model from X server: "pc105" Fetched layout groups from X server: layouts: ("us", "ru") variants: ("", "") parsing rules from "/usr/share/X11/xkb/rules/evdev.xml" Fetched layout groups from X server: layouts: ("us", "ru") variants: ("", "") Fetched layout groups from X server: layouts: ("us", "ru") variants: ("", "") Fetched layout groups from X server: layouts: ("us", "ru") variants: ("", "") QMetaObject::invokeMethod: No such method KUniqueApplication::loadCommandLineOptionsForNewInstance() kded(1475)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig: Invalid D-BUS member name 'idle-hint' found in interface 'org.freedesktop.ConsoleKit.Session' while parsing introspection Invalid D-BUS member name 'is-local' found in interface 'org.freedesktop.ConsoleKit.Session' while parsing introspection Invalid D-BUS member name 'x11-display-device' found in interface 'org.freedesktop.ConsoleKit.Session' while parsing introspection Invalid D-BUS member name 'x11-display' found in interface 'org.freedesktop.ConsoleKit.Session' while parsing introspection Invalid D-BUS member name 'display-device' found in interface 'org.freedesktop.ConsoleKit.Session' while parsing introspection Invalid D-BUS member name 'remote-host-name' found in interface 'org.freedesktop.ConsoleKit.Session' while parsing introspection Invalid D-BUS member name 'session-type' found in interface 'org.freedesktop.ConsoleKit.Session' while parsing introspection Invalid D-BUS member name 'unix-user' found in interface 'org.freedesktop.ConsoleKit.Session' while parsing introspection kwin(1512) KWin::CompositingPrefs::detectDriverAndVersion: GL vendor is "Tungsten Graphics, Inc" kwin(1512) KWin::CompositingPrefs::detectDriverAndVersion: GL renderer is "Mesa DRI Intel(R) 965GM GEM 20100330 DEVELOPMENT x86/MMX/SSE2" kwin(1512) KWin::CompositingPrefs::detectDriverAndVersion: GL version is "2.1 Mesa 7.10" kwin(1512) KWin::CompositingPrefs::detectDriverAndVersion: Detected driver "intel" , version "20100330" kwin(1512): ""fsrestore1" - conversion of "0,0,0,0" to QRect failed" kwin(1512): ""fsrestore2" - conversion of "0,0,0,0" to QRect failed" QDBusConnection: name 'org.kde.kglobalaccel' had owner '' but we thought it was ':1.8' QMetaObject::invokeMethod: No such method KUniqueApplication::loadCommandLineOptionsForNewInstance() QDBusObjectPath: invalid path "" Couldn't find node center. Skipping rendering. QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible link XMLID_34_ hasn't been detected! link XMLID_34_ hasn't been detected! link XMLID_36_ hasn't been detected! QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible Couldn't find node center. Skipping rendering. QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible Invalid D-BUS interface name 'org.kde.plasma-desktop.PlasmaApp' found while parsing introspection QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible (1548)/kdecore (services) KMimeTypeFactory::parseMagic: Now parsing "/usr/share/mime/magic" link XMLID_34_ hasn't been detected! link XMLID_34_ hasn't been detected! link XMLID_36_ hasn't been detected! Couldn't find node center. Skipping rendering. QMetaObject::invokeMethod: No such method PlasmaApp::loadCommandLineOptionsForNewInstance() Couldn't find node center. Skipping rendering. QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible kcminit(1486)/kdecore (KLibrary) findLibraryInternal: plugins should not have a 'lib' prefix: "libkcm_emoticons.so" kcminit(1486)/kdecore (KLibrary) findLibraryInternal: plugins should not have a 'lib' prefix: "libkcm_hotkeys.so" kcminit(1486)/kdecore (KLibrary) findLibraryInternal: plugins should not have a 'lib' prefix: "libkcminit_nsplugins.so" kcminit(1486)/kdecore (KLibrary) findLibraryInternal: plugins should not have a 'lib' prefix: "libkcm_keys.so" QMetaObject::invokeMethod: No such method KAccessApp::loadCommandLineOptionsForNewInstance() PolicyKitKDE is already running!

New PolkitAgentListener 0x807a830 Adding new listener PolkitQt1::Agent::Listener(0x80fb550) for 0x807a830

(process:1562): GLib-GObject-WARNING **: cannot register existing type `_PolkitError'

(process:1562): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed QMetaObject::invokeMethod: No such method PolicyKitKDE::loadCommandLineOptionsForNewInstance() QMetaObject::invokeMethod: No such method PolicyKitKDE::loadCommandLineOptionsForNewInstance() Couldn't find node center. Skipping rendering. QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible An instance of nm-applet is already running. QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible Couldn't find node center. Skipping rendering. QMetaObject::invokeMethod: No such method KUniqueApplication::loadCommandLineOptionsForNewInstance() Couldn't find node center. Skipping rendering. QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible QMetaObject::invokeMethod: No such method KRunnerApp::loadCommandLineOptionsForNewInstance() QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible Couldn't find node center. Skipping rendering. kbuildsycoca4 running... (1600)/kdecore (services) KServicePrivate::init: The desktop entry file "ServiceMenus/p7zip_extract_to.desktop" has Type= "Application" but no Exec line

(1600)/kdecore (services) KServicePrivate::init: The desktop entry file "ServiceMenus/p7zip_compress2.desktop" has Type= "Application" but no Exec line

(1600)/kdecore (services) KServicePrivate::init: The desktop entry file "ServiceMenus/p7zip_test.desktop" has Type= "Application" but no Exec line

(1600)/kdecore (services) KServicePrivate::init: The desktop entry file "ServiceMenus/p7zip_extract_subdir.desktop" has Type= "Application" but no Exec line

/usr/share/wicd/gtk/gui.py:152: GtkWarning: gtk_toolbar_set_icon_size: assertion `icon_size != GTK_ICON_SIZE_INVALID' failed self.wTree = gtk.glade.XML(gladefile) /usr/share/wicd/gtk/gui.py:760: DeprecationWarning: use gtk.Statusbar.remove_message gtk.main_iteration() /usr/share/wicd/gtk/wicd-client.py:1029: DeprecationWarning: use gtk.Statusbar.remove_message mainloop.run() QMetaObject::invokeMethod: No such method Konsole::Application::loadCommandLineOptionsForNewInstance() klauncher(1473)/kio (KLauncher): SlavePool: No communication with slave.

klauncher(1473)/kio (KLauncher): SlavePool: No communication with slave.

klauncher(1473)/kio (KLauncher): SlavePool: No communication with slave.

Has notifications support True Loading... Connecting to daemon... Can't connect to the daemon, trying to start it automatically... Connected. displaytray True Done loading. refreshing... ESSID : dd-wrt ESSID : TP-LINK_ECF60E setting encryption info... QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible klipper(1567)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig: QPainter::begin: Paint device returned engine == 0, type: 2 QPainter::setCompositionMode: Painter not active QPainter::end: Painter not active, aborted krunner(1561)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig: Object::disconnect: No such slot QObject::dataUpdated(QString,Plasma::DataEngine::Data) Object::disconnect: (sender name: 'Battery0') Object::disconnect: No such slot QObject::dataUpdated(QString,Plasma::DataEngine::Data) Object::disconnect: (sender name: 'AC Adapter') Object::disconnect: No such slot QObject::dataUpdated(QString,Plasma::DataEngine::Data) Object::disconnect: (sender name: 'PowerDevil') Destroying listener Removing listener PolkitQt1::Agent::Listener(0x80fb550) X Error: BadWindow (invalid Window parameter) 3 Extension: 139 (Uknown extension) Minor opcode: 6 (Unknown request) Resource id: 0x1600020 X Error: BadWindow (invalid Window parameter) 3 Major opcode: 2 (X_ChangeWindowAttributes) Resource id: 0x1600020 startkde: Shutting down... klauncher: Exiting on signal 1 startkde: Running shutdown scripts... startkde: Done.

#120321
Alex-L написал:
No protocol specified dolphin: cannot connect to X server :0
Alex-L написал:
Вот бы еще знать почему из-за него ничего не запускается

очевидно потому, что этот манагер заблокировал иксы. (иксы - это тоже сетевое приложение, и подключаются к нему по протоколу TCP обычно через порт

x11 6000/tcp #6000-6063 are assigned to X Window System

)

А если ваш NM порт заблокировал, то ессно иксы работать не будут (точнее с ними не будет связи).

#120323

Покажите

text

rc-status -a | grep started

Предварительно удалив файл ~/.xsession-errors, покажите его после неудачного запуска какого-либо приложения.

#120332
text
 $ rc-status -a | grep started
 bootmisc                                                                                                        [ started  ]
 checkfs                                                                                                         [ started  ]
 checkroot                                                                                                       [ started  ]
 clock                                                                                                           [ started  ]
 consolefont                                                                                                     [ started  ]
 hostname                                                                                                        [ started  ]
 keymaps                                                                                                         [ started  ]
 localmount                                                                                                      [ started  ]
 modules                                                                                                         [ started  ]
 net.lo                                                                                                          [ started  ]
 rmnologin                                                                                                       [ started  ]
 urandom                                                                                                         [ started  ]
 consolekit                                                                                                      [ started  ]
 hald                                                                                                            [ started  ]
 local                                                                                                           [ started  ]
 netmount                                                                                                        [ started  ]
 udev-postmount                                                                                                  [ started  ]
 xdm                                                                                                             [ started  ]
 local                                                                                                           [ started  ]
 dbus                                                                                                            [ started  ]
 NetworkManager                                                                                                  [ started  ]
 xdm-setup 

.xsession-errors не появляется

#120339

Попробуйте «костыль»

text

xhost +$(hostname)

Посмотрел я — вы не одиноки с такой проблемой.
Почти все решения сводятся к...

Lupo Alberto написал:
сносите NetworkManager, никогда он особой стабильностью не отличался, и ставьте wicd, работает без нареканий уже очень давно.
wink
#120345
Lupo Alberto написал:
Почти все решения сводятся к...
Lupo Alberto написал:
сносите NetworkManager

дальше можно не продолжать ;)

Lupo Alberto написал:
xhost +$(hostname)

может безопасней xhost $USER ? зачем иксы всей системе?

#120346
drBatty написал:
может безопасней xhost $USER ?

Да, конечно, но всё равно «костыль» :(

#120349
text
 xhost +$(hostname)
No protocol specified
xhost:  unable to open display ":0"

вобщем по прежнему :(

Значит wicd, правда у него почему-то очень часто рвется соединение, но я не вникал в настройки. Попробую разобраться с ним.
Спасибо за желание помочь.

#120350
Alex-L написал:
Значит wicd, правда у него почему-то очень часто рвется соединение, но я не вникал в настройки.

При запуске wicd нужно обязательно останавливать networkmanager.

#120351
Lupo Alberto написал:
[quote=Alex-L]Значит wicd, правда у него почему-то очень часто рвется соединение, но я не вникал в настройки.

При запуске wicd нужно обязательно останавливать networkmanager.[/quote]
Так и делал

#120354

Проверьте, чтобы у вас было примерно так:

text

grep RC_PLUG_SERVICES /etc/conf.d/rc | grep -v "^#"
RC_PLUG_SERVICES="net.lo !net.eth0 !net.wlan0"

Также не должно быть никаких net.* сервисов (кроме net.lo) в загрузке. Сейчас вроде бы уже не требуется, но я по старой привычке удаляю и сами симлинки /etc/init.d/net.eth0 и /etc/init.d/net.wlan0 на /etc/init.d/net.lo, то есть должно быть

text

 # ls -l /etc/init.d/net.*
-rwxr-xr-x 1 root root 30689 Янв 18 09:09 /etc/init.d/net.lo*
#120355
Alex-L написал:
Значит wicd, правда у него почему-то очень часто рвется соединение, но я не вникал в настройки. Попробую разобраться с ним.

если wicd рвёт соединение, значит он неправильно настроен. посмотрите, как настраивает NM, и настройте также (смотрите там, где NW нормально работает).

Lupo Alberto написал:
но всё равно «костыль»

угу. костыль... и потенциально опасный костыль... :(

Alex-L написал:
xhost +$(hostname) No protocol specified xhost: unable to open display ":0"

э... тогда не знаю... :(

#120359
drBatty написал:
э... тогда не знаю... sad

NetworkManager с policykit тесно завязан, а с её настройками сам чёрт голову сломает oO

#120367
Lupo Alberto написал:
с policykit тесно завязан, а с её настройками сам чёрт голову сломает

да... если это работает, то хорошо. обычно оно работает... но если не работает - фиг настроишь :(

#120785

Вылечилось обновлением NetworkManager-а до версии 0.8.2-r3 smile

#177407

У меня вылечилось добавлением

text
[keyfile]
hostname = <hostname>

в /etc/NetworkManager/nm-system-settings.conf

#179227
Lupo Alberto написал:

Сейчас вроде бы уже не требуется, но я по старой привычке удаляю и сами симлинки /etc/init.d/net.eth0 и /etc/init.d/net.wlan0 на /etc/init.d/net.lo, то есть должно быть
text

 # ls -l /etc/init.d/net.*
-rwxr-xr-x 1 root root 30689 Янв 18 09:09 /etc/init.d/net.lo*

Вот тут не понял, как без них? В том же net.example они нужны.

#179231
newzenon написал:
Вот тут не понял, как без них? В том же net.example они нужны.

Я wicd пользуюсь, то есть сетевые интерфейсы не должны подниматься при загрузке.

Войдите или зарегистрируйтесь, чтобы ответить.