Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-3583

setup.sh : applying java patch PatchPreSql_057_ForUpdateToUniqueGUID_J10052 failed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 2.2.0
    • admin
    • None

    Description

      Hello,

       

      I try to upgrade from ranger-2.1.0 to ranger 3.0.0-SNAPSHOT on the same VM.

      When executing setup.sh on the new version, I got the following error in the output of the command :

       

      applying java patch PatchPreSql_057_ForUpdateToUniqueGUID_J10052 failed

       

      And that in the log :

       

      2022-01-12 13:18:53,838 [main] INFO  org.apache.ranger.patch.PatchPreSql_057_ForUpdateToUniqueGUID_J10052 (PatchPreSql_057_ForUpdateToUniqueGUID_J10052.java:61) - main()
      2022-01-12 13:18:54,803 [main] ERROR org.apache.ranger.patch.PatchPreSql_057_ForUpdateToUniqueGUID_J10052 (PatchPreSql_057_ForUpdateToUniqueGUID_J10052.java:75) - Error loading
      org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: You cannot use a spring-security-2.0.xsd or spring-security-3.0.xsd or spring-security-3.1.xsd schema or spring-security-3.2.xsd schema or spring-security-4.0.xsd schema with Spring Security 5.4. Please update your schema declarations to the 5.4 schema.
      Offending resource: class path resource [security-applicationContext.xml]
              at org.springframework.beans.factory.parsing.FailFastProblemReporter.fatal(FailFastProblemReporter.java:62)
              at org.springframework.beans.factory.parsing.ReaderContext.fatal(ReaderContext.java:90)
              at org.springframework.beans.factory.parsing.ReaderContext.fatal(ReaderContext.java:68)
              at org.springframework.security.config.SecurityNamespaceHandler.parse(SecurityNamespaceHandler.java:94)
              at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1391)
              at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1371)
              at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:179)
              at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:149)
              at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:96)
              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:511)
              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391)
              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:338)
              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:224)
              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:195)
              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:257)
              at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:128)
              at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:94)
              at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
              at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:671)
              at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:553)
              at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:144)
              at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:95)
              at org.apache.ranger.util.CLIUtil.init(CLIUtil.java:54)
              at org.apache.ranger.util.CLIUtil.getBean(CLIUtil.java:62)
              at org.apache.ranger.patch.PatchPreSql_057_ForUpdateToUniqueGUID_J10052.main(PatchPreSql_057_ForUpdateToUniqueGUID_J10052.java:63)

       

      I don't know how to unlock this situation.

      Attachments

        1. ranger_db_patch.log
          36 kB
          alain pellegrino

        Activity

          People

            Unassigned Unassigned
            alain.pellegrino@alithya.com alain pellegrino
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: