try initializing the repo on error codes 8 and 5