Page 1 of 1

Problem with Domticz on Windows and Admin rights

Posted: Tuesday 02 January 2024 13:56
by SilverShaded
Hi,

I'm running domoticz on windows for the last few years and recently had to re-install a load of stuff (Java, Domotics etc). Now the problem I have is when Domoticz runs at startup i can not change anything in it, like the lat/lomgitude etc and the Utilities page has all the old objects on it. Where does it get that information from given that uninstalled and deleted the domotics folder?

Secondly if i run it as Administrator manually, i get what looks like a clean install (as i would expect) and i can edit things and they get saved (e.g. lat itude and longitude) the utilities page is clear.

if i then run it again at a reboot/startup, i get what looks like the old version again which cant be edited and has all the old utilities info still present.

I cant figure out why its doing this? Do i have two copies of Domotics, or is it pulling an old data base from somewhere? (as fas as i know they were all deleted).

Currently very confused...

Re: Problem with Domticz on Windows and Admin rights

Posted: Tuesday 02 January 2024 16:50
by gizmocuz
The database (domoticz.db) should be in the installation folder (usually C:\Program Files (x86)\Domoticz)

Re: Problem with Domticz on Windows and Admin rights

Posted: Tuesday 02 January 2024 19:12
by SilverShaded
Yes, the entire directory was deleted, so i dont know where its picking up old information, or why i cant save any changes, unless i start it as administrator. The old database was deleted and the browser cache erased.

Re: Problem with Domticz on Windows and Admin rights

Posted: Wednesday 03 January 2024 8:48
by gizmocuz
Ahhh if you are not admin, it should get the database from the common appdata folder

I use Total Commander, but you can also use Explorer to navigate to C:\Users\<your user>\AppData

It should be here

Re: Problem with Domticz on Windows and Admin rights

Posted: Wednesday 03 January 2024 10:45
by SilverShaded
Fantastic, you put me on the right track thanks. I found the old data base in ProgramData\Domotics (another hidden folder). The problem seems to be something to do with ownership and permissions. I renamed that folder, ran domotics and restore the database, now i can edit things in domotics and the information gets saved...

That will teach me not to mess with user accounts... :)