[ZBX-14954] Invalid psql query crashes Zabbix SQL server Created: 2018 Oct 04  Updated: 2024 Apr 10  Resolved: 2018 Oct 08

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 4.0.0
Fix Version/s: 4.0.1rc1, 4.2.0alpha1, 4.2 (plan)

Type: Problem report Priority: Blocker
Reporter: Shadi KENAN Assignee: Andris Zeila
Resolution: Fixed Votes: 0
Labels: actions, database, usability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Causes
caused by ZBXNEXT-413 Maintenance Period on Trigger/service... Closed
Duplicate
is duplicated by ZBX-15081 ORA-00979: not a GROUP BY expression Closed
is duplicated by ZBX-14995 Oracle DB problem Closed
Team: Team A
Sprint: Sprint 44
Story Points: 0.25

 Description   

Steps to reproduce:

  1. Create a problem
  2. acknowledge problem

Result:
Crash with

 

32375:20181004:171640.828 [Z3005] query failed: [0] PGRES_FATAL_ERROR:ERROR:  column "e.source" must appear in the GROUP BY clause or be used in an aggregate function
LINE 1: select e.eventid,e.source,e.object,e.objectid,e.clock,e.valu...
                         ^
 [select e.eventid,e.source,e.object,e.objectid,e.clock,e.value,e.acknowledged,e.ns,e.name,e.severity,max(es.suppress_until) from events e left join event_suppress es on e.eventid=es.eventid where e.eventid
=27 group by e.eventid order by e.eventid]
 32375:20181004:171640.828 Got signal [signal:11(SIGSEGV),reason:1,refaddr:(nil)]. Crashing ... 

Expected:
 Problem marked acknowledged and an action is triggered



 Comments   
Comment by Alexey Pustovalov [ 2018 Oct 04 ]

Hello!

What PostgreSQL version do you use?

Comment by Shadi KENAN [ 2018 Oct 05 ]

Hello,

 

Thank you for you prompt response, and your help actually, I forgot the database version, I've upgraded to 9.4 and now everything seems fine.

My bad, you can go ahead and close the ticket.

 

Much appreciated

Comment by Andris Zeila [ 2018 Oct 05 ]

It still does not work with Oracle (haven't been tested on DB2). So it's going to be fixed anyway.

Comment by Andris Zeila [ 2018 Oct 08 ]

Released in:

  • pre-4.0.1rc1 r85591
  • pre-4.2.0alpha1 r85592
Comment by Alireza Zabihi [ 2018 Oct 29 ]

Hi dears,

How can i donwload zabbix 4.0.1 source ?

Thanks in advance

Comment by Vladislavs Sokurenko [ 2018 Oct 29 ]

You can download 4.0.1rc2 here 4.0.1 is on it's way.

Generated at Fri Apr 26 11:54:01 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.