Hi David,
When performing an import of All Repositories via the Repository
Import\Export page, you need to select the repositories directory within the
backup ($A_BACKUP/repositories); and not the backup itself.
Since the backup performs a full system export, you would select the backup
folder itself when performing a full system import.
HTH,
Noam
On Tue, Aug 31, 2010 at 4:00 PM, David J. Biesack <[email protected]>wrote:
> A scheduled backup on one host running Artifactory 2.2.2 succeeded but when
> I try to import that on a second host, the import fails immediately
>
> (X) 1 error(s) reported during the import. Please review the log for
> further information.
>
> 2010-08-30 18:08:10,687 [art-exec-9] [ERROR]
> (o.a.r.s.RepositoryServiceImpl:1661) - The selected directory did not
> contain any repositories.
>
> The directory I'm importing from is the backup directory created from the
> first server.
> It appears complete - contains repositories/**/*.jar, .pom,
> <repo>.artifactory-metadata/artifactory-folder.xml
> files, etc.
>
> On import, I selected All Repositories and Output Verbose Log,
> but the above is the only log messages.
>
> This export/import worked a couple months ago when I set up the scheduled
> backups,
> but now when I went back to verify the process was working as expected, it
> is
> failing.
>
> Any ideas on how to track down the failures?
>
> Here is the log from the successful export.
>
> 2010-08-30 17:55:00,008 [art-exec-12] [INFO ]
> (o.a.s.ArtifactoryApplicationContext:468) - Beginning full system export...
> 2010-08-30 17:55:00,009 [art-exec-12] [INFO ]
> (o.a.s.ArtifactoryApplicationContext:470) - Creating export directory
> 2010-08-30 17:55:00,010 [art-exec-12] [INFO ]
> (o.a.s.ArtifactoryApplicationContext:502) - Using backup directory:
> '/acl/usr/local/artifactory-2.2.2/backup/20100830.175500.tmp'.
> 2010-08-30 17:55:00,010 [art-exec-12] [INFO ]
> (o.a.c.CentralConfigServiceImpl:253) - Exporting config...
> 2010-08-30 17:55:00,050 [art-exec-12] [INFO ]
> (o.a.r.s.RepositoryServiceImpl:679) - Exporting repositories...
> 2010-08-30 17:55:00,052 [art-exec-12] [INFO ] (o.a.r.j.JcrRepoBase :144) -
> Exporting repository 'libs-releases-local' to
> '/acl/usr/local/artifactory-2.2.2/backup/20100830.175500.tmp/repositories/libs-releases-local'.
> 2010-08-30 17:55:05,003 [art-exec-12] [INFO ] (o.a.r.j.JcrRepoBase :144) -
> Exporting repository 'libs-snapshots-local' to
> '/acl/usr/local/artifactory-2.2.2/backup/20100830.175500.tmp/repositories/libs-snapshots-local'.
> 2010-08-30 17:55:14,990 [art-exec-12] [INFO ] (o.a.r.j.JcrRepoBase :144) -
> Exporting repository 'third-party-releases-local' to
> '/acl/usr/local/artifactory-2.2.2/backup/20100830.175500.tmp/repositories/third-party-releases-local'.
> 2010-08-30 17:55:20,813 [art-exec-12] [INFO ] (o.a.r.j.JcrRepoBase :144) -
> Exporting repository 'third-party-snapshots-local' to
> '/acl/usr/local/artifactory-2.2.2/backup/20100830.175500.tmp/repositories/third-party-snapshots-local'.
> 2010-08-30 17:55:21,562 [art-exec-12] [INFO ] (o.a.r.j.JcrRepoBase :144) -
> Exporting repository 'plugins-releases-local' to
> '/acl/usr/local/artifactory-2.2.2/backup/20100830.175500.tmp/repositories/plugins-releases-local'.
> 2010-08-30 17:55:21,635 [art-exec-12] [INFO ] (o.a.r.j.JcrRepoBase :144) -
> Exporting repository 'plugins-snapshots-local' to
> '/acl/usr/local/artifactory-2.2.2/backup/20100830.175500.tmp/repositories/plugins-snapshots-local'.
> 2010-08-30 17:55:21,659 [art-exec-12] [INFO ] (o.a.r.j.JcrRepoBase :144) -
> Exporting repository 'spring-milestone-cache' to
> '/acl/usr/local/artifactory-2.2.2/backup/20100830.175500.tmp/repositories/spring-milestone-cache'.
> 2010-08-30 17:55:21,903 [art-exec-12] [INFO ] (o.a.r.j.JcrRepoBase :144) -
> Exporting repository 'spring-release-cache' to
> '/acl/usr/local/artifactory-2.2.2/backup/20100830.175500.tmp/repositories/spring-release-cache'.
> 2010-08-30 17:55:22,466 [art-exec-12] [INFO ] (o.a.r.j.JcrRepoBase :144) -
> Exporting repository 'codehaus-cache' to
> '/acl/usr/local/artifactory-2.2.2/backup/20100830.175500.tmp/repositories/codehaus-cache'.
> 2010-08-30 17:55:22,492 [art-exec-12] [INFO ] (o.a.r.j.JcrRepoBase :144) -
> Exporting repository 'codehouse.snapshots-cache' to
> '/acl/usr/local/artifactory-2.2.2/backup/20100830.175500.tmp/repositories/codehouse.snapshots-cache'.
> 2010-08-30 17:55:22,524 [art-exec-12] [INFO ] (o.a.r.j.JcrRepoBase :144) -
> Exporting repository 'jfrog-libs-cache' to
> '/acl/usr/local/artifactory-2.2.2/backup/20100830.175500.tmp/repositories/jfrog-libs-cache'.
> 2010-08-30 17:55:22,526 [art-exec-12] [INFO ] (o.a.r.j.JcrRepoBase :144) -
> Exporting repository 'jfrog-plugins-cache' to
> '/acl/usr/local/artifactory-2.2.2/backup/20100830.175500.tmp/repositories/jfrog-plugins-cache'.
> 2010-08-30 17:55:22,573 [art-exec-12] [INFO ]
> (o.a.s.ArtifactoryApplicationContext:641) - Exporting security...
> 2010-08-30 17:55:22,639 [art-exec-12] [INFO ]
> (o.a.s.ArtifactoryApplicationContext:652) - Exporting build info...
> 2010-08-30 17:55:22,640 [art-exec-12] [INFO ] (o.a.b.BuildServiceImpl:343)
> - Starting build info export
> 2010-08-30 17:55:22,641 [art-exec-12] [INFO ] (o.a.b.BuildServiceImpl:400)
> - Finished build info export
> 2010-08-30 17:55:22,642 [art-exec-12] [INFO ]
> (o.a.s.ArtifactoryApplicationContext:550) - Full system export completed
> successfully.
>
>
> --
> David J. Biesack, SAS
> SAS Campus Dr. Cary, NC 27513
> www.sas.com (919) 531-7771
>
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users