Starting in SAFE mode

June 1st, 2021


You can force Mango to start up in Safe Mode by creating an empty file named "SAFE" (no quotations) with no file extension in the ${paths.data}/data/core/ directory. You can find the value of ${paths.data} in the properties.env file located in the directory you installed Mango. If paths.data has not been modified, then it will be in the directory that the user installed Mango, MA_HOME/data/core/.

If you are using a linux or macOS operating system, the SAFE file can be added via the terminal using the "touch" command. If you use the command below, replace MA_HOME with the directory Mango is in.

cd MA_HOME/data/core/
touch SAFE

If you are using a Windows Operating System, you can create the safe file by following these commands:

  1. Open the Notepad application that comes installed on all window systems.
  2. Navigate to File > Save As...
  3. type in "SAFE" for the file name. Important: Include the quotations or the file will save as a .txt file.

When the SAFE file is present when Mango starts all the Data Sources will be disabled.

Note: The Data Sources will be disabled in the database. If possible you might want to export the JSON of your data sources prior to this or use a previous Data Source export to import to re-enable the Data Source. This will help you if you disable some data sources and are unable to remember which ones.

Copyright © 2024 Radix IoT, LLC.