[ZBX-24532] Zabbix Proxy 7.0 (SQLite) crashes with DNS library error Created: 2024 May 23  Updated: 2024 Jun 08  Resolved: 2024 Jun 08

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P)
Affects Version/s: 7.0.0rc2, 7.0.1rc1
Fix Version/s: 7.0.1rc1, 7.2.0alpha1

Type: Problem report Priority: Minor
Reporter: Thomas Oftring Assignee: Sergejs Boidenko
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File installed.dns.libs.info     File os-release.info     File uname.info     File zabbix.pkg.info     File zabbix_proxy.conf     File zabbix_proxy.info     Text File zabbix_proxy.log    
Team: Team A
Sprint: S24-W22/23
Story Points: 0.5

 Description   

Environment:

Ubuntu 22.04{}

Steps to reproduce:

  1. Start Zabbix-proxy
  2. Zabbix Proxy crashes directly only starting with DNS library error
  3. Config File, System information and Log File (Debug Level 5) attached
  4. Deleting the Zabbix Proxy Sqlite database also has no effect, database is recreated and then the same crash happens

Result:
See log file zabbix_proxy.log

 



 Comments   
Comment by Rostislav Palivoda (Inactive) [ 2024 May 23 ]

thomas.oftring please provide more details how to reproduce the problem. Does it happen if we build from source? What package did you use for Zabbix installation? 

Comment by Vladislavs Sokurenko [ 2024 May 23 ]

Server exits due to error "cannot initialize asynchronous DNS library"

Comment by Thomas Oftring [ 2024 May 23 ]

All infos already applied in the files.

Installed Packages from Zabbix:
zabbix-proxy-sqlite3/zabbix,now 1:7.0.0~rc2-1+ubuntu22.04 amd64  [installed]
zabbix-release/zabbix,now 1:6.5-1+ubuntu22.04 all  [installed]

Installed DNS library packages from Ubuntu:

libdns-export1110/jammy,now 1:9.11.19+dfsg-2.1ubuntu3 amd64  [installed]
libldns3/jammy,now 1.7.1-2ubuntu4 amd64  [installed]

 

Original Ubuntu Kernel:
Linux srv01 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Tested Proxy with PSK and without. It crashes in both configurations.

I could try to build from source and check if the error occurs.

Can you tell me the configure flags that I should use?

Comment by Thomas Oftring [ 2024 May 23 ]

Hello just compiled from sources zabbix-7.0.0rc2.tar.gz (From Download page)

With following flags:
./configure -prefix=/usr --enable-proxy --with-net-snmp --with-sqlite3 --with-ssh2 --enable-ipv6 --with-net-snmp --with-libcurl  -with-openipmi --with-unixodbc --with-zlib --with-libpthread --with-libevent --with-openssl --with-libpcre2 --with-iconv

Same problem...

Comment by Thomas Oftring [ 2024 May 24 ]

Hello,

I have investigated the problem on the system and found the reason for the problem.
The file /etc/resolv.conf file had been damaged on the system.
Replacing it with a new one fixed crashing the Zabbix Proxy.

You can reproduce the problem by moving the file /etc/resolv.conf away.

Then start the Zabbix Proxy 7.0 and it will crash (Zabbix Proxy 6.4.13/6.4.14/6.4.15 has no problem with it). May be the new threading model in Zabbix 7.0 has introduced the problem.

If the /etc/resolv.conf file is damaged/missing you can successfull ping dns names.
If you use dig you would get a timeout error.
So Zabbix Proxy should also be able to handle it.

Hope that helps.

Comment by Vladislavs Sokurenko [ 2024 May 29 ]

What should be expected behaviour thomas.oftring ?

Comment by Sergejs Boidenko [ 2024 Jun 07 ]

Fixed in: 

Generated at Sun May 25 09:08:25 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.