Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96176 - rp-pppoe no longer reconnects
Summary: rp-pppoe no longer reconnects
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-15 06:22 UTC by Kostas Kavourakis
Modified: 2005-06-23 14:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kostas Kavourakis 2005-06-15 06:22:22 UTC
I discovered today after a disconnection of my ADSL line that rp-pppoe no
longer tries to reconnect. This used to work just a few days ago, when I had
another disconnection.
 When I tried to issue an /etc/init.d/rp-pppoe restart, I got this:
 * Stopping adsl ...
adsl-stop: The adsl-connect script (PID 11224) appears to have died
Killing pppd (11326)                                                      [ !! ]
 It seems that the adsl-connect script dies for some reason.

Reproducible: Always
Steps to Reproduce:
1. Connect normaly with /etc/init.d/rp-pppoe start
2. Disconnect the adsl link (powering off the modem or something)
3. adsl-connect dies instead of retrying to connect




emerge --info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.4.20050125-r1,
2.6.11-gentoo-r11 i686)
=================================================================
System uname: 2.6.11-gentoo-r11 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 28 2005, 10:06:48)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r3, 1.9.5, 1.4_p6, 1.5, 1.6.3, 1.7.9-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -mtune=athlon-xp -O2 -pipe -fomit-frame-pointer -w"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=i686 -mtune=athlon-xp -O2 -pipe -fomit-frame-pointer -w"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache distlocks fixpackages sandbox
sfperms strict"
GENTOO_MIRRORS="ftp://files.gentoo.gr http://128.213.5.34/gentoo/
http://ftp.du.se/pub/os/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aac aalib acpi alsa apache2 avi berkdb bitmap-fonts
cdr crypt cups curl dedicated dlloader dvd dvdr dxr3 emboss encode esd ffmpeg
flac foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 guile hal
hardened hardenedphp imagemagick imap imlib java jpeg libg++ libwww mad maildir
matroska mikmod mmx mmx2 mmxext motif mozilla moznocompose moznoirc moznomail
mozsvg mp3 mpeg msn mysql ncurses nls nptl nptlonly nvidia ogg oggvorbis opengl
oss pam pdflib perl php pic pie png pwdb python quicktime readline remote samba
sasl sdl slang spell sse ssl svga tcltk tcpd tiff truetype truetype-fonts
type1-fonts unicode usb userlocales vda virus-scan vorbis win32codecs xine xml2
xmms xv xvid xvmc zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

My pppoe.conf:
#***********************************************************************
#
# pppoe.conf
#
# Configuration file for rp-pppoe.  Edit as appropriate and install in
# /etc/ppp/pppoe.conf
#
# NOTE: This file is used by the adsl-start, adsl-stop, adsl-connect and
#       adsl-status shell scripts.  It is *not* used in any way by the
#       "pppoe" executable.
#
# Copyright (C) 2000 Roaring Penguin Software Inc.
#
# This file may be distributed under the terms of the GNU General
# Public License.
#
# LIC: GPL
# $Id: pppoe.conf,v 1.10 2002/04/09 17:28:38 dfs Exp $
#***********************************************************************

# When you configure a variable, DO NOT leave spaces around the "=" sign.

# Ethernet card connected to ADSL modem
#
# NB: Gentoo overrides ETH when adsl-start is called from the
# networking scripts.  This setting has no effect in that case.
ETH=eth0

# ADSL user name.  You may have to supply "@provider.com"  Sympatico
# users in Canada do need to include "@sympatico.ca"
# Sympatico uses PAP authentication.  Make sure /etc/ppp/pap-secrets
# contains the right username/password combination.
# For Magma, use xxyyzz@magma.ca
USER='xxx@isp.com'

# Bring link up on demand?  Default is to leave link up all the time.
# If you want the link to come up on demand, set DEMAND to a number indicating
# the idle time after which the link is brought down.
DEMAND=no
#DEMAND=300

# DNS type: SERVER=obtain from server; SPECIFY=use DNS1 and DNS2;
# NOCHANGE=do not adjust.
DNSTYPE=NOCHANGE

# Obtain DNS server addresses from the peer (recent versions of pppd only)
# In old config files, this used to be called USEPEERDNS.  Changed to
# PEERDNS for better Red Hat compatibility
PEERDNS=no

DNS1=
DNS2=

# Make the PPPoE connection your default route.  Set to
# DEFAULTROUTE=no if you don't want this.
DEFAULTROUTE=yes

### ONLY TOUCH THE FOLLOWING SETTINGS IF YOU'RE AN EXPERT

# How long adsl-start waits for a new PPP interface to appear before
# concluding something went wrong.  If you use 0, then adsl-start
# exits immediately with a successful status and does not wait for the
# link to come up.  Time is in seconds.
#
# WARNING WARNING WARNING:
#
# If you are using rp-pppoe on a physically-inaccessible host, set
# CONNECT_TIMEOUT to 0.  This makes SURE that the machine keeps trying
# to connect forever after adsl-start is called.  Otherwise, it will
# give out after CONNECT_TIMEOUT seconds and will not attempt to
# connect again, making it impossible to reach.
CONNECT_TIMEOUT=0

# How often in seconds adsl-start polls to check if link is up
CONNECT_POLL=2

# Specific desired AC Name
ACNAME=

# Specific desired service name
SERVICENAME=

# Character to echo at each poll.  Use PING="" if you don't want
# anything echoed
PING="."

# File where the adsl-connect script writes its process-ID.
# Three files are actually used:
#   $PIDFILE       contains PID of adsl-connect script
#   $PIDFILE.pppoe contains PID of pppoe process
#   $PIDFILE.pppd  contains PID of pppd process
#
# NB: Gentoo overrides PIDFILE when adsl-start is run from the
# networking scripts.  This setting has no effect in that case.
PIDFILE="/var/run/adsl.pid"

# Do you want to use synchronous PPP?  "yes" or "no".  "yes" is much
# easier on CPU usage, but may not work for you.  It is safer to use
# "no", but you may want to experiment with "yes".  "yes" is generally
# safe on Linux machines with the n_hdlc line discipline; unsafe on others.
SYNCHRONOUS=no

# Do you want to clamp the MSS?  Here's how to decide:
# - If you have only a SINGLE computer connected to the ADSL modem, choose
#   "no".
# - If you have a computer acting as a gateway for a LAN, choose "1412".
#   The setting of 1412 is safe for either setup, but uses slightly more
#   CPU power.
CLAMPMSS=1452
#CLAMPMSS=no

# LCP echo interval and failure count.
LCP_INTERVAL=20
LCP_FAILURE=3

# PPPOE_TIMEOUT should be about 4*LCP_INTERVAL
PPPOE_TIMEOUT=80

# Firewalling: One of NONE, STANDALONE or MASQUERADE
FIREWALL=NONE

# Linux kernel-mode plugin for pppd.  If you want to try the kernel-mode
# plugin, use LINUX_PLUGIN=rp-pppoe.so
LINUX_PLUGIN=rp-pppoe.so

# Any extra arguments to pass to pppoe.  Normally, use a blank string
# like this:
PPPOE_EXTRA=""

# Rumour has it that "Citizen's Communications" with a 3Com
# HomeConnect ADSL Modem DualLink requires these extra options:
# PPPOE_EXTRA="-f 3c12:3c13 -S ISP"

# Any extra arguments to pass to pppd.  Normally, use a blank string
# like this:
PPPD_EXTRA=""


########## DON'T CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING
# If you wish to COMPLETELY overrride the pppd invocation:
# Example:
#OVERRIDE_PPPD_COMMAND="/usr/sbin/pppd plugin /usr/lib/pppd/2.4.2/rp-pppoe.so
eth0 noipdefault noauth default-asyncmap default
route hide-password nodetach mtu 1492 mru 1492 user xxx@isp.com
lcp-echo-interval 20 lcp-echo-failure
 5"

# If you want adsl-connect to exit when connection drops:
# RETRY_ON_FAILURE=no


Note: real username removed.
Comment 1 Kostas Kavourakis 2005-06-15 07:13:27 UTC
I forgot to mention the version, here goes:
emerge -pv rp-pppoe

These are the packages that I would merge, in order:

Calculating dependencies  ...done!
[ebuild   R   ] net-dialup/rp-pppoe-3.5-r11  +X +tcltk 0 kB

Total size of downloads: 0 kB
Comment 2 Kostas Kavourakis 2005-06-15 07:30:26 UTC
Update: I tried to re-emerge rp-pppoe with -X -tcltk use flags, and now it seems
to be working as intended. I will check again after a few hours of operation.
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2005-06-23 14:28:19 UTC
It could not have anything to do with X or tcltk. adsl-* are simple bash script.
The only thing dependent on that flags is /usr/bin/tkpppoe.