error on export db
-
Hi to all.,
I receive this error when exporting the db, do you know a way to resolve it? .
ERROR: SQLite query failed: UNIQUE constraint failed: config.var_name
Query: INSERT INTO config (var_name,var_value,default_value,is_visible,need_server_restart,data_type,is_public,description,units) VALUES ('DBConnectionPool.MaxLifetime','14400','14400','1','1','I','N','Maximum lifetime (in seconds) for a database connection.','seconds')
Database export failed.Thank you
-
If you open Configuration->Server Configuration in management client and search for
DBConnectionPool.MaxLifetimehow many entries with such name are there? If two, delete one of them.
What DB are you using, what is NetXMS version?
-
-
So how many entries are there in Configuration->Server Configuration ?
-
-
Ok, and if you connect to your DB using postgres tools and run
select * from config where var_name = 'DBConnectionPool.MaxLifetime';how many lines this query will produce?
-
-
-
This can be accomplished by copying only one row to a temporary table:
create temp table saved as select * from config where var_name = 'DBConnectionPool.MaxLifetime' limit 1;
delete from config where var_name = 'DBConnectionPool.MaxLifetime';
insert into config select * from saved;
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
... then I adopted the query below...