Check artifact storage integrity after filesystem corruption?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Check artifact storage integrity after filesystem corruption?

Tobias Gierke

Hi,

Today our Artifactory server (a virtual machine running  Artifactory 4.2.2 OSS) suffered severe FS corruption (xfs_repair moved a few thousand files/inodes to lost+found). Unfortunately I also found out that our backup server was not properly configured so we have no backup of the artifacts....

Artifactory starts up fine but obviously I have little confidence in the artifacts being returned.

Is there a way to verify that the Artifactory repository is sane ? I tried using the REST API (https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-BadChecksumSearch) but I just learned that this API is only available in the commercial version.

Thanks in advance,
Tobias

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|

[SOLVED] Re: Check artifact storage integrity after filesystem corruption?

Tobias Gierke
Hi,

I now solved this by writing a tiny Java program to verify the exported JAR files against the MD5/SHA1 hash values from the associated .artifactory-metadata/artifactory-file.xml file. Not sure if this is even necessary , maybe Artifactory already performs this check when exporting the artifacts...

My tiny program can be found here: https://github.com/toby1984/artifactory-check

Cheers,
Tobias

Hi,

Today our Artifactory server (a virtual machine running  Artifactory 4.2.2 OSS) suffered severe FS corruption (xfs_repair moved a few thousand files/inodes to lost+found). Unfortunately I also found out that our backup server was not properly configured so we have no backup of the artifacts....

Artifactory starts up fine but obviously I have little confidence in the artifacts being returned.

Is there a way to verify that the Artifactory repository is sane ? I tried using the REST API (https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-BadChecksumSearch) but I just learned that this API is only available in the commercial version.

Thanks in advance,
Tobias


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev


_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users


-- 
Tobias Gierke
Development

VOIPFUTURE GmbH   Wendenstraße 4   20097 Hamburg,  Germany
Phone +49 40 688 900 164 Fax +49 40 688 900 199
Email [hidden email]   Web http://www.voipfuture.com
 
CEO Jan Bastian  
	
Commercial Court AG Hamburg   HRB 109896, VAT ID DE263738086

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users