You are not logged in.

#1 2009-09-12 14:33:10

jithin1987
Member
From: Bangalore
Registered: 2009-09-12
Posts: 182

[solved]stopping Networkmanager: FAIL on shutdown or on restart

Hi has anyone faced this issue. Its not actually troublesome but seeing it everytime I shutdown or reboot makes me thinking if anything is wrong with my setup.

Last edited by jithin1987 (2009-09-16 16:11:13)


Thanks
Jithin

Offline

#2 2009-09-12 16:27:17

Zack89
Member
Registered: 2008-09-24
Posts: 170

Re: [solved]stopping Networkmanager: FAIL on shutdown or on restart

Hello! In order for one of us to properly trouble shoot the issue, please report back more information so we can better understand whats going on. If you can report back what the error is (you can prolly simulate it by typing:

# /etc/rc.d/network restart

) and also the internet info in your /etc/rc.conf file including daemons.


Registered User number: 496613. Show your Tux Pride!
http://counter.li.org

Offline

#3 2009-09-12 17:06:00

jithin1987
Member
From: Bangalore
Registered: 2009-09-12
Posts: 182

Re: [solved]stopping Networkmanager: FAIL on shutdown or on restart

/etc/rc.d/networkmanager restart
:: Stopping NetworkManager                                                                                                                            [DONE]
:: Starting NetworkManager                                                                                                                             [DONE]

rc.conf

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#                                                                           
# Interfaces to start at boot-up (in this order)                            
# Declare each interface then list in INTERFACES                            
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
#
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"
INTERFACES=(eth0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng !network netfs crond hal networkmanager)

Last edited by jithin1987 (2009-09-12 17:06:41)


Thanks
Jithin

Offline

#4 2009-09-12 17:12:13

Zack89
Member
Registered: 2008-09-24
Posts: 170

Re: [solved]stopping Networkmanager: FAIL on shutdown or on restart

Hmm.. why do you have your network daemon disabled and using network manager instead?


Registered User number: 496613. Show your Tux Pride!
http://counter.li.org

Offline

#5 2009-09-12 17:35:13

jithin1987
Member
From: Bangalore
Registered: 2009-09-12
Posts: 182

Re: [solved]stopping Networkmanager: FAIL on shutdown or on restart

No specific reason. I have been using that for a long time. I haven been using that in kubuntu before, migrated yesterday. And I was able to make wireless work with knetworkmanager - kde front end to networkmanager.

Is there a better way to handle wireless, wired connections vpn and all. Functional wise I have no issues. Its just that its giving this error message during shutdown


Thanks
Jithin

Offline

#6 2009-09-12 18:14:37

combuster
Member
From: Serbia
Registered: 2008-09-30
Posts: 711
Website

Re: [solved]stopping Networkmanager: FAIL on shutdown or on restart

I stumbled upon a post regarding this issue (but I can't find it now) when I was Ubuntu user while back... The trick was to give network manager enough time to shutdown properly, I can't remember how I did this...

Offline

#7 2009-09-12 18:16:51

jithin1987
Member
From: Bangalore
Registered: 2009-09-12
Posts: 182

Re: [solved]stopping Networkmanager: FAIL on shutdown or on restart

But is this safe enough to ignore? How is generally wired and wireless managed in arch. wicd ?


Thanks
Jithin

Offline

#8 2009-09-12 18:27:30

combuster
Member
From: Serbia
Registered: 2008-09-30
Posts: 711
Website

Re: [solved]stopping Networkmanager: FAIL on shutdown or on restart

Yes, it's safe to ignore, network manager can not kill itself big_smile in time so hence the failed message, everything is perfectly normal as you can see when you restart networkmanager daemon in rc.d

Offline

#9 2009-09-13 02:23:18

Zack89
Member
Registered: 2008-09-24
Posts: 170

Re: [solved]stopping Networkmanager: FAIL on shutdown or on restart

Theres prolly a time delay you can add in with a specific flag. Same as if you do a shutdown for the entire system you can delay it.


Registered User number: 496613. Show your Tux Pride!
http://counter.li.org

Offline

#10 2009-09-13 02:31:42

jithin1987
Member
From: Bangalore
Registered: 2009-09-12
Posts: 182

Re: [solved]stopping Networkmanager: FAIL on shutdown or on restart

Zack89 wrote:

Theres prolly a time delay you can add in with a specific flag. Same as if you do a shutdown for the entire system you can delay it.

Can you give me any pointers as in how to do that?


Thanks
Jithin

Offline

#11 2009-09-13 02:40:37

piezoelectric
Member
Registered: 2009-09-08
Posts: 48

Re: [solved]stopping Networkmanager: FAIL on shutdown or on restart

Zack89 wrote:

Hmm.. why do you have your network daemon disabled and using network manager instead?

I'm also a former (long time) ubuntu user who switch to arch within the past week. I did the same thing: disabled network and enabled networkmanager. (It's just a lot easier when you're often in new places with new wireless networks of various auth types, as well as VPNs and cell phone dongling.

Offline

#12 2009-09-13 03:20:51

Zack89
Member
Registered: 2008-09-24
Posts: 170

Re: [solved]stopping Networkmanager: FAIL on shutdown or on restart

Meh iono Ive always used network considering this on a desktop... Jithin, since networkmanager is a daemon vs a command.. I imagine you can open up a daemons settings correct? If so maybe you can specify a certain time delay either that or edit its source code since its prolly predetermined in it


Registered User number: 496613. Show your Tux Pride!
http://counter.li.org

Offline

#13 2009-09-13 15:35:30

jithin1987
Member
From: Bangalore
Registered: 2009-09-12
Posts: 182

Re: [solved]stopping Networkmanager: FAIL on shutdown or on restart

This is the code in /etc/rc.d/networkmanager which handles shutdown

stop)                                       
                stat_busy "Stopping NetworkManager" 
                        [ ! -z "$PID" ] && kill $PID &> /dev/null
                if [ $? -gt 0 ]; then                            
                        stat_fail                                
                else                                             
                        rm_daemon networkmanager                 
                        stat_done                                
                fi                                               
                ;;

This  "[ ! -z "$PID" ] && kill $PID &> /dev/null" seems to be the issue.
In my case its returning 1 . When I ran manually. Can any one else running networkmanager please confirm?


Thanks
Jithin

Offline

#14 2009-09-14 00:18:05

Zack89
Member
Registered: 2008-09-24
Posts: 170

Re: [solved]stopping Networkmanager: FAIL on shutdown or on restart

Theres prolly something you can remove or whatever.. I did something a while ago when DHCPCD would timeout on me.. I removed the timeout portion of the code so it could NEVER time out and it fixed it.

and btw.. thats NOT the problem, thats just the command thats issued. The problem comes in WHEN it does that.. does networkmanager have a log it outputs to?

Last edited by Zack89 (2009-09-14 00:19:53)


Registered User number: 496613. Show your Tux Pride!
http://counter.li.org

Offline

#15 2009-09-14 09:22:57

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: [solved]stopping Networkmanager: FAIL on shutdown or on restart

i've resolved it .....
by appending DBUS before HAL in rc.conf ....

try ...


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#16 2009-09-14 11:49:32

jithin1987
Member
From: Bangalore
Registered: 2009-09-12
Posts: 182

Re: [solved]stopping Networkmanager: FAIL on shutdown or on restart

nTia89 wrote:

i've resolved it .....
by appending DBUS before HAL in rc.conf ....

try ...

That fixed the issue completely smile


Thanks
Jithin

Offline

#17 2009-10-31 23:10:42

BlueSkyNis
Member
From: Serbia, Niš
Registered: 2009-10-08
Posts: 16

Re: [solved]stopping Networkmanager: FAIL on shutdown or on restart

Hey, thanks! It helped me too.

Cheers smile

Offline

#18 2009-11-01 08:35:28

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: [solved]stopping Networkmanager: FAIL on shutdown or on restart

i think it resolved the problem, because DBUS and HAL are not completely compatible in so things, ......


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#19 2010-02-24 11:59:33

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [solved]stopping Networkmanager: FAIL on shutdown or on restart

Hey, me too! woo! smile


joe@trusktr.io - joe at true skater dot io.

Offline

#20 2010-04-11 13:03:53

leeyee
Member
From: Kingston, Canada
Registered: 2009-01-07
Posts: 150

Re: [solved]stopping Networkmanager: FAIL on shutdown or on restart

nTia89 wrote:

i've resolved it .....
by appending DBUS before HAL in rc.conf ....

try ...

Sorry to bump this old thread.

First, I confirm this way fixes the problem. However, this issue reminds me another _quite-old/odd_ problem in my box, so I think it might be a good point to start here.(If not, I will start a new thread)

You know, when I didn't have dbus appended before HAL, NetworkMananger fails to stop on shutdown/restart. In the "restart" case, however, it seems that in the following, BIOS would fail to reload(just showing loading screen and freeze). I have to hard shutdown the computer and re-open it to boot correctly.

This kind thing happens even since my installation of Archlinux back to Jan. 2009. I mean, when some processes didn't stop correctly during restart, the following BIOS loading would always fail, at least on my thinkpad T400. It seems that system are not reset and RAMs are not cleaned up completely, so I am wondering this might be a bug of the shutdown script? Although I didn't look much into it, I still would like to know if anybody else have similar problems?

Thanks sincerely.


Archlinux x86_64 on Thinkpad T400
Intel X4500MHD / ATI HD3470 Graphics, 2G RAM, 160G HD

Offline

Board footer

Powered by FluxBB