Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-22432

Race condition between Config Manager and ConfigurationManagerCleanupConverter causes artifactory to fail to start

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 7.5.7
    • Component/s: None
    • Labels:
    • Severity:
      Critical

      Description

      2020-06-08T07:54:26.639Z [jfrt ] [INFO ] [9a76c78b65601eb5] [.d.DatabaseConverterAdapter:57] [ocalhost-startStop-1] - Finished database conversion from 7.4.3(70403900) to 7.5.5(70505900)
      2020-06-08T07:54:26.663Z [jfrt ] [INFO ] [9a76c78b65601eb5] [d.c.m.ConverterManagerImpl:171] [ocalhost-startStop-1] - Triggering MARKERS conversion, from 7.4.3 to 7.5.5
      2020-06-08T07:54:26.669Z [jfrt ] [INFO ] [9a76c78b65601eb5] [d.c.m.ConverterManagerImpl:174] [ocalhost-startStop-1] - Finished MARKERS conversion, current version is: 7.5.5
      2020-06-08T07:54:26.669Z [jfrt ] [INFO ] [9a76c78b65601eb5] [d.c.m.ConverterManagerImpl:171] [ocalhost-startStop-1] - Triggering HOME_FILES conversion, from 7.4.3 to 7.5.5
      2020-06-08T07:54:26.681Z [jfrt ] [INFO ] [9a76c78b65601eb5] [d.c.m.ConverterManagerImpl:174] [ocalhost-startStop-1] - Finished HOME_FILES conversion, current version is: 7.5.5
      2020-06-08T07:54:26.727Z [jfrt ] [INFO ] [9a76c78b65601eb5] [d.c.m.ConverterManagerImpl:171] [ocalhost-startStop-1] - Triggering HOME_SYNC_FILES conversion, from 7.4.3 to 7.5.5
      2020-06-08T07:54:26.773Z [jfrt ] [INFO ] [9a76c78b65601eb5] [tionManagerCleanupConverter:40] [ocalhost-startStop-1] - Starting to convert configuration-manager config names to new format
      2020-06-08T07:54:26.775Z [jfrt ] [INFO ] [9a76c78b65601eb5] [tionManagerCleanupConverter:43] [ocalhost-startStop-1] - Found 12 config names to convert
      2020-06-08T07:54:26.776Z [jfrt ] [INFO ] [9a76c78b65601eb5] [tionManagerCleanupConverter:71] [ocalhost-startStop-1] - Not updating artifactory.service_id
      2020-06-08T07:54:26.777Z [jfrt ] [INFO ] [9a76c78b65601eb5] [tionManagerCleanupConverter:74] [ocalhost-startStop-1] - Converting artifactory.security.url.signing.key to artifactory/config/security/url.signing.key
      2020-06-08T07:54:26.785Z [jfrt ] [INFO ] [9a76c78b65601eb5] [tionManagerCleanupConverter:78] [ocalhost-startStop-1] - Converted artifactory.security.url.signing.key to artifactory/config/security/url.signing.key
      2020-06-08T07:54:26.785Z [jfrt ] [INFO ] [9a76c78b65601eb5] [tionManagerCleanupConverter:71] [ocalhost-startStop-1] - Not updating licenses.xml
      2020-06-08T07:54:26.785Z [jfrt ] [INFO ] [9a76c78b65601eb5] [tionManagerCleanupConverter:74] [ocalhost-startStop-1] - Converting artifactory.mimeType to artifactory/config/mimetypes.xml
      2020-06-08T07:54:26.796Z [jfrt ] [INFO ] [9a76c78b65601eb5] [tionManagerCleanupConverter:78] [ocalhost-startStop-1] - Converted artifactory.mimeType to artifactory/config/mimetypes.xml
      2020-06-08T07:54:26.797Z [jfrt ] [INFO ] [9a76c78b65601eb5] [tionManagerCleanupConverter:74] [ocalhost-startStop-1] - Converting artifactory.security.artifactory.key to artifactory/config/security/artifactory.key
      2020-06-08T07:54:26.800Z [jfrt ] [INFO ] [9a76c78b65601eb5] [tionManagerCleanupConverter:78] [ocalhost-startStop-1] - Converted artifactory.security.artifactory.key to artifactory/config/security/artifactory.key
      2020-06-08T07:54:26.801Z [jfrt ] [INFO ] [9a76c78b65601eb5] [tionManagerCleanupConverter:71] [ocalhost-startStop-1] - Not updating artifactory.migration.conan.v2
      2020-06-08T07:54:26.801Z [jfrt ] [INFO ] [9a76c78b65601eb5] [tionManagerCleanupConverter:74] [ocalhost-startStop-1] - Converting artifactory.system.properties to artifactory/config/artifactory.system.properties
      2020-06-08T07:54:26.804Z [jfrt ] [INFO ] [9a76c78b65601eb5] [tionManagerCleanupConverter:78] [ocalhost-startStop-1] - Converted artifactory.system.properties to artifactory/config/artifactory.system.properties
      2020-06-08T07:54:26.805Z [jfrt ] [INFO ] [9a76c78b65601eb5] [tionManagerCleanupConverter:74] [ocalhost-startStop-1] - Converting artifactory.binarystore.xml to artifactory/config/binarystore.xml
      2020-06-08T07:54:26.807Z [jfrt ] [INFO ] [9a76c78b65601eb5] [tionManagerCleanupConverter:78] [ocalhost-startStop-1] - Converted artifactory.binarystore.xml to artifactory/config/binarystore.xml
      2020-06-08T07:54:26.808Z [jfrt ] [INFO ] [9a76c78b65601eb5] [tionManagerCleanupConverter:74] [ocalhost-startStop-1] - Converting artifactory.cluster.license to artifactory/config/artifactory.cluster.license
      2020-06-08T07:54:26.813Z [jfrt ] [ERROR] [9a76c78b65601eb5] [tionManagerCleanupConverter:81] [ocalhost-startStop-1] - Unable to update configs table with new configuration name
      org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "configs_pk"

      To workaround (before this is fixed):
      delete from configs where config_name = 'artifactory.cluster.license';
       

       

      Batel: In some cases, we see more than one file:

      postgres=> select config_name from configs; config_name ------------------------------------------------------- artifactory.service_id licenses.xml artifactory/config/artifactory.system.properties artifactory/config/security/artifactory.key artifactory/config/artifactory.cluster.license artifactory/config/security/url.signing.key artifactory/config/mimetypes.xml artifactory/config/binarystore.xml artifactory/config/binarystore.xml.bak artifactory.config.xml artifactory.system.properties artifactory.mimeType artifactory.binarystore.xml artifactory.security.artifactory.key artifactory.migration.conan.v2 artifactory.cluster.license artifactory.security.access/access.admin.token artifactory.security.url.signing.key artifactory/config/security/access/access.admin.token (21 rows)
      

        The workaround is to remove:
      delete from configs where config_name = 'artifactory.system.properties';
      delete from configs where config_name = 'artifactory.mimeType';
      delete from configs where config_name = 'artifactory.binarystore.xml';
      delete from configs where config_name = 'artifactory.security.artifactory.key';
      delete from configs where config_name = 'artifactory.cluster.license';
      delete from configs where config_name = 'artifactory.security.access/access.admin.token';
      delete from configs where config_name = 'artifactory.security.url.signing.key'; (edited) 
       
       

        Attachments

          Activity

              People

              Assignee:
              uriahl Uriah Levy
              Reporter:
              uriahl Uriah Levy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: