How to get rid of AppDaemon and start over?

Where does appdaemon live? What should I delete to fully get rid of it so I can start fresh?

I tried this:
pi@hassbian:~ $ pip3 uninstall appdaemon
Skipping appdaemon as it is not installed.
pi@hassbian:~ $

but yet:
When I try “sudo hassbian-config install appdaemon” - it automatically changes to the update script - so its finding bits and pieces of it…

Also:
pi@hassbian:~ $ sudo hassbian-config show
This is a list over all suites in hassbian-config
If a suite has green color in the name, you have already installed it.
Install scripts: (Usage ‘sudo hassbian-config install suite’)
appdaemon AppDaemon install script for Hassbian.

And sure enough appdaemon is green!

How I installed it:
I tried installing it a few different ways - I didn’t find the Hassbian specific install script until later so first I tried:

pi@hassbian:~ $ sudo pip3 install appdaemon

then I logged in as HomeAssistant and opened its virtual environment
pi@hassbian:~ $ pip3 install appdaemon
then I created a different virtual environment
pi@hassbian:~ $ pip3 install appdaemon

then I found the Hassbian specific script:


pi@hassbian:~ $ sudo hassbian-config install appdaemon

Neither worked for me completely probably because of the resulting mess so I would like to start over…

However I can’t seem to get rid of the various bits and pieces of appdaemon scattered around…

So that when I try “sudo hassbian-config install appdaemon” - it automatically changes to the update script - so its findig those bits and pie$sbian:~ $ sudo hassbian-config show
This is a list over all suites in hassbian-config
If a suite has green color in the name, you have already installed it.

Install scripts: (Usage 'sudo hassbian-config install suite')
appdaemon            AppDaemon install script for Hassbian.
cloud9               Cloud9 script for Hassbian.
duckdns              Setup for Duck DNS auto renewal, and generates SSL certificate.
fail2ban             Setup for fail2ban service.
homeassistant        Home Assistant install script for Hassbian.
homebridge   Homebridge from this system.

pi@hassbian:~ $ hassbian-config --help
hassbian-config
version: 0.11.1

usage: hassbian-config [command] [suite] [options]
where [command] is one of:
  install	Installs a software [suite].
  upgrade	Upgrades software [suite].
  remove	Remove software [suite].
  show  	To see available [suite] for install/upgrade.
  log   	Displays an log of the last operation.
  share-log	Generates an hastebin link of the last operation.
  show-installed	Generates a list of installed suites.


pi@hassbian:~ $ pip3 uninstall appdaemon
Skipping appdaemon as it is not installed.
pi@hassbian:~ $ 

Now how do I properly get rid of all of it so I can do a fresh install? Don’t say reformat, don’t say reformat…I mean its not bad of an option but…
is there a way to avoid that?

you installed with pip3 in the base area (that can normally be uninstalled with pip3)
then you installed it also in the hA venv (same uninstall with pip3)

but then you used the script. and for that there is no uninstall.
the script also takes care of creating services, etc.
and if i remember correct in a seperate venv

you already unistalled appdaemon on at least 1 place, but you installed it at 3 places.
you need to delete the services that the script made for you, and the venv it made for you and you need to uninstall in the homeassistant venv.

this all wont be easy! and im not sure if you get what you want.
you could ignore what you already have and create a new venv for appdaemon and install a new appdaemon there where it should be and create services for that.
you could … yeah im not gonna say it

if you …
make sure you do the new install the right way.
come to discord on this channel https://discord.gg/pHsjADY when you start, or contact me here before you start and ill help you set it up correctly, in a way that you wont make these kind of problems anymore.

Thanks a lot for replying!

Quick question, how does one delete the services? And where might they might be? And how to find what is currently running?

for that i am not the best person.
mainly because i dont use services :wink:

but you fastest bet to find that out is to start googling for

raspbian stop services
raspbian list active services
raspbian delete service

in most cases the first link is 1 to a forum where others asked that same question.

Alright done - I managed to find all or enough of the bits and pieces to be able to do a fresh clean install.
found this appdaemon in here: /srv/homeassistant/hassbian/control/

and then ran
systemctl list-unit-files | grep enabled

systemctl | grep running

to see that it had been enabled.

So using
systemctl stop [servicename]
systemctl disable [servicename]
rm /etc/systemd/system/[servicename]
rm /etc/systemd/system/[servicename] symlinks that might be related
systemctl daemon-reload
systemctl reset-failed

Which finally let me do a fresh install: sudo hassbian-config install appdaemon

So success, I know get to deal with issues running it :confused: