Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1369334

Summary: Freeradius bug in v3.0.4 - duplicate acctuniqueid problem
Product: Red Hat Enterprise Linux 7 Reporter: SHAURYA <sshaurya>
Component: freeradiusAssignee: Nikolai Kondrashov <nikolai.kondrashov>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: high    
Version: 7.2CC: pkis
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-28 09:15:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description SHAURYA 2016-08-23 07:35:59 UTC
Description of problem: After installing radius v3.0.4,following errors in our radius.log file

Tue Aug 16 10:26:45 2016 : Error: rlm_sql (sql): Duplicate entry 'af8faf1e25565bcd0c455eebac43c453' for key 'acctuniqueid'
Tue Aug 16 10:26:45 2016 : Error: rlm_sql_mysql: Cannot store result
Tue Aug 16 10:26:45 2016 : Error: rlm_sql_mysql: MySQL error 'Duplicate entry 'af8faf1e25565bcd0c455eebac43c453' for key 'acctuniqueid''


freeradius developer (Alan DeKok) indicates:

http://lists.freeradius.org/pipermail/freeradius-users/2015-October/080546.html

> 6)
> 
> 
> Tue Oct 27 22:37:09 2015 : Error: rlm_sql (sql): Duplicate entry
> '30a1ada7fbf7328ec740200d6042f02b' for key 'acctuniqueid'
> Tue Oct 27 22:37:09 2015 : Error: rlm_sql_mysql: Cannot store result Tue Oct
> 27 22:37:09 2015 : Error: rlm_sql_mysql: MySQL error 'Duplicate entry
> '30a1ada7fbf7328ec740200d6042f02b' for key 'acctuniqueid''

  3.0.10 has updates to the queries which work around this issue.


Version-Release number of selected component (if applicable): 

freeradius-3.0.4-6.el7


How reproducible: Everytime


Steps to Reproduce: Not sure, Just install freeradius on rhel 7.2 and the error appears after som etime in radius.log file

Actual results: Error in radius.log file


Expected results: No error should come for Error: rlm_sql_mysql: MySQL error 'Duplicate entry
'30a1ada7fbf7328ec740200d6042f02b' for key 'acctuniqueid''


Additional info:

Comment 4 Nikolai Kondrashov 2016-08-23 13:02:29 UTC
This seems to be fixed by https://github.com/FreeRADIUS/freeradius-server/commit/4cc1462780687a2cc0e949947e9f76830d97a063 and https://github.com/FreeRADIUS/freeradius-server/commit/ed971982f35855fd54398b484e81e1d7b495c316 included into v3.0.9 release. However, testing is needed for confirmation.