Problem with pppoe

Hello,

Since years i have a pppoe connection started with systemd.
I use a file in /etc/ppp/peers called proximus with this content

# load plugin for PPPoE
plugin rp-pppoe.so
#
# Ethernet interface to use
eno3
#
# set user
#user bk287867@SKYNET
user bk287867@PROXIMUS
#
# set lower mtu/mru for PPPoE
mtu 1492
mru 1492
#
# automatically set the PPP connection as your default route (for IPv4 only)
defaultroute
replacedefaultroute
#
# obtain DNS entries
usepeerdns
#
# never die
idle 0
maxfail 0
persist
passive
# PCE 20220526.sn
# switch off all compressions (this is a must)
nopcomp
# this is recommended
novjccomp
noccp
# PCE 20220526.en
#
# renames the PPP connection from an automatically generated name (dzf= ppp0)
#ifname pppoe-proximus
#
#enable IPv6 support
# +ipv6
#
#use your IPv4 address as the local identifier for IPv6CP
#ipv6cp-use-ipaddr
noipv6

Today I did a zypper dup and rebooted the system but I receive now a lot of errors and i have no internet connection

Dec 22 22:17:45 hpprol2 systemd[1]: Created slice Slice /system/ppp.
Dec 22 22:17:57 hpprol2 systemd[1]: Starting PPP link to proximus...
Dec 22 22:17:58 hpprol2 pppd[1440]: /usr/sbin/pppd: /usr/lib64/pppd/2.5.0/rp-pppoe.so: cannot open shared object file: No such file or directory
Dec 22 22:17:58 hpprol2 pppd[1440]: /usr/sbin/pppd: Couldn't load plugin rp-pppoe.so
Dec 22 22:17:58 hpprol2 pppd[1440]: /usr/lib64/pppd/2.5.0/rp-pppoe.so: cannot open shared object file: No such file or directory
Dec 22 22:17:58 hpprol2 pppd[1440]: Couldn't load plugin rp-pppoe.so
Dec 22 22:17:58 hpprol2 systemd[1]: ppp@proximus.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Dec 22 22:17:58 hpprol2 systemd[1]: ppp@proximus.service: Failed with result 'exit-code'.
Dec 22 22:17:58 hpprol2 systemd[1]: Failed to start PPP link to proximus.
Dec 22 22:18:08 hpprol2 systemd[1]: ppp@proximus.service: Scheduled restart job, restart counter is at 1.
Dec 22 22:18:08 hpprol2 systemd[1]: Starting PPP link to proximus...
Dec 22 22:18:08 hpprol2 pppd[2106]: /usr/sbin/pppd: /usr/lib64/pppd/2.5.0/rp-pppoe.so: cannot open shared object file: No such file or directory
Dec 22 22:18:08 hpprol2 pppd[2106]: /usr/sbin/pppd: Couldn't load plugin rp-pppoe.so
Dec 22 22:18:08 hpprol2 pppd[2106]: /usr/lib64/pppd/2.5.0/rp-pppoe.so: cannot open shared object file: No such file or directory
Dec 22 22:18:08 hpprol2 pppd[2106]: Couldn't load plugin rp-pppoe.so
Dec 22 22:18:08 hpprol2 systemd[1]: ppp@proximus.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Dec 22 22:18:08 hpprol2 systemd[1]: ppp@proximus.service: Failed with result 'exit-code'.
Dec 22 22:18:09 hpprol2 systemd[1]: Failed to start PPP link to proximus.
Dec 22 22:18:18 hpprol2 systemd[1]: ppp@proximus.service: Scheduled restart job, restart counter is at 2.
etc....

i Find in /usr/lib64/ppd/2.5.0/ the next files

-rwxr-xr-x 1 root root 14304 déc.  21 23:50 minconn.so
-rwxr-xr-x 1 root root 22496 déc.  22 00:18 nm-pppd-plugin.so
-rwxr-xr-x 1 root root 26600 déc.  22 00:20 nm-pptp-pppd-plugin.so
-rwxr-xr-x 1 root root 14296 déc.  21 23:50 openl2tp.so
-rwxr-xr-x 1 root root 14464 déc.  21 23:50 passprompt.so
-rwxr-xr-x 1 root root 14464 déc.  21 23:50 passwordfd.so
-rwxr-xr-x 1 root root 14792 déc.  21 23:50 pppoatm.so
-rwxr-xr-x 1 root root 40064 déc.  21 23:50 pppoe.so
-rwxr-xr-x 1 root root 19240 déc.  21 23:50 pppol2tp.so
-rwxr-xr-x 1 root root 14304 déc.  21 23:50 radattr.so
-rwxr-xr-x 1 root root 65440 déc.  21 23:50 radius.so
-rwxr-xr-x 1 root root 18592 déc.  21 23:50 radrealms.so
-rwxr-xr-x 1 root root 22656 déc.  21 23:50 winbind.so

but no rp_pppoe.so. As I work around I did a link via “ln pppoe.so rp-pppoe.so” and this allowed to start the internet connection but with some erors

hpprol2:/usr/lib64/pppd/2.5.0 # systemctl status ppp@proximus.service
â—Ź ppp@proximus.service - PPP link to proximus
     Loaded: loaded (/usr/lib/systemd/system/ppp@.service; enabled; preset: disabled)
     Active: activating (start) since Fri 2023-12-22 22:55:55 CET; 54s ago
       Docs: man:pppd(8)
    Process: 6940 ExecStart=/usr/sbin/pppd call proximus linkname proximus updetach nolog (code=exited, status=0/SUCCESS)
      Tasks: 1 (limit: 4915)
        CPU: 881ms
     CGroup: /system.slice/system-ppp.slice/ppp@proximus.service
             └─6953 /usr/sbin/pppd call proximus linkname proximus updetach nolog

déc. 22 22:56:08 hpprol2 pppd[6940]: peer from calling number 20:E0:9C:0A:CD:47 authorized
déc. 22 22:56:09 hpprol2 pppd[6940]: Failed to create /etc/ppp/run/ppp_resolv.conf.ppp0: No such file or directory
déc. 22 22:56:09 hpprol2 pppd[6940]: Script /etc/ppp/ip-pre-up finished (pid 6945), status = 0x0
déc. 22 22:56:09 hpprol2 pppd[6940]: replacing old default route to vlan1 [192.168.1.1]
déc. 22 22:56:09 hpprol2 pppd[6940]: local  IP address 87.67.189.171
déc. 22 22:56:09 hpprol2 pppd[6940]: remote IP address 10.24.97.36
déc. 22 22:56:09 hpprol2 pppd[6940]: primary   DNS address 195.238.2.21
déc. 22 22:56:09 hpprol2 pppd[6940]: secondary DNS address 195.238.2.22
déc. 22 22:56:09 hpprol2 systemd[1]: ppp@proximus.service: Can't open PID file /run/ppp-proximus.pid (yet?) after start: No such file or directory
déc. 22 22:56:10 hpprol2 pppd[6953]: Script /etc/ppp/ip-up finished (pid 6961), status = 0x0

and in the journal I receive errors : the internet link go down and is restarted each 1minutes (90 secondes?)

Dec 22 23:04:19 hpprol2 systemd[1]: ppp@proximus.service: Failed with result 'timeout'.
Dec 22 23:04:19 hpprol2 systemd[1]: Failed to start PPP link to proximus.
Dec 22 23:04:19 hpprol2 systemd[1]: ppp@proximus.service: Consumed 1.418s CPU time.
Dec 22 23:04:29 hpprol2 systemd[1]: ppp@proximus.service: Scheduled restart job, restart counter is at 113.
Dec 22 23:04:29 hpprol2 systemd[1]: Starting PPP link to proximus...
Dec 22 23:04:29 hpprol2 pppd[8041]: Plugin rp-pppoe.so loaded.
Dec 22 23:04:29 hpprol2 pppd[8041]: Plugin rp-pppoe.so loaded.
Dec 22 23:04:29 hpprol2 pppd[8041]: PPPoE plugin from pppd 2.5.0
Dec 22 23:04:29 hpprol2 pppd[8041]: PPPoE plugin from pppd 2.5.0
Dec 22 23:04:29 hpprol2 pppd[8041]: Warning: couldn't open ppp database /var/run/pppd/pppd2.tdb
Dec 22 23:04:29 hpprol2 pppd[8041]: pppd 2.5.0 started by root, uid 0
Dec 22 23:04:30 hpprol2 pppd[8041]: PPP session is 1
Dec 22 23:04:30 hpprol2 pppd[8041]: Connected to 20:E0:9C:0A:CD:47 via interface eno3
Dec 22 23:04:30 hpprol2 pppd[8041]: Using interface ppp0
Dec 22 23:04:30 hpprol2 systemd-networkd[1346]: ppp0: Saved new link: ifindex=30, iftype=PPP(512), kind=ppp
Dec 22 23:04:30 hpprol2 systemd-networkd[1346]: ppp0: Saved original MTU 1500 (min: 0, max: 4294967295)
Dec 22 23:04:30 hpprol2 pppd[8041]: Connect: ppp0 <--> eno3
Dec 22 23:04:30 hpprol2 systemd-networkd[1346]: ppp0: Saved IPv6 link-local address generation mode: eui64
Dec 22 23:04:30 hpprol2 systemd-networkd[1346]: ppp0: Flags change: +MULTICAST +POINTOPOINT +NOARP
etc...

Any idea a how to solve this
Many thanks in advance
Philippe

Good try, but if this does not works it indicates I think that the problem is not that simple as somebody forgetting to do that.

I would execute that command on the command line (first make sure the systemd job is not running) and remove “nolog”

I find in /usr/lib64/ppd/2.5.0/ the next files

Checked my Tumbleweed system (updated yesterday) but I have not this directory while I see I have the ppp package installed. “rpm -ql ppp” gives:

> rpm -ql ppp | grep lib64
/usr/lib64/pppd
/usr/lib64/pppd/2.4.9
/usr/lib64/pppd/2.4.9/minconn.so
/usr/lib64/pppd/2.4.9/openl2tp.so
/usr/lib64/pppd/2.4.9/passprompt.so
/usr/lib64/pppd/2.4.9/passwordfd.so
/usr/lib64/pppd/2.4.9/pppoatm.so
/usr/lib64/pppd/2.4.9/pppoe.so
/usr/lib64/pppd/2.4.9/pppol2tp.so
/usr/lib64/pppd/2.4.9/radattr.so
/usr/lib64/pppd/2.4.9/radius.so
/usr/lib64/pppd/2.4.9/radrealms.so
/usr/lib64/pppd/2.4.9/rp-pppoe.so
/usr/lib64/pppd/2.4.9/winbind.so

So I think you have to update the command you have to set up the connection and likely clean up your install.

Okay, I think /usr/lib64/ppd/2.5.0/ is a typing error missing on p.

I did run “zypper dup” again and now have /usr/lib64/pppd/2.5.0. I tried running your command:

> /usr/sbin/pppd call proximus linkname proximus updetach
/usr/sbin/pppd: Can't open options file /etc/ppp/options: Permission denied

I was not expecting that to work, but at least I see the pppd executable loaded without opening open a shared object file.

And … it looks like 2.5.0 has some issue’s…

Link for openSUSE bug:
https://bugzilla.opensuse.org/show_bug.cgi?id=1218370

Many thanks,

I could reinstall the ppp version 2.4.9 after downloading it from the tumbleweed history and I locked it via zypper .
This solves the problem :sweat_smile:

I’ll wait for version 2.5.1 hoping it solve the problem. I have also open an bug report 1218370 – failing to start pppoe after snapshot 20231221

Regards
Philippe

1 Like

I did not know that was possible, how should one do that?

For tumbleweed there exist history repositories at address http://download.opensuse.org/history/ and you can retrieve therein the old version
For example for ppp you can find in http://download.opensuse.org/history/20231221/tumbleweed/repo/oss/x86_64/ old and new version

It is in this snapshot that the new version was delivered.
I downloaded the rpm 2.4.9 and did a force reinstall (open rpm via yast)

Regards
Philippe

1 Like