Hi,
unfortunately I have forgotten the password for the uptime kuma plugin and now I am unable to change anything.
I am running the addon on homeassistant OS.
Is there any way to reset the password/user?
TIA
Im fact, I think on first installtion Uptime Kuma addon didn’t ask for credentials but seems to have enforced them afterwards. (since none of my browsers have that password stored)
Maybe somebody could help me out to get control over it back…
TIA
Did you find out how to reset? Ive just gone to make a change on mine and was presented with login but I cannot remember what it is
No as you can see, nowbody answered my question. I still don’t know how to reset the password.
@umtauscher @Kezza
Find the name of your uptime-kuma container:
docker ps | grep uptime-kuma
Login to the Docker container
docker exec -it addon_[numberFromAbove]_uptime-kuma sh
Move the included but unused folder /opt/uptime-kuma/data out of the way
mv /opt/uptime-kuma/data /opt/uptime-kuma/data_dist
Create a symlink to the correct data folder
ln -s /data /opt/uptime-kuma/data
Reset your password
cd /opt/uptime-kuma
npm run reset-password
Thanks a lot. I will try that this weekend and report back.
Cheers
Since no one has confirmed, @sem1845 's solution does work (although my install didn’t have an existing /opt/uptime-kuma/data directory)
Thank you, sir/madam/other
Agreed, works a treat,
addon_a0d7b954_uptime-kuma
âžś ~ docker exec -it addon_ac23b001b05e_uptime-kuma sh
Error response from daemon: No such container: addon_ac23b001b05e_uptime-kuma
âžś ~ docker exec -it ac23b001b05e sh
root@a0d7b954-uptime-kuma:/opt$ mv /opt/uptime-kuma/data /opt/uptime-kuma/data_dist
mv: can't rename '/opt/uptime-kuma/data': No such file or directory
root@a0d7b954-uptime-kuma:/opt$
root@a0d7b954-uptime-kuma:/opt$ ln -s /data /opt/uptime-kuma/data
root@a0d7b954-uptime-kuma:/opt$
root@a0d7b954-uptime-kuma:/opt$ cd /opt/uptime-kuma
root@a0d7b954-uptime-kuma:/opt/uptime-kuma$ npm run reset-password
> [email protected] reset-password
But I found I just used the slug (is that the right word) for the container without the “addon” prefix and “_uptime-kuma” suffix, as shown above
Oh, and you have to be using the terminal/ssh addon that allows you access to the secure stuff. Writing in haste so excuse the lack of correct terminology!!
Question for everyone, ive found the name of my uptime kuma addon but none of the docker commands work I just get back
bash: sudo: command not found