You are not logged in.

#1 2011-02-06 13:40:28

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

[networkmanager] dispatcher problem

Hello guys,

I try to set up a dispatcher functionality that I used in the past. Everything should be fine but the dispatcher script won't be executed. I don't know why...

At first the dispatcher script that is definitively executable.

robert@thinkpad ~ $ ls -l  /etc/NetworkManager/dispatcher.d/20_vpn 
-rwxr-xr-x 1 root root 461 2011-02-06 14:31 /etc/NetworkManager/dispatcher.d/20_vpn
robert@thinkpad ~ $ sudo cat /etc/NetworkManager/dispatcher.d/20_vpn 
#!/bin/sh

INTERFACE=$1 # The interface which is brought up or down
STATUS=$2 # The new state of the interface

case "$STATUS" in
    'up') # $INTERFACE is up
        sudo DISPLAY=:0 /usr/bin/python /etc/NetworkManager/vpn-up.py
    ;;
    'pre-up') # $INTERFACE is up
        sudo DISPLAY=:0 /usr/bin/python /etc/NetworkManager/vpn-up.py
        ;;
    '*') # $INTERFACE is up
        sudo DISPLAY=:0 /usr/bin/python /etc/NetworkManager/vpn-up.py
        ;;
esac

Of course I can run the command to start the python script manually so there has to be a direct problem with the dispatcher.

Any tips?

Regards

Offline

#2 2011-02-06 16:18:25

hoschi
Member
From: Ulm (Germany)
Registered: 2008-11-03
Posts: 457

Re: [networkmanager] dispatcher problem

Do you get wired messages from networkmanager during shutdown?

Offline

#3 2011-02-06 16:31:28

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [networkmanager] dispatcher problem

Unfortunately nothing special, no.

Offline

#4 2011-02-06 17:20:33

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [networkmanager] dispatcher problem

I have to correct my statement. There is one strange error output in syslog.

thinkpad nm-dispatcher.action: nm_dispatcher_action: Invalid connection: '(null)' / 'connection setting not found' invalid: 1
Feb  6 11:44:00 thinkpad nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/01ifupdown' exited with error status 1.
Feb  6 11:44:06 thinkpad nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/20_vpn' exited with error status 1.

Offline

#5 2011-02-27 13:27:23

hoschi
Member
From: Ulm (Germany)
Registered: 2008-11-03
Posts: 457

Re: [networkmanager] dispatcher problem

I see much more, about 30 lines during shutdown. I see it only if gdm is not running.
Since ~ two weeks.

Offline

#6 2011-02-28 22:34:47

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [networkmanager] dispatcher problem

So it doesn't work on your system as well?

Can you please post your error message?

Kind regards

Offline

#7 2011-03-03 07:55:55

hoschi
Member
From: Ulm (Germany)
Registered: 2008-11-03
Posts: 457

Re: [networkmanager] dispatcher problem

Coming soon.

Offline

#8 2011-03-03 09:30:44

Primoz
Member
From: Ljubljana-Slovena-EU
Registered: 2009-03-04
Posts: 688

Re: [networkmanager] dispatcher problem

I also get an error message during shutdown. Probably similar to hoschi's. But I wouldn't know anything about dispatcher, because it seems I don't sue it.
But if my network, after the shutdown error, doesn't work I just restart networkmanager and it works.

And I had this problem for much longer than both of you. I just didn't know how could I get the error message. And mostly everything worked. And as I said, restarting networkmanager solved most of problems I had.


Arch x86_64 ATI AMD APU KDE frameworks 5
---------------------------------
Whatever I do, I always end up with something horribly mis-configured.

Offline

#9 2011-03-05 12:55:45

hoschi
Member
From: Ulm (Germany)
Registered: 2008-11-03
Posts: 457

Re: [networkmanager] dispatcher problem

As promised smile

http://www.ttyhoney.com/stuff/networkmanager.jpeg

This messages appears during shutdown in most cases (gdm is running, not running, gdm never started), but not allways.

Last edited by hoschi (2011-03-05 13:04:21)

Offline

#10 2011-03-17 00:03:08

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [networkmanager] dispatcher problem

Thank you. I wrote the developers on the mailing list and they told me that a general vpn assignment to specific network connections will be implemented in version 0.9.

Hence there will be no need for my configuration I tried above.

Until then I can wait or just stick with it manually.

Regards

Offline

#11 2011-04-18 10:30:33

hoschi
Member
From: Ulm (Germany)
Registered: 2008-11-03
Posts: 457

Re: [networkmanager] dispatcher problem

Bug is here fixed in [testing]

Offline

#12 2011-04-18 10:44:31

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [networkmanager] dispatcher problem

Great, cannot wait to test it. Thanks for information. smile

Regards

Offline

Board footer

Powered by FluxBB