NLnetLabs / unbound

Unbound is a validating, recursive, and caching DNS resolver.
https://nlnetlabs.nl/unbound
BSD 3-Clause "New" or "Revised" License
3.17k stars 360 forks source link

Error while starting Unbound 1.13.2 on Ubuntu 20.04 #534

Closed utunnel closed 1 year ago

utunnel commented 3 years ago

Describe the bug Following error occurred while trying to start complied version of unbound with pythonmodule. Unbound version 1.13.2 OS: Ubuntu 20.4 Python: 3.8

root@####:/usr/local# /usr/local/unbound/sbin/unbound -vvv -c /usr/local/unbound/etc/unbound/unbound.conf -d [1629781639] unbound[223253:0] notice: Start of unbound 1.13.2. [1629781639] unbound[223253:0] debug: creating udp4 socket ... [1629781639] unbound[223253:0] debug: creating tcp4 socket ... [1629781639] unbound[223253:0] debug: switching log to syslog Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3/dist-packages/unboundmodule.py", line 803, in class module_env(_object): File "/usr/lib/python3/dist-packages/unboundmodule.py", line 873, in module_env __swig_setmethods__["now"] = _unboundmodule.module_env_now_set AttributeError: module '_unboundmodule' has no attribute 'module_env_now_set'

To reproduce Steps to reproduce the behavior:

  1. tar zxvf unbound-1.13.2.tar.gz
  2. cd unbound-1.13.2
  3. ln -s /usr/bin/python3 /usr/bin/python
  4. ./configure --prefix=/usr/local/unbound --with-pyunbound --with-libevent --with-pythonmodule
  5. make
  6. make install
  7. ./unbound -d

Expected behavior unbound gets started without any error.

System:

Configure line: --prefix=/usr/local/unbound --with-pyunbound --with-libevent --with-pythonmodule Linked libs: libevent 2.1.11-stable (it uses epoll), OpenSSL 1.1.1f 31 Mar 2020 Linked modules: dns64 python respip validator iterator

BSD licensed, see LICENSE in source package for details. Report bugs to unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues

gthess commented 1 year ago

Closing this as a duplicate of #769. More discussion and suggestions in that issue.