Backup Client 1.2.0 cannot restore

XMLWordPrintable

      Fresh install of Stash 2.12.0 going against mysql. Single user, single project created, single repository.

      Backup is created successfully. Restore run with this command:

      java -Djdbc.override=true -Djdbc.driver=com.mysql.jdbc.Driver -Djdbc.url="jdbc:mysql://localhost:3306/stashnew?autoReconnect=true&characterEncoding=utf8&useUnicode=true&sessionVariables=storage_engine%3DInnoDB" -Djdbc.user=stashuser -Djdbc.password=password -Dstash.home="/opt/atlassian/stash" -jar /opt/atlassian/stash-backup-client-1.2.0/stash-restore-client.jar /opt/atlassian/stash-backup-client-1.2.0/backups/stash-20140327-164217-020.tar

      Results:

      2014-03-27 16:44:21,719 INFO Initializing
      2014-03-27 16:44:23,199 ERROR The application could not be started. An unexpected error prevented the Spring
      ApplicationContext from being created. Details of the error follow.
      org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'liquibaseDao' defined in class path resource [META-INF/spring/restore-spring.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type [com.google.common.base.Supplier]: : No qualifying bean of type [com.google.common.base.Supplier] is defined: expected single matching bean but found 2: backupDataSourceSupplier,databaseService; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.google.common.base.Supplier] is defined: expected single matching bean but found 2: backupDataSourceSupplier,databaseService
      at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:742) ~[spring-beans-4.0.0.RELEASE.jar:4.0.0.RELEASE]
      at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:196) ~[spring-beans-4.0.0.RELEASE.jar:4.0.0.RELEASE]
      ... 14 more frames available in the log file

              Assignee:
              jhinch (Atlassian)
              Reporter:
              Jere Krischel
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: