Page 1 of 1

How to Upgrade from Plugin: 7.1.011. Backup/Restore plugin.py

Posted: Monday 28 October 2024 13:42
by Knight
Hi!

I am having incredible difficulty upgrading to the latest version.

When i try i got this error

"error: Your local changes to the following files would be overwritten by merge:
plugin.py
Please commit your changes or stash them before you merge.
Aborting
Updating 5fea01e2..7b6f080e
ERROR while running command 'git pull --recurse-submodules'.
Git Status: On branch stable7
Your branch is behind 'origin/stable7' by 316 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)

Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git restore ..." to discard changes in working directory)
modified: plugin.py

Untracked files:
(use "git add ..." to include in what will be committed)
.gitconfig
ReportsTransport-stats.json

no changes added to commit (use "git add" and/or "git commit -a")


What does it mean? I made a backup true FTP and follow this step

In case of error
If you have edited/updated some of the plugin controlled file, you might get an error message protecting any update. In such situation you can reset those files with the latest version with the following commands


git reset --hard
git pull --forceand try to restore the file after update

After update i got difficult problems and the system crashed. I had to restore the memory card to previous backups


How can I update? please help. I'm noob in Linux....


Rasp 4+
Domoticz 2024.7

Re: How to Upgrade from Plugin: 7.1.011. Backup/Restore plugin.py

Posted: Monday 28 October 2024 14:31
by pipiche
it is really hard to answer, as there is not much error provided.
What did you ? what version are you know ? what are the logs ?

At least can you do the following and provide the full output.

From the plugin home directory

Code: Select all

git status

Code: Select all

cat .hidden/VERSION
Please provide the Domoticz and plugin log file

Re: How to Upgrade from Plugin: 7.1.011. Backup/Restore plugin.py

Posted: Tuesday 19 November 2024 13:25
by Knight
Hi, here is the logs. The only changes I have made in Zigbee for Domoitcz is change the "Friendly Name" Management -> Device Management on my devices

Re: How to Upgrade from Plugin: 7.1.011. Backup/Restore plugin.py

Posted: Saturday 30 November 2024 12:15
by Knight
Any suggestions? :

Re: How to Upgrade from Plugin: 7.1.011. Backup/Restore plugin.py

Posted: Sunday 01 December 2024 10:39
by pipiche
from the plugin home directory

Reset the ownership of all plugin file to Pi

Code: Select all

sudo chown -R pi:pi .
# get rid of local modifications

Code: Select all

git reset --hard
git pull
sudo python3 -m pip install -r requirements.txt --upgrade
the restart domoticz