Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 366995

Summary: sys-apps/openrc-0.8.2-r1: ppp fails to start
Product: Gentoo Linux Reporter: uen <gentoobugs>
Component: [OLD] baselayoutAssignee: Alin Năstac (RETIRED) <mrness>
Status: RESOLVED INVALID    
Severity: normal CC: net-dialup, openrc
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description uen 2011-05-12 14:51:47 UTC
After I upgraded to openrc my ppp/dsl internet connection stop working.
pppd reports:"no device specified and stdin is not a tty"

/etc/init.d/net.ppp0 start

 * Bringing up interface ppp0
 *   Starting pppd in ppp0 ...
/usr/sbin/pppd: no device specified and stdin is not a tty
 *   start-stop-daemon: failed to start `/usr/sbin/pppd'
 *   Failed to start PPP                                                 [ !! ]
 * ERROR: net.ppp0 failed to start


/var/log/messages
May 12 05:40:42 rhein pppd[21781]: Plugin rp-pppoe.so loaded.
May 12 05:40:42 rhein pppd[21781]: RP-PPPoE plugin version 3.3 compiled against pppd 2.4.4
May 12 05:40:42 rhein pppd[21781]: Plugin passwordfd.so loaded.
May 12 05:40:42 rhein pppd[21781]: no device specified and stdin is not a tty
May 12 05:40:42 rhein /etc/init.d/net.ppp0[21780]: start-stop-daemon: failed to start `/usr/sbin/pppd'
May 12 05:40:42 rhein /etc/init.d/net.ppp0[21718]: ERROR: net.ppp0 failed to start


/etc/conf.d/net

# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d.  To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).

ns_domain_lo="mydomain.net"

config_eth0="192.168.40.1 netmask 255.255.255.0 brd 192.168.0.255"

config_eth1="null"
config_ppp0="ppp"
link_ppp0="eth1"
plugins_ppp0="pppoe"
username_ppp0='user'
password_ppp0='pw'
pppd_ppp0="
       noauth
       defaultroute
#       usepeerdns
       holdoff 3
       child-timeout 60
       lcp-echo-interval 15
       lcp-echo-failure 3
       noaccomp
       noccp
       nobsdcomp
       nodeflate
       nopcomp
       novj
       novjccomp
"

rc_need_ppp0="net.eth1"


Reproducible: Always

Steps to Reproduce:
1.comment usepeerdns with # in /etc/conf.d/net
2.run /etc/init.d/net.ppp0 start
3.pppd fails
Actual Results:  
net.ppp0 failed to start
no internet connection

Expected Results:  
Starting pppd in ppp0
connect to internet

Solution or workaround:
I found the solution in bug #218786 comment 15.
Remove the line "#  usepeerdns" from /etc/conf.d/net
or no # between " ".


It was very hard to find the bugreport #218786 with my error message.
Luckily had help from irc.

The infomation from bug #218786 comment 15 and 34 should be added to the openrc migration guide.
Comment 1 William Hubbs gentoo-dev 2011-05-23 20:35:46 UTC
The issue here is that you were using a comment in the middle of a
variable definition. There isn't anything for us to document for this.