[Bug 1881522] Re: [SRU] vtun not running on ubuntu 20.04 LTS
Lukas Märdian
1881522 at bugs.launchpad.net
Tue Feb 20 14:38:33 UTC 2024
I can see relevant logs in the latest LP buildlog:
```
debian/rules build
autoconf
configure.in:11: warning: The macro `AC_CONFIG_HEADER' is obsolete.
configure.in:11: You should run autoupdate.
./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from...
configure.in:11: the top level
configure.in:82: warning: The macro `AC_CANONICAL_SYSTEM' is obsolete.
configure.in:82: You should run autoupdate.
./lib/autoconf/general.m4:2081: AC_CANONICAL_SYSTEM is expanded from...
configure.in:82: the top level
configure.in:86: warning: AC_PROG_LEX without either yywrap or noyywrap is obsolete
./lib/autoconf/programs.m4:716: _AC_PROG_LEX is expanded from...
./lib/autoconf/programs.m4:709: AC_PROG_LEX is expanded from...
configure.in:86: the top level
configure.in:95: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.in:95: You should run autoupdate.
./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
configure.in:95: the top level
configure.in:124: warning: The macro `AC_CHECKING' is obsolete.
configure.in:124: You should run autoupdate.
./lib/autoconf/general.m4:2499: AC_CHECKING is expanded from...
configure.in:124: the top level
configure.in:136: warning: The macro `AC_CHECKING' is obsolete.
configure.in:136: You should run autoupdate.
./lib/autoconf/general.m4:2499: AC_CHECKING is expanded from...
configure.in:136: the top level
configure.in:170: warning: The macro `AC_CHECKING' is obsolete.
configure.in:170: You should run autoupdate.
./lib/autoconf/general.m4:2499: AC_CHECKING is expanded from...
configure.in:170: the top level
configure.in:180: warning: The macro `AC_CHECKING' is obsolete.
configure.in:180: You should run autoupdate.
./lib/autoconf/general.m4:2499: AC_CHECKING is expanded from...
configure.in:180: the top level
configure.in:197: warning: The macro `AC_CHECKING' is obsolete.
configure.in:197: You should run autoupdate.
./lib/autoconf/general.m4:2499: AC_CHECKING is expanded from...
configure.in:197: the top level
configure.in:212: warning: The macro `AC_CHECKING' is obsolete.
configure.in:212: You should run autoupdate.
./lib/autoconf/general.m4:2499: AC_CHECKING is expanded from...
configure.in:212: the top level
configure.in:231: warning: The macro `AC_CHECKING' is obsolete.
configure.in:231: You should run autoupdate.
./lib/autoconf/general.m4:2499: AC_CHECKING is expanded from...
configure.in:231: the top level
configure.in:288: warning: AC_OUTPUT should be used without arguments.
configure.in:288: You should run autoupdate.
```
Which is resolved after applying the debdiff:
```
debian/rules build
autoupdate
autoupdate: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:95: warning: The preprocessor macro `STDC_HEADERS' is obsolete.
Except in unusual embedded environments, you can safely include all
ISO C90 headers unconditionally.
autoconf
configure.in:86: warning: AC_PROG_LEX without either yywrap or noyywrap is obsolete
./lib/autoconf/programs.m4:716: _AC_PROG_LEX is expanded from...
./lib/autoconf/programs.m4:709: AC_PROG_LEX is expanded from...
configure.in:86: the top level
configure.in:95: warning: The preprocessor macro `STDC_HEADERS' is obsolete.
configure.in:95: Except in unusual embedded environments, you can safely include all
configure.in:95: ISO C90 headers unconditionally.
[...]
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
```
LGTM. Sponsored into Noble
--
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:
Fix Committed
Status in vtun source package in Focal:
In Progress
Status in vtun source package in Jammy:
In Progress
Status in vtun source package in Mantic:
In Progress
Status in vtun source package in Noble:
Fix Committed
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