[debian] installation of tango-starter before tango-db

Hello tangoers,
I encountered an issue when installing Starter a few months ago, and I forgot then to share this.

I got an issue when installing tango-starter before tango-db on Debian 9 (with apt-get): tango-starter does not force installation of tango-db before. It does not stop either when noticing that tango-db is not installed yet.

I attach the term.log to this message.

Perhaps I have done some mistake in my installation, or perhaps this package does not check that tango-db is installed before?

Regards.
- Philippe
Edited 6 years ago
Hi Philippe,

I don't know the details but it seems natural to me that the tango-starter Debian package does not depend on tango-db since the Tango database could be running on another host.
So I think your assumption that it does not check that tango-db is installed before is probably correct.

Hoping this helps,
Reynald
Rosenberg's Law: Software is easy to make, except when you want it to do something new.
Corollary: The only software that's worth making is software that does something new.
Ok, so I understand my issue was due to the order of installation steps: I installed tango-starter when TANGOHOST was not available so it was impossible to launch it even after installing tango-db.
Perhaps is it because it was impossible to register into database?

I suggest to write this specific need into the documentation of tango-starter.
It seems to me the more logical way to do this would be into the debian package (but this would be accessible only for debian users) and tango-starter documentation (I have to say I do not remember finding this info into this doc).
- Philippe
Hi Philippe,

I think your problem was due to the fact that the tango-starter Debian package is probably trying to declare your starter instance into the tango database during the install process.
Since that Tango database was not reachable when you installed the package, this step was not correctly done.

There are several ways to solve this issue.
I think Debian provides a way to reconfigure your package.
I think you can use the following command (as root or using sudo) once your Tango Database is reachable :
dpkg-reconfigure tango-starter

Another way would be to use Astor (command menu -> add a new host).
Astor will declare your starter instance into the database.

After that, you should be able to start your starter.
But you need to ensure the TANGO_HOST environment variable is correctly defined when your starter is started.

Cheers,
Reynald
Rosenberg's Law: Software is easy to make, except when you want it to do something new.
Corollary: The only software that's worth making is software that does something new.
 
Register or login to create to post a reply.