Reply
Highlighted
New Member
Posts: 25
Registered: ‎07-30-2014
Kudos: 1
Solutions: 1
Accepted Solution

Debian Unifi Controller Reset

I'm trying to reset my Unifi Controller and no amount of uninstalling and reinstalling is doing it. What am I missing?

I don't need to save anything, want a fresh start.

 

I'm using debian.


Accepted Solutions
New Member
Posts: 25
Registered: ‎07-30-2014
Kudos: 1
Solutions: 1

Re: Debian Unifi Controller Reset

apt-get remove --purge unifi

apt-get remove --purge mongodb

 

rm -rf /usr/lib/unifi

 

apt-get install unifi

 

fixed my problem, thank you.

View solution in original post


All Replies
SuperUser
Posts: 15,082
Registered: ‎08-07-2008
Kudos: 7280
Solutions: 415
Contributions: 1

Re: Debian Unifi Controller Reset

Look for the system. Properties file var lib unifi or usr lib unifi.
Walks in, tells it like it is, walks out , milks a cow
SuperUser
Posts: 15,082
Registered: ‎08-07-2008
Kudos: 7280
Solutions: 415
Contributions: 1

Re: Debian Unifi Controller Reset

Ctap lol

Find that and look for the line. Is default invert that value save and restart unifi
Walks in, tells it like it is, walks out , milks a cow
Regular Member
Posts: 662
Registered: ‎03-31-2015
Kudos: 311
Solutions: 5

Re: Debian Unifi Controller Reset

If you are virtualizing, create a snapshot of a clean install with unifi not configured. Then revert each time you want to reset. I find this method makes testing new updates/features easier - especially in lab environment.

 

If not, just run

 

 

apt-get remove --purge packagename

 

will remove about everything regarding the package unifi, but not the dependencies installed with it on installation.

 

Check that /var/lib/unifi does not have any config or data there. 

New Member
Posts: 25
Registered: ‎07-30-2014
Kudos: 1
Solutions: 1

Re: Debian Unifi Controller Reset

apt-get remove --purge unifi

apt-get remove --purge mongodb

 

rm -rf /usr/lib/unifi

 

apt-get install unifi

 

fixed my problem, thank you.

Regular Member
Posts: 662
Registered: ‎03-31-2015
Kudos: 311
Solutions: 5

Re: Debian Unifi Controller Reset

Awesome!
New Member
Posts: 1
Registered: ‎08-07-2018

Re: Debian Unifi Controller Reset

having the same issue on a windows 10 machine any help would be great

New Member
Posts: 2
Registered: ‎05-04-2018

Re: Debian Unifi Controller Reset

Thank you for the help... ;D
Reply