Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 781932 - net-misc/netifrc-0.7.3 breaks ppp connectivity
Summary: net-misc/netifrc-0.7.3 breaks ppp connectivity
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal critical with 1 vote (vote)
Assignee: netifrc Team
URL:
Whiteboard:
Keywords:
Depends on: 782100
Blocks:
  Show dependency tree
 
Reported: 2021-04-10 08:33 UTC by snowy.mail
Modified: 2023-01-20 05:04 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge-info,5.31 KB, text/plain)
2021-04-10 12:28 UTC, Alexander Wetzel
Details
emerge --info (emerge_info.txt,6.04 KB, text/plain)
2021-04-10 14:29 UTC, snowy.mail
Details
emerge --info (file_781932.txt,5.45 KB, text/plain)
2021-04-11 06:29 UTC, Fabrizio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description snowy.mail 2021-04-10 08:33:02 UTC
After updating to net-misc/netifrc-0.7.3 a restarting of the net.ppp0 interface (DSL, pppoe) was  not possible (see error messages from /var/log/messages).

Downgrading to net-misc/netifrc-0.7.1-r1 resolved the issue.

Reproducible: Always

Steps to Reproduce:
1. Update to net-misc/netifrc-0.7.3
2. Restart ppp network interface



Apr  9 05:30:01 server CROND[1882]: (root) CMD (/etc/init.d/net.ppp0 restart)
Apr  9 05:30:02 server start-stop-daemon[1998]: Will stop /usr/sbin/pppd
Apr  9 05:30:02 server pppd[7562]: Terminating on signal 15
Apr  9 05:30:02 server pppd[7562]: Connect time 697.6 minutes.
Apr  9 05:30:02 server pppd[7562]: Sent 410532041 bytes, received 580076759 bytes.
Apr  9 05:30:02 server pppd[7562]: Connection terminated.
Apr  9 05:30:02 server pppd[7562]: Sent PADT
Apr  9 05:30:02 server pppd[7562]: Exit.
Apr  9 05:30:03 server pppd[2249]: /usr/lib64/pppd/2.4.8/pppoe.so: cannot open shared object file: No such file or directory
Apr  9 05:30:03 server pppd[2249]: Couldn't load plugin pppoe.so
Apr  9 05:30:03 server /etc/init.d/net.ppp0[2248]: start-stop-daemon: failed to start `/usr/sbin/pppd'
Apr  9 05:30:03 server /etc/init.d/net.ppp0[1882]: ERROR: net.ppp0 failed to start
Comment 1 Alexander Wetzel 2021-04-10 11:56:28 UTC
I got what seems to be the same error:

My pppoe uplink also failed after the weekly update of my (stable) gentoo system with basically: 
emerge -a --update --deep --with-bdeps=y --newuse world

net-misc/netifrc was updated to 0.7.3 today but not sure if that was the culprit.
I fixed it by unmasking and installing net-dialup/ppp-2.4.9-r2 after seeing that my ~amd64 system had the missing file.

The file /usr/lib64/pppd/2.4.8/pppoe.so was really missing and even running an emerge -1av net-dialup/ppp did not create it.
Strans is, that in my btrfs snapshot taken prior to the update it's also already missing:

# ls -l /mnt/root-2020-04-10/usr/lib64/pppd/2.4.8/
total 140
-rwxr-xr-x. 1 root root 13968 Jan 23 18:27 minconn.so
-rwxr-xr-x. 1 root root 13960 Jan 23 18:27 openl2tp.so
-rwxr-xr-x. 1 root root 14128 Jan 23 18:27 passprompt.so
-rwxr-xr-x. 1 root root 14128 Jan 23 18:27 passwordfd.so
-rwxr-xr-x. 1 root root 18904 Jan 23 18:27 pppol2tp.so
-rwxr-xr-x. 1 root root 31184 Jan 23 18:27 rp-pppoe.so
-rwxr-xr-x. 1 root root 22320 Jan 23 18:27 winbind.so

I've just downgraded ppp again by running:
emerge -1av =net-dialup/ppp-2.4.8-r1
and it's still missing:
# ls -l /usr/lib64/pppd/*
total 140
-rwxr-xr-x. 1 root root 13968 Apr 10 13:44 minconn.so
-rwxr-xr-x. 1 root root 13960 Apr 10 13:44 openl2tp.so
-rwxr-xr-x. 1 root root 14128 Apr 10 13:44 passprompt.so
-rwxr-xr-x. 1 root root 14128 Apr 10 13:44 passwordfd.so
-rwxr-xr-x. 1 root root 18904 Apr 10 13:44 pppol2tp.so
-rwxr-xr-x. 1 root root 31184 Apr 10 13:44 rp-pppoe.so
-rwxr-xr-x. 1 root root 22320 Apr 10 13:44 winbind.so

updating ppp again via
emerge -1av =net-dialup/ppp-2.4.9-r2

and pppoe.so is back:

# ls -l /usr/lib64/pppd/*
total 140
-rwxr-xr-x. 1 root root 13968 Apr 10 13:47 minconn.so
-rwxr-xr-x. 1 root root 13960 Apr 10 13:47 openl2tp.so
-rwxr-xr-x. 1 root root 14128 Apr 10 13:47 passprompt.so
-rwxr-xr-x. 1 root root 14128 Apr 10 13:47 passwordfd.so
-rwxr-xr-x. 1 root root 31544 Apr 10 13:47 pppoe.so
-rwxr-xr-x. 1 root root 18904 Apr 10 13:47 pppol2tp.so
-rwxr-xr-x. 1 root root 22320 Apr 10 13:47 winbind.so

So seems to be a bug in ppp-2.4.8-r1 for me...
 

Here what syslog has in the log for my original issue:
Apr 10 12:52:33 deagol pppd[3050]: /usr/lib64/pppd/2.4.8/pppoe.so: cannot open shared object file: No such file or directory
Apr 10 12:52:33 deagol pppd[3050]: Couldn't load plugin pppoe.so
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-04-10 12:01:55 UTC
Could we have emerge --info too please?

(In reply to Alexander Wetzel from comment #1)
> I got what seems to be the same error:
> 
> My pppoe uplink also failed after the weekly update of my (stable) gentoo
> system with basically: 
> emerge -a --update --deep --with-bdeps=y --newuse world
> 
> net-misc/netifrc was updated to 0.7.3 today but not sure if that was the
> culprit.

Out of interest, does downgrading netifrc make any difference for you?
Comment 3 Alexander Wetzel 2021-04-10 12:28:44 UTC
Created attachment 698934 [details]
emerge --info

I've downgraded ppp again with
emerge -1av =net-dialup/ppp-2.4.8-r1

and then also downgraded net-misc/netifrc
emerge -1av =net-misc/netifrc-0.7.1-r1

# ls -l /usr/lib64/pppd/*
total 140
-rwxr-xr-x. 1 root root 13968 Apr 10 14:13 minconn.so
-rwxr-xr-x. 1 root root 13960 Apr 10 14:13 openl2tp.so
-rwxr-xr-x. 1 root root 14128 Apr 10 14:13 passprompt.so
-rwxr-xr-x. 1 root root 14128 Apr 10 14:13 passwordfd.so
-rwxr-xr-x. 1 root root 18904 Apr 10 14:13 pppol2tp.so
-rwxr-xr-x. 1 root root 31184 Apr 10 14:13 rp-pppoe.so
-rwxr-xr-x. 1 root root 22320 Apr 10 14:13 winbind.so

Than I called 
/etc/init.d/net.ppp0 stop; /etc/init.d/net.ppp0 start
--> ppp is working

I then updated netifrc again:
emerge -1av net-misc/netifrc

And ppp is then failing again:
deagol /usr/portage/net-dialup/ppp # /etc/init.d/net.ppp0 stop
Authenticating root.
Password: 
 * Caching service dependencies ...                                                                                                                    [ ok ]
 * Bringing down interface ppp0
 *   Caching network module dependencies
 *   Stopping pppd on ppp0                                                                                                                             [ ok ]
deagol /usr/portage/net-dialup/ppp # /etc/init.d/net.ppp0 start
Authenticating root.
Password: 
 * Bringing up interface ppp0
 *   Starting pppd in ppp0 ...
/usr/sbin/pppd: /usr/lib64/pppd/2.4.8/pppoe.so: cannot open shared object file: No such file or directory
/usr/sbin/pppd: Couldn't load plugin pppoe.so
 *   start-stop-daemon: failed to start `/usr/sbin/pppd'
 *   Failed to start PPP                                                                                                                               [ !! ]
 * ERROR: net.ppp0 failed to start

While at it a also creating a symlink pppoe.so -> rp-pppoe.so. This also fixes the issue.
Comment 4 snowy.mail 2021-04-10 14:29:35 UTC
Created attachment 698943 [details]
emerge --info
Comment 5 snowy.mail 2021-04-10 14:33:54 UTC
(In reply to Sam James from comment #2)
> Could we have emerge --info too please?

Added mine as well

@Alexander:
Thank you for testing the different package versions.

Unfortunately, my system is >200km away from my present location, therefore testing its internet connection is somewhat out of the question at the moment. It was hard already to root cause the problem and downgrade the package over the phone with a user on site...
...anyways: if I can assist in any way (without breaking the internet connection on this system), please let me know.
Comment 6 Alexander Wetzel 2021-04-10 16:05:15 UTC
Don't want to cause another downtime but I suspect that the problem is linked to the fact that /etc/conf.d/net config is instructing the scripts to load the pppoe module.

Here the relevant lines:
link_ppp0="net1"
routes_ppp0="default dev ppp0"
plugins_ppp0="pppoe"

Using plugins_ppp0="rt-pppoe" 
in the config would probably also fix the issue.

the Wiki https://wiki.gentoo.org/wiki/PPP even has this statement now:

When using ppp of version less than 2.4.9, the first line should be (rp-prefix)

Which is kind of silly: This remark has been added on 16 January 2021 and all the older versions and the handbook also tell you to use pppoe.

Comparing the two pppd.sh scripts shows, that for net-misc/netifrc-0.7.3 the following pppoe line has been removed:
        for i in ${plugins}; do
                unset IFS
                set -- ${i}
                case "$1" in
                        passwordfd) continue;;
                        pppoa) shift; set -- "pppoatm" "$@";;
                        pppoe) shift; set -- "rp-pppoe" "$@";;
                        capi) shift; set -- "capiplugin" "$@";;

Below that it looks like the script tries to handle that now differently... and  fails to that correctly.
Comment 7 Fabrizio 2021-04-11 06:26:58 UTC
I've been using pppoe for years and the plugin has always been the same:
plugins_ppp0 = "pppoe"
i am using stable packages, no problem with
net-dialup/ppp 2.4.8-r1
net-misc/netifrc 0.7.1-r1
but if I update to
net-misc/netifrc 0.7.3
pppoe connections break
Comment 8 Fabrizio 2021-04-11 06:29:36 UTC
Created attachment 699108 [details]
emerge --info
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-04-11 15:44:23 UTC
OK< see https://bugs.gentoo.org/782100#c0 which I think should help. Stabilisation is about to be complete everywhere.