How to update an existing installation? Topic is solved

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
marmachine
Posts: 133
Joined: Saturday 26 March 2016 10:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4834
Location: Netherlands
Contact:

How to update an existing installation?

Post by marmachine »

Hi,

When my Dashtics loads, it promts that an update (v3.9) is available.
This probably is a newbee question, although i'm getting an oldie...

Do i really need to create 'dev' dir and then run the command ". <(wget -qO - https://raw.githubusercontent.com/Dasht ... install.sh )"
My existing installation is in the default folder 'dashticz', so shouldn't i run the command in that folder instead of in the 'dev' folder?

It seems to me that the 'dev' folder brings me into trouble i guess... i'm getting the following result:

This is the installation script for Dashticz

Using default settings

Dashticz repository: https://github.com/Dashticz/dashticz
Branch: master
Port: 8082

The script will create a folder for Dashticz in the following location:
/home/pi/dev

Enter the folder name [dashticz]:

Dashticz will be installed in
dashticz


Dashticz has a master branch (=stable) and a beta branch (=most up-to-date)
Which branch to install? [master]:
Checking for git: [OK!]

Now cloning the Dashticz repository https://github.com/Dashticz/dashticz

Cloning into 'dashticz'...
remote: Enumerating objects: 2591, done.
remote: Counting objects: 100% (2591/2591), done.
remote: Compressing objects: 100% (1768/1768), done.
Receiving objects: 100% (2591/2591), 56.26 MiB | 3.46 MiB/s, done.
remote: Total 2591 (delta 1291), reused 1905 (delta 748), pack-reused 0
Resolving deltas: 100% (1291/1291), done.
^Cwarning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

the retry doesn't bring me any better result either...
fatal: not a git repository (or any of the parent directories): .git

:?:
User avatar
heggink
Posts: 979
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: How to update an existing installation?

Post by heggink »

just do a git pull in the installation folder and it will update.
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
marmachine
Posts: 133
Joined: Saturday 26 March 2016 10:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4834
Location: Netherlands
Contact:

Re: How to update an existing installation?

Post by marmachine »

Thx, that was helpfull indeed!
Daro1003
Posts: 192
Joined: Monday 14 November 2022 12:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: Poland
Contact:

Re: How to update an existing installation?

Post by Daro1003 »

Hello
I go to the dashticz folder.
It does a git pull and this is what it shows me:

Code: Select all

pi@smarticz:~ $ cd dashticz
pi@smarticz:~/dashticz $ git pull
Updating e5897d9b..6bac9acf
error: The following untracked working tree files would be overwritten by merge:
        lang/sl_SI.json
Please move or remove them before you merge.
Aborting

Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How to update an existing installation?

Post by Lokonli »

Probably you've changed that file.
Do you want to keep the changes or is it OK to throw the changes away?



Verstuurd vanaf mijn SM-A526B met Tapatalk

Daro1003
Posts: 192
Joined: Monday 14 November 2022 12:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: Poland
Contact:

Re: How to update an existing installation?

Post by Daro1003 »

I would not like what I have set in dashticz to change, but I also have a copy of the dashticz folder.
I want to update my dashtich
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How to update an existing installation?

Post by Lokonli »

You made some changes to the translations in the file 'lang/sl_SI.json'

If you post your changes here, I can merge them in the next version of Dashticz.

If you've more translation updates, let me know, because then I'll give you access to the Dashticz project on lokalise.com, where the translations are managed.

To bring back the changed file to the original file:

Code: Select all

git checkout lang/sl_SI.json
Then to get the latest Dashticz version:

Code: Select all

git pull
Everything in the custom folder, including config settings, will be untouched.
Daro1003
Posts: 192
Joined: Monday 14 November 2022 12:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: Poland
Contact:

Re: How to update an existing installation?

Post by Daro1003 »

hmmm I never made any changes to the "lang/sl_SI.json" file, only what I set the language in the raspberry settings

Code: Select all

sudo raspi-config
and the command you wrote:

Code: Select all

git checkout lang/sl_SI.json
I do in the dashticz directory? Do domoticz?
W katalogu dashticz mam odpowiedz:

