SQL Failure when updating license key

This support forum board is for questions relating to Nagios Fusion.
Locked
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

SQL Failure when updating license key

Post by cwscribner »

Hi all.

Fresh install of Fusion on a barebones CentOS 6 server. I tried updating the license key but I get the following error:

Code: Select all

SQL: INSERT INTO fusion_options (name,value) VALUES ('license_key','my_license_key')	SQL Error [nagiosfusion] : ERROR: duplicate key value violates unique constraint "fusion_options_pkey"	SQL: INSERT INTO fusion_options (name,value) VALUES ('license_key','') SQL Error [nagiosfusion] : ERROR: duplicate key value violates unique constraint "fusion_options_pkey"
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: SQL Failure when updating license key

Post by cwscribner »

BUMP
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: SQL Failure when updating license key

Post by mguthrie »

There might be something goofy going on with the postgres sequences, XI has a similar error show up from time to time. I'll take a look at the XI fix and see if I can come up with something comparable for Fusion (if it's not already there).
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: SQL Failure when updating license key

Post by mguthrie »

Give this script a try and see if it takes care of the issue. Place it in your /usr/local/nagiosfusion/scripts directory and add executable permissions.
You do not have the required permissions to view the files attached to this post.
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: SQL Failure when updating license key

Post by cwscribner »

That fixed it. Thanks!
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: SQL Failure when updating license key

Post by mguthrie »

Awesome! I'll commit that script so it's available for future releases.
Locked