Quick Rebuilding Corrupted Iguana Repo Solutions
Issue
Issue related to Git and it caused corruption in one of the repositories
Iguana will not start, it starts up but shuts down
Crash dumps may or may not be produced
ServiceErrorLogs are Git related errors
NotFoundError: The requested reference “HEAD” was not found.
In ServiceErrorLog:
[ERROR] Remotes repo reference file doesn't exist yet. It must be created before retrieving it.
Remotes repo reference file doesn't exist yet. It must be created before retrieving it.Usually seen in Iguana version 6, Iguana 7 should not have these issues since git is being rebuilt
Possible Causes
The repository somehow got corrupted
There is a bug in Iguana and it cannot handle the corrupted repo gracefully, causing a crash
Git garbage collection failed
Improper migration process
Possible Solutions
You will need to rebuild their Iguana but only do the following if you are certain they have a corrupted Iguana. The edit and IguanaConfigurationRepo are the main culprits for corruption, but other files can cause the issue as well.
Case 1: Quick Rebuild
Backup the “edit” and “IguanaConfigurationRepo”
Stop Iguana service
Delete the edit, run, and IguanaConfigurationRepo folders
Restart Iguana
This method deletes the problem folders but does not touch other files in the working directory. These folders will get rebuilt using the IguanaMainRepo on startup.
Case 2: Rebuild the working directory
Rebuild the working directory, this removes the dependencies on other files in the Iguana working directory. This process also works if the customer’s working directory is the same as their install directory
Backup the Iguana directory
Update the iguana_service.hdf to point to a working_dir
(e.g. command_line=iguana.exe -working_dir "C:\Users\obner\Documents\Test\IguanaConfig")In the command line, reinstall the service
iguana_service --installCopy these files to the working dir:
- data folder
- IguanaMainRepo
- IguanaEnv.txt (File for environment variable, might not be present)
- Any files ending with .sqlite (might not be present)Start Iguana, you will notice some folders get rebuilt in the working directory (edit, IguanaMainRepo)
The service should start and you will be able to get in, if there is anything wrong with their channels, there might be a file the client needs from their backup. Make sure they do not delete the backup.
NOTE: If the client does not want to change their working directory, follow Case 3
Case 3: Delete all files
Backup the working directory
Delete all files EXCEPT
- data folder
- IguanaMainRepo
- IguanaLicense
- IguanaEnv.txt (File for environment variable, might not be present)
- Any files ending with .sqlite (might not be present)Start Iguana, you will notice some folders get rebuilt in the working directory (edit, IguanaMainRepo)
The service should start and you will be able to get in, if there is anything wrong with their channels, there might be a file the client needs from their backup. Make sure they do not delete the backup.
You can move back dependant files from the backup back into the working directory.