Re: Problem with Simple.Connect
- From: Dan Williams <dcbw redhat com>
- To: Peter Holik <peter holik at>
- Cc: networkmanager-list gnome org
- Subject: Re: Problem with Simple.Connect
- Date: Mon, 26 Oct 2009 13:33:12 -0700
On Sat, 2009-10-24 at 11:52 +0200, Peter Holik wrote:
> Dan Williams schrieb:
> > On Wed, 2009-10-21 at 21:48 +0200, Peter Holik wrote:
> >> As reported at ubuntu:
> >>
> >> https://bugs.launchpad.net/ubuntu/+source/plasma-widget-networkmanagement/+bug/334122/comments/44
> >>
> >> network-manager-0.8~a~git.20091013t193206.679d548
> >>
> >> did not work for me i got:
> >>
> >> NetworkManager: <WARN> pppd_timed_out(): Looks like pppd didn't initialize our dbus module
> >>
> >> i also saw no logs from pppd.
> >>
> >> to see what happens i tried to get an strace output with
> >>
> >> while :; do sleep .2; if pgrep pppd; then strace -s1000 -f -p $(pgrep pppd); fi;done
> >>
> >> write(1, "Plugin /usr/lib/pppd/2.4.4/nm-pppd-plugin.so loaded.", 52) = ? ERESTARTSYS (To be
> >> restarted)
> >> --- SIGTTOU (Stopped (tty output)) @ 0 (0) ---
> >> --- SIGTTOU (Stopped (tty output)) @ 0 (0) ---
> >>
> >> This means that pppd writes to stdout, but networkmanager did not read anything.
> >>
> >> With this patch my huawai E220 is working now
> >
> > Does it work consistently *without* that patch if you run NM manually
> > with:
> >
> > NM_PPP_DEBUG=1 /usr/sbin/NetworkManager --no-daemon
> >
> > ?
> >
> > Dan
>
> No!
>
> I tried to change nm to start pppd with "nologfd" or "nolog" but the
> the error then is at the nm-pluguin (calls g_message).
This is interesting; I've never had a problem with output redirection;
it's supposed to go to the same place that NM's stdout and stderr, which
in this case are redirected to syslog's 'daemon' facility. NM shouldn't
be trying to proxy pppd's stdin/stdout at all.
Whats in your /etc/ppp/options file? Unfortunately pppd will *always*
read that file, and options in it take precedence over what NM sends on
the command line (whcih also cannot be changed).
Dan
> cu Peter
>
>
> >> --- network-manager-0.8~a~git.20091013t193206.679d548.orig/src/ppp-manager/nm-ppp-manager.c +++
> >> network-manager-0.8~a~git.20091013t193206.679d548/src/ppp-manager/nm-ppp-manager.c @@ -921,7
> >> +921,7 @@
> >>
> >> priv->pid = 0;
> >> if (!g_spawn_async (NULL, (char **) ppp_cmd->array->pdata, NULL,
> >> - G_SPAWN_DO_NOT_REAP_CHILD,
> >> + G_SPAWN_DO_NOT_REAP_CHILD || G_SPAWN_STDOUT_TO_DEV_NULL || G_SPAWN_STDERR_TO_DEV_NULL,
> >> pppd_child_setup,
> >> NULL, &priv->pid, err)) {
> >> goto out;
> >>
> >> Well it would be better to read from stdout / stderr and log it
> >>
> >>
> >>
> >> _______________________________________________
> >> NetworkManager-list mailing list
> >> NetworkManager-list gnome org
> >> http://mail.gnome.org/mailman/listinfo/networkmanager-list
> >
> >
> >
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]