[Bug 1881522] Re: [SRU] vtun not running on ubuntu 20.04 LTS
Julian Andres Klode
1881522 at bugs.launchpad.net
Thu Feb 15 11:53:40 UTC 2024
Sudip, can you please add more explanation to the changelog how
autoupdate fixes this, because that is not easy to see the connection.
** Changed in: vtun (Ubuntu Focal)
Status: Confirmed => Incomplete
** Changed in: vtun (Ubuntu Jammy)
Status: Confirmed => Incomplete
** Changed in: vtun (Ubuntu Mantic)
Status: Confirmed => Incomplete
** Changed in: vtun (Ubuntu Noble)
Status: Confirmed => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1881522
Title:
[SRU] vtun not running on ubuntu 20.04 LTS
Status in vtun package in Ubuntu:
Incomplete
Status in vtun source package in Focal:
Incomplete
Status in vtun source package in Jammy:
Incomplete
Status in vtun source package in Mantic:
Incomplete
Status in vtun source package in Noble:
Incomplete
Bug description:
[ Impact ]
vtund can not be run as a server as the <-s> option is not available.
The manpage at https://manpages.ubuntu.com/manpages/noble/en/man8/vtund.8.html says about <-s> which can be used to run vtud as a server. But the Ubuntu releases from Focal only have <-i> which allows vtund to run as a inted server.
The current package when executed after installing shows:
$ vtund
vtund[3175]: Can not open /etc/vtund.conf
VTun ver 3.X 11/24/2021
Usage:
Server:
vtund <-i> [-f file] [-P port] [-L local address]
Client:
vtund [-f file] [-q] [-p] [-m] [-t timeout] <host profile> <server address>
The <-s> option is not there in the Server options.
[ Test Plan ]
1. First simple test (no need to test the package even)
- check the build log to see if it says autoconf has found fork(). With the bug fixed the log will have:
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
2. Test the package.
- execute the command vtund.
With the fixed package it will show:
Usage:
Server:
vtund <-s|-i> [-f file] [-P port] [-L local address]
[ Where problems could occur ]
Looking at the diff between 3.0.3-4build1 and 3.0.4-2, I can see the code is mostly same for the server and listener. upstream has only added the check for fork() and then moved the server and listerner code in #ifdef. Since the (now) disabled part of the code has been used in pre-Focal, I think there should not be any regression.
But again, this part of the code has never been used in Focal onwards, so I can not tell for sure that other parts of the system will not affect the server execution.
[ Other Info ]
Debian also had the same problem of fork() not getting detected and that was fixed in 3.0.4-2. But for some reason (I will really like to know why) Ubuntu build systems of Focal and Jammy could not detect fork() is present. And since the package was not rebuilt after Jammy, so the problem remained.
This is the build log from Debian: https://buildd.debian.org/status/fetch.php?pkg=vtun&arch=amd64&ver=3.0.4-2&stamp=1573583517&raw=0
This is the build log from Ubuntu: https://launchpadlibrarian.net/451222645/buildlog_ubuntu-focal-amd64.vtun_3.0.4-2_BUILDING.txt.gz
The Debian build log has:
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
Whereas the build log from Ubuntu of the same version does not have
fork in it.
[ Original Bug Description ]
When installing a new server with Ubuntu 20.04 LTS with vtun_3.0.4-2_amd64 does not run the service as a server.
It has possibly errors in the compilation for Ubuntu Focal.
It runs normally on version 3.0.3-4build1 on Ubuntu 18.04 and also on the version of the package available in the Debian repository in the same version at: http://ftp.us.debian.org/debian/pool/main/v/vtun/vtun_3.0.4-2_amd64.deb
Error log in the current version Ubuntu(Focal).
vtun_3.0.4-2_amd64.deb: Exact Size 61068 Byte (59.6 kByte)
May 20 01:44:05 server vtun [3177]: * Starting virtual tunnel daemon server vtun
May 20 01:44:05 server vtun [3186]: VTun see 3.X 11/11/2019
May 20 01:44:05 server vtun [3186]: Usage:
May 20 01:44:05 server vtun [3186]: Server:
May 20 01:44:05 server vtun [3186]: # 011vtund <-i> [-f file] [-P port] [-L local address]
May 20 01:44:05 server vtun [3186]: Client:
May 20 01:44:05 server vtun [3186]: # 011vtund [-f file] [-q] [-p] [-m] [-t timeout] <host profile> <server address>
May 20 01:44:05 server systemd [1]: vtun.service: Control process exited, code = exited, status = 1 / FAILURE
May 20 01:44:05 server systemd [1]: vtun.service: Failed with result 'exit-code'.
May 20 01:44:05 server systemd [1]: Failed to start LSB: virtual tunnel over TCP / IP networks.
In the version that works the following return:
VTun ver 3.X 02/05/2018
Usage:
Server:
vtund <-s> [-f file] [-P port] [-L local address]
Client:
vtund [-f file] [-p] [-m] [-t timeout] <host profile> <server address>
Version running of Debian repository:
vtun_3.0.4-2_amd64.deb: Exact Size 71124 Byte (69.5 kByte)
VTun ver 3.X 11/11/2019
Usage:
Server:
vtund <-s | -i> [-f file] [-P port] [-L local address]
Client:
vtund [-f file] [-q] [-p] [-m] [-t timeout] <host profile> <server address>
In the log error, such as option -i in the new version Focal and in
the previous versions running, -s for the server environment.
#lsb_release -rd
Description: Ubuntu 20.04 LTS
Release: 20.04
vtun:
Installed: 3.0.4-2
Candidate: 3.0.4-2
Version table:
3.0.4-2 500
500 http://br.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
*** 3.0.4-2 100
100 /var/lib/dpkg/status
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vtun/+bug/1881522/+subscriptions
More information about the Ubuntu-sponsors
mailing list