This is strange, the Java code should only try to insert rows that are not already there. If it was just the insert for the duplicate row we could ignore it. But this is a batch insert failing and therefore the FILESYSTEM_MOUNTS table does not get updated anymore. A quick fix is to launch the psql client and do a "delete from fscc.filesystem_mounts" to clear the table and run the FILESYSTEM_MOUNT task afterwards to repopulate it.
 
Mit freundlichen Grüßen / Kind regards

 
 
  •      
  • Dr. Alexander Wolf-Reber
    Spectrum Scale container native architect
    Department M069 / Spectrum Scale Software Development

    +49-160-90540880
    a.wolf-reber@de.ibm.com

IBM Deutschland Research & Development GmbH / Vorsitzende des Aufsichtsrats: Gregor Pillen / Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294

 
 
----- Original message -----
From: "Oesterlin, Robert" <Robert.Oesterlin@nuance.com>
Sent by: gpfsug-discuss-bounces@spectrumscale.org
To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org>
Cc:
Subject: [EXTERNAL] [gpfsug-discuss] GUI: FILESYSTEM_MOUNT returns ERROR: duplicate key value violates unique constraint
Date: Wed, Mar 17, 2021 13:00
 

Anyone run into this error from the GUI task “FILESYSTEM_MOUNT” or ideas on how to fix it?

 

Batch entry 5 INSERT INTO FSCC.FILESYSTEM_MOUNTS (CLUSTER_ID, DEVICENAME, HOST_NAME, MOUNT_MODE, LAST_UPDATE) VALUES ('16677155164911809171','nrg1_tools','ems1-hs','RO','2021-03-17 07:55:14.051000-04'::timestamp) was aborted: ERROR: duplicate key value violates unique constraint "filesystem_mounts_pk" Detail: Key (host_name, cluster_id, devicename)=(ems1-hs, 16677155164911809171, nrg1_tools) already exists.

 

Call getNextException to see other errors in the batch.,Batch entry 5 INSERT INTO FSCC.FILESYSTEM_MOUNTS (CLUSTER_ID, DEVICENAME, HOST_NAME, MOUNT_MODE, LAST_UPDATE) VALUES ('16677155164911809171','nrg5_tools','ems1-hs','RO','2021-03-17 07:55:15.686000-04'::timestamp) was aborted: ERROR: duplicate key value violates unique constraint "filesystem_mounts_pk" Detail: Key (host_name, cluster_id, devicename)=(ems1-hs, 16677155164911809171, nrg5_tools) already exists. Call getNextException to see other errors in the batch.

 

 

Bob Oesterlin

Sr Principal Storage Engineer, Nuance

507-269-0413

 

_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at spectrumscale.org
https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=Ca33Jr06KzzO4hjuWcM4iQ5J_E1MZR_xSRWwuh6yfsw&m=xCgOgiX440Xjgbcee6C43kYGsj8IprFxLVhy0stdwEA&s=UiVNbeYhHJb-9_m-nItcnyEGqhtTSv7--vBrEF3ItVQ&e=