Page 1 of 1
accidentally update gone bad
Posted: Tuesday 06 October 2020 10:06
by karelhuis
Dear members,
I accidentally updated my domoticz. Stupid stupid stupid but I didn't pay attention to where my mouse was. Problem is now she does not start up anymore. I can no longer see her or log in at the fixed ip address.
On the Pi's monitor I do see some kind of life ... but am I bringing her back up?
I have already tried these things and the reboot and restart ...
cd domoticz
sudo cp domoticz.sh /etc/init.d
sudo chmod +x /etc/init.d/domoticz.sh
sudo update-rc.d domoticz.sh defaults
cd domoticz
./updaterelease
I am now reading Loades: not found reason no such file or directory
active: inactive dead
pi @ domoticz: ~ $
Should i go back back to the old domoticz version ? is that possible ? or can enter a magic code ?
Hope you can help.
Best regards, KArel
Re: accidentally update gone bad
Posted: Tuesday 06 October 2020 10:13
by kiddigital
Which version where you on before update? And which now? Stable or Beta?
Newer stables and beta need an up to date Pi distro (Buster), please check that.
Otherwise you have to go back to an older version.
Re: accidentally update gone bad
Posted: Tuesday 06 October 2020 10:55
by karelhuis
I don't remember ... but now that you mention it ... the update that we didn't want to have was the update that also had to update the pi with buster.
It was a stable version I remember that.
Can I download the old version again with a code and have it adjusted?
Re: accidentally update gone bad
Posted: Tuesday 06 October 2020 11:19
by erem
this thread may have what you want.
it contains some links to archived versions of Domoticz
viewtopic.php?f=6&t=31157&p=250194
Re: accidentally update gone bad
Posted: Thursday 08 October 2020 19:05
by karelhuis
I followed the link but couldn't continue, the old version should be there, but how to proceed?
https://imgshare.io/image/domo.N91Ii5
this is what i see
Re: accidentally update gone bad
Posted: Thursday 08 October 2020 19:53
by kiddigital
You have to go back to a database backup from before the upgrade because the upgrade also upgraded the database (structures and data).
The old version does not work (understand) with an upgraded database.
But, maybe it as idea to make a copy of the current database and installed plugins and create a new (buster based) install of Domoticz. You have to do it anyway sometime

(speaking from experience here).
The new versions also provide quite some improvements over the old 4.x versions.
Re: accidentally update gone bad
Posted: Friday 09 October 2020 12:05
by karelhuis
Hmm then i think it is best to get another new SD card.
Up date the domo with buster and then the latest Domoticz on it.
And than the data backup, can I install and upload the settings ?
Re: accidentally update gone bad
Posted: Friday 09 October 2020 12:39
by Dave21w
I did something similar a while ago, first thing to do before you break it anymore is remove the SD card and take an image of it, at least then if the next bit goes very wrong you can get back to where you started !!!
After doing the above I followed the instructions to update the O/S to buster after which Domoticz came back to life, I then took a full backup of my current domoticz config, did a fresh install of bsuster on a new card, installed the latest Domoticz stable and restored my back - all good

Re: accidentally update gone bad
Posted: Friday 09 October 2020 17:47
by kiddigital
Good suggestion. Doing the upgrade makes it possible to at least have Domoticz (partly) running to make a good backup and get the settings instead of having to go back to an old database (if you even have it).
Good luck
Re: accidentally update gone bad
Posted: Saturday 10 October 2020 16:11
by karelhuis
YES !!! New sd card,
https://www.youtube.com/watch?v=kbEI0-jw0BQ&t=1314s this video and up up and away!
Happy camper !
Re: accidentally update gone bad
Posted: Saturday 10 October 2020 19:06
by Dave21w
Glad you fixed it, now its all working as it is should, BACK IT UP !!
Regards
Dave
Re: accidentally update gone bad
Posted: Tuesday 13 October 2020 11:34
by karelhuis
DONE !!!!
