Error -1266 when deploying eDirectory Docker container on Ubuntu

  • 7024893
  • 02-Nov-2020
  • 02-Nov-2020

Environment

eDirectory 9.2.x Container
Ubuntu 20.04.1 LTS
Docker CE 19.03.13

Situation

When deploying a new eDirectory 9.2.x container on Ubuntu 20.04.1 as a new tree, the following error is reported:

Configuring SAS service... Failed to configure SAS service: unknown error -1266 (fffffb0e hex) err=-1266

Resolution

First, if Docker was installed using snapcraft (snapd, snap store) or any other unofficial method, follow the instructions in the official Docker documentation to uninstall and reinstall Docker using the official Docker repository: https://docs.docker.com/engine/install/ubuntu/

Second, the /etc/hosts file contains a second local loopback entry: 127.0.1.1 <hostname>. Comment this out. Append an entry using the server's IP address. Here is a correct example of an /etc/hosts file:

root@ubuntu1:/# cat /etc/hosts
127.0.0.1 localhost
#127.0.1.1 ubuntu1

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

192.168.150.102 ubuntu1