Relution does not start after install

Hello,
I am running UCS 4.4-2 and tried to install Relution on the UCS Master from the App Center. The install script did not report any obvious error to me but relution is not starting.

With docker ps -a I found the relution container exited. Checking the log of the container with docker logs <container_id> I got the following log:

ERROR 2005 (HY000): Unknown MySQL server host 'ucs-server.myorg.local' (-2)

Since I really run it with a domain that does not publically resolve I inspected the container a little bit more regarding DNS.
The resolv.conf file docker generated for the container looks like this:

type or paste code here# Warning: This file is auto-generated and might be overwritten by
#          univention-config-registry.
#          Please edit the following file(s) instead:
# Warnung: Diese Datei wurde automatisch generiert und kann durch
#          univention-config-registry ueberschrieben werden.
#          Bitte bearbeiten Sie an Stelle dessen die folgende(n) Datei(en):
# 
# 	/etc/univention/templates/files/etc/resolv.conf
# 


domain	myorg.local
options timeout:2

nameserver 8.8.8.8
nameserver 8.8.4.4

I “assume” that Google DNS does not know about my local domain.
So, how can I change the file to ask the UCS Master?
The file contains a header from Univention but the Relution container is built on CentOS.

Any hints would help.
BR,
Jörn

Hello @jolentes,

you probably ran into this issue, regarding the Docker network: https://forge.univention.org/bugzilla/show_bug.cgi?id=50295. The fix is going to be released the next days.

Have you been upgrading from UCS 4.4-1 or have you made a fresh installation of UCS 4.4-2? If latter is the case, you may also have been running into this: https://www.univention.com/blog-en/2019/10/technical-difficulties-with-ucs-4-4-2-download-image/

If you started off a fresh UCS 4.4-2 installation with the old image (downloaded before 2nd October), please download the latest image and use that one.

Best regards,
Nico

Hello @gulden,
it was an upgrade. I am going to wait for the fix.
BR,
Jörn

Hello @jolentes,

the fix has been released last week with Errata Update 300.

Best regards,
Nico

Hello @gulden,
I had another try with Relution today. Unfortunately it was not successful.
A little more context:
UCS Master 4.4-2 errata404
Relution 4.54.1

docker log of Relution container is fine until after MariaDB Install:

Complete!
Loaded plugins: fastestmirror, ovl
Cleaning repos: base extras mariadb updates
Cleaning up list of fastest mirrors
ERROR 2005 (HY000): Unknown MySQL server host 'ucs-server.fsd.local' (-2)
ERROR 2005 (HY000): Unknown MySQL server host 'ucs-server.fsd.local' (-2)
ERROR 2005 (HY000): Unknown MySQL server host 'ucs-server.fsd.local' (-2)
ERROR 2005 (HY000): Unknown MySQL server host 'ucs-server.fsd.local' (-2)
ERROR 2005 (HY000): Unknown MySQL server host 'ucs-server.fsd.local' (-2)
ERROR 2005 (HY000): Unknown MySQL server host 'ucs-server.fsd.local' (-2)
ERROR 2005 (HY000): Unknown MySQL server host 'ucs-server.fsd.local' (-2)
ERROR 2005 (HY000): Unknown MySQL server host 'ucs-server.fsd.local' (-2)
ERROR 2005 (HY000): Unknown MySQL server host 'ucs-server.fsd.local' (-2)
ERROR 2005 (HY000): Unknown MySQL server host 'ucs-server.fsd.local' (-2)

So it looks like Relution does not find the MariaDB server.

I did check the requirements from the install guide of Relution. The only thing we don’t have is a fixed public IP at the moment. But DNS is configured through DynDNS. But that should not

The UCS Master has a non-public domain name, as you can see from the docker log.
In the pre-install dialog I provided the DynDNS hostname.

The appcenter.log with DEBUG level does not show errors until after the container exists.
Then UCS tried to update the certificates with the error that the container is not running.

What can I check or change?

BR,
Jörn

The solution to my DNS problem was simply setting UCR variable nameserver1 from value “127.0.0.1” to the IP of the UCS Master.
Then the resolv.conf was generated not with Google DNS server but my UCS Master as DNS server.

Even though everything was running on the same host.

But it took me several tries with install and uninstall to get it up and running. One of the problems was that a failed install left the MySQL database in a state that the install could not fix.
The MySQL/MariaDB server is running on the UCS host natively and Relution uninstall does not drop the relution DB created by the install.

Before installing I had to manually login to UCS and connect to MySQL with the password from /etc/mysql.secret and drop the relution database:

mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 10434
Server version: 10.1.41-MariaDB-0+deb9u1 Debian 9.9

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| bluespice          |
| information_schema |
| kopano             |
| mysql              |
| performance_schema |
| relution           |
+--------------------+
6 rows in set (0.03 sec)

MariaDB [(none)]> drop database relution;
Query OK, 197 rows affected (25.68 sec)

MariaDB [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| bluespice          |
| information_schema |
| kopano             |
| mysql              |
| performance_schema |
+--------------------+
5 rows in set (0.00 sec)

MariaDB [(none)]> exit

After that the install went fine (it took quite some time) and I was able to login to the web interface.

1 Like
Mastodon