BRIEF
* I upgraded from Ubuntu 20.04 to 22.04 (Jammy Jellyfish)
* When I rebooted, Kannel failed to start.
* If I kill the various 'box' processes, then Kannel proceeds to load
successfully
* How can I configure Kannel to load automatically at boot, without this
manual intervention?
DETAIL
* Syslog extract shortly after reboot
2022-09-04T03:44:18.473919-07:00 ubuntu bearerbox[1908]: 2022-09-04 03:44:18
[1908] [0] INFO: HTTP: Opening server at port 13000.
2022-09-04T03:44:18.473999-07:00 ubuntu bearerbox[1908]: 2022-09-04 03:44:18
[1908] [0] INFO: Set SMS resend frequency to 60 seconds.
2022-09-04T03:44:18.474043-07:00 ubuntu bearerbox[1908]: 2022-09-04 03:44:18
[1908] [0] INFO: SMS resend retry set to 5.
2022-09-04T03:44:18.478607-07:00 ubuntu bearerbox[1908]: 2022-09-04 03:44:18
[1908] [5] ERROR: bind failed
2022-09-04T03:44:18.478664-07:00 ubuntu bearerbox[1908]: 2022-09-04 03:44:18
[1908] [5] ERROR: System error 98: Address already in use
2022-09-04T03:44:18.478711-07:00 ubuntu bearerbox[1908]: 2022-09-04 03:44:18
[1908] [5] PANIC: Could not open smsbox port 13001
2022-09-04T03:44:18.478941-07:00 ubuntu bearerbox[1908]: 2022-09-04 03:44:18
[1908] [5] PANIC: /usr/sbin/bearerbox(gw_backtrace+0xe0) [0x5607beed48e0]
[...]
* I then kill all the 'box' processes
root@ubuntu:~# ps -ef | grep box
kannel 1986 1 0 03:44 ? 00:00:00 /usr/sbin/run_kannel_box
--pidfile /var/run/kannel/kannel_bearerbox.pid --no-extra-args
/usr/sbin/bearerbox -v 4 -- /etc/kannel/kannel.conf
kannel 1988 1986 0 03:44 ? 00:00:00 /usr/sbin/bearerbox -v 4 --
/etc/kannel/kannel.conf
kannel 2092 1 0 03:44 ? 00:00:00 /usr/sbin/run_kannel_box
--pidfile /var/run/kannel/kannel_wapbox.pid --no-extra-args /usr/sbin/wapbox -v
4 -- /etc/kannel/kannel.conf
kannel 2093 2092 0 03:44 ? 00:00:00 /usr/sbin/wapbox -v 4 --
/etc/kannel/kannel.conf
root 3189 3177 0 03:46 pts/0 00:00:00 grep --color=auto box
root@ubuntu:~# kill 1986 1988 2092 2093
root@ubuntu:~#
* In syslog, I then I see
2022-09-04T03:46:49.661637-07:00 ubuntu bearerbox[3190]: 2022-09-04 03:46:49
[3190] [0] INFO: HTTP: Opening server at port 13000.
2022-09-04T03:46:49.662217-07:00 ubuntu bearerbox[3190]: 2022-09-04 03:46:49
[3190] [0] INFO: Set SMS resend frequency to 60 seconds.
2022-09-04T03:46:49.662331-07:00 ubuntu bearerbox[3190]: 2022-09-04 03:46:49
[3190] [0] INFO: SMS resend retry set to 5.
2022-09-04T03:46:49.662473-07:00 ubuntu smsbox[3191]: 2022-09-04 03:46:49
[3191] [0] INFO: Connected to bearerbox at localhost port 13001.
2022-09-04T03:46:49.662539-07:00 ubuntu bearerbox[3190]: 2022-09-04 03:46:49
[3190] [0] INFO: DLR rerouting for smsc id <(null)> disabled.
2022-09-04T03:46:49.662596-07:00 ubuntu bearerbox[3190]: 2022-09-04 03:46:49
[3190] [0] INFO: AT2[/dev/modem]: configuration doesn't show modemtype. will
autodetect
2022-09-04T03:46:49.662807-07:00 ubuntu bearerbox[3190]: 2022-09-04 03:46:49
[3190] [0] INFO: Adding interface *
[...]
2022-09-04T03:46:49.663534-07:00 ubuntu bearerbox[3190]: 2022-09-04 03:46:49
[3190] [0] INFO: Kannel bearerbox II version 1.4.5 starting
* And Kannel continues to load and begins processing messages successfully
root@ubuntu:~# apt info kannel
Package: kannel
Version: 1.4.5-9ubuntu2
Priority: optional
Section: universe/net
Origin: Ubuntu
Maintainer: Ubuntu Developers
[email protected]<mailto:[email protected]>
Original-Maintainer: Chris Hofstaedtler [email protected]<mailto:[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 4,691 kB
Pre-Depends: init-system-helpers (>= 1.54~)
Depends: adduser, lsb-base, psmisc, libc6 (>= 2.34), libct4 (>= 0.64), libhiredi
s0.14 (>= 0.14.0), libmysqlclient21 (>= 8.0.11), libpam0g (>= 0.99.7.1), libpcre
3, libpq5, libsqlite3-0 (>= 3.5.9), libssl3 (>= 3.0.0~~alpha1), libxml2 (>= 2.7.
4)
Conflicts: kannel-cvs, kannel-devel
Replaces: kannel-cvs, kannel-devel
Homepage: https://www.kannel.org/
Download-Size: 1,240 kB
APT-Manual-Installed: yes
APT-Sources: http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
Description: WAP and SMS gateway
Kannel is a gateway for connecting WAP (Wireless Application Protocol)
phones to the Internet.
It also works as an SMS/SMPP gateway,
for providing SMS based services for GSM phones.
.
Compiled with ssl, MySQL and native malloc.
root@ubuntu:~#
WHAT I HAVE TRIED
* I tried uninstalling & re-installing kannel; no change in behavior
* apt remove kannel
* apt install kannel
--sk
Stuart Kendrick