tango-db failure - DataBaseds: symbol lookup error

It looks like you encountered the following error during the installation of the tango-common package:

usermod: user tango is currently used by process 1328

It looks like tango-common package install script is trying to run usermod command to modify something in the configuration of a user named tango.

According to the CAVEATS section of usermod man page:
You must make certain that the named user is not executing any processes when this command is being executed if the user's numerical user ID, the user's name, or the user's home directory is being changed. usermod checks this on Linux.

So it looks like you were using the user named tango when installing the packages or at least this user was executing a process.
Could you please retry the install, but ensuring the tango user is not executing any process while you do that?

If this does not work, maybe you'll need to reconfigure tango-common package explicitely:
sudo dpkg-reconfigure tango-common


and then try to install the tango packages again?

Hoping this helps.
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.
I got the latest version from https://gitlab.com/tango-controls/TangoSourceDistribution.git
After manually installing all the required packages I could finally call:
ant build

It seems that configure could not detect or use the latest version of Java, but I don't need it at the moment. I just need the tango server database for now.
./configure –with-java=/usr/bin/java –enable-mariadb
Configuration (tango):

Source code location: .
Version: 9.3.4
Compiler: gcc,g++

OMNIORB PATH: /usr
OMNIORB VERSION: "4.2.2"

ZMQ PATH: /usr
ZMQ VERSION: 4.3.2

JAVA PATH:
JAVA VERSION: 11.0.13

Database MARIADB
CLIENT LIB: -lmariadb
CLIENT VERSION: 3.1.15
VERSION: 10.3.32-MariaDB
CONNECTION: OK

build:
libraries: yes
java application: no
access control server: yes
database server: yes
database schema create: yes

After installation the Tango library could not be found:
ldd /usr/local/bin/DataBaseds
linux-vdso.so.1 (0x00007fff55a7a000)
libtango.so.9 => not found
libmariadb.so.3 => /lib/x86_64-linux-gnu/libmariadb.so.3 (0x00007fabb6609000)
libomniORB4.so.2 => /lib/x86_64-linux-gnu/libomniORB4.so.2 (0x00007fabb6449000)
libomniDynamic4.so.2 => /lib/x86_64-linux-gnu/libomniDynamic4.so.2 (0x00007fabb6146000)
libomnithread.so.4 => /lib/x86_64-linux-gnu/libomnithread.so.4 (0x00007fabb613d000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fabb611a000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fabb5f36000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fabb5f1b000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fabb5d29000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fabb5d23000)
libgnutls.so.30 => /lib/x86_64-linux-gnu/libgnutls.so.30 (0x00007fabb5b4d000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fabb5b31000)
/lib64/ld-linux-x86-64.so.2 (0x00007fabb674a000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fabb59e0000)
libp11-kit.so.0 => /lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007fabb58aa000)
libidn2.so.0 => /lib/x86_64-linux-gnu/libidn2.so.0 (0x00007fabb5889000)
libunistring.so.2 => /lib/x86_64-linux-gnu/libunistring.so.2 (0x00007fabb5707000)
libtasn1.so.6 => /lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007fabb56f1000)
libnettle.so.7 => /lib/x86_64-linux-gnu/libnettle.so.7 (0x00007fabb56b7000)
libhogweed.so.5 => /lib/x86_64-linux-gnu/libhogweed.so.5 (0x00007fabb567e000)
libgmp.so.10 => /lib/x86_64-linux-gnu/libgmp.so.10 (0x00007fabb55fa000)
libffi.so.7 => /lib/x86_64-linux-gnu/libffi.so.7 (0x00007fabb55ee000)

I saw that the lib was installed to /usr/local/lib, so I fixed it with
export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib
OR
sudo ldconfig /usr/local/lib

Environment:
export TANGO_HOST=localhost:10000

Testing the server:
# tango start
Starting TANGO database
Starting TANGO Database Server
main(): arrived
main(): export DataBase as named servant (name=database)
Ready to accept request

# /usr/local/bin/TangoTest test
Ready to accept request
device tango/admin/tangoserver not defined in the database !

Should the HOST_NAME(tangoserver) be defined in the database?
Should the HOST_NAME(tangoserver) be defined in the database?

This is the standard name for the Starter device.
If you're not using the starter and astor to start and stop your devices, I think you can ignore this message.
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.