dnguyen
(mariocaptain)
February 14, 2021, 4:26am
1
Hi all,
I am using tango 9.2.5 on a Raspberry Pi 4, and there is a problem starting the tango database service at boot.
At first, it works fine, but after a while the service doesn’t start at boot any more. To make it work I have to restart the service everytime by:
$ sudo /etc/init.d/tango-db restart
Then after a while, it is very hard to restart the server this way.
The output of
$ sudo /etc/init.d/tango-db status
is below.
pi@raspberry:~ $ sudo /etc/init.d/tango-db restart
[ ok ] Restarting tango-db (via systemctl): tango-db.service.
pi@raspberry:~ $ sudo /etc/init.d/tango-db status
● tango-db.service - LSB: Start the tango control system database daemon
Loaded: loaded (/etc/init.d/tango-db; generated)
Active: active (exited) since Sat 2021-02-13 11:32:40 GMT; 16h ago
Docs: man:systemd-sysv-generator(8)
Process: 1523 ExecStart=/etc/init.d/tango-db start (code=exited, status=0/SUCCESS)
After some searching, I found that this is due to a bug of Debian as reported here
I am not sure how to patch/fix this. I wouldn’t want to install a higher version of tango until an installation package for Raspberry Pi is available.
Anyone experiencing the same and has some solution?
tbraun
(Thomas Braun (TB))
February 14, 2021, 10:04am
2
It might be easiest to apply the patch from the bug report, see Fix Bug#906921 (!1) · Merge requests · Debian Science Team / tango · GitLab yourself.
Which exact tango package version are you using?
dnguyen
(mariocaptain)
February 15, 2021, 9:31am
3
Thanks. I am using tango-db 9.2.5a+dfsg1-2+b2
Will try the patch now.
Dave
tbraun
(Thomas Braun (TB))
February 15, 2021, 4:39pm
4
Do you know if that tango package is straight from debian? If yes, I know who to ping for an updated package, as 9.3.4 came out recently.
dnguyen
(mariocaptain)
February 16, 2021, 1:38am
5
Yes, I install from the Debian repo (apt-get). But maybe it’s MY BAD. I didn’t install tango-starter from the beginning. I have installed and the problem seems to have gone. If it comes back I will apply the patch.
On 9.3.4 I have a couple of months till production and I hope that it would be available on the official Debian repo.
Thanks!
dnguyen
(mariocaptain)
February 17, 2021, 1:15am
6
It happens again, so I am gonna apply the patch. I understand that to apply the patch is to simply replace line 6 & 7 of the tango-starter file located in /etc/init.d/ from:
# Should-Start: tango-db
# Should-Stop: tango-db
to
# Should-Start: tango-db network
# Should-Stop: tango-db network
dnguyen
(mariocaptain)
February 17, 2021, 1:24am
7
Still doesn’t work when there is no network (internet) connection at boot. Does anyone know how to correctly apply the patch?
Thanks!