In this article we introduce some basic console commands that can be usefull for solving UNMS related issues.
Table of Contents
- Restart UNMS
- Stop UNMS
- Start UNMS
- Password recovery
- Refresh Let's Encrypt certificate
- Fix redis aof file
- Related Articles
NOTE: This command will not remove your settings or data, but will log all users out of UNMS.
Below you will find some usefull console commands for UNMS. If you need to reset the application or find out forgotten password you will find the right tool here.
Use the following command to rebuild all UNMS docker containers. Run as a user with
sudo ~unms/app/unms-cli restart
This command stop UNMS containers. Run as a user with
sudo ~unms/app/unms-cli stop
This command start UNMS containers. Run as a user with
sudo ~unms/app/unms-cli start
Password recovery (0.10.0+)
NOTE: Changing the password this way turns off two-factor authentication. You can turn it on again after logging in.
UNMS includes a script that can be used to change an existing user's password in case password recovery be e-mail is unavailable. To see the list of existing users in UNMS, run the the following command on the UNMS host machine:
sudo docker exec -ti unms ./setpwd.sh
To change a user's password, specify the username as a parameter and enter a new password when asked:
sudo docker exec -ti unms ./setpwd.sh <username>
Refresh Let's Encrypt certificate (0.12.0+)
This command refresh Let's Encrypt certificte. Run as a user with
sudo ~unms/app/unms-cli refresh-certificate
Fix redis aof file (0.12.0+)
This command fix corrupted redis aof file. Run as a user with
sudo ~unms/app/unms-cli fix-redis-aof