Code: Select all

pi@smarticz:~/dashticz $ git checkout lang/sl_SI.json
error: pathspec 'lang/sl_SI.json' did not match any file(s) known to git
Daro1003
Posts: 192
Joined: Monday 14 November 2022 12:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: Poland
Contact:

Re: How to update an existing installation?

Post by Daro1003 »

Code: Select all

pi@smarticz:~/dashticz $ git checkout lang/sl_SI.json
error: pathspec 'lang/sl_SI.json' did not match any file(s) known to git
pi@smarticz:~/dashticz $ sudo git checkout lang/sl_SI.json
error: pathspec 'lang/sl_SI.json' did not match any file(s) known to git
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How to update an existing installation?

Post by Lokonli »

ok, different way. Try the following:

In the Dashticz folder:

Code: Select all

git reset --hard
git pull
Daro1003
Posts: 192
Joined: Monday 14 November 2022 12:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: Poland
Contact:

Re: How to update an existing installation?

Post by Daro1003 »

Code: Select all

git reset --hard
error: unable to unlink old 'bin/glob-ls.js': Brak dostępu
error: unable to unlink old 'dist/assets/fonts/fa-brands-400.eot': Brak dostępu
error: unable to unlink old 'dist/assets/fonts/fa-brands-400.svg': Brak dostępu
error: unable to unlink old 'dist/assets/fonts/fa-brands-400.ttf': Brak dostępu
error: unable to unlink old 'dist/assets/fonts/fa-brands-400.woff': Brak dostępu
error: unable to unlink old 'dist/assets/fonts/fa-brands-400.woff2': Brak dostępu
error: unable to unlink old 'dist/assets/fonts/fa-regular-400.eot': Brak dostępu
error: unable to unlink old 'dist/assets/fonts/fa-regular-400.svg': Brak dostępu
error: unable to unlink old 'dist/assets/fonts/fa-regular-400.ttf': Brak dostępu
error: unable to unlink old 'dist/assets/fonts/fa-regular-400.woff': Brak dostępu
error: unable to unlink old 'dist/assets/fonts/fa-regular-400.woff2': Brak dostępu
error: unable to unlink old 'dist/assets/fonts/fa-solid-900.eot': Brak dostępu
error: unable to unlink old 'dist/assets/fonts/fa-solid-900.svg': Brak dostępu
error: unable to unlink old 'dist/assets/fonts/fa-solid-900.ttf': Brak dostępu
error: unable to unlink old 'dist/assets/fonts/fa-solid-900.woff': Brak dostępu
error: unable to unlink old 'dist/assets/fonts/fa-solid-900.woff2': Brak dostępu
error: unable to unlink old 'dist/assets/fonts/glyphicons-halflings-regular.eot': Brak dostępu
error: unable to unlink old 'dist/assets/fonts/glyphicons-halflings-regular.svg': Brak dostępu
error: unable to unlink old 'dist/assets/fonts/glyphicons-halflings-regular.ttf': Brak dostępu
error: unable to unlink old 'dist/assets/fonts/glyphicons-halflings-regular.woff': Brak dostępu
error: unable to unlink old 'dist/assets/fonts/glyphicons-halflings-regular.woff2': Brak dostępu
error: unable to unlink old 'docs/troubleshooting/connection.rst': Brak dostępu
error: unable to unlink old 'docs/troubleshooting/docker.rst': Brak dostępu
error: unable to unlink old 'docs/troubleshooting/index.rst': Brak dostępu
error: unable to unlink old 'docs/troubleshooting/issues-domoticzblocks.rst': Brak dostępu
error: unable to unlink old 'img/weathericons/fill/01d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/fill/01n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/fill/02d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/fill/02n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/fill/03d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/fill/03n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/fill/04d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/fill/04n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/fill/09d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/fill/09n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/fill/10d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/fill/10n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/fill/11d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/fill/11n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/fill/13d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/fill/13n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/fill/50d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/fill/50n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/line/01d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/line/01n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/line/02d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/line/02n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/line/03d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/line/03n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/line/04d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/line/04n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/line/09d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/line/09n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/line/10d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/line/10n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/line/11d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/line/11n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/line/13d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/line/13n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/line/50d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/line/50n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/linestatic/01d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/linestatic/01n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/linestatic/02d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/linestatic/02n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/linestatic/03d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/linestatic/03n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/linestatic/04d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/linestatic/04n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/linestatic/09d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/linestatic/09n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/linestatic/10d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/linestatic/10n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/linestatic/11d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/linestatic/11n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/linestatic/13d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/linestatic/13n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/linestatic/50d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/linestatic/50n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/meteo/01d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/meteo/01n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/meteo/02d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/meteo/02n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/meteo/03d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/meteo/03n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/meteo/04d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/meteo/04n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/meteo/09d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/meteo/09n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/meteo/10d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/meteo/10n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/meteo/11d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/meteo/11n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/meteo/13d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/meteo/13n.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/meteo/50d.svg': Brak dostępu
error: unable to unlink old 'img/weathericons/meteo/50n.svg': Brak dostępu
error: unable to unlink old 'tpl/calendar_0.tpl': Brak dostępu
error: unable to unlink old 'tpl/calendar_1.tpl': Brak dostępu
error: unable to unlink old 'tpl/calendar_2_event.tpl': Brak dostępu
error: unable to unlink old 'tpl/calendar_2_modal.tpl': Brak dostępu
error: unable to unlink old 'tpl/calendar_2_template.tpl': Brak dostępu
error: unable to unlink old 'tpl/calendar_3.tpl': Brak dostępu
error: unable to unlink old 'tpl/calendar_4.tpl': Brak dostępu
error: unable to unlink old 'tpl/calendar_modal_iframe.tpl': Brak dostępu
error: unable to unlink old 'tpl/camera_image.tpl': Brak dostępu
error: unable to unlink old 'tpl/camera_video.tpl': Brak dostępu
error: unable to unlink old 'tpl/clock_hayman.tpl': Brak dostępu
error: unable to unlink old 'tpl/colorpicker.tpl': Brak dostępu
error: unable to unlink old 'tpl/corona_graph_header.tpl': Brak dostępu
error: unable to unlink old 'tpl/corona_report.tpl': Brak dostępu
error: unable to unlink old 'tpl/debug.tpl': Brak dostępu
error: unable to unlink old 'tpl/debugstatus.tpl': Brak dostępu
error: unable to unlink old 'tpl/dial.tpl': Brak dostępu
error: unable to unlink old 'tpl/dialblinds.tpl': Brak dostępu
error: unable to unlink old 'tpl/garbage_0.tpl': Brak dostępu
error: unable to unlink old 'tpl/garbage_1.tpl': Brak dostępu
error: unable to unlink old 'tpl/garbage_2.tpl': Brak dostępu
error: unable to unlink old 'tpl/graph_header.tpl': Brak dostępu
error: unable to unlink old 'tpl/graph_tooltip.tpl': Brak dostępu
error: unable to unlink old 'tpl/graph_tooltip_table.tpl': Brak dostępu
error: unable to unlink old 'tpl/news_modal.tpl': Brak dostępu
error: unable to unlink old 'tpl/news_row.tpl': Brak dostępu
error: unable to unlink old 'tpl/pubtrans_ov.tpl': Brak dostępu
error: unable to unlink old 'tpl/pubtrans_treinen.tpl': Brak dostępu
error: unable to unlink old 'tpl/secpanel.tpl': Brak dostępu
error: unable to unlink old 'tpl/secpanel_modal.tpl': Brak dostępu
error: unable to unlink old 'tpl/thermostat_block.tpl': Brak dostępu
error: unable to unlink old 'tpl/thermostat_evo_cont.tpl': Brak dostępu
error: unable to unlink old 'tpl/thermostat_evo_hw.tpl': Brak dostępu
error: unable to unlink old 'tpl/thermostat_evo_zone.tpl': Brak dostępu
error: unable to unlink old 'tpl/traffic.tpl': Brak dostępu
error: unable to unlink old 'tpl/tvguide_0.tpl': Brak dostępu
error: unable to unlink old 'tpl/tvguide_1.tpl': Brak dostępu
error: unable to unlink old 'tpl/weather_0.tpl': Brak dostępu
error: unable to unlink old 'tpl/weather_1.tpl': Brak dostępu
error: unable to unlink old 'tpl/weather_2.tpl': Brak dostępu
error: unable to unlink old 'tpl/weather_3.tpl': Brak dostępu
error: unable to unlink old 'tpl/weather_4.tpl': Brak dostępu
Checking out files: 100% (874/874), done.
fatal: Could not reset index file to revision 'HEAD'.
pi@smarticz:~/dashticz $ git pull
remote: Enumerating objects: 81, done.
remote: Counting objects: 100% (81/81), done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 81 (delta 50), reused 77 (delta 49), pack-reused 0
error: insufficient permission for adding an object to repository database .git/objects
fatal: failed to write object
fatal: unpack-objects failed
pi@smarticz:~/dashticz $
The update is not going through for me.
It's also a strange thing because the domoticz roller blinds work correctly in all directions and the daschticz ones work the other way around

Code: Select all

pi@smarticz:~/dashticz $ sudo git reset --hard
Checking out files: 100% (874/874), done.
HEAD is now at e5897d9b Dial: Clean up
pi@smarticz:~/dashticz $ git pull
remote: Enumerating objects: 81, done.
remote: Counting objects: 100% (81/81), done.
remote: Compressing objects: 100% (32/32), done.
error: insufficient permission for adding an object to repository database .git/objects
fatal: failed to write object
fatal: unpack-objects failed
pi@smarticz:~/dashticz $ sudo git pull
remote: Enumerating objects: 81, done.
remote: Counting objects: 100% (81/81), done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 81 (delta 50), reused 77 (delta 49), pack-reused 0
Unpacking objects: 100% (81/81), done.
From https://github.com/Dashticz/dashticz
   9615c7b3..265d2743  beta       -> origin/beta
Updating e5897d9b..6bac9acf
error: The following untracked working tree files would be overwritten by merge:
        lang/sl_SI.json
Please move or remove them before you merge.
Aborting
pi@smarticz:~/dashticz $
[code]
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How to update an existing installation?

Post by Lokonli »

Something is wrong with your .git folder, maybe some other things as well.
You have sufficient disk space?

I think ownership is incorrect: all files should be owned by pi.

Maybe it's most easy to make a backup of the custom folder in a save location, remove the dashticz folder, create a fresh install of Dashticz, and put back the files in the custom folder.

You can also try to fix it manually. In the Dashticz folder, something like:

Code: Select all

sudo chown -R pi:pi .
chmod -R +rw .
git reset --hard
That should give no errors.
If you've still errors, you have to make a clean install.
Daro1003
Posts: 192
Joined: Monday 14 November 2022 12:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: Poland
Contact:

Re: How to update an existing installation?

Post by Daro1003 »

Code: Select all

pi@smarticz:~/dashticz $ sudo chown -R pi:pi .
pi@smarticz:~/dashticz $ chmod -R +rw .
pi@smarticz:~/dashticz $ git reset --hard
Checking out files: 100% (874/874), done.
HEAD is now at e5897d9b Dial: Clean up
pi@smarticz:~/dashticz $ git pull
Updating e5897d9b..6bac9acf
error: The following untracked working tree files would be overwritten by merge:
        lang/sl_SI.json
Please move or remove them before you merge.
Aborting
pi@smarticz:~/dashticz $
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How to update an existing installation?

Post by Lokonli »

Almost ready :)

Remove the untracked file manually:

Code: Select all

rm lang/sl_SI.json
and retry to update with:

Code: Select all

git pull
Daro1003
Posts: 192
Joined: Monday 14 November 2022 12:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: Poland
Contact:

Re: How to update an existing installation?

Post by Daro1003 »

Thank you, the issue has already been resolved, I did a fresh install and everything works. Thank you for your help and involvement.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest