Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#69450 - [networkmanager-fortisslvpn] incompatible with pppd 2.4.8

Attached to Project: Community Packages
Opened by Amin Vakil (aminvakil) - Wednesday, 27 January 2021, 11:21 GMT
Last edited by Morten Linderud (Foxboron) - Thursday, 18 February 2021, 11:11 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

Description:

Connecting to a fortigate ssl vpn does not work with recent ppp upgrade.

Additional info:
* package version(s)
ppp 2.4.8-1
networkmanager-fortisslvpn 1.4rc1-2
networkmanager 1.28.1dev+7+g3f5df3cdc6-1
* config and/or log files etc.
Jan 27 14:45:07 hostname NetworkManager[13209]: /usr/bin/pppd: Plugin /usr/lib/pppd/2.4.5/nm-fortisslvpn-pppd-plugin.so is for pppd version 2.4.7, this is 2.4.8
Jan 27 14:45:07 hostname pppd[13209]: Plugin /usr/lib/pppd/2.4.5/nm-fortisslvpn-pppd-plugin.so is for pppd version 2.4.7, this is 2.4.8
Jan 27 14:45:07 hostname NetworkManager[13208]: ERROR: read: Input/output error
Jan 27 14:45:07 hostname NetworkManager[13208]: INFO: Cancelling threads...
Jan 27 14:45:07 hostname NetworkManager[13208]: INFO: Cleanup, joining threads...
Jan 27 14:45:07 hostname NetworkManager[13208]: ERROR: pppd: An error was detected in processing the options given, such as two mutually exclusive options being used.

Steps to reproduce:
Create a forticlient vpn using networkmanager and connect.
This task depends upon

Closed by  Morten Linderud (Foxboron)
Thursday, 18 February 2021, 11:11 GMT
Reason for closing:  Fixed
Comment by Arthur Borsboom (ArthurBorsboom) - Tuesday, 02 February 2021, 10:06 GMT
As a workaround, downgrading ppp back to 2.4.7 makes the VPN client work again.
Comment by Amin Vakil (aminvakil) - Tuesday, 02 February 2021, 10:15 GMT
ArthurBorsboom, yes downgrading works, as ppp has been upgraded to 2.4.8 in core repository too, probably more people are going to face this issue.
Comment by Amin Vakil (aminvakil) - Tuesday, 02 February 2021, 10:42 GMT Comment by Damien Thébault (Zenkibou) - Wednesday, 03 February 2021, 10:54 GMT
I rebuilt the package from source with makepkg using the PKGBUILD, and it works fine.

I don't think this is an incompatibility in the plugin source code, but the ppp package have been rebuilt and this package networkmanager-fortisslvpn must be rebuilt too to match the ppp version.
Comment by Amin Vakil (aminvakil) - Wednesday, 03 February 2021, 10:58 GMT
Can this be automated somehow? I guess many packages are needed to be rebuilt once another package gets a bump and arch has somehow a procedure for these kind of stuff, but I'm not sure.
Comment by Juergen Werner (pogojotz) - Wednesday, 03 February 2021, 12:31 GMT
I can confirm, that a simple rebuild without any modification solves the issue. Thanks @Damien
Comment by Martial Saunois (Cyb3rD4d) - Friday, 05 February 2021, 08:39 GMT
Rebuilding the package did not solve the issue for me:

févr. 05 09:28:54 soad NetworkManager[3858]: /usr/bin/pppd: Plugin /usr/lib/pppd/2.4.5/nm-fortisslvpn-pppd-plugin.so is for pppd version 2.4.7, this is 2.4.8
févr. 05 09:28:54 soad pppd[3858]: Plugin /usr/lib/pppd/2.4.5/nm-fortisslvpn-pppd-plugin.so is for pppd version 2.4.7, this is 2.4.8
févr. 05 09:28:54 soad NetworkManager[3857]: ERROR: read: Input/output error
févr. 05 09:28:54 soad NetworkManager[3857]: INFO: Cancelling threads...
févr. 05 09:28:54 soad NetworkManager[3857]: INFO: Cleanup, joining threads...
févr. 05 09:28:54 soad NetworkManager[3857]: ERROR: pppd: An error was detected in processing the options given, such as two mutually exclusive options being used.
févr. 05 09:28:54 soad NetworkManager[3857]: INFO: Terminated pppd.
févr. 05 09:28:54 soad NetworkManager[3857]: INFO: Closed connection to gateway.
févr. 05 09:28:54 soad NetworkManager[3857]: INFO: Logged out.

I have cloned the repository https://github.com/archlinux/svntogit-packages.git, checked out the branch packages/ppp and run makepkg -sif in the trunk/ directory. Rebooting my system did not help.
Comment by Valantis Trigonis (valtrig) - Friday, 05 February 2021, 13:09 GMT
Hello. Indeed, downgrading to to 2.4.7 does solve the issue. However, I can't see how simply recompiling without any changes can work, as the upstream sources are hardcoded to bind with ppp 2.4.5, unless a different version is specified. Maybe I am missing something here.

In any case, I'm not sure what is the correct approach for fixing this or when an official fix will be provided, as I can see in the repository that the package is currently orphaned, but in order to make this work for me with ppp 2.4.8, I had to modify the PKGBUILD, right before the '--disable-static' option in line 27, and insert a line with: '--with-pppd-plugin-dir=/usr/lib/pppd/2.4.8 \'.

After that, I simply rebuilt the package with 'makepkg', installed it via 'sudo pacman -U ./networkmanager-fortisslvpn-1.4rc1-3-x86_64.pkg.tar.zst' and I was back in business!

I am attaching the updated PKGBUILD file for reference, having also incremented 'pkgrel' from 2 to 3 to avoid potential clashes with pacman's cached package.
   PKGBUILD (0.9 KiB)
Comment by Amin Vakil (aminvakil) - Friday, 05 February 2021, 14:34 GMT
I can also confirm that rebuilding networkmanager-fortisslvpn fixes the package.

@Cyb3rD4d, I guess you have rebuilt ppp package, you should rebuild networkmanager-fortisslvpn in order to make it compatible with new ppp (2.4.8)

asp export networkmanager-fortisslvpn; cd networkmanager-fortisslvpn; makepkg -sri

Make sure you have base-devel installed.

So I assume a rebuild and a bump in pkgrel from a maintainer would fix the issue for everyone.
Comment by Amin Vakil (aminvakil) - Friday, 05 February 2021, 18:47 GMT Comment by Martial Saunois (Cyb3rD4d) - Monday, 08 February 2021, 08:43 GMT
Yes @aminvakil, I re-built the wrong package!
I confirm @jelle solved the issue.

Thank you all for your help!

Loading...