Recovering Your Installation
In the event your Anaconda Enterprise Repository installation has become unusable due to a corrupt environment, bug in the Repository version, or possibly the software or anaconda-server home directory has been deleted unintentionally you can easily recover the installation. This assumes that the /opt/anaconda-server/package-storage directory and the MongoDB binstar database still exist.
Unusable environment
Anaconda Enterprise Repository has its own conda environment that is used only to run the Repository software. Packages should not be installed in this environment as dependencies may be changed and leave the environment in an unusable state.
Solution
You can reinstall the Repository software in place of the existing installation with out configuration loss. To do this you will use the same Repository installer, if you need this please reach out to Anaconda Enterprise Support.
Stop any anaconda-server processes:
sudo ps aux | grep anaconda-server
sudo kill <PID>
Run the installer:
bash anaconda_repository.sh
source .bashrc
anaconda-server-db-setup --execute
anaconda-server-config --set fs_storage_root /opt/anaconda-server/package-storage
supervisorctl reload
supervisorctl start all
Anaconda Repository bug
If the version you have has a bug prevent some specific usage it is recommended that you update to the most recent version. You can contact Anaconda Enterprise Support for the download URL. If an update is not available and you need to roll back to a previous version please follow the steps listed here for the version you are installing.
Removed software or anaconda-server home directory
Before proceeding on any of the following steps be sure there are no anaconda-server processes still running.
sudo ps aux | grep anaconda-server
sudo kill <PID>
If the software was somehow unintentionally deleted but the home directory still exists you can reinstall the software. This can be done by following the installation instructions starting at Step 3.
If the home directory is missing but the anaconda-server user still exists you can recreate the directory.
Check if the user exists:
id anaconda-server
Recreate the home directory using the linux mkhomedir_helper function:
sudo mkhomedir_helper anaconda-server
Once the home directory exists you can follow the Anaconda Repository installation steps starting at Step 3.